fedoo.core.BoundaryCondition.create
- static BoundaryCondition.create(bc_type, node_set, variable, value, time_func=None, start_value=None, name='')
Create one or several standard boundary conditions (Dirichlet or Neumann BC)
- Parameters:
bc_type (str) – Type of boundary condition: ‘Dirichlet’ or ‘Neumann’.
variable (str) – Variable name (str) or Vector name (str) or list of variable/vector name (list of str) Variable over which the bc is applied. If a list of variable is given, apply the same BC for each variable.
value (scalar or scalar array) – Final value of the variable (Dirichlet) or the adjoint variable (Neumann). e.g. the adjoint variable associated to displacement is the force.
node_set (list of int or str) – list of node index (list of int) or name of a node_set associated to the reference mesh (str) or dof_indice (for global variables)
time_func (function) – Function that gives the temporal evolution of the BC value (applyed as a factor to the specified BC). The function should be under the form y=f(x) where x in [0,1] and y in [0,1]. For x, 0 denote the begining of the step and 1 the end. By default, a linear evolution of the value is considered.
start_value (float, array or None (default)) – if None, the start_value is keep to the current state. if scalar value: The start_value is the same for all dof defined in BC if array: the len of the array should be = to the number of dof defined in the BC
name (str (default = "")) – Define the name of the Boundary Conditions.
- Returns:
If only one variable is specified, return a BoundaryCondition object,
if several variables are specified, return a ListBC object.