@@ -50,19 +50,17 @@ class AcousticWaveProblem(TimeDependentProblem, SpatialProblem):
5050 temporal_domain = CartesianDomain ({"t" : [0 , 1 ]})
5151
5252 domains = {
53- "D" : CartesianDomain ({"x" : [0 , 1 ], "t" : [0 , 1 ]}),
54- "t0" : CartesianDomain ({"x" : [0 , 1 ], "t" : 0.0 }),
55- "g1" : CartesianDomain ({"x" : 0.0 , "t" : [0 , 1 ]}),
56- "g2" : CartesianDomain ({"x" : 1.0 , "t" : [0 , 1 ]}),
53+ "D" : spatial_domain .update (temporal_domain ),
54+ "t0" : spatial_domain .update (CartesianDomain ({"t" : 0 })),
55+ "boundary" : spatial_domain .partial ().update (temporal_domain ),
5756 }
5857
5958 conditions = {
60- "g1" : Condition (domain = "g1" , equation = FixedValue (value = 0.0 )),
61- "g2" : Condition (domain = "g2" , equation = FixedValue (value = 0.0 )),
59+ "boundary" : Condition (domain = "boundary" , equation = FixedValue (0.0 )),
6260 "t0" : Condition (
6361 domain = "t0" ,
6462 equation = SystemEquation (
65- [Equation (initial_condition ), FixedGradient (value = 0.0 , d = "t" )]
63+ [Equation (initial_condition ), FixedGradient (0.0 , d = "t" )]
6664 ),
6765 ),
6866 }
0 commit comments