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_mode defines what is done when incompatible boundary conditions are found the first time the list is applied to a problem: "warn" (default) emits a BoundaryConditionWarning, "raise" raises a BoundaryConditionConflict error and "ignore" disables the check.

__init__(l=None, name='')

Methods

ListBC.__getitem__(items)

ListBC.__len__()

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.get_all()

ListBC.initialize(problem)

ListBC.list_all()

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)

ListBC.str_condensed()

Return a condensed one line str describing the object

ListBC.check_mode

"warn", "raise" or "ignore".

ListBC.name