Classes holding information on global DOFs and mapping of all DOFs - equations (active DOFs).
Helper functions for the equation mapping.
Global DOF information, i.e. ordering of DOFs of the state (unknown) variables in the global state vector.
Append raw DOFs.
| Parameters: | name : str
n_dof : int
|
|---|
Append DOFs of the given variable.
| Parameters: | var : Variable instance
active : bool, optional
|
|---|
Return information on DOFs of the given variable.
| Parameters: | var_name : str
|
|---|
Transformation matrix operator for edges direction LCBCs.
The substitution (in 3D) is:
where
is an edge direction vector averaged into a node. The new DOF is .Map all DOFs to equations for active DOFs.
Get the matrix operator
corresponding to the equation mapping, such that the restricted matrix can be obtained from the full matrix by . All the matrices are w.r.t. a single variables that uses this mapping.| Returns: | mtx : coo_matrix
|
|---|
Create the mapping of active DOFs from/to all DOFs.
| Parameters: | bcs : Conditions instance
field : Field instance
ts : TimeStepper instance
functions : Functions instance
problem : ProblemDefinition instance, optional
warn : bool, optional
|
|---|---|
| Returns: | active_bcs : set
|
Notes
Transformation matrix operator for integral mean value LCBCs. All node DOFs are sumed to the new one.
Container holding instances of LCBCOperator subclasses for a single variable.
| Parameters: | name : str
eq_map : EquationMap instance
offset : int
|
|---|
Transformation matrix operator for no-penetration LCBCs.
Transformation matrix operator for normal direction LCBCs.
The substitution (in 3D) is:
The new DOF is
.Transformation matrix operator for rigid LCBCs.
Expand DOF node indices into DOFs given a constant number of DOFs per node.
Expand vector of node indices to equations (DOF indices) based on the DOF-per-node count.
DOF names must be already canonized.
Check whether the given boundary condition is active in the current time.
| Returns: | active : bool
|
|---|
Assemble all LCBC operators into a single matrix.
| Returns: | mtx_lc : csr_matrix
lcdi : DofInfo
new_only : bool
|
|---|