fedoo.problem.Linear.add_global_dof
- Linear.add_global_dof(variable_names: str | list[str], nb_new_dof: int = 1, vector_name: str | None = None)
Add global degrees of freedom to the problem.
The global dof are global in the sense that they are not associated to a node of a mesh as usual finite element dof. They are usefull to define some constraints, like periodic boundary conditions.
- Parameters:
variable_names (str, list[str]) – Name of the global variable (ie not associated to nodes). Name is required to catch the results using the get_results or get_ext_forces method.
nb_new_dof (int, default=1) – Number of new global dof for each new variable
vector_name (str, optional) – If a vector name is given, add a vector that allow to catch all the associated variables at the same time.
Note
If the variables already exists, some dof are added to the variables In this case, the vector_name argument is ignored. A vector should be defined when adding new variables only.