anuga.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary

class anuga.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain=None, function=None, default_boundary=0.0)[source]

Bounday condition object that returns transmissive normal momentum and sets stage

Returns the same normal momentum as that present in neighbour volume edge. Zero out the tangential momentum. Sets stage by specifying a function f of time which may either be a vector function or a scalar function

__init__(domain=None, function=None, default_boundary=0.0)[source]

Create boundary condition object.

Parameters:
  • domain – domain on which to apply BC

  • function – function to set stage

  • default_boundary (float) –

Example: Set all the tagged boundaries to use the BC

>>> domain = anuga.rectangular_cross_domain(10, 10) 
>>> def waveform(t):
>>>    return sea_level + normalized_amplitude/cosh(t-25)**2
>>> BC = anuga.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, waveform)
>>> domain.set_boundary({'left': BC, 'right': BC, 'top': BC, 'bottom': BC})

Methods

__init__([domain, function, default_boundary])

Create boundary condition object.

evaluate(vol_id, edge_id)

Transmissive_n_momentum_zero_t_momentum_set_stage_boundary return the edge momentum values of the volume they serve.

evaluate_segment(domain, segment_edges)

Apply BC on the boundary edges defined by segment_edges

get_boundary_values([t])

get_time()