Exemple #1
0
 def __init__(self, viscosity=viscosity, gravity=gravity, terminus=terminus,
              side_friction=side_friction, penalty=normal_flow_penalty):
     self.mass_transport = MassTransport()
     self.viscosity = add_kwarg_wrapper(viscosity)
     self.side_friction = add_kwarg_wrapper(side_friction)
     self.penalty = add_kwarg_wrapper(penalty)
     self.gravity = add_kwarg_wrapper(gravity)
     self.terminus = add_kwarg_wrapper(terminus)
Exemple #2
0
 def __init__(self,
              mass=mass,
              gravity=gravity,
              penalty=penalty,
              mass_transport=LaxWendroff()):
     self.mass_transport = mass_transport
     self.mass = add_kwarg_wrapper(mass)
     self.gravity = add_kwarg_wrapper(gravity)
     self.penalty = add_kwarg_wrapper(penalty)
Exemple #3
0
 def __init__(self,
              mass=mass,
              gravity=gravity,
              penalty=penalty,
              continuity=Continuity()):
     self.mass = add_kwarg_wrapper(mass)
     self.gravity = add_kwarg_wrapper(gravity)
     self.penalty = add_kwarg_wrapper(penalty)
     self.continuity = continuity
Exemple #4
0
 def __init__(self, viscosity=viscosity, gravity=gravity, terminus=terminus,
              side_friction=side_friction, penalty=normal_flow_penalty,
              continuity=Continuity(dimension=2)):
     self.viscosity = add_kwarg_wrapper(viscosity)
     self.side_friction = add_kwarg_wrapper(side_friction)
     self.penalty = add_kwarg_wrapper(penalty)
     self.gravity = add_kwarg_wrapper(gravity)
     self.terminus = add_kwarg_wrapper(terminus)
     self.continuity = continuity
Exemple #5
0
 def __init__(self,
              viscosity=viscosity,
              friction=bed_friction,
              gravity=gravity,
              terminus=terminus,
              mass_transport=LaxWendroff(dimension=3)):
     self.mass_transport = mass_transport
     self.viscosity = add_kwarg_wrapper(viscosity)
     self.friction = add_kwarg_wrapper(friction)
     self.side_friction = add_kwarg_wrapper(side_friction)
     self.gravity = add_kwarg_wrapper(gravity)
     self.terminus = add_kwarg_wrapper(terminus)
     self.penalty = add_kwarg_wrapper(normal_flow_penalty)
Exemple #6
0
 def __init__(
         self,
         viscosity=viscosity,
         friction=bed_friction,
         gravity=gravity,
         terminus=terminus,
         continuity=Continuity(),
 ):
     self.viscosity = add_kwarg_wrapper(viscosity)
     self.friction = add_kwarg_wrapper(friction)
     self.side_friction = add_kwarg_wrapper(side_friction)
     self.gravity = add_kwarg_wrapper(gravity)
     self.terminus = add_kwarg_wrapper(terminus)
     self.penalty = add_kwarg_wrapper(normal_flow_penalty)
     self.continuity = continuity