fedoo.ListBC
- class ListBC(l=None, name='')
List of boundary conditions.
Class that define a list of ordered elementary boundary conditions (the bc are applied in the list order). Derived from the python list object.
Notes
Several boundary conditions may share some dof:
The generalized forces of the Neumann bc are summed.
For Dirichlet bc, the last one in the list is applied. This is reported if the prescribed values are different (see
check()).
The attribute
check_modedefines what is done when incompatible boundary conditions are found the first time the list is applied to a problem:"warn"(default) emits aBoundaryConditionWarning,"raise"raises aBoundaryConditionConflicterror and"ignore"disables the check.- __init__(l=None, name='')
Methods
ListBC.__getitem__(items)ListBC.add(*args, **kargs)Add a boundary condition to the ListBC object, and then to the associated problem if there is one.
ListBC.append(bc)ListBC.check([problem, t_fact])Look for boundary conditions applied twice on the same dof.
ListBC.extend(iterable)ListBC.generate(problem[, t_fact, t_fact_old])ListBC.initialize(problem)ListBC.mpc(*args, **kargs)Add a linear multi-point constraint to the list of boundary conditions.
ListBC.register_global_dofs(problem)Register global DOFs required by this boundary condition.
ListBC.remove(bc)Return a condensed one line str describing the object
"warn", "raise" or "ignore".