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
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
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