autopdex.SimState.add_weak_bc
- SimState.add_weak_bc(field, on_boundary_fun, value_fun, index=None, *, trace: str = 'value', sign: float = -1.0)[source]
Add a weak boundary condition as a convenience wrapper around a surface weak form.
With trace=”value”, value_fun must return a load/traction with the same shape as the selected field. With index, value_fun must return a scalar that is applied only to that component. With trace=”normal” (experimental), the selected field’s surface basis must return a scalar normal trace.