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
|
---|
Map all DOFs to equations for active DOFs.
Get the matrix operator R corresponding to the equation mapping, such that the restricted matrix A_r can be obtained from the full matrix A by A_r = R^T A R. 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 : Problem instance, optional
warn : bool, optional
|
---|---|
Returns: | active_bcs : set
|
Notes
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.