Base class for a system (of equations) More...
#include <SystemBase.h>
Public Member Functions | |
SystemBase (SubProblem &subproblem, FEProblemBase &fe_problem, const std::string &name, Moose::VarKindType var_kind) | |
virtual | ~SystemBase () |
unsigned int | number () const |
Gets the number of this system. More... | |
MooseMesh & | mesh () |
const MooseMesh & | mesh () const |
SubProblem & | subproblem () |
const SubProblem & | subproblem () const |
FEProblemBase & | feProblem () |
const FEProblemBase & | feProblem () const |
void | applyScalingFactors (const std::vector< Real > &inverse_scaling_factors) |
Applies scaling factors to the system's variables. More... | |
bool | computingScalingJacobian () const |
Whether we are computing an initial Jacobian for automatic variable scaling. More... | |
bool | automaticScaling () const |
Getter for whether we are performing automatic scaling. More... | |
void | automaticScaling (bool automatic_scaling) |
Setter for whether we are performing automatic scaling. More... | |
void | setVerboseFlag (const bool &verbose) |
Sets the verbose flag. More... | |
virtual libMesh::DofMap & | dofMap () |
Gets writeable reference to the dof map. More... | |
virtual const libMesh::DofMap & | dofMap () const |
Gets const reference to the dof map. More... | |
virtual libMesh::System & | system ()=0 |
Get the reference to the libMesh system. More... | |
virtual const libMesh::System & | system () const =0 |
virtual void | preInit () |
This is called prior to the libMesh system has been init'd. More... | |
virtual void | postInit () |
virtual void | reinit () |
Reinitialize the system when the degrees of freedom in this system have changed. More... | |
virtual void | initializeObjects () |
Called only once, just before the solve begins so objects can do some precalculations. More... | |
void | update () |
Update the system (doing libMesh magic) More... | |
virtual void | solve () |
Solve the system (using libMesh magic) More... | |
virtual void | copyOldSolutions () |
Shifts the solutions backwards in time. More... | |
virtual void | copyPreviousNonlinearSolutions () |
Shifts the solutions backwards in nonlinear iteration history. More... | |
virtual void | copyPreviousFixedPointSolutions () |
virtual void | restoreSolutions () |
Restore current solutions (call after your solve failed) More... | |
virtual const NumericVector< Number > *const & | currentSolution () const =0 |
The solution vector that is currently being operated on. More... | |
NumericVector< Number > & | solution () |
NumericVector< Number > & | solutionOld () |
NumericVector< Number > & | solutionOlder () |
const NumericVector< Number > & | solution () const |
const NumericVector< Number > & | solutionOld () const |
const NumericVector< Number > & | solutionOlder () const |
virtual const NumericVector< Number > * | solutionPreviousNewton () const |
virtual NumericVector< Number > * | solutionPreviousNewton () |
virtual void | initSolutionState () |
Initializes the solution state. More... | |
virtual NumericVector< Number > & | solutionState (const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time) |
Get a state of the solution (0 = current, 1 = old, 2 = older, etc). More... | |
virtual const NumericVector< Number > & | solutionState (const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time) const |
Get a state of the solution (0 = current, 1 = old, 2 = older, etc). More... | |
libMesh::ParallelType | solutionStateParallelType (const unsigned int state, const Moose::SolutionIterationType iteration_type) const |
Returns the parallel type of the given solution state. More... | |
virtual void | needSolutionState (const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time, libMesh::ParallelType parallel_type=GHOSTED) |
Registers that the solution state state is needed. More... | |
virtual bool | hasSolutionState (const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time) const |
Whether or not the system has the solution state (0 = current, 1 = old, 2 = older, etc). More... | |
virtual void | addDotVectors () |
Add u_dot, u_dotdot, u_dot_old and u_dotdot_old vectors if requested by the time integrator. More... | |
virtual std::vector< Number > & | duDotDus () |
virtual Number & | duDotDotDu () |
virtual const Number & | duDotDu (unsigned int var_num=0) const |
virtual const Number & | duDotDotDu () const |
virtual NumericVector< Number > * | solutionUDot () |
virtual NumericVector< Number > * | solutionUDotDot () |
virtual NumericVector< Number > * | solutionUDotOld () |
virtual NumericVector< Number > * | solutionUDotDotOld () |
virtual const NumericVector< Number > * | solutionUDot () const |
virtual const NumericVector< Number > * | solutionUDotDot () const |
virtual const NumericVector< Number > * | solutionUDotOld () const |
virtual const NumericVector< Number > * | solutionUDotDotOld () const |
virtual void | saveOldSolutions () |
Save the old and older solutions. More... | |
virtual void | restoreOldSolutions () |
Restore the old and older solutions when the saved solutions present. More... | |
bool | hasVector (const std::string &tag_name) const |
Check if the named vector exists in the system. More... | |
virtual bool | hasVector (TagID tag_id) const |
Check if the tagged vector exists in the system. More... | |
virtual TagID | timeVectorTag () const |
Ideally, we should not need this API. More... | |
virtual TagID | systemMatrixTag () const |
Return the Matrix Tag ID for System. More... | |
virtual TagID | nonTimeVectorTag () const |
virtual TagID | residualVectorTag () const |
virtual std::set< TagID > | defaultVectorTags () const |
Get the default vector tags associated with this system. More... | |
virtual std::set< TagID > | defaultMatrixTags () const |
Get the default matrix tags associted with this system. More... | |
virtual void | associateVectorToTag (NumericVector< Number > &vec, TagID tag) |
Associate a vector for a given tag. More... | |
virtual void | disassociateVectorFromTag (NumericVector< Number > &vec, TagID tag) |
Disassociate a given vector from a given tag. More... | |
virtual void | disassociateVectorFromTag (TagID tag) |
Disassociate any vector that is associated with a given tag. More... | |
virtual void | disassociateDefaultVectorTags () |
Disassociate the vectors associated with the default vector tags of this system. More... | |
virtual bool | hasMatrix (TagID tag) const |
Check if the tagged matrix exists in the system. More... | |
virtual libMesh::SparseMatrix< Number > & | getMatrix (TagID tag) |
Get a raw SparseMatrix. More... | |
virtual const libMesh::SparseMatrix< Number > & | getMatrix (TagID tag) const |
Get a raw SparseMatrix. More... | |
virtual void | activateAllMatrixTags () |
Make all existing matrices active. More... | |
virtual bool | matrixTagActive (TagID tag) const |
If or not a matrix tag is active. More... | |
virtual void | deactivateAllMatrixTags () |
Make matrices inactive. More... | |
void | closeTaggedMatrices (const std::set< TagID > &tags) |
Close all matrices associated the tags. More... | |
void | flushTaggedMatrices (const std::set< TagID > &tags) |
flushes all matrices associated to tags. More... | |
virtual void | associateMatrixToTag (libMesh::SparseMatrix< Number > &matrix, TagID tag) |
Associate a matrix to a tag. More... | |
virtual void | disassociateMatrixFromTag (libMesh::SparseMatrix< Number > &matrix, TagID tag) |
Disassociate a matrix from a tag. More... | |
virtual void | disassociateMatrixFromTag (TagID tag) |
Disassociate any matrix that is associated with a given tag. More... | |
virtual void | disassociateDefaultMatrixTags () |
Disassociate the matrices associated with the default matrix tags of this system. More... | |
virtual NumericVector< Number > & | serializedSolution () |
Returns a reference to a serialized version of the solution vector for this subproblem. More... | |
virtual NumericVector< Number > & | residualCopy () |
virtual NumericVector< Number > & | residualGhosted () |
virtual void | augmentSendList (std::vector< dof_id_type > &send_list) |
Will modify the send_list to add all of the extra ghosted dofs for this system. More... | |
virtual void | augmentSparsity (libMesh::SparsityPattern::Graph &sparsity, std::vector< dof_id_type > &n_nz, std::vector< dof_id_type > &n_oz)=0 |
Will modify the sparsity pattern to add logical geometric connections. More... | |
virtual void | addVariable (const std::string &var_type, const std::string &var_name, InputParameters ¶meters) |
Canonical method for adding a variable. More... | |
virtual bool | isArrayVariable (const std::string &var_name) const |
If a variable is an array variable. More... | |
virtual bool | isScalarVariable (unsigned int var_name) const |
MooseVariableFieldBase & | getVariable (THREAD_ID tid, const std::string &var_name) const |
Gets a reference to a variable of with specified name. More... | |
MooseVariableFieldBase & | getVariable (THREAD_ID tid, unsigned int var_number) const |
Gets a reference to a variable with specified number. More... | |
template<typename T > | |
MooseVariableFE< T > & | getFieldVariable (THREAD_ID tid, const std::string &var_name) |
Gets a reference to a variable of with specified name. More... | |
template<typename T > | |
MooseVariableField< T > & | getActualFieldVariable (THREAD_ID tid, const std::string &var_name) |
Returns a field variable pointer - this includes finite volume variables. More... | |
template<typename T > | |
MooseVariableFE< T > & | getFieldVariable (THREAD_ID tid, unsigned int var_number) |
Gets a reference to a variable with specified number. More... | |
template<typename T > | |
MooseVariableField< T > & | getActualFieldVariable (THREAD_ID tid, unsigned int var_number) |
Returns a field variable pointer - this includes finite volume variables. More... | |
template<typename T > | |
MooseVariableFV< T > & | getFVVariable (THREAD_ID tid, const std::string &var_name) |
Return a finite volume variable. More... | |
virtual MooseVariableScalar & | getScalarVariable (THREAD_ID tid, const std::string &var_name) const |
Gets a reference to a scalar variable with specified number. More... | |
virtual MooseVariableScalar & | getScalarVariable (THREAD_ID tid, unsigned int var_number) const |
Gets a reference to a variable with specified number. More... | |
virtual const std::set< SubdomainID > * | getVariableBlocks (unsigned int var_number) |
Get the block where a variable of this system is defined. More... | |
virtual unsigned int | nVariables () const |
Get the number of variables in this system. More... | |
unsigned int | nFieldVariables () const |
Get the number of field variables in this system. More... | |
unsigned int | nFVVariables () const |
Get the number of finite volume variables in this system. More... | |
std::size_t | getMaxVarNDofsPerElem () const |
Gets the maximum number of dofs used by any one variable on any one element. More... | |
std::size_t | getMaxVarNDofsPerNode () const |
Gets the maximum number of dofs used by any one variable on any one node. More... | |
void | assignMaxVarNDofsPerElem (std::size_t max_dofs) |
assign the maximum element dofs More... | |
void | assignMaxVarNDofsPerNode (std::size_t max_dofs) |
assign the maximum node dofs More... | |
virtual void | addVariableToZeroOnResidual (std::string var_name) |
Adds this variable to the list of variables to be zeroed during each residual evaluation. More... | |
virtual void | addVariableToZeroOnJacobian (std::string var_name) |
Adds this variable to the list of variables to be zeroed during each Jacobian evaluation. More... | |
virtual void | zeroVariables (std::vector< std::string > &vars_to_be_zeroed) |
Zero out the solution for the list of variables passed in. More... | |
virtual void | zeroVariablesForResidual () |
Zero out the solution for the variables that were registered as needing to have their solutions zeroed on out on residual evaluation by a call to addVariableToZeroOnResidual() More... | |
virtual void | zeroVariablesForJacobian () |
Zero out the solution for the variables that were registered as needing to have their solutions zeroed on out on Jacobian evaluation by a call to addVariableToZeroOnResidual() More... | |
virtual libMesh::Order | getMinQuadratureOrder () |
Get minimal quadrature order needed for integrating variables in this system. More... | |
virtual void | prepare (THREAD_ID tid) |
Prepare the system for use. More... | |
virtual void | prepareFace (THREAD_ID tid, bool resize_data) |
Prepare the system for use on sides. More... | |
virtual void | prepareNeighbor (THREAD_ID tid) |
Prepare the system for use. More... | |
virtual void | prepareLowerD (THREAD_ID tid) |
Prepare the system for use for lower dimensional elements. More... | |
virtual void | reinitElem (const Elem *elem, THREAD_ID tid) |
Reinit an element assembly info. More... | |
virtual void | reinitElemFace (const Elem *elem, unsigned int side, THREAD_ID tid) |
Reinit assembly info for a side of an element. More... | |
virtual void | reinitNeighborFace (const Elem *elem, unsigned int side, THREAD_ID tid) |
Compute the values of the variables at all the current points. More... | |
virtual void | reinitNeighbor (const Elem *elem, THREAD_ID tid) |
Compute the values of the variables at all the current points. More... | |
virtual void | reinitLowerD (THREAD_ID tid) |
Compute the values of the variables on the lower dimensional element. More... | |
virtual void | reinitNode (const Node *node, THREAD_ID tid) |
Reinit nodal assembly info. More... | |
virtual void | reinitNodeFace (const Node *node, BoundaryID bnd_id, THREAD_ID tid) |
Reinit nodal assembly info on a face. More... | |
virtual void | reinitNodes (const std::vector< dof_id_type > &nodes, THREAD_ID tid) |
Reinit variables at a set of nodes. More... | |
virtual void | reinitNodesNeighbor (const std::vector< dof_id_type > &nodes, THREAD_ID tid) |
Reinit variables at a set of neighbor nodes. More... | |
virtual void | reinitScalars (THREAD_ID tid, bool reinit_for_derivative_reordering=false) |
Reinit scalar varaibles. More... | |
virtual void | addVariableToCopy (const std::string &dest_name, const std::string &source_name, const std::string ×tep) |
Add info about variable that will be copied. More... | |
const std::vector< MooseVariableFieldBase * > & | getVariables (THREAD_ID tid) |
const std::vector< MooseVariableScalar * > & | getScalarVariables (THREAD_ID tid) |
const std::set< SubdomainID > & | getSubdomainsForVar (unsigned int var_number) const |
const std::set< SubdomainID > & | getSubdomainsForVar (const std::string &var_name) const |
Get the block where a variable of this system is defined. More... | |
void | removeVector (const std::string &name) |
Remove a vector from the system with the given name. More... | |
NumericVector< Number > & | addVector (const std::string &vector_name, const bool project, const libMesh::ParallelType type) |
Adds a solution length vector to the system. More... | |
NumericVector< Number > & | addVector (TagID tag, const bool project, const libMesh::ParallelType type) |
Adds a solution length vector to the system with the specified TagID. More... | |
void | closeTaggedVector (const TagID tag) |
Close vector with the given tag. More... | |
void | closeTaggedVectors (const std::set< TagID > &tags) |
Close all vectors for given tags. More... | |
void | zeroTaggedVector (const TagID tag) |
Zero vector with the given tag. More... | |
void | zeroTaggedVectors (const std::set< TagID > &tags) |
Zero all vectors for given tags. More... | |
void | removeVector (TagID tag_id) |
Remove a solution length vector from the system with the specified TagID. More... | |
void | setVariableGlobalDoFs (const std::string &var_name) |
set all the global dof indices for a variable More... | |
const std::vector< dof_id_type > & | getVariableGlobalDoFs () |
Get the global dof indices of a variable, this needs to be called after the indices have been set by setVariableGlobalDoFs More... | |
libMesh::SparseMatrix< Number > & | addMatrix (TagID tag) |
Adds a matrix with a given tag. More... | |
void | removeMatrix (TagID tag) |
Removes a matrix with a given tag. More... | |
virtual const std::string & | name () const |
const std::vector< VariableName > & | getVariableNames () const |
void | getStandardFieldVariableNames (std::vector< VariableName > &std_field_variables) const |
unsigned int | getMaxVariableNumber () const |
Returns the maximum number of all variables on the system. More... | |
virtual void | computeVariables (const NumericVector< Number > &) |
void | copyVars (libMesh::ExodusII_IO &io) |
virtual void | copySolutionsBackwards () |
Copy current solution into old and older. More... | |
void | addTimeIntegrator (const std::string &type, const std::string &name, InputParameters ¶meters) |
bool | hasVarCopy () const |
Whether or not there are variables to be restarted from an Exodus mesh file. More... | |
void | addScalingVector () |
Add the scaling factor vector to the system. More... | |
bool | solutionStatesInitialized () const |
Whether or not the solution states have been initialized via initSolutionState() More... | |
virtual void | initialSetup () |
Setup Functions. More... | |
virtual void | timestepSetup () |
virtual void | customSetup (const ExecFlagType &exec_type) |
virtual void | subdomainSetup () |
virtual void | residualSetup () |
virtual void | jacobianSetup () |
void | clearAllDofIndices () |
Clear all dof indices from moose variables. More... | |
void | setActiveVariableCoupleableVectorTags (const std::set< TagID > &vtags, THREAD_ID tid) |
Set the active vector tags for the variables. More... | |
void | setActiveScalarVariableCoupleableVectorTags (const std::set< TagID > &vtags, THREAD_ID tid) |
Set the active vector tags for the scalar variables. More... | |
Moose::VarKindType | varKind () const |
const std::vector< std::unique_ptr< NumericVector< Number > > > & | gradientContainer () const |
Reference to the container vector which hold gradients at dofs (if it can be interpreted). More... | |
virtual void | compute (ExecFlagType type)=0 |
Compute time derivatives, auxiliary variables, etc. More... | |
void | copyTimeIntegrators (const SystemBase &other_sys) |
Copy time integrators from another system. More... | |
const TimeIntegrator & | getTimeIntegrator (const unsigned int var_num) const |
Retrieve the time integrator that integrates the given variable's equation. More... | |
const TimeIntegrator * | queryTimeIntegrator (const unsigned int var_num) const |
Retrieve the time integrator that integrates the given variable's equation. More... | |
const std::vector< std::shared_ptr< TimeIntegrator > > & | getTimeIntegrators () |
std::string | prefix () const |
void | sizeVariableMatrixData () |
size the matrix data for each variable for the number of matrix tags we have More... | |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
virtual NumericVector< Number > & | getVector (const std::string &name) |
Get a raw NumericVector by name. More... | |
virtual const NumericVector< Number > & | getVector (const std::string &name) const |
virtual NumericVector< Number > & | getVector (TagID tag) |
Get a raw NumericVector by tag. More... | |
virtual const NumericVector< Number > & | getVector (TagID tag) const |
virtual bool | hasVariable (const std::string &var_name) const |
Query a system for a variable. More... | |
virtual bool | hasScalarVariable (const std::string &var_name) const |
Public Attributes | |
const ConsoleStream | _console |
An instance of helper class to write streams to the Console objects. More... | |
Protected Member Functions | |
virtual NumericVector< Number > & | solutionInternal () const =0 |
Internal getter for solution owned by libMesh. More... | |
Protected Attributes | |
SubProblem & | _subproblem |
The subproblem for whom this class holds variable data, etc; this can either be the governing finite element/volume problem or a subjugate displaced problem. More... | |
FEProblemBase & | _fe_problem |
the governing finite element/volume problem More... | |
MooseApp & | _app |
Factory & | _factory |
MooseMesh & | _mesh |
std::string | _name |
The name of this system. More... | |
std::vector< VariableWarehouse > | _vars |
Variable warehouses (one for each thread) More... | |
std::map< unsigned int, std::set< SubdomainID > > | _var_map |
Map of variables (variable id -> array of subdomains where it lives) More... | |
unsigned int | _max_var_number |
Maximum variable number. More... | |
std::vector< std::string > | _vars_to_be_zeroed_on_residual |
std::vector< std::string > | _vars_to_be_zeroed_on_jacobian |
NumericVector< Number > * | _u_dot |
solution vector for u^dot More... | |
NumericVector< Number > * | _u_dotdot |
solution vector for u^dotdot More... | |
NumericVector< Number > * | _u_dot_old |
old solution vector for u^dot More... | |
NumericVector< Number > * | _u_dotdot_old |
old solution vector for u^dotdot More... | |
std::vector< Real > | _du_dot_du |
Derivative of time derivative of u with respect to uj. More... | |
Real | _du_dotdot_du |
std::vector< NumericVector< Number > * > | _tagged_vectors |
Tagged vectors (pointer) More... | |
std::vector< libMesh::SparseMatrix< Number > * > | _tagged_matrices |
Tagged matrices (pointer) More... | |
std::unordered_map< TagID, libMesh::SparseMatrix< Number > * > | _active_tagged_matrices |
Active tagged matrices. A matrix is active if its tag-matrix pair is present in the map. We use a map instead of a vector so that users can easily add and remove to this container with calls to (de)activateMatrixTag. More... | |
std::vector< bool > | _matrix_tag_active_flags |
Active flags for tagged matrices. More... | |
NumericVector< Real > * | _saved_old |
NumericVector< Real > * | _saved_older |
NumericVector< Real > * | _saved_dot_old |
NumericVector< Real > * | _saved_dotdot_old |
Moose::VarKindType | _var_kind |
default kind of variables in this system More... | |
std::vector< VarCopyInfo > | _var_to_copy |
size_t | _max_var_n_dofs_per_elem |
Maximum number of dofs for any one variable on any one element. More... | |
size_t | _max_var_n_dofs_per_node |
Maximum number of dofs for any one variable on any one node. More... | |
std::vector< std::shared_ptr< TimeIntegrator > > | _time_integrators |
Time integrator. More... | |
std::vector< std::vector< MooseVariableFieldBase * > > | _numbered_vars |
Map variable number to its pointer. More... | |
bool | _automatic_scaling |
Whether to automatically scale the variables. More... | |
bool | _verbose |
True if printing out additional information. More... | |
bool | _solution_states_initialized |
Whether or not the solution states have been initialized. More... | |
std::vector< dof_id_type > | _var_all_dof_indices |
Container for the dof indices of a given variable. More... | |
std::unique_ptr< NumericVector< Number > > | _serialized_solution |
Serialized version of the solution vector, or nullptr if a serialized solution is not needed. More... | |
std::vector< std::unique_ptr< NumericVector< Number > > > | _raw_grad_container |
A cache for storing gradients at dof locations. More... | |
const Parallel::Communicator & | _communicator |
Private Member Functions | |
TagName | oldSolutionStateVectorName (const unsigned int, Moose::SolutionIterationType iteration_type) const |
Gets the vector name used for an old (not current) solution state. More... | |
Private Attributes | |
std::array< std::vector< NumericVector< Number > * >, 3 > | _solution_states |
2D array of solution state vector pointers; first index corresponds to SolutionIterationType, second index corresponds to state index (0=current, 1=old, 2=older) More... | |
std::vector< NumericVector< Number > * > | _saved_solution_states |
The saved solution states (0 = current, 1 = old, 2 = older, etc) More... | |
Base class for a system (of equations)
Definition at line 84 of file SystemBase.h.
SystemBase::SystemBase | ( | SubProblem & | subproblem, |
FEProblemBase & | fe_problem, | ||
const std::string & | name, | ||
Moose::VarKindType | var_kind | ||
) |
Definition at line 57 of file SystemBase.C.
|
inlinevirtual |
Definition at line 92 of file SystemBase.h.
|
virtual |
Make all existing matrices active.
Definition at line 1123 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), NonlinearSystemBase::computeResidualAndJacobianInternal(), and NonlinearSystemBase::computeResidualTags().
|
virtual |
Add u_dot, u_dotdot, u_dot_old and u_dotdot_old vectors if requested by the time integrator.
Reimplemented in DisplacedSystem.
Definition at line 1625 of file SystemBase.C.
Referenced by DisplacedSystem::addDotVectors().
SparseMatrix< Number > & SystemBase::addMatrix | ( | TagID | tag | ) |
Adds a matrix with a given tag.
tag_name | The name of the tag |
Definition at line 570 of file SystemBase.C.
void SystemBase::addScalingVector | ( | ) |
Add the scaling factor vector to the system.
Definition at line 1537 of file SystemBase.C.
Referenced by MooseVariableBase::initialSetup().
void SystemBase::addTimeIntegrator | ( | const std::string & | type, |
const std::string & | name, | ||
InputParameters & | parameters | ||
) |
Definition at line 1650 of file SystemBase.C.
|
virtual |
Canonical method for adding a variable.
var_type | the type of the variable, e.g. MooseVariableScalar |
var_name | the variable name, e.g. 'u' |
params | the InputParameters from which to construct the variable |
Reimplemented in AuxiliarySystem.
Definition at line 718 of file SystemBase.C.
Referenced by AuxiliarySystem::addVariable().
|
virtual |
Add info about variable that will be copied.
dest_name | Name of the nodal variable being used for copying into (name is from the exodusII file) |
source_name | Name of the nodal variable being used for copying from (name is from the exodusII file) |
timestep | Timestep in the file being used |
Definition at line 1167 of file SystemBase.C.
Referenced by CopyNodalVarsAction::act(), and PhysicsBase::copyVariablesFromMesh().
|
virtual |
Adds this variable to the list of variables to be zeroed during each Jacobian evaluation.
var_name | The name of the variable to be zeroed. |
Reimplemented in DisplacedSystem.
Definition at line 180 of file SystemBase.C.
Referenced by ADDGKernel::ADDGKernel(), DisplacedSystem::addVariableToZeroOnJacobian(), ADIntegratedBCTempl< T >::ADIntegratedBCTempl(), ADKernelTempl< T >::ADKernelTempl(), ArrayDGKernel::ArrayDGKernel(), ArrayIntegratedBC::ArrayIntegratedBC(), ArrayKernel::ArrayKernel(), DGKernel::DGKernel(), IntegratedBC::IntegratedBC(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), Kernel::Kernel(), NodalBC::NodalBC(), and NodalKernel::NodalKernel().
|
virtual |
Adds this variable to the list of variables to be zeroed during each residual evaluation.
var_name | The name of the variable to be zeroed. |
Reimplemented in DisplacedSystem.
Definition at line 174 of file SystemBase.C.
Referenced by ADDGKernel::ADDGKernel(), DisplacedSystem::addVariableToZeroOnResidual(), ADIntegratedBCTempl< T >::ADIntegratedBCTempl(), ADKernelTempl< T >::ADKernelTempl(), ArrayDGKernel::ArrayDGKernel(), ArrayIntegratedBC::ArrayIntegratedBC(), ArrayKernel::ArrayKernel(), DGKernel::DGKernel(), IntegratedBC::IntegratedBC(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), Kernel::Kernel(), NodalBC::NodalBC(), and NodalKernel::NodalKernel().
NumericVector<Number>& SystemBase::addVector | ( | const std::string & | vector_name, |
const bool | project, | ||
const libMesh::ParallelType | type | ||
) |
Adds a solution length vector to the system.
vector_name | The name of the vector. |
project | Whether or not to project this vector when doing mesh refinement. If the vector is just going to be recomputed then there is no need to project it. |
type | What type of parallel vector. This is usually either PARALLEL or GHOSTED. GHOSTED is needed if you are going to be accessing off-processor entries. The ghosting pattern is the same as the solution vector. |
Referenced by addDotVectors(), addScalingVector(), NonlinearTimeIntegratorInterface::addVector(), SecantSolve::allocateStorage(), SteffensenSolve::allocateStorage(), PicardSolve::allocateStorage(), NonlinearSystemBase::getResidualNonTimeVector(), NonlinearSystemBase::getResidualTimeVector(), CentralDifference::initialSetup(), needSolutionState(), NonlinearSystemBase::residualGhosted(), and saveOldSolutions().
NumericVector<Number>& SystemBase::addVector | ( | TagID | tag, |
const bool | project, | ||
const libMesh::ParallelType | type | ||
) |
Adds a solution length vector to the system with the specified TagID.
tag_name | The name of the tag |
project | Whether or not to project this vector when doing mesh refinement. If the vector is just going to be recomputed then there is no need to project it. |
type | What type of parallel vector. This is usually either PARALLEL or GHOSTED. GHOSTED is needed if you are going to be accessing off-processor entries. The ghosting pattern is the same as the solution vector. |
Applies scaling factors to the system's variables.
inverse_scaling_factors | A vector containing the inverse of each variable's scaling factor, e.g. 1 / scaling_factor |
Definition at line 1487 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeScaling().
|
inline |
assign the maximum element dofs
Definition at line 597 of file SystemBase.h.
|
inline |
assign the maximum node dofs
Definition at line 602 of file SystemBase.h.
|
virtual |
Associate a matrix to a tag.
Reimplemented in DisplacedSystem.
Definition at line 1068 of file SystemBase.C.
Referenced by addMatrix(), DisplacedSystem::associateMatrixToTag(), NonlinearSystemBase::computeJacobian(), FEProblemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTag(), FEProblemBase::computeLinearSystemSys(), and FEProblemBase::computeResidualAndJacobian().
|
virtual |
Associate a vector for a given tag.
Reimplemented in DisplacedSystem.
Definition at line 973 of file SystemBase.C.
Referenced by DisplacedSystem::associateVectorToTag(), FEProblemBase::computeLinearSystemSys(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualInternal(), NonlinearSystemBase::computeResidualTag(), FEProblemBase::computeResidualTag(), FEProblemBase::computeResidualType(), LinearSystem::LinearSystem(), and SolverSystem::setSolution().
|
virtual |
Will modify the send_list to add all of the extra ghosted dofs for this system.
Reimplemented in DisplacedSystem.
Definition at line 452 of file SystemBase.C.
Referenced by DisplacedSystem::augmentSendList(), and extraSendList().
|
pure virtual |
Will modify the sparsity pattern to add logical geometric connections.
Implemented in NonlinearSystemBase, DisplacedSystem, LinearSystem, and AuxiliarySystem.
Referenced by extraSparsity().
|
inline |
Getter for whether we are performing automatic scaling.
Definition at line 122 of file SystemBase.h.
Referenced by SubProblem::automaticScaling().
|
inline |
Setter for whether we are performing automatic scaling.
automatic_scaling | A boolean representing whether we are performing automatic scaling |
Definition at line 128 of file SystemBase.h.
void SystemBase::clearAllDofIndices | ( | ) |
Clear all dof indices from moose variables.
Definition at line 1605 of file SystemBase.C.
Referenced by SubProblem::clearAllDofIndices().
Close all matrices associated the tags.
Definition at line 1052 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), and NonlinearSystemBase::computeResidualAndJacobianTags().
Close vector with the given tag.
Definition at line 649 of file SystemBase.C.
Referenced by closeTaggedVectors().
Close all vectors for given tags.
Definition at line 667 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeResidualAndJacobianTags(), NonlinearSystemBase::computeResidualTags(), NonlinearSystem::stopSolve(), and LinearSystem::stopSolve().
|
pure virtual |
Compute time derivatives, auxiliary variables, etc.
type | Our current execution stage |
Implemented in DisplacedSystem, LinearSystem, AuxiliarySystem, and SolverSystem.
Definition at line 869 of file SystemBase.h.
bool SystemBase::computingScalingJacobian | ( | ) | const |
Whether we are computing an initial Jacobian for automatic variable scaling.
Definition at line 1544 of file SystemBase.C.
Referenced by Assembly::addJacobianBlock(), Assembly::addJacobianBlockNonlocal(), VectorKernel::computeJacobian(), Kernel::computeJacobian(), EigenKernel::computeJacobian(), and FEProblemBase::computeJacobianTags().
|
virtual |
Shifts the solutions backwards in time.
Definition at line 1278 of file SystemBase.C.
Referenced by copySolutionsBackwards(), and EigenExecutionerBase::inversePowerIteration().
|
virtual |
Definition at line 1294 of file SystemBase.C.
Referenced by FixedPointSolve::solveStep().
|
virtual |
Shifts the solutions backwards in nonlinear iteration history.
Definition at line 1261 of file SystemBase.C.
Referenced by copySolutionsBackwards().
|
virtual |
Copy current solution into old and older.
Definition at line 1250 of file SystemBase.C.
void SystemBase::copyTimeIntegrators | ( | const SystemBase & | other_sys | ) |
Copy time integrators from another system.
Definition at line 1659 of file SystemBase.C.
void SystemBase::copyVars | ( | libMesh::ExodusII_IO & | io | ) |
Definition at line 1175 of file SystemBase.C.
|
pure virtual |
The solution vector that is currently being operated on.
This is typically a ghosted vector that comes in from the Nonlinear solver.
Implemented in DisplacedSystem, SolverSystem, and AuxiliarySystem.
Referenced by copyPreviousNonlinearSolutions(), DisplacedSystem::currentSolution(), initialSetup(), MooseVariableScalar::reinit(), and restoreSolutions().
|
virtual |
Reimplemented in NonlinearSystemBase, and AuxiliarySystem.
Definition at line 1577 of file SystemBase.C.
Referenced by AuxiliarySystem::customSetup(), and NonlinearSystemBase::customSetup().
|
virtual |
Make matrices inactive.
Definition at line 1111 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeResidualTags(), and NonlinearSystemBase::setInitialSolution().
|
inlinevirtual |
Get the default matrix tags associted with this system.
Reimplemented in NonlinearEigenSystem, and DisplacedSystem.
Definition at line 319 of file SystemBase.h.
Referenced by DisplacedSystem::defaultMatrixTags(), NonlinearEigenSystem::defaultMatrixTags(), and disassociateDefaultMatrixTags().
|
inlinevirtual |
Get the default vector tags associated with this system.
Reimplemented in NonlinearEigenSystem, and DisplacedSystem.
Definition at line 312 of file SystemBase.h.
Referenced by DisplacedSystem::defaultVectorTags(), NonlinearEigenSystem::defaultVectorTags(), and disassociateDefaultVectorTags().
|
virtual |
Disassociate the matrices associated with the default matrix tags of this system.
Reimplemented in DisplacedSystem.
Definition at line 1102 of file SystemBase.C.
Referenced by DisplacedSystem::disassociateDefaultMatrixTags().
|
virtual |
Disassociate the vectors associated with the default vector tags of this system.
Reimplemented in DisplacedSystem.
Definition at line 1007 of file SystemBase.C.
Referenced by DisplacedSystem::disassociateDefaultVectorTags().
|
virtual |
Disassociate a matrix from a tag.
Reimplemented in DisplacedSystem.
Definition at line 1080 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeJacobian(), FEProblemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTag(), FEProblemBase::computeLinearSystemSys(), FEProblemBase::computeResidualAndJacobian(), disassociateDefaultMatrixTags(), and DisplacedSystem::disassociateMatrixFromTag().
Disassociate any matrix that is associated with a given tag.
Reimplemented in DisplacedSystem.
Definition at line 1091 of file SystemBase.C.
|
virtual |
Disassociate a given vector from a given tag.
Reimplemented in DisplacedSystem.
Referenced by FEProblemBase::computeLinearSystemSys(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualInternal(), NonlinearSystemBase::computeResidualTag(), FEProblemBase::computeResidualTag(), FEProblemBase::computeResidualType(), disassociateDefaultVectorTags(), DisplacedSystem::disassociateVectorFromTag(), and CentralDifference::initialSetup().
Disassociate any vector that is associated with a given tag.
Reimplemented in DisplacedSystem.
Definition at line 996 of file SystemBase.C.
|
virtual |
Gets writeable reference to the dof map.
Definition at line 1155 of file SystemBase.C.
Referenced by NonlinearSystemBase::assembleScalingVector(), MooseApp::attachRelationshipManagers(), augmentSendList(), NonlinearSystemBase::augmentSparsity(), NonlinearSystemBase::computeScaling(), FieldSplitPreconditioner::dofMap(), NonlinearSystemBase::findImplicitGeometricCouplingEntries(), Adaptivity::init(), NonlinearEigenSystem::initializeCondensedMatrices(), ActivateElementsUserObjectBase::initSolutions(), PNGOutput::makeMeshFunc(), GhostingUserObject::meshChanged(), TableOutput::outputScalarVariables(), Exodus::outputScalarVariables(), and ElementSubdomainModifierBase::setOldAndOlderSolutions().
|
virtual |
Gets const reference to the dof map.
Definition at line 1161 of file SystemBase.C.
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 257 of file SystemBase.h.
Referenced by DisplacedSystem::duDotDotDu(), and MooseVariableScalar::reinit().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 1693 of file SystemBase.C.
Referenced by DisplacedSystem::duDotDu(), and MooseVariableScalar::reinit().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 256 of file SystemBase.h.
Referenced by DisplacedSystem::duDotDus().
|
inline |
Definition at line 103 of file SystemBase.h.
Referenced by DMMooseGetEmbedding_Private(), and DMSetUp_Moose_Pre().
|
inline |
Definition at line 104 of file SystemBase.h.
flushes all matrices associated to tags.
Flush assembles the matrix but doesn't shrink memory allocation
Definition at line 1060 of file SystemBase.C.
MooseVariableField< T > & SystemBase::getActualFieldVariable | ( | THREAD_ID | tid, |
const std::string & | var_name | ||
) |
Returns a field variable pointer - this includes finite volume variables.
Definition at line 118 of file SystemBase.C.
Referenced by BoundsBase::BoundsBase(), Assembly::copyFaceShapes(), Assembly::copyNeighborShapes(), and Assembly::copyShapes().
MooseVariableField< T > & SystemBase::getActualFieldVariable | ( | THREAD_ID | tid, |
unsigned int | var_number | ||
) |
Returns a field variable pointer - this includes finite volume variables.
Definition at line 139 of file SystemBase.C.
MooseVariableFE< T > & SystemBase::getFieldVariable | ( | THREAD_ID | tid, |
const std::string & | var_name | ||
) |
Gets a reference to a variable of with specified name.
This excludes and cannot return finite volume variables.
tid | Thread id |
var_name | variable name |
Definition at line 111 of file SystemBase.C.
Referenced by Marker::getMarkerValue().
MooseVariableFE< T > & SystemBase::getFieldVariable | ( | THREAD_ID | tid, |
unsigned int | var_number | ||
) |
Gets a reference to a variable with specified number.
This excludes and cannot return finite volume variables.
tid | Thread id |
var_number | libMesh variable number |
Definition at line 132 of file SystemBase.C.
template MooseVariableFV< Real > & SystemBase::getFVVariable< Real > | ( | THREAD_ID | tid, |
const std::string & | var_name | ||
) |
Return a finite volume variable.
Definition at line 125 of file SystemBase.C.
|
virtual |
Get a raw SparseMatrix.
Reimplemented in DisplacedSystem.
Definition at line 1016 of file SystemBase.C.
Referenced by activateAllMatrixTags(), Assembly::addCachedJacobian(), NonlinearSystemBase::addImplicitGeometricCouplingEntries(), Assembly::addJacobianCoupledVarPair(), Assembly::addJacobianLowerD(), Assembly::addJacobianNeighbor(), Assembly::addJacobianNeighborLowerD(), Assembly::addJacobianNonlocal(), addMatrix(), closeTaggedMatrices(), NonlinearSystemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTags(), LinearSystem::computeLinearSystemInternal(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::constraintJacobians(), disassociateMatrixFromTag(), NonlinearSystemBase::enforceNodalConstraintsJacobian(), flushTaggedMatrices(), DisplacedSystem::getMatrix(), LinearSystemContributionObject::linkTaggedVectorsAndMatrices(), MooseVariableScalar::reinit(), Assembly::setCachedJacobian(), and Assembly::zeroCachedJacobian().
|
virtual |
Get a raw SparseMatrix.
Reimplemented in DisplacedSystem.
Definition at line 1034 of file SystemBase.C.
|
inline |
Returns the maximum number of all variables on the system.
Definition at line 867 of file SystemBase.h.
|
inline |
Gets the maximum number of dofs used by any one variable on any one element.
Definition at line 585 of file SystemBase.h.
Referenced by Moose::globalDofIndexToDerivative().
|
inline |
Gets the maximum number of dofs used by any one variable on any one node.
Definition at line 592 of file SystemBase.h.
|
virtual |
Get minimal quadrature order needed for integrating variables in this system.
Reimplemented in AuxiliarySystem.
Definition at line 241 of file SystemBase.C.
|
virtual |
Gets a reference to a scalar variable with specified number.
tid | Thread id |
var_name | A string which is the name of the variable to get. |
Definition at line 145 of file SystemBase.C.
Referenced by Assembly::addJacobianOffDiagScalar(), ODEKernel::computeOffDiagJacobianScalar(), VectorKernel::computeOffDiagJacobianScalar(), ArrayKernel::computeOffDiagJacobianScalar(), IntegratedBC::computeOffDiagJacobianScalar(), VectorIntegratedBC::computeOffDiagJacobianScalar(), Kernel::computeOffDiagJacobianScalar(), ArrayIntegratedBC::computeOffDiagJacobianScalar(), ScalarLagrangeMultiplier::computeOffDiagJacobianScalar(), MortarScalarBase::computeOffDiagJacobianScalar(), KernelScalarBase::computeOffDiagJacobianScalarLocal(), KernelScalarBase::computeScalarOffDiagJacobianScalar(), MortarScalarBase::computeScalarOffDiagJacobianScalar(), DMMooseSetVariables(), Assembly::init(), ReferenceResidualConvergence::initialSetup(), and NonlinearSystemBase::setupScalingData().
|
virtual |
Gets a reference to a variable with specified number.
tid | Thread id |
var_number | libMesh variable number |
Definition at line 154 of file SystemBase.C.
|
inline |
Definition at line 756 of file SystemBase.h.
Referenced by Assembly::addResidualScalar(), ODEKernel::computeJacobian(), ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), AuxiliarySystem::computeScalarVars(), Assembly::init(), initSolutionState(), NonlinearThread::onElement(), Assembly::prepareOffDiagScalar(), and Assembly::prepareScalar().
void SystemBase::getStandardFieldVariableNames | ( | std::vector< VariableName > & | std_field_variables | ) | const |
|
inline |
Definition at line 761 of file SystemBase.h.
Referenced by NonlinearSystemBase::checkKernelCoverage(), and getSubdomainsForVar().
const std::set< SubdomainID > & SystemBase::getSubdomainsForVar | ( | const std::string & | var_name | ) | const |
Get the block where a variable of this system is defined.
var_name | The name of the variable |
Definition at line 1699 of file SystemBase.C.
const TimeIntegrator & SystemBase::getTimeIntegrator | ( | const unsigned int | var_num | ) | const |
Retrieve the time integrator that integrates the given variable's equation.
Definition at line 1675 of file SystemBase.C.
Referenced by AB2PredictorCorrector::estimateTimeError().
const std::vector< std::shared_ptr< TimeIntegrator > > & SystemBase::getTimeIntegrators | ( | ) |
Definition at line 1687 of file SystemBase.C.
MooseVariableFieldBase & SystemBase::getVariable | ( | THREAD_ID | tid, |
const std::string & | var_name | ||
) | const |
Gets a reference to a variable of with specified name.
tid | Thread id |
var_name | variable name |
Definition at line 90 of file SystemBase.C.
Referenced by AdaptivityAction::act(), Assembly::addJacobianBlockNonlocal(), FEProblemBase::addJacobianBlockTags(), NonlocalKernel::computeNonlocalOffDiagJacobian(), NonlocalIntegratedBC::computeNonlocalOffDiagJacobian(), Assembly::copyFaceShapes(), Assembly::copyNeighborShapes(), Assembly::copyShapes(), copyVars(), DMMooseSetVariables(), FieldSplitPreconditionerTempl< MoosePreconditioner >::FieldSplitPreconditionerTempl(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), NodeElemConstraint::getConnectedDofIndices(), NodeFaceConstraint::getConnectedDofIndices(), getSubdomainsForVar(), ResidualObject::getVariable(), SubProblem::getVariableHelper(), Assembly::init(), NodalNormalsPreprocessor::initialize(), ExplicitTimeIntegrator::initialSetup(), ReferenceResidualConvergence::initialSetup(), LinearSystem::initialSetup(), Assembly::initNonlocalCoupling(), PNGOutput::makeMeshFunc(), MooseStaticCondensationPreconditioner::MooseStaticCondensationPreconditioner(), UpdateErrorVectorsThread::onElement(), Assembly::prepareBlock(), Assembly::prepareBlockNonlocal(), AddPeriodicBCAction::setPeriodicVars(), NonlinearSystemBase::setupScalingData(), and VariableCondensationPreconditioner::VariableCondensationPreconditioner().
MooseVariableFieldBase & SystemBase::getVariable | ( | THREAD_ID | tid, |
unsigned int | var_number | ||
) | const |
Gets a reference to a variable with specified number.
tid | Thread id |
var_number | libMesh variable number |
Definition at line 100 of file SystemBase.C.
|
virtual |
Get the block where a variable of this system is defined.
var_number | The number of the variable |
Definition at line 164 of file SystemBase.C.
Referenced by PhysicsBasedPreconditioner::addSystem().
|
inline |
Get the global dof indices of a variable, this needs to be called after the indices have been set by setVariableGlobalDoFs
Definition at line 842 of file SystemBase.h.
|
inline |
Definition at line 860 of file SystemBase.h.
Referenced by MooseEigenSystem::buildSystemDoFIndices(), NonlinearSystemBase::checkKernelCoverage(), MFEMProblem::getAuxVariableNames(), hasVariable(), isArrayVariable(), AddPeriodicBCAction::setPeriodicVars(), and SingleMatrixPreconditioner::SingleMatrixPreconditioner().
|
inline |
Definition at line 751 of file SystemBase.h.
Referenced by Assembly::addJacobianOffDiagScalar(), Assembly::addResidual(), Assembly::addResidualLower(), Assembly::addResidualNeighbor(), Assembly::cacheResidual(), Assembly::cacheResidualLower(), Assembly::cacheResidualNeighbor(), ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), Assembly::init(), Assembly::initNonlocalCoupling(), initSolutionState(), ComputeLinearFVGreenGaussGradientFaceThread::operator()(), Assembly::prepareLowerD(), Assembly::prepareNeighbor(), Assembly::prepareOffDiagScalar(), Assembly::prepareResidual(), Assembly::setResidual(), and Assembly::setResidualNeighbor().
|
virtual |
Get a raw NumericVector by name.
Get a raw NumericVector with the given name.
Reimplemented in DisplacedSystem.
Definition at line 925 of file SystemBase.C.
Referenced by Assembly::addCachedResiduals(), Assembly::addResidual(), Assembly::addResidualLower(), Assembly::addResidualNeighbor(), Assembly::addResidualScalar(), NonlinearSystemBase::assembleScalingVector(), closeTaggedVector(), FEProblemBase::computeBounds(), FEProblemBase::computeNearNullSpace(), FEProblemBase::computeNullSpace(), NonlinearSystemBase::computeResidualAndJacobianTags(), NonlinearSystemBase::computeResidualTags(), CentralDifference::computeTimeDerivatives(), FEProblemBase::computeTransposeNullSpace(), DisplacedSystem::getVector(), Assembly::hasScalingVector(), LinearSystemContributionObject::linkTaggedVectorsAndMatrices(), needSolutionState(), ReferenceResidualConvergence::ReferenceResidualConvergence(), MooseVariableScalar::reinit(), SecantSolve::saveVariableValues(), SteffensenSolve::saveVariableValues(), PicardSolve::saveVariableValues(), NonlinearSystemBase::setPreviousNewtonSolution(), TaggingInterface::setResidual(), solutionPreviousNewton(), solutionState(), MultiAppDofCopyTransfer::transfer(), SecantSolve::transformVariables(), SteffensenSolve::transformVariables(), PicardSolve::transformVariables(), and zeroTaggedVector().
|
virtual |
Reimplemented in DisplacedSystem.
Definition at line 931 of file SystemBase.C.
|
virtual |
Get a raw NumericVector by tag.
Reimplemented in DisplacedSystem.
Definition at line 937 of file SystemBase.C.
|
virtual |
Reimplemented in DisplacedSystem.
Definition at line 955 of file SystemBase.C.
|
inline |
Reference to the container vector which hold gradients at dofs (if it can be interpreted).
Mainly used for finite volume systems.
Definition at line 930 of file SystemBase.h.
|
inlinevirtual |
Check if the tagged matrix exists in the system.
Reimplemented in DisplacedSystem.
Definition at line 360 of file SystemBase.h.
Referenced by activateAllMatrixTags(), Assembly::addCachedJacobian(), NonlinearSystemBase::addImplicitGeometricCouplingEntries(), Assembly::addJacobianCoupledVarPair(), Assembly::addJacobianLowerD(), Assembly::addJacobianNeighbor(), Assembly::addJacobianNeighborLowerD(), Assembly::addJacobianNonlocal(), addMatrix(), Assembly::cacheJacobian(), Assembly::cacheJacobianBlockNonzero(), Assembly::cacheJacobianCoupledVarPair(), Assembly::cacheJacobianMortar(), Assembly::cacheJacobianNeighbor(), Assembly::cacheJacobianNonlocal(), closeTaggedMatrices(), NonlinearSystemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::constraintJacobians(), disassociateMatrixFromTag(), NonlinearSystemBase::enforceNodalConstraintsJacobian(), flushTaggedMatrices(), getMatrix(), DisplacedSystem::hasMatrix(), MooseVariableScalar::reinit(), removeMatrix(), SubProblem::selectMatrixTagsFromSystem(), Assembly::setCachedJacobian(), and Assembly::zeroCachedJacobian().
|
virtual |
Definition at line 868 of file SystemBase.C.
Referenced by MortarScalarBase::computeJacobian(), NonlinearSystemBase::computeJacobianInternal(), ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), copyVars(), ExplicitTimeIntegrator::initialSetup(), NonlinearEigenSystem::postAddResidualObject(), AddPeriodicBCAction::setPeriodicVars(), and NonlinearSystemBase::setupScalingData().
|
inlinevirtual |
Whether or not the system has the solution state (0 = current, 1 = old, 2 = older, etc).
Reimplemented in DisplacedSystem.
Definition at line 1090 of file SystemBase.h.
Referenced by PointwiseRenormalizeVector::execute(), PointwiseRenormalizeVector::finalize(), DisplacedSystem::hasSolutionState(), needSolutionState(), restoreSolutions(), ElementSubdomainModifierBase::setOldAndOlderSolutions(), solutionState(), and solutionStateParallelType().
|
inline |
Whether or not there are variables to be restarted from an Exodus mesh file.
Definition at line 883 of file SystemBase.h.
|
virtual |
Query a system for a variable.
var_name | name of the variable |
Definition at line 843 of file SystemBase.C.
Referenced by ADDGKernel::ADDGKernel(), ArrayDGKernel::ArrayDGKernel(), copyVars(), DGKernel::DGKernel(), DMMooseSetVariables(), FEProblemBase::duplicateVariableCheck(), SubProblem::getVariableHelper(), SubProblem::hasAuxiliaryVariable(), ExplicitTimeIntegrator::initialSetup(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), PNGOutput::makeMeshFunc(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), NonlinearSystemBase::setupScalingData(), and Coupleable::writableCoupledValue().
bool SystemBase::hasVector | ( | const std::string & | tag_name | ) | const |
Check if the named vector exists in the system.
Definition at line 916 of file SystemBase.C.
Referenced by FEProblemBase::addCachedResidualDirectly(), Assembly::addCachedResiduals(), Assembly::addResidual(), Assembly::addResidualLower(), Assembly::addResidualNeighbor(), Assembly::addResidualScalar(), NonlinearSystemBase::assembleScalingVector(), Assembly::cacheResidual(), Assembly::cacheResidualLower(), Assembly::cacheResidualNeighbor(), closeTaggedVector(), FEProblemBase::computeBounds(), NonlinearSystemBase::computeResidualTags(), CentralDifference::computeTimeDerivatives(), getVector(), DisplacedSystem::hasVector(), MooseVariableScalar::reinit(), removeVector(), SubProblem::selectVectorTagsFromSystem(), NonlinearSystemBase::setPreviousNewtonSolution(), TaggingInterface::setResidual(), solutionPreviousNewton(), and zeroTaggedVector().
|
inlinevirtual |
Check if the tagged vector exists in the system.
Reimplemented in DisplacedSystem.
Definition at line 281 of file SystemBase.h.
|
inlinevirtual |
Called only once, just before the solve begins so objects can do some precalculations.
Definition at line 173 of file SystemBase.h.
|
virtual |
Setup Functions.
Reimplemented in NonlinearSystemBase, LinearSystem, and AuxiliarySystem.
Definition at line 1550 of file SystemBase.C.
Referenced by AuxiliarySystem::initialSetup(), LinearSystem::initialSetup(), and NonlinearSystemBase::initialSetup().
|
virtual |
Initializes the solution state.
Reimplemented in DisplacedSystem.
Definition at line 1356 of file SystemBase.C.
Referenced by DisplacedSystem::initSolutionState().
|
virtual |
If a variable is an array variable.
Definition at line 856 of file SystemBase.C.
|
virtual |
Definition at line 877 of file SystemBase.C.
Referenced by Assembly::init(), ReferenceResidualConvergence::initialSetup(), and Assembly::initNonlocalCoupling().
|
virtual |
Reimplemented in NonlinearSystemBase, LinearSystem, and AuxiliarySystem.
Definition at line 1598 of file SystemBase.C.
Referenced by AuxiliarySystem::jacobianSetup(), and NonlinearSystemBase::jacobianSetup().
|
virtual |
If or not a matrix tag is active.
Definition at line 1141 of file SystemBase.C.
|
inline |
Definition at line 99 of file SystemBase.h.
Referenced by CreateDisplacedProblemAction::addProxyRelationshipManagers(), DMMooseGetEmbedding_Private(), DMSetUp_Moose_Pre(), SolutionIC::initialSetup(), ComputeNodalUserObjectsThread::onNode(), ComputeNodalKernelsThread::onNode(), and ComputeNodalKernelJacobiansThread::onNode().
|
inline |
Definition at line 100 of file SystemBase.h.
|
virtual |
Definition at line 1332 of file SystemBase.C.
Referenced by NonlinearSystemBase::addBoundaryCondition(), NonlinearSystemBase::addConstraint(), NonlinearSystemBase::addDamper(), NonlinearSystemBase::addDGKernel(), NonlinearSystemBase::addDiracKernel(), NonlinearSystemBase::addHDGKernel(), NonlinearSystemBase::addInterfaceKernel(), MooseEigenSystem::addKernel(), AuxiliarySystem::addKernel(), NonlinearSystemBase::addKernel(), addMatrix(), NonlinearSystemBase::addNodalKernel(), AuxiliarySystem::addScalarKernel(), NonlinearSystemBase::addScalarKernel(), NonlinearSystemBase::addSplit(), addTimeIntegrator(), AuxiliarySystem::addVariable(), addVariable(), DiffusionLHDGAssemblyHelper::checkCoupling(), closeTaggedVector(), LinearSystem::computeGradients(), LinearSystem::computeLinearSystemTags(), DisplacedProblem::DisplacedProblem(), getMatrix(), NonlinearSystemBase::getSplit(), DisplacedSystem::getVector(), getVector(), hasVector(), LinearSystem::initialSetup(), Moose::PetscSupport::petscSetDefaults(), NonlinearEigenSystem::postAddResidualObject(), MooseStaticCondensationPreconditioner::prefix(), removeMatrix(), removeVector(), solutionState(), LinearSystem::solve(), LinearTimeIntegratorInterface::timeDerivativeMatrixContribution(), LinearTimeIntegratorInterface::timeDerivativeRHSContribution(), and zeroTaggedVector().
|
virtual |
Registers that the solution state state
is needed.
Reimplemented in DisplacedSystem.
Definition at line 1442 of file SystemBase.C.
Referenced by SecantSolve::allocateStorage(), PicardSolve::allocateStorage(), EigenExecutionerBase::EigenExecutionerBase(), initSolutionState(), DisplacedSystem::needSolutionState(), and solutionState().
unsigned int SystemBase::nFieldVariables | ( | ) | const |
Get the number of field variables in this system.
Definition at line 892 of file SystemBase.C.
Referenced by nVariables().
unsigned int SystemBase::nFVVariables | ( | ) | const |
Get the number of finite volume variables in this system.
Definition at line 902 of file SystemBase.C.
|
inlinevirtual |
Reimplemented in NonlinearSystemBase, and DisplacedSystem.
Definition at line 302 of file SystemBase.h.
Referenced by defaultVectorTags(), and DisplacedSystem::nonTimeVectorTag().
unsigned int SystemBase::number | ( | ) | const |
Gets the number of this system.
Definition at line 1149 of file SystemBase.C.
Referenced by SetupResidualDebugAction::act(), FEProblemBase::addCachedResidualDirectly(), FEProblemBase::addJacobian(), FEProblemBase::addJacobianBlockTags(), FEProblemBase::addJacobianLowerD(), FEProblemBase::addJacobianNeighbor(), FEProblemBase::addJacobianNeighborLowerD(), FEProblemBase::addJacobianOffDiagScalar(), FEProblemBase::addJacobianScalar(), FEProblemBase::addResidual(), FEProblemBase::addResidualLower(), FEProblemBase::addResidualNeighbor(), FEProblemBase::addResidualScalar(), addScalingVector(), ADKernelTempl< T >::ADKernelTempl(), ElementSubdomainModifierBase::applyIC(), ArrayKernel::ArrayKernel(), NonlinearSystemBase::assembleScalingVector(), NonlinearEigenSystem::attachPreconditioner(), DiffusionLHDGAssemblyHelper::checkCoupling(), SolverSystem::compute(), MooseVariableScalar::computeAD(), FEProblemBase::computeBounds(), Assembly::computeFaceMap(), InternalSideIndicatorBase::computeIndicator(), VectorNodalBC::computeJacobian(), ArrayNodalBC::computeJacobian(), NodalBC::computeJacobian(), FVBoundaryScalarLagrangeMultiplierConstraint::computeJacobian(), FVFluxBC::computeJacobian(), FVFluxKernel::computeJacobian(), FVInterfaceKernel::computeJacobian(), FEProblemBase::computeJacobianBlock(), NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), FEProblemBase::computeNearNullSpace(), NonlinearSystemBase::computeNodalBCsResidualAndJacobian(), FEProblemBase::computeNullSpace(), VectorNodalBC::computeOffDiagJacobian(), ArrayNodalBC::computeOffDiagJacobian(), NodalBC::computeOffDiagJacobian(), NodalKernel::computeOffDiagJacobian(), ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), ComputeFullJacobianThread::computeOnInterface(), ComputeFullJacobianThread::computeOnInternalFace(), FEProblemBase::computePostCheck(), FVBoundaryScalarLagrangeMultiplierConstraint::computeResidual(), FVFluxKernel::computeResidual(), FVInterfaceKernel::computeResidual(), Kernel::computeResidualAndJacobian(), NodalBC::computeResidualAndJacobian(), IntegratedBC::computeResidualAndJacobian(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), FEProblemBase::computeResidualL2Norm(), NonlinearSystemBase::computeResidualTags(), NonlinearSystemBase::computeScaling(), Assembly::computeSinglePointMapAD(), FEProblemBase::computeTransposeNullSpace(), DebugResidualAux::computeValue(), NearestNodeValueAux::computeValue(), SlepcEigenSolverConfiguration::configure_solver(), NonlinearSystemBase::constraintJacobians(), LinearSystem::containsTimeKernel(), Coupleable::coupled(), FEProblemBase::currentLinearSysNum(), FEProblemBase::currentNlSysNum(), PseudoTimestep::currentResidualNorm(), ComputeResidualThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), Moose::doDerivatives(), VariableResidual::execute(), NodalNormalsEvaluator::execute(), GreaterThanLessThanPostprocessor::execute(), NodalNormalsCorner::execute(), NodalNormalsPreprocessor::execute(), ExplicitTimeIntegrator::ExplicitTimeIntegrator(), InternalSideIndicatorBase::finalize(), NumNonlinearIterations::finalize(), BoundsBase::getDoFIndex(), NonlinearSystemBase::getNodeDofs(), NonlinearEigenSystem::getSNES(), getSubdomainsForVar(), NumLinearIterations::getValue(), Residual::getValue(), NumResidualEvaluations::getValue(), Moose::globalDofIndexToDerivative(), FVBoundaryCondition::hasFaceSide(), ExplicitTimeIntegrator::init(), ExplicitTimeIntegrator::initialSetup(), NonlinearSystemBase::initialSetup(), ActivateElementsUserObjectBase::initSolutions(), EigenExecutionerBase::inversePowerIteration(), Kernel::Kernel(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionA(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionAB(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionB(), Moose::SlepcSupport::mooseSlepcEigenFormJacobianA(), MooseStaticCondensationPreconditioner::MooseStaticCondensationPreconditioner(), MooseVariableInterface< Real >::MooseVariableInterface(), EigenExecutionerBase::nonlinearSolve(), ComputeDiracThread::onElement(), ComputeNodalKernelBCJacobiansThread::onNode(), ComputeNodalKernelJacobiansThread::onNode(), VariableResidualNormsDebugOutput::output(), Moose::PetscSupport::petscLinearConverged(), Moose::PetscSupport::petscNonlinearConverged(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), FEProblemBase::prepareAssembly(), prepareFace(), FEProblemBase::prepareFaceShapes(), FEProblemBase::prepareNeighborShapes(), FEProblemBase::prepareShapes(), FEProblemBase::reinitDirac(), FEProblemBase::reinitOffDiagScalars(), NonlinearSystem::residualAndJacobianTogether(), FEProblemBase::setResidual(), FEProblemBase::setResidualNeighbor(), PhysicsBasedPreconditioner::setup(), FVInterfaceKernel::setupData(), NonlinearSystemBase::shouldEvaluatePreSMOResidual(), ActuallyExplicitEuler::solve(), NonlinearEigenSystem::solve(), LStableDirk2::solve(), LStableDirk3::solve(), ImplicitMidpoint::solve(), ExplicitTVDRK2::solve(), LStableDirk4::solve(), AStableDirk4::solve(), ExplicitRK2::solve(), ExplicitSSPRungeKutta::solveStage(), NonlinearThread::subdomainChanged(), UserObject::systemNumber(), MultiAppDofCopyTransfer::transferDofObject(), FVFluxBC::uOnGhost(), FVFluxBC::uOnUSub(), FVFluxBC::updateCurrentFace(), and MortarConstraintBase::zeroInactiveLMDofs().
|
virtual |
Get the number of variables in this system.
Definition at line 883 of file SystemBase.C.
Referenced by AdaptivityAction::act(), FieldSplitPreconditionerTempl< MoosePreconditioner >::FieldSplitPreconditionerTempl(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), NonlinearSystemBase::getNodeDofs(), Assembly::init(), ExplicitTimeIntegrator::initialSetup(), MaxVarNDofsPerElem::onElement(), MaxVarNDofsPerNode::onNode(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), and AuxiliarySystem::variableWiseRelativeSolutionDifferenceNorm().
|
private |
Gets the vector name used for an old (not current) solution state.
Definition at line 1373 of file SystemBase.C.
Referenced by needSolutionState(), and solutionState().
|
inlinevirtual |
Reimplemented in NonlinearEigenSystem.
Definition at line 162 of file SystemBase.h.
Referenced by NonlinearEigenSystem::postInit().
std::string SystemBase::prefix | ( | ) | const |
Definition at line 1705 of file SystemBase.C.
Referenced by FieldSplitPreconditioner::FieldSplitPreconditioner(), MoosePreconditioner::initialSetup(), and FieldSplitPreconditioner::prefix().
|
inlinevirtual |
This is called prior to the libMesh system has been init'd.
MOOSE system wrappers can use this method to add vectors and matrices to the libMesh system
Reimplemented in NonlinearSystemBase, and SolverSystem.
Definition at line 156 of file SystemBase.h.
Referenced by SolverSystem::preInit().
Prepare the system for use.
tid | ID of the thread |
Definition at line 256 of file SystemBase.C.
Referenced by SubProblem::reinitElemFaceRef().
Prepare the system for use on sides.
This will try to reuse the preparation done on the element.
tid | ID of the thread |
resize_data | Pass True if this system needs to resize residual and jacobian datastructures based on preparing this face |
Definition at line 279 of file SystemBase.C.
Prepare the system for use for lower dimensional elements.
tid | ID of the thread |
Definition at line 332 of file SystemBase.C.
Referenced by SubProblem::reinitLowerDElem().
Prepare the system for use.
tid | ID of the thread |
Definition at line 324 of file SystemBase.C.
Referenced by SubProblem::reinitNeighborFaceRef().
const TimeIntegrator * SystemBase::queryTimeIntegrator | ( | const unsigned int | var_num | ) | const |
Retrieve the time integrator that integrates the given variable's equation.
If no suitable time integrator is found (this could happen for instance if we're solving a non-transient problem), then a nullptr will be returned
Definition at line 1665 of file SystemBase.C.
Referenced by getTimeIntegrator(), HDGKernel::HDGKernel(), and MooseVariableData< OutputType >::MooseVariableData().
|
inlinevirtual |
Reinitialize the system when the degrees of freedom in this system have changed.
This is called after the libMesh system has been reinit'd
Reimplemented in NonlinearEigenSystem.
Definition at line 168 of file SystemBase.h.
Referenced by NonlinearEigenSystem::reinit().
Reinit an element assembly info.
elem | Which element we are reinitializing for |
tid | ID of the thread |
Reimplemented in AuxiliarySystem.
Definition at line 340 of file SystemBase.C.
Reinit assembly info for a side of an element.
elem | The element |
side | Side of of the element |
tid | Thread ID |
Reimplemented in AuxiliarySystem.
Definition at line 366 of file SystemBase.C.
Referenced by SubProblem::reinitElemFaceRef().
Compute the values of the variables on the lower dimensional element.
Definition at line 390 of file SystemBase.C.
Referenced by SubProblem::reinitLowerDElem().
Compute the values of the variables at all the current points.
Definition at line 382 of file SystemBase.C.
Compute the values of the variables at all the current points.
Definition at line 374 of file SystemBase.C.
Referenced by SubProblem::reinitNeighborFaceRef().
Reinit nodal assembly info.
node | Node to reinit for |
tid | Thread ID |
Definition at line 398 of file SystemBase.C.
|
virtual |
Reinit nodal assembly info on a face.
node | Node to reinit |
bnd_id | Boundary ID |
tid | Thread ID |
Definition at line 410 of file SystemBase.C.
|
virtual |
Reinit variables at a set of nodes.
nodes | List of node ids to reinit |
tid | Thread ID |
Definition at line 422 of file SystemBase.C.
|
virtual |
Reinit variables at a set of neighbor nodes.
nodes | List of node ids to reinit |
tid | Thread ID |
Definition at line 433 of file SystemBase.C.
|
virtual |
Reinit scalar varaibles.
tid | Thread ID |
reinit_for_derivative_reordering | A flag indicating whether we are reinitializing for the purpose of re-ordering derivative information for ADNodalBCs |
Definition at line 444 of file SystemBase.C.
Removes a matrix with a given tag.
tag_name | The name of the tag |
Definition at line 590 of file SystemBase.C.
void SystemBase::removeVector | ( | const std::string & | name | ) |
Remove a vector from the system with the given name.
Definition at line 1326 of file SystemBase.C.
Referenced by restoreOldSolutions().
Remove a solution length vector from the system with the specified TagID.
tag_id | Tag ID |
Definition at line 700 of file SystemBase.C.
|
inlinevirtual |
Reimplemented in NonlinearSystemBase, and DisplacedSystem.
Definition at line 426 of file SystemBase.h.
Referenced by DisplacedSystem::residualCopy().
|
inlinevirtual |
Reimplemented in NonlinearSystemBase, and DisplacedSystem.
Definition at line 430 of file SystemBase.h.
Referenced by DisplacedSystem::residualGhosted().
|
virtual |
Reimplemented in NonlinearSystemBase, LinearSystem, and AuxiliarySystem.
Definition at line 1591 of file SystemBase.C.
Referenced by AuxiliarySystem::residualSetup(), and NonlinearSystemBase::residualSetup().
|
inlinevirtual |
Reimplemented in NonlinearSystemBase, and DisplacedSystem.
Definition at line 307 of file SystemBase.h.
Referenced by defaultVectorTags(), and DisplacedSystem::residualVectorTag().
|
virtual |
Restore the old and older solutions when the saved solutions present.
Definition at line 542 of file SystemBase.C.
|
virtual |
Restore current solutions (call after your solve failed)
Reimplemented in SolverSystem.
Definition at line 1309 of file SystemBase.C.
Referenced by SolverSystem::restoreSolutions().
|
virtual |
Save the old and older solutions.
Definition at line 510 of file SystemBase.C.
|
virtual |
Returns a reference to a serialized version of the solution vector for this subproblem.
Reimplemented in DisplacedSystem.
Definition at line 1638 of file SystemBase.C.
Referenced by PNGOutput::calculateRescalingValues(), PNGOutput::makeMeshFunc(), and DisplacedSystem::serializedSolution().
void SystemBase::setActiveScalarVariableCoupleableVectorTags | ( | const std::set< TagID > & | vtags, |
THREAD_ID | tid | ||
) |
Set the active vector tags for the scalar variables.
Definition at line 1618 of file SystemBase.C.
Referenced by SubProblem::setActiveScalarVariableCoupleableVectorTags().
void SystemBase::setActiveVariableCoupleableVectorTags | ( | const std::set< TagID > & | vtags, |
THREAD_ID | tid | ||
) |
Set the active vector tags for the variables.
Definition at line 1612 of file SystemBase.C.
Referenced by SubProblem::setActiveFEVariableCoupleableVectorTags().
void SystemBase::setVariableGlobalDoFs | ( | const std::string & | var_name | ) |
set all the global dof indices for a variable
var_name | The name of the variable |
Definition at line 186 of file SystemBase.C.
|
inline |
Sets the verbose flag.
[in] | verbose | Verbose flag |
Definition at line 134 of file SystemBase.h.
Referenced by Executioner::Executioner().
void SystemBase::sizeVariableMatrixData | ( | ) |
size the matrix data for each variable for the number of matrix tags we have
Definition at line 1711 of file SystemBase.C.
|
inline |
Definition at line 196 of file SystemBase.h.
Referenced by Adaptivity::adaptMesh(), TransientMultiApp::appTransferVector(), MooseEigenSystem::combineSystemSolution(), NonlinearSystemBase::computeDamping(), AuxiliarySystem::computeElementalVarsHelper(), NonlinearSystemBase::computeJacobianInternal(), AuxiliarySystem::computeMortarNodalVars(), NonlinearSystemBase::computeNodalBCs(), AuxiliarySystem::computeNodalVarsHelper(), NonlinearSystemBase::computeResidualTags(), AuxiliarySystem::computeScalarVars(), NonlinearSystemBase::constraintResiduals(), copyVars(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), NodalNormalsCorner::execute(), NodalNormalsEvaluator::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), NodalNormalsPreprocessor::execute(), NodalNormalsCorner::finalize(), NodalNormalsEvaluator::finalize(), NodalNormalsPreprocessor::finalize(), NodalNormalsEvaluator::initialize(), NodalNormalsCorner::initialize(), NodalNormalsPreprocessor::initialize(), MooseEigenSystem::initSystemSolution(), ComputeMarkerThread::onElement(), ComputeIndicatorThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeNodalUserObjectsThread::onNode(), FEProblemBase::projectInitialConditionOnCustomRange(), FEProblemBase::projectSolution(), Transient::relativeSolutionDifferenceNorm(), MultiApp::restore(), restoreSolutions(), SecantSolve::saveVariableValues(), SteffensenSolve::saveVariableValues(), PicardSolve::saveVariableValues(), MooseEigenSystem::scaleSystemSolution(), AuxiliarySystem::serializeSolution(), NonlinearSystemBase::setConstraintSecondaryValues(), NonlinearSystemBase::setInitialSolution(), DisplacedSystem::solutionInternal(), NonlinearEigenSystem::solve(), MultiAppDofCopyTransfer::transfer(), SecantSolve::transformVariables(), SteffensenSolve::transformVariables(), PicardSolve::transformVariables(), AuxiliarySystem::variableWiseRelativeSolutionDifferenceNorm(), and zeroVariables().
|
inline |
Definition at line 199 of file SystemBase.h.
|
protectedpure virtual |
Internal getter for solution owned by libMesh.
Implemented in DisplacedSystem, AuxiliarySystem, and SolverSystem.
Referenced by needSolutionState(), and solutionState().
|
inline |
Definition at line 197 of file SystemBase.h.
Referenced by MooseEigenSystem::combineSystemSolution(), CentralDifference::computeTimeDerivatives(), NonlinearSystemBase::constraintResiduals(), ActivateElementsUserObjectBase::initSolutions(), MooseEigenSystem::initSystemSolutionOld(), MooseVariableScalar::reinit(), Transient::relativeSolutionDifferenceNorm(), restoreSolutions(), ElementSubdomainModifierBase::setOldAndOlderSolutions(), ActuallyExplicitEuler::solve(), AdamsPredictor::timestepSetup(), and AuxiliarySystem::variableWiseRelativeSolutionDifferenceNorm().
|
inline |
Definition at line 200 of file SystemBase.h.
|
inline |
Definition at line 198 of file SystemBase.h.
Referenced by MooseEigenSystem::combineSystemSolution(), CentralDifference::computeTimeDerivatives(), ActivateElementsUserObjectBase::initSolutions(), MooseVariableScalar::reinit(), and ElementSubdomainModifierBase::setOldAndOlderSolutions().
|
inline |
Definition at line 201 of file SystemBase.h.
|
virtual |
Reimplemented in DisplacedSystem.
Definition at line 1347 of file SystemBase.C.
Referenced by AuxiliarySystem::copyCurrentIntoPreviousNL(), copyPreviousNonlinearSolutions(), and restoreSolutions().
|
virtual |
Reimplemented in DisplacedSystem.
Definition at line 1338 of file SystemBase.C.
|
virtual |
Get a state of the solution (0 = current, 1 = old, 2 = older, etc).
If the state does not exist, it will be initialized in addition to any newer states before it that have not been initialized.
Reimplemented in DisplacedSystem.
Definition at line 1423 of file SystemBase.C.
Referenced by copyOldSolutions(), copyPreviousFixedPointSolutions(), copyPreviousNonlinearSolutions(), PointwiseRenormalizeVector::execute(), PointwiseRenormalizeVector::finalize(), restoreOldSolutions(), saveOldSolutions(), solution(), solutionOld(), solutionOlder(), and DisplacedSystem::solutionState().
|
virtual |
Get a state of the solution (0 = current, 1 = old, 2 = older, etc).
Reimplemented in DisplacedSystem.
Definition at line 1394 of file SystemBase.C.
libMesh::ParallelType SystemBase::solutionStateParallelType | ( | const unsigned int | state, |
const Moose::SolutionIterationType | iteration_type | ||
) | const |
Returns the parallel type of the given solution state.
Definition at line 1432 of file SystemBase.C.
Referenced by needSolutionState().
|
inline |
Whether or not the solution states have been initialized via initSolutionState()
After the solution states have been initialized, additional solution states cannot be added.
Definition at line 896 of file SystemBase.h.
Referenced by ScalarKernelBase::uOld(), and AuxScalarKernel::uOld().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 261 of file SystemBase.h.
Referenced by MooseVariableScalar::adUDot(), ActuallyExplicitEuler::computeTimeDerivatives(), ImplicitEuler::computeTimeDerivatives(), ExplicitEuler::computeTimeDerivatives(), NewmarkBeta::computeTimeDerivatives(), BDF2::computeTimeDerivatives(), CentralDifference::computeTimeDerivatives(), CrankNicolson::computeTimeDerivatives(), LStableDirk2::computeTimeDerivatives(), LStableDirk3::computeTimeDerivatives(), ImplicitMidpoint::computeTimeDerivatives(), ExplicitTVDRK2::computeTimeDerivatives(), LStableDirk4::computeTimeDerivatives(), AStableDirk4::computeTimeDerivatives(), ExplicitRK2::computeTimeDerivatives(), copyOldSolutions(), CrankNicolson::init(), CentralDifference::initialSetup(), MooseVariableScalar::reinit(), restoreSolutions(), DisplacedSystem::solutionUDot(), and MooseVariableScalar::uDot().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 265 of file SystemBase.h.
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 262 of file SystemBase.h.
Referenced by NewmarkBeta::computeTimeDerivatives(), CentralDifference::computeTimeDerivatives(), copyOldSolutions(), CentralDifference::initialSetup(), MooseVariableScalar::reinit(), restoreSolutions(), DisplacedSystem::solutionUDotDot(), and MooseVariableScalar::uDotDot().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 266 of file SystemBase.h.
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 264 of file SystemBase.h.
Referenced by NewmarkBeta::computeADTimeDerivatives(), NewmarkBeta::computeTimeDerivatives(), copyOldSolutions(), MooseVariableScalar::reinit(), restoreOldSolutions(), restoreSolutions(), saveOldSolutions(), DisplacedSystem::solutionUDotDotOld(), and MooseVariableScalar::uDotDotOld().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 268 of file SystemBase.h.
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 263 of file SystemBase.h.
Referenced by NewmarkBeta::computeADTimeDerivatives(), NewmarkBeta::computeTimeDerivatives(), copyOldSolutions(), MooseVariableScalar::reinit(), restoreOldSolutions(), restoreSolutions(), saveOldSolutions(), DisplacedSystem::solutionUDotOld(), and MooseVariableScalar::uDotOld().
|
inlinevirtual |
Reimplemented in DisplacedSystem.
Definition at line 267 of file SystemBase.h.
|
virtual |
Solve the system (using libMesh magic)
Reimplemented in NonlinearSystemBase, LinearSystem, NonlinearEigenSystem, NonlinearSystem, DumpObjectsLinearSystem, and DumpObjectsNonlinearSystem.
Definition at line 1241 of file SystemBase.C.
|
virtual |
Reimplemented in AuxiliarySystem.
Definition at line 1584 of file SystemBase.C.
Referenced by AuxiliarySystem::subdomainSetup(), and NonlinearSystemBase::subdomainSetup().
|
inline |
Definition at line 101 of file SystemBase.h.
Referenced by CreateDisplacedProblemAction::addProxyRelationshipManagers(), MooseVariableBase::allDofIndices(), NonlinearSystemBase::constraintJacobians(), NonlinearSystemBase::constraintResiduals(), Moose::globalDofIndexToDerivative(), NonlinearSystemBase::initialSetup(), MooseVariableScalar::MooseVariableScalar(), NonlinearSystemBase::overwriteNodeFace(), MooseVariableScalar::reinit(), NonlinearSystemBase::reinitNodeFace(), NonlinearSystemBase::setConstraintSecondaryValues(), and MooseVariableScalar::sizeMatrixTagData().
|
inline |
Definition at line 102 of file SystemBase.h.
|
pure virtual |
Get the reference to the libMesh system.
Implemented in NonlinearSystemBase, DisplacedSystem, AuxiliarySystem, and LinearSystem.
Referenced by MooseVariableFieldBase::activeOnSubdomain(), MooseVariableFieldBase::activeSubdomains(), SubProblem::addCouplingGhostingFunctor(), addMatrix(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), addVariable(), MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), augmentSendList(), MultiAppGeneralFieldNearestLocationTransfer::buildKDTrees(), MultiAppGeneralFieldShapeEvaluationTransfer::buildMeshFunctions(), SubProblem::cloneCouplingGhostingFunctor(), copySolutionsBackwards(), copyVars(), dofMap(), FEProblemBase::duplicateVariableCheck(), EigenProblem::EigenProblem(), PointwiseRenormalizeVector::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppGeometricInterpolationTransfer::execute(), MultiAppUserObjectTransfer::execute(), FEProblem::FEProblem(), MultiAppGeometricInterpolationTransfer::fillSourceInterpolationPoints(), getVector(), Moose::globalDofIndexToDerivative(), hasScalarVariable(), hasVariable(), hasVector(), TimeIntegrator::init(), PointwiseRenormalizeVector::initialize(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), MultiAppGeometricInterpolationTransfer::interpolateTargetPoints(), isArrayVariable(), isScalarVariable(), MassMatrix::MassMatrix(), MooseVariableBase::MooseVariableBase(), name(), number(), ConsoleUtils::outputSolverSystemInformation(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), prefix(), SolverSystem::preInit(), MultiAppProjectionTransfer::projectSolution(), reinitElem(), removeMatrix(), removeVector(), SolverSystem::restoreSolutions(), restoreSolutions(), serializedSolution(), SolverSystem::serializeSolution(), ElementSubdomainModifierBase::setOldAndOlderSolutions(), SolverSystem::solutionInternal(), solve(), MultiAppShapeEvaluationTransfer::transferVariable(), update(), and zeroVariables().
|
pure virtual |
Implemented in NonlinearSystemBase, DisplacedSystem, AuxiliarySystem, and LinearSystem.
|
inlinevirtual |
Return the Matrix Tag ID for System.
Reimplemented in NonlinearSystemBase, LinearSystem, and DisplacedSystem.
Definition at line 297 of file SystemBase.h.
Referenced by defaultMatrixTags(), and DisplacedSystem::systemMatrixTag().
|
virtual |
Reimplemented in NonlinearSystemBase, and AuxiliarySystem.
Definition at line 1570 of file SystemBase.C.
Referenced by AuxiliarySystem::timestepSetup(), and NonlinearSystemBase::timestepSetup().
|
inlinevirtual |
Ideally, we should not need this API.
There exists a really bad API "addCachedResidualDirectly " in FEProblem and DisplacedProblem This API should go away once addCachedResidualDirectly is removed in the future Return Tag ID for Time
Reimplemented in NonlinearSystemBase, and DisplacedSystem.
Definition at line 292 of file SystemBase.h.
Referenced by defaultVectorTags(), and DisplacedSystem::timeVectorTag().
void SystemBase::update | ( | ) |
Update the system (doing libMesh magic)
Definition at line 1235 of file SystemBase.C.
Referenced by Adaptivity::adaptMesh(), MooseEigenSystem::combineSystemSolution(), NonlinearSystemBase::computeDamping(), NonlinearSystemBase::computeJacobianInternal(), NonlinearSystemBase::computeResidualTags(), EigenProblem::doFreeNonlinearPowerIterations(), PointwiseRenormalizeVector::finalize(), MooseEigenSystem::initSystemSolution(), MooseEigenSystem::initSystemSolutionOld(), MooseEigenSystem::scaleSystemSolution(), NonlinearSystemBase::setConstraintSecondaryValues(), NonlinearSystemBase::setInitialSolution(), EigenProblem::solve(), FEProblemBase::solve(), DisplacedProblem::syncSolutions(), MultiAppDofCopyTransfer::transfer(), SecantSolve::transformVariables(), SteffensenSolve::transformVariables(), and PicardSolve::transformVariables().
|
inline |
Definition at line 924 of file SystemBase.h.
Referenced by Coupleable::coupled().
Zero vector with the given tag.
Definition at line 674 of file SystemBase.C.
Referenced by zeroTaggedVectors().
Zero all vectors for given tags.
Definition at line 693 of file SystemBase.C.
Referenced by NonlinearSystemBase::computeResidualAndJacobianTags(), and NonlinearSystemBase::computeResidualTags().
|
virtual |
Zero out the solution for the list of variables passed in.
@ param vars_to_be_zeroed The variable names in this vector will have their solutions set to zero after this call
Reimplemented in DisplacedSystem.
Definition at line 200 of file SystemBase.C.
Referenced by DisplacedSystem::zeroVariables(), zeroVariablesForJacobian(), and zeroVariablesForResidual().
|
virtual |
Zero out the solution for the variables that were registered as needing to have their solutions zeroed on out on Jacobian evaluation by a call to addVariableToZeroOnResidual()
Definition at line 235 of file SystemBase.C.
|
virtual |
Zero out the solution for the variables that were registered as needing to have their solutions zeroed on out on residual evaluation by a call to addVariableToZeroOnResidual()
Definition at line 229 of file SystemBase.C.
|
protected |
Active tagged matrices. A matrix is active if its tag-matrix pair is present in the map. We use a map instead of a vector so that users can easily add and remove to this container with calls to (de)activateMatrixTag.
Definition at line 1025 of file SystemBase.h.
Referenced by activateAllMatrixTags(), deactivateAllMatrixTags(), and reinitElem().
|
protected |
Definition at line 988 of file SystemBase.h.
Referenced by SolverSystem::checkInvalidSolution(), NonlinearSystemBase::computeJacobianBlocks(), NonlinearSystemBase::computeJacobianInternal(), NonlinearSystemBase::computeJacobianTags(), LinearSystem::computeLinearSystemInternal(), LinearSystem::computeLinearSystemTags(), NonlinearSystemBase::computeResidualInternal(), NonlinearSystemBase::computeResidualTags(), NonlinearSystemBase::jacobianSetup(), NonlinearSystemBase::residualSetup(), NonlinearSystemBase::shouldEvaluatePreSMOResidual(), and NonlinearSystem::solve().
|
protected |
Whether to automatically scale the variables.
Definition at line 1055 of file SystemBase.h.
Referenced by automaticScaling(), NonlinearSystemBase::initialSetup(), and NonlinearSystemBase::preSolve().
|
inherited |
An instance of helper class to write streams to the Console objects.
Definition at line 31 of file ConsoleStreamInterface.h.
Referenced by IterationAdaptiveDT::acceptStep(), MeshOnlyAction::act(), SetupDebugAction::act(), MaterialOutputAction::act(), Adaptivity::adaptMesh(), FEProblemBase::adaptMesh(), PerfGraph::addToExecutionList(), SimplePredictor::apply(), applyScalingFactors(), MultiApp::backup(), FEProblemBase::backupMultiApps(), CoarsenedPiecewiseLinear::buildCoarsenedGrid(), DefaultSteadyStateConvergence::checkConvergence(), MeshDiagnosticsGenerator::checkElementOverlap(), MeshDiagnosticsGenerator::checkElementTypes(), MeshDiagnosticsGenerator::checkElementVolumes(), FEProblemBase::checkExceptionAndStopSolve(), SolverSystem::checkInvalidSolution(), MeshDiagnosticsGenerator::checkLocalJacobians(), MeshDiagnosticsGenerator::checkNonConformalMesh(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), MeshDiagnosticsGenerator::checkNonMatchingEdges(), MeshDiagnosticsGenerator::checkNonPlanarSides(), FEProblemBase::checkProblemIntegrity(), ReferenceResidualConvergence::checkRelativeConvergence(), MeshDiagnosticsGenerator::checkSidesetsOrientation(), MeshDiagnosticsGenerator::checkWatertightNodesets(), MeshDiagnosticsGenerator::checkWatertightSidesets(), IterationAdaptiveDT::computeAdaptiveDT(), TransientBase::computeConstrainedDT(), DefaultMultiAppFixedPointConvergence::computeCustomConvergencePostprocessor(), NonlinearSystemBase::computeDamping(), FixedPointIterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeFailedDT(), IterationAdaptiveDT::computeInitialDT(), IterationAdaptiveDT::computeInterpolationDT(), LinearSystem::computeLinearSystemTags(), FEProblemBase::computeLinearSystemTags(), NonlinearSystemBase::computeScaling(), Problem::console(), IterationAdaptiveDT::constrainStep(), TimeStepper::constrainStep(), MultiApp::createApp(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), MFEMSteady::execute(), MessageFromInput::execute(), SteadyBase::execute(), Eigenvalue::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), MeshGeneratorSystem::executeMeshGenerators(), ElementQualityChecker::finalize(), SidesetAroundSubdomainUpdater::finalize(), FEProblemBase::finishMultiAppStep(), MeshRepairGenerator::fixOverlappingNodes(), CoarsenBlockGenerator::generate(), MeshGenerator::generateInternal(), VariableCondensationPreconditioner::getDofToCondense(), InversePowerMethod::init(), NonlinearEigen::init(), FEProblemBase::initialAdaptMesh(), DefaultMultiAppFixedPointConvergence::initialize(), EigenExecutionerBase::inversePowerIteration(), FEProblemBase::joinAndFinalize(), TransientBase::keepGoing(), IterationAdaptiveDT::limitDTByFunction(), IterationAdaptiveDT::limitDTToPostprocessorValue(), FEProblemBase::logAdd(), EigenExecutionerBase::makeBXConsistent(), Console::meshChanged(), MooseBase::mooseDeprecated(), MooseBase::mooseInfo(), MooseBase::mooseWarning(), MooseBase::mooseWarningNonPrefixed(), ReferenceResidualConvergence::nonlinearConvergenceSetup(), ReporterDebugOutput::output(), PerfGraphOutput::output(), SolutionInvalidityOutput::output(), MaterialPropertyDebugOutput::output(), DOFMapOutput::output(), VariableResidualNormsDebugOutput::output(), Console::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Console::outputInput(), Console::outputPostprocessors(), PseudoTimestep::outputPseudoTimestep(), Console::outputReporters(), DefaultMultiAppFixedPointConvergence::outputResidualNorm(), Console::outputScalarVariables(), Console::outputSystemInformation(), FEProblemBase::possiblyRebuildGeomSearchPatches(), EigenExecutionerBase::postExecute(), AB2PredictorCorrector::postSolve(), ActionWarehouse::printActionDependencySets(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), SolutionInvalidity::printDebug(), EigenExecutionerBase::printEigenvalue(), SecantSolve::printFixedPointConvergenceHistory(), SteffensenSolve::printFixedPointConvergenceHistory(), PicardSolve::printFixedPointConvergenceHistory(), FixedPointSolve::printFixedPointConvergenceReason(), PerfGraphLivePrint::printLiveMessage(), MaterialPropertyDebugOutput::printMaterialMap(), PerfGraphLivePrint::printStats(), NEML2Action::printSummary(), AutomaticMortarGeneration::projectPrimaryNodesSinglePair(), AutomaticMortarGeneration::projectSecondaryNodesSinglePair(), CoarsenBlockGenerator::recursiveCoarsen(), SolutionTimeAdaptiveDT::rejectStep(), MultiApp::restore(), FEProblemBase::restoreMultiApps(), FEProblemBase::restoreSolutions(), NonlinearSystemBase::setInitialSolution(), MooseApp::setupOptions(), Checkpoint::shouldOutput(), SubProblem::showFunctorRequestors(), SubProblem::showFunctors(), FullSolveMultiApp::showStatusMessage(), EigenProblem::solve(), FEProblemSolve::solve(), NonlinearSystem::solve(), FixedPointSolve::solve(), LinearSystem::solve(), LStableDirk2::solve(), LStableDirk3::solve(), ImplicitMidpoint::solve(), ExplicitTVDRK2::solve(), LStableDirk4::solve(), AStableDirk4::solve(), ExplicitRK2::solve(), TransientMultiApp::solveStep(), FixedPointSolve::solveStep(), PerfGraphLivePrint::start(), AB2PredictorCorrector::step(), NonlinearEigen::takeStep(), MFEMTransient::takeStep(), TransientBase::takeStep(), TerminateChainControl::terminate(), Convergence::verboseOutput(), Console::writeTimestepInformation(), Console::writeVariableNorms(), and FEProblemBase::~FEProblemBase().
|
protected |
Derivative of time derivative of u with respect to uj.
This depends on the time integration scheme
Definition at line 1017 of file SystemBase.h.
Referenced by addVariable(), duDotDu(), and duDotDus().
|
protected |
Definition at line 1018 of file SystemBase.h.
Referenced by duDotDotDu().
|
protected |
Definition at line 989 of file SystemBase.h.
Referenced by NonlinearSystemBase::addBoundaryCondition(), NonlinearSystemBase::addConstraint(), NonlinearSystemBase::addDamper(), NonlinearSystemBase::addDGKernel(), NonlinearSystemBase::addDiracKernel(), NonlinearSystemBase::addHDGKernel(), NonlinearSystemBase::addInterfaceKernel(), MooseEigenSystem::addKernel(), AuxiliarySystem::addKernel(), NonlinearSystemBase::addKernel(), NonlinearSystemBase::addNodalKernel(), AuxiliarySystem::addScalarKernel(), NonlinearSystemBase::addScalarKernel(), NonlinearSystemBase::addSplit(), addTimeIntegrator(), and addVariable().
|
protected |
the governing finite element/volume problem
Definition at line 986 of file SystemBase.h.
Referenced by NonlinearSystemBase::addBoundaryCondition(), NonlinearSystemBase::addDGKernel(), NonlinearSystemBase::addDiracKernel(), addDotVectors(), NonlinearSystemBase::addHDGKernel(), NonlinearSystemBase::addInterfaceKernel(), NonlinearSystemBase::addKernel(), NonlinearSystemBase::addNodalKernel(), NonlinearSystemBase::addScalarKernel(), NonlinearSystemBase::addSplit(), NonlinearSystemBase::assembleScalingVector(), NonlinearSystemBase::augmentSparsity(), AuxiliarySystem::AuxiliarySystem(), SolverSystem::checkInvalidSolution(), NonlinearSystemBase::checkKernelCoverage(), AuxiliarySystem::clearScalarVariableCoupleableTags(), SolverSystem::compute(), AuxiliarySystem::compute(), NonlinearSystemBase::computeDamping(), NonlinearSystemBase::computeDiracContributions(), AuxiliarySystem::computeElementalVarsHelper(), LinearSystem::computeGradients(), NonlinearSystemBase::computeJacobian(), NonlinearSystemBase::computeJacobianBlocks(), NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), LinearSystem::computeLinearSystemTags(), AuxiliarySystem::computeMortarNodalVars(), NonlinearSystemBase::computeNodalBCs(), NonlinearSystemBase::computeNodalBCsResidualAndJacobian(), AuxiliarySystem::computeNodalVarsHelper(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), NonlinearSystemBase::computeResidualTags(), NonlinearSystemBase::computeScalarKernelsJacobians(), AuxiliarySystem::computeScalarVars(), NonlinearSystemBase::computeScaling(), NonlinearSystem::computeScalingJacobian(), NonlinearSystem::computeScalingResidual(), NonlinearSystemBase::constraintJacobians(), NonlinearSystemBase::constraintResiduals(), LinearSystem::containsTimeKernel(), NonlinearSystem::converged(), NonlinearSystemBase::customSetup(), MooseEigenSystem::eigenKernelOnCurrent(), MooseEigenSystem::eigenKernelOnOld(), NonlinearSystemBase::enforceNodalConstraintsJacobian(), NonlinearSystemBase::enforceNodalConstraintsResidual(), feProblem(), NonlinearSystemBase::getResidualNonTimeVector(), NonlinearSystemBase::getResidualTimeVector(), LinearSystem::initialSetup(), NonlinearSystemBase::initialSetup(), NonlinearSystemBase::jacobianSetup(), LinearSystem::LinearSystem(), NonlinearSystemBase::NonlinearSystemBase(), NonlinearSystemBase::overwriteNodeFace(), NonlinearSystem::potentiallySetupFiniteDifferencing(), NonlinearSystemBase::preInit(), NonlinearSystemBase::reinitNodeFace(), NonlinearSystem::residualAndJacobianTogether(), NonlinearSystemBase::residualSetup(), NonlinearSystemBase::setConstraintSecondaryValues(), NonlinearSystemBase::setInitialSolution(), AuxiliarySystem::setScalarVariableCoupleableTags(), NonlinearSystemBase::shouldEvaluatePreSMOResidual(), NonlinearSystem::solve(), and NonlinearSystemBase::timestepSetup().
|
protected |
Active flags for tagged matrices.
Definition at line 1027 of file SystemBase.h.
Referenced by activateAllMatrixTags(), deactivateAllMatrixTags(), and matrixTagActive().
|
protected |
Maximum number of dofs for any one variable on any one element.
Definition at line 1043 of file SystemBase.h.
Referenced by assignMaxVarNDofsPerElem(), and getMaxVarNDofsPerElem().
|
protected |
Maximum number of dofs for any one variable on any one node.
Definition at line 1046 of file SystemBase.h.
Referenced by assignMaxVarNDofsPerNode(), and getMaxVarNDofsPerNode().
|
protected |
Maximum variable number.
Definition at line 1000 of file SystemBase.h.
Referenced by addVariable(), and getMaxVariableNumber().
|
protected |
Definition at line 991 of file SystemBase.h.
Referenced by addVariable(), NonlinearSystemBase::assembleScalingVector(), augmentSendList(), NonlinearSystemBase::checkKernelCoverage(), AuxiliarySystem::computeElementalVarsHelper(), NonlinearSystemBase::computeJacobianInternal(), AuxiliarySystem::computeMortarNodalVars(), AuxiliarySystem::computeNodalVarsHelper(), NonlinearSystemBase::constraintJacobians(), NonlinearSystemBase::constraintResiduals(), NonlinearSystemBase::findImplicitGeometricCouplingEntries(), NonlinearSystemBase::getNodeDofs(), initialSetup(), mesh(), NonlinearSystemBase::overwriteNodeFace(), NonlinearSystemBase::reinitNodeFace(), NonlinearSystemBase::setConstraintSecondaryValues(), setVariableGlobalDoFs(), AuxiliarySystem::variableWiseRelativeSolutionDifferenceNorm(), and zeroVariables().
|
protected |
The name of this system.
Definition at line 993 of file SystemBase.h.
|
protected |
Map variable number to its pointer.
Definition at line 1052 of file SystemBase.h.
Referenced by addVariable(), and getVariable().
|
protected |
A cache for storing gradients at dof locations.
We store it on the system because we create copies of variables on each thread and that would lead to increased data duplication when using threading-based parallelism.
Definition at line 1073 of file SystemBase.h.
Referenced by LinearSystem::computeGradients(), gradientContainer(), and initialSetup().
|
protected |
Definition at line 1034 of file SystemBase.h.
Referenced by restoreOldSolutions(), and saveOldSolutions().
|
protected |
Definition at line 1035 of file SystemBase.h.
Referenced by restoreOldSolutions(), and saveOldSolutions().
|
protected |
Definition at line 1030 of file SystemBase.h.
|
protected |
Definition at line 1031 of file SystemBase.h.
|
private |
The saved solution states (0 = current, 1 = old, 2 = older, etc)
Definition at line 1086 of file SystemBase.h.
Referenced by restoreOldSolutions(), and saveOldSolutions().
|
protected |
Serialized version of the solution vector, or nullptr if a serialized solution is not needed.
Definition at line 1068 of file SystemBase.h.
Referenced by AuxiliarySystem::compute(), SolverSystem::preInit(), serializedSolution(), SolverSystem::serializeSolution(), AuxiliarySystem::serializeSolution(), and SolverSystem::setSolution().
|
private |
2D array of solution state vector pointers; first index corresponds to SolutionIterationType, second index corresponds to state index (0=current, 1=old, 2=older)
Definition at line 1084 of file SystemBase.h.
Referenced by copyOldSolutions(), copyPreviousFixedPointSolutions(), copyPreviousNonlinearSolutions(), hasSolutionState(), needSolutionState(), restoreOldSolutions(), saveOldSolutions(), solutionState(), and solutionStateParallelType().
|
protected |
Whether or not the solution states have been initialized.
Definition at line 1061 of file SystemBase.h.
Referenced by initSolutionState(), and solutionStatesInitialized().
|
protected |
The subproblem for whom this class holds variable data, etc; this can either be the governing finite element/volume problem or a subjugate displaced problem.
Definition at line 983 of file SystemBase.h.
Referenced by activateAllMatrixTags(), addMatrix(), addScalingVector(), addVariable(), associateMatrixToTag(), associateVectorToTag(), augmentSendList(), closeTaggedVector(), computingScalingJacobian(), deactivateAllMatrixTags(), disassociateDefaultMatrixTags(), disassociateDefaultVectorTags(), disassociateMatrixFromTag(), disassociateVectorFromTag(), getMatrix(), NonlinearSystemBase::getResidualNonTimeVector(), NonlinearSystemBase::getResidualTimeVector(), getVector(), matrixTagActive(), needSolutionState(), prepare(), prepareFace(), reinitElem(), removeMatrix(), removeVector(), NonlinearSystemBase::residualGhosted(), SolverSystem::setSolution(), setVariableGlobalDoFs(), subproblem(), zeroTaggedVector(), and zeroVariables().
|
protected |
Tagged matrices (pointer)
Definition at line 1023 of file SystemBase.h.
Referenced by associateMatrixToTag(), disassociateMatrixFromTag(), getMatrix(), hasMatrix(), and removeMatrix().
|
protected |
Tagged vectors (pointer)
Definition at line 1021 of file SystemBase.h.
Referenced by associateVectorToTag(), disassociateVectorFromTag(), getVector(), hasVector(), and removeVector().
|
protected |
Time integrator.
Definition at line 1049 of file SystemBase.h.
Referenced by addTimeIntegrator(), SolverSystem::compute(), AuxiliarySystem::compute(), NonlinearSystemBase::computeResidualAndJacobianTags(), NonlinearSystemBase::computeResidualTags(), copyTimeIntegrators(), getTimeIntegrators(), NonlinearSystemBase::onTimestepBegin(), queryTimeIntegrator(), NonlinearSystem::solve(), and NonlinearEigenSystem::solve().
|
protected |
solution vector for u^dot
Definition at line 1006 of file SystemBase.h.
Referenced by addDotVectors(), NonlinearSystemBase::setSolutionUDot(), and solutionUDot().
|
protected |
old solution vector for u^dot
Definition at line 1011 of file SystemBase.h.
Referenced by addDotVectors(), NonlinearSystemBase::setSolutionUDotOld(), and solutionUDotOld().
|
protected |
solution vector for u^dotdot
Definition at line 1008 of file SystemBase.h.
Referenced by addDotVectors(), NonlinearSystemBase::setSolutionUDotDot(), and solutionUDotDot().
|
protected |
old solution vector for u^dotdot
Definition at line 1013 of file SystemBase.h.
Referenced by addDotVectors(), NonlinearSystemBase::setSolutionUDotDotOld(), and solutionUDotDotOld().
|
protected |
Container for the dof indices of a given variable.
Definition at line 1064 of file SystemBase.h.
Referenced by getVariableGlobalDoFs(), and setVariableGlobalDoFs().
|
protected |
default kind of variables in this system
Definition at line 1038 of file SystemBase.h.
Referenced by varKind().
|
protected |
Map of variables (variable id -> array of subdomains where it lives)
Definition at line 998 of file SystemBase.h.
Referenced by addVariable(), getSubdomainsForVar(), and getVariableBlocks().
|
protected |
Definition at line 1040 of file SystemBase.h.
Referenced by addVariableToCopy(), copyVars(), and hasVarCopy().
|
protected |
Variable warehouses (one for each thread)
Definition at line 996 of file SystemBase.h.
Referenced by NonlinearSystemBase::addBoundaryCondition(), NonlinearSystemBase::addInterfaceKernel(), AuxiliarySystem::addVariable(), addVariable(), applyScalingFactors(), NonlinearSystemBase::assembleScalingVector(), clearAllDofIndices(), AuxiliarySystem::compute(), customSetup(), getActualFieldVariable(), getFieldVariable(), getFVVariable(), AuxiliarySystem::getMinQuadratureOrder(), getMinQuadratureOrder(), getScalarVariable(), getScalarVariables(), getVariable(), getVariableNames(), getVariables(), LinearSystem::initialSetup(), initialSetup(), jacobianSetup(), nFieldVariables(), nFVVariables(), nVariables(), prepare(), prepareFace(), prepareLowerD(), prepareNeighbor(), reinitElem(), reinitElemFace(), reinitLowerD(), reinitNeighbor(), reinitNeighborFace(), reinitNode(), reinitNodeFace(), reinitNodes(), reinitNodesNeighbor(), reinitScalars(), residualSetup(), setActiveScalarVariableCoupleableVectorTags(), setActiveVariableCoupleableVectorTags(), NonlinearSystemBase::setupScalingData(), sizeVariableMatrixData(), subdomainSetup(), and timestepSetup().
|
protected |
Definition at line 1003 of file SystemBase.h.
Referenced by addVariableToZeroOnJacobian(), and zeroVariablesForJacobian().
|
protected |
Definition at line 1002 of file SystemBase.h.
Referenced by addVariableToZeroOnResidual(), and zeroVariablesForResidual().
|
protected |
True if printing out additional information.
Definition at line 1058 of file SystemBase.h.
Referenced by applyScalingFactors(), and setVerboseFlag().