https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DumpObjectsProblem Class Referenceabstract

Specialization of SubProblem for dumping generated objects as input file syntax. More...

#include <DumpObjectsProblem.h>

Inheritance diagram for DumpObjectsProblem:
[legend]

Public Types

enum class  CoverageCheckMode {
  FALSE , TRUE , OFF , ON ,
  SKIP_LIST , ONLY_LIST
}
 
using DataFileParameterType = DataFileName
 The parameter type this interface expects for a data file name.
 

Public Member Functions

 DumpObjectsProblem (const InputParameters &parameters)
 
void dumpGeneratedSyntax (const std::string path)
 output input blocks for a given action path
 
void dumpAllGeneratedSyntax () const
 output input blocks for all paths
 
virtual void solve (unsigned int) override
 output data in solve (if ever called)
 
virtual void solveLinearSystem (unsigned int, const Moose::PetscSupport::PetscOptions *) override
 Build and solve a linear system.
 
void printObjects ()
 
virtual void initialSetup () override
 
virtual void advanceState () override
 Advance all of the state holding vectors / datastructures so that we can move to the next timestep.
 
virtual void timestepSetup () override
 
virtual void execute (const ExecFlagType &) override
 Convenience function for performing execution of MOOSE systems.
 
virtual void outputStep (ExecFlagType) override
 Output the current step.
 
virtual void updateActiveObjects () override
 Update the active objects in the warehouses.
 
virtual void onTimestepEnd () override
 
virtual void computeIndicators () override
 
virtual void computeMarkers () override
 
virtual bool adaptMesh () override
 
virtual void addLineSearch (const InputParameters &) override
 add a MOOSE line search
 
 captureDump (addAuxKernel, "AuxKernels") captureDump(addAuxScalarKernel
 
AuxScalarKernels captureDump (addAuxVariable, "AuxVariables") captureDump(addBoundaryCondition
 
AuxScalarKernels BCs captureDump (addConstraint, "Constraints") captureDump(addConvergence
 
AuxScalarKernels BCs Convergence captureDump (addDamper, "Dampers") captureDump(addDGKernel
 
AuxScalarKernels BCs Convergence DGKernels captureDump (addDiracKernel, "DiracKernels") captureDump(addDistribution
 
AuxScalarKernels BCs Convergence DGKernels Distributions captureDump (addFunction, "Functions") captureDump(addFunctorMaterial
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials captureDump (addFVBC, "FVBCs") captureDump(addFVInitialCondition
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs captureDump (addFVInterfaceKernel, "FVInterfaceKernels") captureDump(addFVKernel
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels captureDump (addHDGKernel, "HDGKernels") captureDump(addIndicator
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators captureDump (addInitialCondition, "ICs") captureDump(addInterfaceKernel
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels captureDump (addKernel, "Kernels") captureDump(addKokkosAuxKernel
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels captureDump (addKokkosBoundaryCondition, "BCs") captureDump(addKokkosFunction
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions captureDump (addKokkosKernel, "Kernels") captureDump(addKokkosMaterial
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials captureDump (addKokkosNodalKernel, "NodalKernels") captureDump(addLinearFVBC
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs captureDump (addLinearFVKernel, "LinearFVKernels") captureDump(addMarker
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers captureDump (addMaterial, "Materials") captureDump(addMeshDivision
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions captureDump (addMultiApp, "MultiApps") captureDump(addNodalKernel
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels captureDump (addPostprocessor, "Postprocessors") captureDump(addPredictor
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor captureDump (addSampler, "Samplers") captureDump(addScalarKernel
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor ScalarKernels captureDump (addTransfer, "Transfers") captureDump(addTimeIntegrator
 
AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor ScalarKernels Executioner TimeIntegrators captureDumpUO (addUserObject, "UserObjects") captureDump(addVariable
 
virtual void addAuxVariable (const std::string &var_type, const std::string &var_name, InputParameters &params)
 Canonical method for adding an auxiliary variable.
 
virtual void addAuxVariable (const std::string &var_name, const libMesh::FEType &type, const std::set< SubdomainID > *const active_subdomains=NULL)
 
virtual void addVariable (const std::string &var_type, const std::string &var_name, InputParameters &params)
 Canonical method for adding a non-linear variable.
 
bool initialized () const
 
virtual libMesh::EquationSystems & es () override
 
virtual MooseMesh & mesh () override
 
virtual const MooseMesh & mesh () const override
 
const MooseMesh & mesh (bool use_displaced) const override
 
MooseMesh & mesh (bool use_displaced)
 
void setCoordSystem (const std::vector< SubdomainName > &blocks, const MultiMooseEnum &coord_sys)
 
void setAxisymmetricCoordAxis (const MooseEnum &rz_coord_axis)
 
void setCoupling (Moose::CouplingType type)
 Set the coupling between variables TODO: allow user-defined coupling.
 
Moose::CouplingType coupling () const
 
void setCouplingMatrix (std::unique_ptr< libMesh::CouplingMatrix > cm, const unsigned int nl_sys_num)
 Set custom coupling matrix.
 
void setCouplingMatrix (libMesh::CouplingMatrix *cm, const unsigned int nl_sys_num)
 
const libMesh::CouplingMatrix * couplingMatrix (const unsigned int nl_sys_num) const override
 The coupling matrix defining what blocks exist in the preconditioning matrix.
 
void setNonlocalCouplingMatrix ()
 Set custom coupling matrix for variables requiring nonlocal contribution.
 
bool areCoupled (const unsigned int ivar, const unsigned int jvar, const unsigned int nl_sys_num) const
 
bool hasUOAuxStateCheck () const
 Whether or not MOOSE will perform a user object/auxiliary kernel state check.
 
bool checkingUOAuxState () const
 Return a flag to indicate whether we are executing user objects and auxliary kernels for state check Note: This function can return true only when hasUOAuxStateCheck() returns true, i.e.
 
virtual bool checkResidualForNans () const override
 Whether to check residual for NaN/Inf values.
 
void setCheckResidualForNans (bool check_residual_for_nans)
 Setter for residual NaN/Inf checking.
 
void trustUserCouplingMatrix ()
 Whether to trust the user coupling matrix even if we want to do things like be paranoid and create a full coupling matrix.
 
std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & couplingEntries (const THREAD_ID tid, const unsigned int nl_sys_num)
 
std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & nonlocalCouplingEntries (const THREAD_ID tid, const unsigned int nl_sys_num)
 
const std::vector< std::pair< MooseVariableFieldBase *, MooseVariableScalar * > > & fieldScalarCouplingEntries (const THREAD_ID tid, const unsigned int nl_sys_num) const
 
virtual bool hasVariable (const std::string &var_name) const override
 Whether or not this problem has the variable.
 
bool hasSolverVariable (const std::string &var_name) const
 
virtual const MooseVariableFieldBase & getVariable (const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
 Returns the variable reference for requested variable which must be of the expected_var_type (Nonlinear vs.
 
virtual const MooseVariableFieldBase & getVariable (const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const=0
 Returns the variable reference for requested variable which must be of the expected_var_type (Nonlinear vs.
 
virtual MooseVariableFieldBase & getVariable (const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY)
 
MooseVariableFieldBase & getActualFieldVariable (const THREAD_ID tid, const std::string &var_name) override
 Returns the variable reference for requested MooseVariableField which may be in any system.
 
virtual MooseVariable & getStandardVariable (const THREAD_ID tid, const std::string &var_name) override
 Returns the variable reference for requested MooseVariable which may be in any system.
 
virtual VectorMooseVariable & getVectorVariable (const THREAD_ID tid, const std::string &var_name) override
 Returns the variable reference for requested VectorMooseVariable which may be in any system.
 
virtual ArrayMooseVariable & getArrayVariable (const THREAD_ID tid, const std::string &var_name) override
 Returns the variable reference for requested ArrayMooseVariable which may be in any system.
 
virtual bool hasScalarVariable (const std::string &var_name) const override
 Returns a Boolean indicating whether any system contains a variable with the name provided.
 
virtual MooseVariableScalar & getScalarVariable (const THREAD_ID tid, const std::string &var_name) override
 Returns the scalar variable reference from whichever system contains it.
 
virtual libMesh::System & getSystem (const std::string &var_name) override
 Returns the equation system containing the variable provided.
 
const RestartableEquationSystems & getRestartableEquationSystems () const
 Get the RestartableEquationSystems object.
 
virtual void setActiveElementalMooseVariables (const std::set< MooseVariableFEBase * > &moose_vars, const THREAD_ID tid) override
 Set the MOOSE variables to be reinited on each element.
 
virtual void clearActiveElementalMooseVariables (const THREAD_ID tid) override
 Clear the active elemental MooseVariableFEBase.
 
virtual void clearActiveFEVariableCoupleableMatrixTags (const THREAD_ID tid) override
 
virtual void clearActiveFEVariableCoupleableVectorTags (const THREAD_ID tid) override
 
virtual void setActiveFEVariableCoupleableVectorTags (std::set< TagID > &vtags, const THREAD_ID tid) override
 
virtual void setActiveFEVariableCoupleableMatrixTags (std::set< TagID > &mtags, const THREAD_ID tid) override
 
virtual void clearActiveScalarVariableCoupleableMatrixTags (const THREAD_ID tid) override
 
virtual void clearActiveScalarVariableCoupleableVectorTags (const THREAD_ID tid) override
 
virtual void setActiveScalarVariableCoupleableVectorTags (std::set< TagID > &vtags, const THREAD_ID tid) override
 
virtual void setActiveScalarVariableCoupleableMatrixTags (std::set< TagID > &mtags, const THREAD_ID tid) override
 
virtual void createQRules (libMesh::QuadratureType type, libMesh::Order order, libMesh::Order volume_order=libMesh::INVALID_ORDER, libMesh::Order face_order=libMesh::INVALID_ORDER, SubdomainID block=Moose::ANY_BLOCK_ID, bool allow_negative_qweights=true)
 
void bumpVolumeQRuleOrder (libMesh::Order order, SubdomainID block)
 Increases the element/volume quadrature order for the specified mesh block if and only if the current volume quadrature order is lower.
 
void bumpAllQRuleOrder (libMesh::Order order, SubdomainID block)
 
unsigned int getMaxQps () const
 
libMesh::Order getMaxScalarOrder () const
 
void checkNonlocalCoupling ()
 
void checkUserObjectJacobianRequirement (THREAD_ID tid)
 
void setVariableAllDoFMap (const std::vector< const MooseVariableFEBase * > &moose_vars)
 
const std::vector< const MooseVariableFEBase * > & getUserObjectJacobianVariables (const THREAD_ID tid) const
 
virtual Assembly & assembly (const THREAD_ID tid, const unsigned int sys_num) override
 
virtual const Assembly & assembly (const THREAD_ID tid, const unsigned int sys_num) const override
 
Moose::Kokkos::Assembly & kokkosAssembly ()
 
const Moose::Kokkos::Assembly & kokkosAssembly () const
 
virtual std::vector< VariableName > getVariableNames ()
 Returns a list of all the variables in the problem (both from the NL and Aux systems.
 
void checkDuplicatePostprocessorVariableNames ()
 
void customSetup (const ExecFlagType &exec_type) override
 
void residualSetup () override
 
void jacobianSetup () override
 
virtual void prepare (const Elem *elem, const THREAD_ID tid) override
 
virtual void prepare (const Elem *elem, unsigned int ivar, unsigned int jvar, const std::vector< dof_id_type > &dof_indices, const THREAD_ID tid) override
 
virtual void prepareFace (const Elem *elem, const THREAD_ID tid) override
 
virtual void setCurrentSubdomainID (const Elem *elem, const THREAD_ID tid) override
 
virtual void setNeighborSubdomainID (const Elem *elem, unsigned int side, const THREAD_ID tid) override
 
virtual void setNeighborSubdomainID (const Elem *elem, const THREAD_ID tid)
 
virtual void prepareAssembly (const THREAD_ID tid) override
 
virtual void prepareAssemblyNeighbor (const THREAD_ID tid)
 Begin a fresh neighbor accumulation phase by sizing and zeroing the neighbor blocks.
 
virtual void addGhostedElem (dof_id_type elem_id) override
 Will make sure that all dofs connected to elem_id are ghosted to this processor.
 
virtual void addGhostedBoundary (BoundaryID boundary_id) override
 Will make sure that all necessary elements from boundary_id are ghosted to this processor.
 
virtual void ghostGhostedBoundaries () override
 Causes the boundaries added using addGhostedBoundary to actually be ghosted.
 
virtual void sizeZeroes (unsigned int size, const THREAD_ID tid)
 
virtual bool reinitDirac (const Elem *elem, const THREAD_ID tid) override
 Returns true if the Problem has Dirac kernels it needs to compute on elem.
 
virtual void reinitElem (const Elem *elem, const THREAD_ID tid) override
 
virtual void reinitElemPhys (const Elem *elem, const std::vector< Point > &phys_points_in_elem, const THREAD_ID tid) override
 
void reinitElemFace (const Elem *elem, unsigned int side, BoundaryID, const THREAD_ID tid)
 
virtual void reinitElemFace (const Elem *elem, unsigned int side, const THREAD_ID tid) override
 
virtual void reinitLowerDElem (const Elem *lower_d_elem, const THREAD_ID tid, const std::vector< Point > *const pts=nullptr, const std::vector< Real > *const weights=nullptr) override
 
virtual void reinitNode (const Node *node, const THREAD_ID tid) override
 
virtual void reinitNodeFace (const Node *node, BoundaryID bnd_id, const THREAD_ID tid) override
 
virtual void reinitNeighbor (const Elem *elem, unsigned int side, const THREAD_ID tid) override
 
virtual void reinitNeighborPhys (const Elem *neighbor, unsigned int neighbor_side, const std::vector< Point > &physical_points, const THREAD_ID tid) override
 
virtual void reinitNeighborPhys (const Elem *neighbor, const std::vector< Point > &physical_points, const THREAD_ID tid) override
 
virtual void reinitElemNeighborAndLowerD (const Elem *elem, unsigned int side, const THREAD_ID tid) override
 
virtual void reinitScalars (const THREAD_ID tid, bool reinit_for_derivative_reordering=false) override
 fills the VariableValue arrays for scalar variables from the solution vector
 
virtual void reinitOffDiagScalars (const THREAD_ID tid) override
 
virtual void getDiracElements (std::set< const Elem * > &elems) override
 Fills "elems" with the elements that should be looped over for Dirac Kernels.
 
virtual void clearDiracInfo () override
 Gets called before Dirac Kernels are asked to add the points they are supposed to be evaluated in.
 
virtual void subdomainSetup (SubdomainID subdomain, const THREAD_ID tid)
 
virtual void neighborSubdomainSetup (SubdomainID subdomain, const THREAD_ID tid)
 
virtual void newAssemblyArray (std::vector< std::shared_ptr< SolverSystem > > &solver_systems)
 
virtual void initNullSpaceVectors (const InputParameters &parameters, std::vector< std::shared_ptr< NonlinearSystemBase > > &nl)
 
virtual void init () override
 
void initKokkos ()
 Construct Kokkos assembly and systems and allocate Kokkos material property storages.
 
virtual void setException (const std::string &message)
 Set an exception, which is stored at this point by toggling a member variable in this class, and which must be followed up with by a call to checkExceptionAndStopSolve().
 
virtual bool hasException ()
 Whether or not an exception has occurred.
 
virtual void checkExceptionAndStopSolve (bool print_message=true)
 Check to see if an exception has occurred on any processor and, if possible, force the solve to fail, which will result in the time step being cut.
 
virtual bool solverSystemConverged (const unsigned int solver_sys_num) override
 
virtual unsigned int nNonlinearIterations (const unsigned int nl_sys_num) const override
 
virtual unsigned int nLinearIterations (const unsigned int nl_sys_num) const override
 
virtual Real finalNonlinearResidual (const unsigned int nl_sys_num) const override
 
virtual bool computingPreSMOResidual (const unsigned int nl_sys_num) const override
 Returns true if the problem is in the process of computing it's initial residual.
 
virtual std::string solverTypeString (unsigned int solver_sys_num=0)
 Return solver type as a human readable string.
 
virtual bool startedInitialSetup ()
 Returns true if we are in or beyond the initialSetup stage.
 
virtual void onTimestepBegin () override
 
virtual Real & time () const
 
virtual Real & timeOld () const
 
virtual Real & timeOlder () const
 The time two steps back.
 
virtual int & timeStep () const
 
virtual Real & dt () const
 
virtual Real & dtOld () const
 
Real getTimeFromStateArg (const Moose::StateArg &state) const
 Returns the time associated with the requested state.
 
virtual void transient (bool trans)
 
virtual bool isTransient () const override
 
virtual void addTimeIntegrator (const std::string &type, const std::string &name, InputParameters &parameters)
 
virtual void addPredictor (const std::string &type, const std::string &name, InputParameters &parameters)
 
virtual void copySolutionsBackwards ()
 
void skipNextForwardSolutionCopyToOld ()
 Prevents the copy of the solution vector to the old solution vector in each system.
 
virtual void restoreSolutions ()
 
void backupGeometricSearchState ()
 Snapshot geometric search state (both on the regular and, if present, the displaced mesh) so it can be restored with restoreGeometricSearchState() if this step is later rejected.
 
void restoreGeometricSearchState ()
 Restore geometric search state captured by the most recent backupGeometricSearchState().
 
virtual void saveOldSolutions ()
 Allocate vectors and save old solutions into them.
 
virtual void restoreOldSolutions ()
 Restore old solutions from the backup vectors and deallocate them.
 
void needSolutionState (unsigned int oldest_needed, Moose::SolutionIterationType iteration_type)
 Declare that we need up to old (1) or older (2) solution states for a given type of iteration.
 
bool hasSolutionState (unsigned int state, Moose::SolutionIterationType iteration_type) const
 Whether we need up to old (1) or older (2) solution states for a given type of iteration.
 
virtual void postExecute ()
 Method called at the end of the simulation.
 
void forceOutput ()
 Indicates that the next call to outputStep should be forced.
 
virtual void initPetscOutputAndSomeSolverSettings ()
 Reinitialize PETSc output for proper linear/nonlinear iteration display.
 
Moose::PetscSupport::PetscOptions & getPetscOptions ()
 Retrieve a writable reference the PETSc options (used by PetscSupport)
 
void logAdd (const std::string &system, const std::string &name, const std::string &type, const InputParameters &params) const
 Output information about the object just added to the problem.
 
virtual void addFunction (const std::string &type, const std::string &name, InputParameters &parameters)
 
virtual bool hasFunction (const std::string &name, const THREAD_ID tid=0)
 
virtual Function & getFunction (const std::string &name, const THREAD_ID tid=0)
 
virtual void addKokkosFunction (const std::string &type, const std::string &name, InputParameters &parameters)
 Add a Kokkos function to the problem.
 
virtual bool hasKokkosFunction (const std::string &name) const
 Get whether a Kokkos function exists.
 
virtual Moose::Kokkos::Function getKokkosFunction (const std::string &name)
 Get a Kokkos function in an abstract type.
 
template<typename T >
T & getKokkosFunction (const std::string &name)
 Get a Kokkos function in a concrete type.
 
virtual void addMeshDivision (const std::string &type, const std::string &name, InputParameters &params)
 Add a MeshDivision.
 
MeshDivision & getMeshDivision (const std::string &name, const THREAD_ID tid=0) const
 Get a MeshDivision.
 
virtual void addConvergence (const std::string &type, const std::string &name, InputParameters &parameters)
 Adds a Convergence object.
 
virtual Convergence & getConvergence (const std::string &name, const THREAD_ID tid=0) const
 Gets a Convergence object.
 
virtual const std::vector< std::shared_ptr< Convergence > > & getConvergenceObjects (const THREAD_ID tid=0) const
 Gets the Convergence objects.
 
virtual bool hasConvergence (const std::string &name, const THREAD_ID tid=0) const
 Returns true if the problem has a Convergence object of the given name.
 
bool needToAddDefaultNonlinearConvergence () const
 Returns true if the problem needs to add the default nonlinear convergence.
 
bool needToAddDefaultMultiAppFixedPointConvergence () const
 Returns true if the problem needs to add the default fixed point convergence.
 
bool needToAddDefaultSteadyStateConvergence () const
 Returns true if the problem needs to add the default steady-state detection convergence.
 
void setNeedToAddDefaultNonlinearConvergence ()
 Sets _need_to_add_default_nonlinear_convergence to true.
 
void setNeedToAddDefaultMultiAppFixedPointConvergence ()
 Sets _need_to_add_default_multiapp_fixed_point_convergence to true.
 
void setNeedToAddDefaultSteadyStateConvergence ()
 Sets _need_to_add_default_steady_state_convergence to true.
 
bool hasSetMultiAppFixedPointConvergenceName () const
 Returns true if the problem has set the fixed point convergence name.
 
bool hasSetSteadyStateConvergenceName () const
 Returns true if the problem has set the steady-state detection convergence name.
 
virtual void addDefaultNonlinearConvergence (const InputParameters &params)
 Adds the default nonlinear Convergence associated with the problem.
 
virtual bool onlyAllowDefaultNonlinearConvergence () const
 Returns true if an error will result if the user supplies 'nonlinear_convergence'.
 
void addDefaultMultiAppFixedPointConvergence (const InputParameters &params)
 Adds the default fixed point Convergence associated with the problem.
 
void addDefaultSteadyStateConvergence (const InputParameters &params)
 Adds the default steady-state detection Convergence.
 
virtual void lineSearch ()
 execute MOOSE line search
 
LineSearch * getLineSearch () override
 getter for the MOOSE line search
 
virtual void addDistribution (const std::string &type, const std::string &name, InputParameters &parameters)
 The following functions will enable MOOSE to have the capability to import distributions.
 
virtual bool hasDistribution (const std::string &name) const
 
virtual Distribution & getDistribution (const std::string &name)
 
virtual void addSampler (const std::string &type, const std::string &name, InputParameters &parameters)
 The following functions will enable MOOSE to have the capability to import Samplers.
 
virtual Sampler & getSampler (const std::string &name, const THREAD_ID tid=0)
 
NonlinearSystemBase & getNonlinearSystemBase (const unsigned int sys_num)
 
const NonlinearSystemBase & getNonlinearSystemBase (const unsigned int sys_num) const
 
void setCurrentNonlinearSystem (const unsigned int nl_sys_num)
 
NonlinearSystemBase & currentNonlinearSystem ()
 
const NonlinearSystemBase & currentNonlinearSystem () const
 
virtual const SystemBase & systemBaseNonlinear (const unsigned int sys_num) const override
 Return the nonlinear system object as a base class reference given the system number.
 
virtual SystemBase & systemBaseNonlinear (const unsigned int sys_num) override
 
virtual const SystemBase & systemBaseSolver (const unsigned int sys_num) const override
 Return the solver system object as a base class reference given the system number.
 
virtual SystemBase & systemBaseSolver (const unsigned int sys_num) override
 
virtual const SystemBase & systemBaseAuxiliary () const override
 Return the auxiliary system object as a base class reference.
 
virtual SystemBase & systemBaseAuxiliary () override
 
virtual NonlinearSystem & getNonlinearSystem (const unsigned int sys_num)
 
virtual const SystemBase & getSystemBase (const unsigned int sys_num) const
 Get constant reference to a system in this problem.
 
virtual SystemBase & getSystemBase (const unsigned int sys_num)
 Get non-constant reference to a system in this problem.
 
SystemBase & getSystemBase (const std::string &sys_name)
 Get non-constant reference to a system in this problem.
 
LinearSystem & getLinearSystem (unsigned int sys_num)
 Get non-constant reference to a linear system.
 
const LinearSystem & getLinearSystem (unsigned int sys_num) const
 Get a constant reference to a linear system.
 
SolverSystem & getSolverSystem (unsigned int sys_num)
 Get non-constant reference to a solver system.
 
const SolverSystem & getSolverSystem (unsigned int sys_num) const
 Get a constant reference to a solver system.
 
void setCurrentLinearSystem (unsigned int sys_num)
 Set the current linear system pointer.
 
LinearSystem & currentLinearSystem ()
 Get a non-constant reference to the current linear system.
 
const LinearSystem & currentLinearSystem () const
 Get a constant reference to the current linear system.
 
virtual const SystemBase & systemBaseLinear (unsigned int sys_num) const override
 Get a constant base class reference to a linear system.
 
virtual SystemBase & systemBaseLinear (unsigned int sys_num) override
 Get a non-constant base class reference to a linear system.
 
virtual void addKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addHDGKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addNodalKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addScalarKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addBoundaryCondition (const std::string &bc_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosNodalKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosBoundaryCondition (const std::string &bc_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosLinearFVKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosLinearFVBC (const std::string &bc_name, const std::string &name, InputParameters &parameters)
 
virtual void addConstraint (const std::string &c_name, const std::string &name, InputParameters &parameters)
 
virtual void setInputParametersFEProblem (InputParameters &parameters)
 
virtual void addElementalFieldVariable (const std::string &var_type, const std::string &var_name, InputParameters &params)
 Add an elemental field variable for use in the adaptivity system.
 
virtual void addAuxArrayVariable (const std::string &var_name, const libMesh::FEType &type, unsigned int components, const std::set< SubdomainID > *const active_subdomains=NULL)
 
virtual void addAuxScalarVariable (const std::string &var_name, libMesh::Order order, Real scale_factor=1., const std::set< SubdomainID > *const active_subdomains=NULL)
 
virtual void addAuxKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addAuxScalarKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosAuxKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
AuxiliarySystem & getAuxiliarySystem ()
 
virtual void addDiracKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addDGKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addFVKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addLinearFVKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addFVBC (const std::string &fv_bc_name, const std::string &name, InputParameters &parameters)
 
virtual void addLinearFVBC (const std::string &fv_bc_name, const std::string &name, InputParameters &parameters)
 
virtual void addFVInterfaceKernel (const std::string &fv_ik_name, const std::string &name, InputParameters &parameters)
 
virtual void addInterfaceKernel (const std::string &kernel_name, const std::string &name, InputParameters &parameters)
 
virtual void addInitialCondition (const std::string &ic_name, const std::string &name, InputParameters &parameters)
 
virtual void addFVInitialCondition (const std::string &ic_name, const std::string &name, InputParameters &parameters)
 Add an initial condition for a finite volume variables.
 
void projectSolution ()
 
unsigned short getCurrentICState ()
 Retrieves the current initial condition state.
 
void projectInitialConditionOnCustomRange (libMesh::ConstElemRange &elem_range, ConstBndNodeRange &bnd_node_range, const std::optional< std::set< VariableName > > &target_vars=std::nullopt)
 Project initial conditions for custom elem_range and bnd_node_range This is needed when elements/boundary nodes are added to a specific subdomain at an intermediate step.
 
void projectFunctionOnCustomRange (ConstElemRange &elem_range, Number(*func)(const Point &, const libMesh::Parameters &, const std::string &, const std::string &), Gradient(*func_grad)(const Point &, const libMesh::Parameters &, const std::string &, const std::string &), const libMesh::Parameters &params, const std::vector< VariableName > &target_vars)
 Project a function onto a range of elements for a given variable.
 
virtual void addMaterial (const std::string &material_name, const std::string &name, InputParameters &parameters)
 
virtual void addMaterialHelper (std::vector< MaterialWarehouse * > warehouse, const std::string &material_name, const std::string &name, InputParameters &parameters)
 
virtual void addInterfaceMaterial (const std::string &material_name, const std::string &name, InputParameters &parameters)
 
virtual void addFunctorMaterial (const std::string &functor_material_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosMaterial (const std::string &material_name, const std::string &name, InputParameters &parameters)
 
void prepareMaterials (const std::unordered_set< unsigned int > &consumer_needed_mat_props, const SubdomainID blk_id, const THREAD_ID tid)
 Add the MooseVariables and the material properties that the current materials depend on to the dependency list.
 
void reinitMaterials (SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true)
 
void reinitMaterialsFace (SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
 reinit materials on element faces
 
void reinitMaterialsFaceOnBoundary (const BoundaryID boundary_id, const SubdomainID blk_id, const THREAD_ID tid, const bool swap_stateful=true, const std::deque< MaterialBase * > *const reinit_mats=nullptr)
 reinit materials on element faces on a boundary (internal or external) This specific routine helps us not reinit when don't need to
 
void reinitMaterialsNeighborOnBoundary (const BoundaryID boundary_id, const SubdomainID blk_id, const THREAD_ID tid, const bool swap_stateful=true, const std::deque< MaterialBase * > *const reinit_mats=nullptr)
 reinit materials on neighbor element (usually faces) on a boundary (internal or external) This specific routine helps us not reinit when don't need to
 
void reinitMaterialsNeighbor (SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
 reinit materials on the neighboring element face
 
void reinitMaterialsBoundary (BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
 reinit materials on a boundary
 
void reinitMaterialsInterface (BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true)
 
void prepareKokkosMaterials (const std::unordered_set< unsigned int > &consumer_needed_mat_props)
 
void reinitKokkosMaterials ()
 
virtual void swapBackMaterials (const THREAD_ID tid)
 
virtual void swapBackMaterialsFace (const THREAD_ID tid)
 
virtual void swapBackMaterialsNeighbor (const THREAD_ID tid)
 
void setActiveMaterialProperties (const std::unordered_set< unsigned int > &mat_prop_ids, const THREAD_ID tid)
 Record and set the material properties required by the current computing thread.
 
bool hasActiveMaterialProperties (const THREAD_ID tid) const
 Method to check whether or not a list of active material roperties has been set.
 
void clearActiveMaterialProperties (const THREAD_ID tid)
 Clear the active material properties.
 
template<typename T >
std::vector< std::shared_ptr< T > > addObject (const std::string &type, const std::string &name, InputParameters &parameters, const bool threaded=true, const std::string &var_param_name="variable")
 Method for creating and adding an object to the warehouse.
 
virtual void addPostprocessor (const std::string &pp_name, const std::string &name, InputParameters &parameters)
 
virtual void addVectorPostprocessor (const std::string &pp_name, const std::string &name, InputParameters &parameters)
 
virtual void addReporter (const std::string &type, const std::string &name, InputParameters &parameters)
 Add a Reporter object to the simulation.
 
virtual void addKokkosPostprocessor (const std::string &pp_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosVectorPostprocessor (const std::string &pp_name, const std::string &name, InputParameters &parameters)
 
virtual void addKokkosReporter (const std::string &type, const std::string &name, InputParameters &parameters)
 
const ReporterData & getReporterData () const
 Provides const access the ReporterData object.
 
ReporterData & getReporterData (ReporterData::WriteKey)
 Provides non-const access the ReporterData object that is used to store reporter values.
 
virtual std::vector< std::shared_ptr< UserObject > > addUserObject (const std::string &user_object_name, const std::string &name, InputParameters &parameters)
 
template<class T >
T & getUserObject (const std::string &name, unsigned int tid=0) const
 Get the user object by its name.
 
const UserObject & getUserObjectBase (const std::string &name, const THREAD_ID tid=0) const
 Get the user object by its name.
 
bool hasUserObject (const std::string &name) const
 Check if there if a user object of given name.
 
virtual void addKokkosUserObject (const std::string &user_object_name, const std::string &name, InputParameters &parameters)
 
template<class T >
const T & getKokkosUserObject (const std::string &name) const
 Get the Kokkos user object by its name.
 
bool hasKokkosUserObject (const std::string &name) const
 Check if there if a Kokkos user object of given name.
 
void checkUserObjectNameCollision (const std::string &name, const std::string &type) const
 Check for name collision between different user objects.
 
const Positions & getPositionsObject (const std::string &name) const
 Get the Positions object by its name.
 
virtual void addFVInterpolationMethod (const std::string &method_type, const std::string &name, InputParameters &parameters)
 Add an FV interpolation method.
 
virtual void addFVGradientMethod (const std::string &method_type, const std::string &name, InputParameters &parameters)
 Add an FV gradient method.
 
const FVGradientMethod & getFVGradientMethod (const GradientMethodName &name, const THREAD_ID tid=0) const
 Retrieve an FV gradient method.
 
bool hasFVGradientMethod (const GradientMethodName &name) const
 Check if an FV gradient method with a given name exists.
 
const FVInterpolationMethod & getFVInterpolationMethod (const InterpolationMethodName &name, const THREAD_ID tid=0) const
 Retrieve an FV interpolation method.
 
const FVFaceInterpolationMethod & getFVFaceInterpolationMethod (const InterpolationMethodName &name, const THREAD_ID tid=0) const
 Retrieve a scalar face interpolation method.
 
const FVAdvectedInterpolationMethod & getFVAdvectedInterpolationMethod (const InterpolationMethodName &name, const THREAD_ID tid=0) const
 Retrieve an advected interpolation method.
 
bool hasFVInterpolationMethod (const InterpolationMethodName &name) const
 Check if an FV interpolation method with a given name exists.
 
bool hasPostprocessorValueByName (const PostprocessorName &name) const
 Whether or not a Postprocessor value exists by a given name.
 
const Postprocessor & getPostprocessorObjectByName (const PostprocessorName &object_name, const THREAD_ID tid=0) const
 Return the Postprocessor object registered under the supplied object name.
 
const PostprocessorValue & getPostprocessorValueByName (const PostprocessorName &name, std::size_t t_index=0) const
 Get a read-only reference to the value associated with a Postprocessor that exists.
 
void setPostprocessorValueByName (const PostprocessorName &name, const PostprocessorValue &value, std::size_t t_index=0)
 Set the value of a PostprocessorValue.
 
bool hasPostprocessor (const std::string &name) const
 Deprecated.
 
const VectorPostprocessorValue & getVectorPostprocessorValueByName (const std::string &object_name, const std::string &vector_name, std::size_t t_index=0) const
 Get a read-only reference to the vector value associated with the VectorPostprocessor.
 
void setVectorPostprocessorValueByName (const std::string &object_name, const std::string &vector_name, const VectorPostprocessorValue &value, std::size_t t_index=0)
 Set the value of a VectorPostprocessor vector.
 
const VectorPostprocessor & getVectorPostprocessorObjectByName (const std::string &object_name, const THREAD_ID tid=0) const
 Return the VPP object given the name.
 
virtual void addDamper (const std::string &damper_name, const std::string &name, InputParameters &parameters)
 
void setupDampers ()
 
bool hasDampers ()
 Whether or not this system has dampers.
 
virtual void addIndicator (const std::string &indicator_name, const std::string &name, InputParameters &parameters)
 
virtual void addMarker (const std::string &marker_name, const std::string &name, InputParameters &parameters)
 
virtual void addMultiApp (const std::string &multi_app_name, const std::string &name, InputParameters &parameters)
 Add a MultiApp to the problem.
 
std::shared_ptr< MultiApp > getMultiApp (const std::string &multi_app_name) const
 Get a MultiApp object by name.
 
std::vector< std::shared_ptr< Transfer > > getTransfers (ExecFlagType type, Transfer::DIRECTION direction) const
 Get Transfers by ExecFlagType and direction.
 
std::vector< std::shared_ptr< Transfer > > getTransfers (Transfer::DIRECTION direction) const
 
const ExecuteMooseObjectWarehouse< Transfer > & getMultiAppTransferWarehouse (Transfer::DIRECTION direction) const
 Return the complete warehouse for MultiAppTransfer object for the given direction.
 
void execMultiAppTransfers (ExecFlagType type, Transfer::DIRECTION direction, const MultiAppName &source_app="")
 Execute MultiAppTransfers associated with execution flag and direction.
 
bool execMultiApps (ExecFlagType type, bool auto_advance=true)
 Execute the MultiApps associated with the ExecFlagType.
 
unsigned int numConcurrentMultiApps () const
 
void partitionConcurrentMultiApps ()
 Assign each multiapp that shares an 'execution_order_group' with others a disjoint subset of the ranks so that they can be solved concurrently (at most one child app per rank at a time).
 
void finalizeMultiApps ()
 
void incrementMultiAppTStep (ExecFlagType type)
 Advance the MultiApps t_step (incrementStepOrReject) associated with the ExecFlagType.
 
void advanceMultiApps (ExecFlagType type)
 Deprecated method; use finishMultiAppStep and/or incrementMultiAppTStep depending on your purpose.
 
void finishMultiAppStep (ExecFlagType type, bool recurse_through_multiapp_levels=false)
 Finish the MultiApp time step (endStep, postStep) associated with the ExecFlagType.
 
void backupMultiApps (ExecFlagType type)
 Backup the MultiApps associated with the ExecFlagType.
 
void restoreMultiApps (ExecFlagType type, bool force=false)
 Restore the MultiApps associated with the ExecFlagType.
 
Real computeMultiAppsDT (ExecFlagType type)
 Find the smallest timestep over all MultiApps.
 
virtual void addTransfer (const std::string &transfer_name, const std::string &name, InputParameters &parameters)
 Add a Transfer to the problem.
 
Real computeResidualL2Norm (NonlinearSystemBase &sys)
 Computes the residual of a nonlinear system using whatever is sitting in the current solution vector then returns the L2 norm.
 
Real computeResidualL2Norm (LinearSystem &sys)
 Computes the residual of a linear system using whatever is sitting in the current solution vector then returns the L2 norm.
 
virtual Real computeResidualL2Norm ()
 Computes the residual using whatever is sitting in the current solution vector then returns the L2 norm.
 
virtual void computeResidualSys (libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual)
 This function is called by Libmesh to form a residual.
 
void computeResidual (libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual)
 This function is called by Libmesh to form a residual.
 
virtual void computeResidual (const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, const unsigned int nl_sys_num)
 Form a residual with default tags (nontime, time, residual).
 
void computeResidualAndJacobian (const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, libMesh::SparseMatrix< libMesh::Number > &jacobian)
 Form a residual and Jacobian with default tags.
 
virtual void computeResidualTag (const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, TagID tag)
 Form a residual vector for a given tag.
 
virtual void computeResidualType (const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, TagID tag)
 Form a residual vector for a given tag and "residual" tag.
 
virtual void computeResidualInternal (const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, const std::set< TagID > &tags)
 Form a residual vector for a set of tags.
 
virtual void computeResidualTags (const std::set< TagID > &tags)
 Form multiple residual vectors and each is associated with one tag.
 
virtual void computeJacobianSys (libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian)
 Form a Jacobian matrix.
 
virtual void computeJacobian (const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian, const unsigned int nl_sys_num)
 Form a Jacobian matrix with the default tag (system).
 
virtual void computeJacobianTag (const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian, TagID tag)
 Form a Jacobian matrix for a given tag.
 
virtual void computeJacobianInternal (const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian, const std::set< TagID > &tags)
 Form a Jacobian matrix for multiple tags.
 
virtual void computeJacobianTags (const std::set< TagID > &tags)
 Form multiple matrices, and each is associated with a tag.
 
virtual void computeJacobianBlocks (std::vector< JacobianBlock * > &blocks, const unsigned int nl_sys_num)
 Computes several Jacobian blocks simultaneously, summing their contributions into smaller preconditioning matrices.
 
virtual void computeJacobianBlock (libMesh::SparseMatrix< libMesh::Number > &jacobian, libMesh::System &precond_system, unsigned int ivar, unsigned int jvar)
 Really not a good idea to use this.
 
virtual void computeLinearSystemSys (libMesh::LinearImplicitSystem &sys, libMesh::SparseMatrix< libMesh::Number > &system_matrix, NumericVector< libMesh::Number > &rhs, const bool compute_gradients=true)
 Assemble both the right hand side and the system matrix of a given linear system.
 
void computeLinearSystemTags (const NumericVector< libMesh::Number > &soln, const std::set< TagID > &vector_tags, const std::set< TagID > &matrix_tags, const bool compute_gradients=true)
 Assemble the current linear system given a set of vector and matrix tags.
 
virtual Real computeDamping (const NumericVector< libMesh::Number > &soln, const NumericVector< libMesh::Number > &update)
 
virtual bool shouldUpdateSolution ()
 Check to see whether the problem should update the solution.
 
virtual bool updateSolution (NumericVector< libMesh::Number > &vec_solution, NumericVector< libMesh::Number > &ghosted_solution)
 Update the solution.
 
virtual void predictorCleanup (NumericVector< libMesh::Number > &ghosted_solution)
 Perform cleanup tasks after application of predictor to solution vector.
 
virtual void computeBounds (libMesh::NonlinearImplicitSystem &sys, NumericVector< libMesh::Number > &lower, NumericVector< libMesh::Number > &upper)
 
virtual void computeNearNullSpace (libMesh::NonlinearImplicitSystem &sys, std::vector< NumericVector< libMesh::Number > * > &sp)
 
virtual void computeNullSpace (libMesh::NonlinearImplicitSystem &sys, std::vector< NumericVector< libMesh::Number > * > &sp)
 
virtual void computeTransposeNullSpace (libMesh::NonlinearImplicitSystem &sys, std::vector< NumericVector< libMesh::Number > * > &sp)
 
virtual void computePostCheck (libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &old_soln, NumericVector< libMesh::Number > &search_direction, NumericVector< libMesh::Number > &new_soln, bool &changed_search_direction, bool &changed_new_soln)
 
virtual void computeIndicatorsAndMarkers ()
 
virtual void addResidual (const THREAD_ID tid) override
 
virtual void addResidualNeighbor (const THREAD_ID tid) override
 
virtual void addResidualLower (const THREAD_ID tid) override
 
virtual void addResidualScalar (const THREAD_ID tid=0)
 
virtual void cacheResidual (const THREAD_ID tid) override
 
virtual void cacheResidualNeighbor (const THREAD_ID tid) override
 
virtual void addCachedResidual (const THREAD_ID tid) override
 
virtual void addCachedResidualDirectly (NumericVector< libMesh::Number > &residual, const THREAD_ID tid)
 Allows for all the residual contributions that are currently cached to be added directly into the vector passed in.
 
virtual void setResidual (NumericVector< libMesh::Number > &residual, const THREAD_ID tid) override
 
virtual void setResidual (libMesh::NumericVector< libMesh::Number > &residual, const THREAD_ID tid)=0
 
virtual void setResidualNeighbor (NumericVector< libMesh::Number > &residual, const THREAD_ID tid) override
 
virtual void setResidualNeighbor (libMesh::NumericVector< libMesh::Number > &residual, const THREAD_ID tid)=0
 
virtual void addJacobian (const THREAD_ID tid) override
 
virtual void addJacobianNeighbor (const THREAD_ID tid) override
 
virtual void addJacobianNeighbor (libMesh::SparseMatrix< libMesh::Number > &jacobian, unsigned int ivar, unsigned int jvar, const DofMap &dof_map, std::vector< dof_id_type > &dof_indices, std::vector< dof_id_type > &neighbor_dof_indices, const std::set< TagID > &tags, const THREAD_ID tid) override
 
virtual void addJacobianNeighbor (libMesh::SparseMatrix< libMesh::Number > &jacobian, unsigned int ivar, unsigned int jvar, const libMesh::DofMap &dof_map, std::vector< dof_id_type > &dof_indices, std::vector< dof_id_type > &neighbor_dof_indices, const std::set< TagID > &tags, const THREAD_ID tid)=0
 
virtual void addJacobianNeighborLowerD (const THREAD_ID tid) override
 
virtual void addJacobianLowerD (const THREAD_ID tid) override
 
virtual void addJacobianBlockTags (libMesh::SparseMatrix< libMesh::Number > &jacobian, unsigned int ivar, unsigned int jvar, const DofMap &dof_map, std::vector< dof_id_type > &dof_indices, const std::set< TagID > &tags, const THREAD_ID tid)
 
virtual void addJacobianScalar (const THREAD_ID tid=0)
 
virtual void addJacobianOffDiagScalar (unsigned int ivar, const THREAD_ID tid=0)
 
virtual void cacheJacobian (const THREAD_ID tid) override
 
virtual void cacheJacobianNeighbor (const THREAD_ID tid) override
 
virtual void addCachedJacobian (const THREAD_ID tid) override
 
virtual void prepareShapes (unsigned int var, const THREAD_ID tid) override
 
virtual void prepareFaceShapes (unsigned int var, const THREAD_ID tid) override
 
virtual void prepareNeighborShapes (unsigned int var, const THREAD_ID tid) override
 
virtual void addDisplacedProblem (std::shared_ptr< DisplacedProblem > displaced_problem)
 
virtual std::shared_ptr< const DisplacedProblem > getDisplacedProblem () const
 
virtual std::shared_ptr< DisplacedProblem > getDisplacedProblem ()
 
virtual void updateGeomSearch (GeometricSearchData::GeometricSearchType type=GeometricSearchData::ALL) override
 Update this object's geometric search data as well as the displaced problem's if it exists.
 
virtual void updateMortarMesh ()
 
void createMortarInterface (const std::pair< BoundaryID, BoundaryID > &primary_secondary_boundary_pair, const std::pair< SubdomainID, SubdomainID > &primary_secondary_subdomain_pair, bool on_displaced, bool periodic, const bool debug, const bool correct_edge_dropping, const Real minimum_projection_angle, const Mortar3DSubpatchPlane mortar_3d_subpatch_plane, const MooseEnum &triangulation, const bool triangulate_triangles, const Mortar3DQuadraturePointMapping mortar_3d_qp_mapping=Mortar3DQuadraturePointMapping::NORMAL_PROJECTION)
 
const std::unordered_map< std::pair< BoundaryID, BoundaryID >, MortarInterfaceConfig > & getMortarInterfaces (bool on_displaced) const
 
virtual void possiblyRebuildGeomSearchPatches ()
 
virtual GeometricSearchData & geomSearchData () override
 
void setRestartFile (const std::string &file_name)
 Communicate to the Resurector the name of the restart filer.
 
const MaterialPropertyRegistry & getMaterialPropertyRegistry () const
 
const InitialConditionWarehouse & getInitialConditionWarehouse () const
 Return InitialCondition storage.
 
const FVInitialConditionWarehouse & getFVInitialConditionWarehouse () const
 Return FVInitialCondition storage.
 
SolverParams & solverParams (unsigned int solver_sys_num=0)
 Get the solver parameters.
 
const SolverParams & solverParams (unsigned int solver_sys_num=0) const
 const version
 
Adaptivity & adaptivity ()
 
virtual void initialAdaptMesh ()
 
unsigned int getNumCyclesCompleted ()
 
bool hasInitialAdaptivity () const
 Return a Boolean indicating whether initial AMR is turned on.
 
bool hasInitialAdaptivity () const
 Return a Boolean indicating whether initial AMR is turned on.
 
void initXFEM (std::shared_ptr< XFEMInterface > xfem)
 Create XFEM controller object.
 
std::shared_ptr< XFEMInterface > getXFEM ()
 Get a pointer to the XFEM controller object.
 
bool haveXFEM ()
 Find out whether the current analysis is using XFEM.
 
virtual bool updateMeshXFEM ()
 Update the mesh due to changing XFEM cuts.
 
virtual bool allowMeshContractionAfterMeshChanged () const
 Whether meshChanged() should allow the mesh to be contracted (deletes children of coarsened elements and renumbers nodes and elements).
 
virtual void meshChanged (bool intermediate_change, bool contract_mesh, bool clean_refinement_flags)
 Update data after a mesh change.
 
void notifyWhenMeshChanges (MeshChangedInterface *mci)
 Register an object that derives from MeshChangedInterface to be notified when the mesh changes.
 
void notifyWhenMeshDisplaces (MeshDisplacedInterface *mdi)
 Register an object that derives from MeshDisplacedInterface to be notified when the displaced mesh gets updated.
 
void initElementStatefulProps (const libMesh::ConstElemRange &elem_range, const bool threaded)
 Initialize stateful properties for elements in a specific elem_range This is needed when elements/boundary nodes are added to a specific subdomain at an intermediate step.
 
void initKokkosStatefulProps ()
 
virtual void checkProblemIntegrity ()
 Method called to perform a series of sanity checks before a simulation is run.
 
void registerRandomInterface (RandomInterface &random_interface, const std::string &name)
 
void setConstJacobian (bool state)
 Set flag that Jacobian is constant (for optimization purposes)
 
void setKernelCoverageCheck (CoverageCheckMode mode)
 Set flag to indicate whether kernel coverage checks should be performed.
 
void setKernelCoverageCheck (bool flag)
 Set flag to indicate whether kernel coverage checks should be performed.
 
void setMaterialCoverageCheck (CoverageCheckMode mode)
 Set flag to indicate whether material coverage checks should be performed.
 
void setMaterialCoverageCheck (bool flag)
 Set flag to indicate whether material coverage checks should be performed.
 
void setParallelBarrierMessaging (bool flag)
 Toggle parallel barrier messaging (defaults to on).
 
void setVerboseProblem (bool verbose)
 Make the problem be verbose.
 
bool verboseMultiApps () const
 Whether or not to use verbose printing for MultiApps.
 
void parentOutputPositionChanged ()
 Calls parentOutputPositionChanged() on all sub apps.
 
unsigned int subspaceDim (const std::string &prefix) const
 Dimension of the subspace spanned by vectors with a given prefix.
 
const MooseObjectWarehouse< Function > & getFunctionWarehouse ()
 
const MaterialWarehouse & getMaterialWarehouse () const
 
const MaterialWarehouse & getRegularMaterialsWarehouse () const
 
const MaterialWarehouse & getDiscreteMaterialWarehouse () const
 
const MaterialWarehouse & getInterfaceMaterialsWarehouse () const
 
const MaterialWarehouse & getKokkosMaterialsWarehouse () const
 
std::shared_ptr< MaterialBase > getMaterial (std::string name, Moose::MaterialDataType type, const THREAD_ID tid=0, bool no_warn=false)
 Return a pointer to a MaterialBase object.
 
MaterialData & getMaterialData (Moose::MaterialDataType type, const THREAD_ID tid=0, const MooseObject *object=nullptr) const
 
MaterialData & getKokkosMaterialData (Moose::MaterialDataType type, const MooseObject *object=nullptr) const
 
const std::set< const MooseObject * > & getMaterialPropertyStorageConsumers (Moose::MaterialDataType type) const
 
const std::set< const MooseObject * > & getKokkosMaterialPropertyStorageConsumers (Moose::MaterialDataType type) const
 
bool restoreOriginalNonzeroPattern () const
 
bool errorOnJacobianNonzeroReallocation () const
 Will return True if the user wants to get an error when a nonzero is reallocated in the Jacobian by PETSc.
 
void setErrorOnJacobianNonzeroReallocation (bool state)
 
bool preserveMatrixSparsityPattern () const
 Will return True if the executioner in use requires preserving the sparsity pattern of the matrices being formed during the solve.
 
void setPreserveMatrixSparsityPattern (bool preserve)
 Set whether the sparsity pattern of the matrices being formed during the solve (usually the Jacobian) should be preserved.
 
bool ignoreZerosInJacobian () const
 Will return true if zeros in the Jacobian are to be dropped from the sparsity pattern.
 
void setIgnoreZerosInJacobian (bool state)
 Set whether the zeros in the Jacobian should be dropped from the sparsity pattern.
 
bool acceptInvalidSolution () const
 Whether or not to accept the solution based on its invalidity.
 
bool allowInvalidSolution () const
 Whether to accept / allow an invalid solution.
 
bool showInvalidSolutionConsole () const
 Whether or not to print out the invalid solutions summary table in console.
 
bool immediatelyPrintInvalidSolution () const
 Whether or not the solution invalid warnings are printed out immediately.
 
bool hasTimeIntegrator () const
 Returns whether or not this Problem has a TimeIntegrator.
 
virtual void executeAllObjects (const ExecFlagType &exec_type)
 
virtual Executor & getExecutor (const std::string &name)
 
virtual void computeUserObjects (const ExecFlagType &type, const Moose::AuxGroup &group)
 Call compute methods on UserObjects.
 
virtual void computeUserObjectByName (const ExecFlagType &type, const Moose::AuxGroup &group, const std::string &name)
 Compute an user object with the given name.
 
void needsPreviousNewtonIteration (bool state)
 Set a flag that indicated that user required values for the previous Newton iterate.
 
bool needsPreviousNewtonIteration () const
 Check to see whether we need to compute the variable values of the previous Newton iterate.
 
void needsPreviousMultiAppFixedPointIterationSolution (bool needed, const unsigned int solver_sys_num)
 Set a flag that indicated that user required values for the previous multiapp fixed point iterate for the solver systems (not auxiliary)
 
bool needsPreviousMultiAppFixedPointIterationSolution (const unsigned int solver_sys_num) const
 Check to see whether we need to compute the variable values of the previous multiapp fixed point iteration for the solver systems (not auxiliary)
 
void needsPreviousMultiAppFixedPointIterationAuxiliary (bool state)
 Set a flag that indicated that user required values for the previous multiapp fixed point iterate for the auxiliary system.
 
bool needsPreviousMultiAppFixedPointIterationAuxiliary () const
 Check to see whether we need to compute the variable values of the previous multiapp fixed point iteration for the auxiliary system.
 
void needsPreviousMultiSystemFixedPointIterationSolution (bool needed, const unsigned int solver_sys_num)
 Set a flag that indicates that user requires values for the previous multi-system fixed point iterate for the solver systems (not auxiliary)
 
bool needsPreviousMultiSystemFixedPointIterationSolution (const unsigned int solver_sys_num) const
 Check to see whether we need to compute the variable values of the previous multi-system fixed point iteration for the solver systems (not auxiliary)
 
void needsPreviousMultiSystemFixedPointIterationAuxiliary (bool state)
 Set a flag that indicates that user requires values for the previous multi-system fixed point iterate for the auxiliary system.
 
bool needsPreviousMultiSystemFixedPointIterationAuxiliary () const
 Check to see whether we need to compute the variable values of the previous multi-system fixed point iteration for the auxiliary system.
 
ExecuteMooseObjectWarehouse< Control > & getControlWarehouse ()
 Reference to the control logic warehouse.
 
void executeControls (const ExecFlagType &exec_type)
 Performs setup and execute calls for Control objects.
 
void executeSamplers (const ExecFlagType &exec_type)
 Performs setup and execute calls for Sampler objects.
 
void reportMooseObjectDependency (MooseObject *a, MooseObject *b)
 Register a MOOSE object dependency so we can either order operations properly or report when we cannot.
 
ExecuteMooseObjectWarehouse< MultiApp > & getMultiAppWarehouse ()
 
bool hasJacobian () const
 Returns _has_jacobian.
 
bool constJacobian () const
 Returns _const_jacobian (whether a MOOSE object has specified that the Jacobian is the same as the previous time it was computed)
 
void addOutput (const std::string &, const std::string &, InputParameters &)
 Adds an Output object.
 
TheWarehouse & theWarehouse () const
 
void setSNESMFReuseBase (bool reuse, bool set_by_user)
 If or not to reuse the base vector for matrix-free calculation.
 
bool useSNESMFReuseBase ()
 Return a flag that indicates if we are reusing the vector base.
 
void skipExceptionCheck (bool skip_exception_check)
 Set a flag that indicates if we want to skip exception and stop solve.
 
bool isSNESMFReuseBaseSetbyUser ()
 Return a flag to indicate if _snesmf_reuse_base is set by users.
 
bool & petscOptionsInserted ()
 If PETSc options are already inserted.
 
PetscOptions & petscOptionsDatabase ()
 
virtual void setUDotRequested (const bool u_dot_requested)
 Set boolean flag to true to store solution time derivative.
 
virtual void setUDotDotRequested (const bool u_dotdot_requested)
 Set boolean flag to true to store solution second time derivative.
 
virtual void setUDotOldRequested (const bool u_dot_old_requested)
 Set boolean flag to true to store old solution time derivative.
 
virtual void setUDotDotOldRequested (const bool u_dotdot_old_requested)
 Set boolean flag to true to store old solution second time derivative.
 
virtual bool uDotRequested ()
 Get boolean flag to check whether solution time derivative needs to be stored.
 
virtual bool uDotDotRequested ()
 Get boolean flag to check whether solution second time derivative needs to be stored.
 
virtual bool uDotOldRequested ()
 Get boolean flag to check whether old solution time derivative needs to be stored.
 
virtual bool uDotDotOldRequested ()
 Get boolean flag to check whether old solution second time derivative needs to be stored.
 
void haveADObjects (bool have_ad_objects) override
 Method for setting whether we have any ad objects.
 
virtual void haveADObjects (bool have_ad_objects)
 Method for setting whether we have any ad objects.
 
bool haveADObjects () const
 Method for reading wehther we have any ad objects.
 
bool shouldSolve () const
 
const MortarInterfaceWarehouse & mortarData () const
 Returns the mortar data object.
 
MortarInterfaceWarehouse & mortarData ()
 
virtual bool hasNeighborCoupling () const
 Whether the simulation has neighbor coupling.
 
virtual bool hasMortarCoupling () const
 Whether the simulation has mortar coupling.
 
void computingNonlinearResid (bool computing_nonlinear_residual) final
 Set whether or not the problem is in the process of computing the nonlinear residual.
 
bool computingNonlinearResid () const
 Returns true if the problem is in the process of computing the nonlinear residual.
 
virtual void computingNonlinearResid (const bool computing_nonlinear_residual)
 Set whether or not the problem is in the process of computing the nonlinear residual.
 
void setCurrentlyComputingResidual (bool currently_computing_residual) final
 Set whether or not the problem is in the process of computing the residual.
 
void numGridSteps (unsigned int num_grid_steps)
 Set the number of steps in a grid sequences.
 
void uniformRefine ()
 uniformly refine the problem mesh(es).
 
void automaticScaling (bool automatic_scaling) override
 Automatic scaling setter.
 
virtual void automaticScaling (bool automatic_scaling)
 Automatic scaling setter.
 
bool automaticScaling () const
 Automatic scaling getter.
 
virtual void reinitElemFaceRef (const Elem *elem, unsigned int side, Real tolerance, const std::vector< Point > *const pts, const std::vector< Real > *const weights=nullptr, const THREAD_ID tid=0) override
 reinitialize FE objects on a given element on a given side at a given set of reference points and then compute variable data.
 
virtual void reinitNeighborFaceRef (const Elem *neighbor_elem, unsigned int neighbor_side, Real tolerance, const std::vector< Point > *const pts, const std::vector< Real > *const weights=nullptr, const THREAD_ID tid=0) override
 reinitialize FE objects on a given neighbor element on a given side at a given set of reference points and then compute variable data.
 
bool fvBCsIntegrityCheck () const
 
void fvBCsIntegrityCheck (bool fv_bcs_integrity_check)
 
bool sideUOInterfaceMatPropIntegrityCheck () const
 
void getFVMatsAndDependencies (SubdomainID block_id, std::vector< std::shared_ptr< MaterialBase > > &face_materials, std::vector< std::shared_ptr< MaterialBase > > &neighbor_materials, std::set< MooseVariableFieldBase * > &variables, const THREAD_ID tid)
 Get the materials and variables potentially needed for FV.
 
void resizeMaterialData (Moose::MaterialDataType data_type, unsigned int nqp, const THREAD_ID tid)
 Resize material data.
 
bool haveDisplaced () const override final
 Whether we have a displaced problem in our simulation.
 
bool hasLinearConvergenceObjects () const
 Whether we have linear convergence objects.
 
void setNonlinearConvergenceNames (const std::vector< ConvergenceName > &convergence_names)
 Sets the nonlinear convergence object name(s) if there is one.
 
void setLinearConvergenceNames (const std::vector< ConvergenceName > &convergence_names)
 Sets the linear convergence object name(s) if there is one.
 
void setMultiAppFixedPointConvergenceName (const ConvergenceName &convergence_name)
 Sets the MultiApp fixed point convergence object name if there is one.
 
void setSteadyStateConvergenceName (const ConvergenceName &convergence_name)
 Sets the steady-state detection convergence object name if there is one.
 
const std::vector< ConvergenceName > & getNonlinearConvergenceNames () const
 Gets the nonlinear system convergence object name(s).
 
const std::vector< ConvergenceName > & getLinearConvergenceNames () const
 Gets the linear convergence object name(s).
 
const ConvergenceName & getMultiAppFixedPointConvergenceName () const
 Gets the MultiApp fixed point convergence object name.
 
const ConvergenceName & getSteadyStateConvergenceName () const
 Gets the steady-state detection convergence object name.
 
void computingScalingJacobian (bool computing_scaling_jacobian)
 Setter for whether we're computing the scaling jacobian.
 
bool computingScalingJacobian () const override final
 Getter for whether we're computing the scaling jacobian.
 
void computingScalingResidual (bool computing_scaling_residual)
 Setter for whether we're computing the scaling residual.
 
bool computingScalingResidual () const override final
 
MooseAppCoordTransform & coordTransform ()
 
virtual std::size_t numNonlinearSystems () const override
 
virtual std::size_t numLinearSystems () const override
 
virtual std::size_t numSolverSystems () const override
 
bool isSolverSystemNonlinear (const unsigned int sys_num)
 Check if the solver system is nonlinear.
 
virtual unsigned int currentNlSysNum () const override
 
virtual unsigned int currentLinearSysNum () const override
 
virtual unsigned int nlSysNum (const NonlinearSystemName &nl_sys_name) const override
 
unsigned int linearSysNum (const LinearSystemName &linear_sys_name) const override
 
unsigned int solverSysNum (const SolverSystemName &solver_sys_name) const override
 
unsigned int systemNumForVariable (const VariableName &variable_name) const
 
bool getFailNextNonlinearConvergenceCheck () const
 Whether it will skip further residual evaluations and fail the next nonlinear convergence check(s)
 
bool getFailNextSystemConvergenceCheck () const
 Whether it will fail the next system convergence check(s), triggering failed step behavior.
 
void setFailNextNonlinearConvergenceCheck ()
 Skip further residual evaluations and fail the next nonlinear convergence check(s)
 
void setFailNextSystemConvergenceCheck ()
 Tell the problem that the system(s) cannot be considered converged next time convergence is checked.
 
void resetFailNextNonlinearConvergenceCheck ()
 Tell the problem that the nonlinear convergence check(s) may proceed as normal.
 
void resetFailNextSystemConvergenceCheck ()
 Tell the problem that the system convergence check(s) may proceed as normal.
 
void setExecutionPrinting (const ExecFlagEnum &print_exec)
 
bool shouldPrintExecution (const THREAD_ID tid) const
 Check whether the problem should output execution orders at this time.
 
void reinitMortarUserObjects (BoundaryID primary_boundary_id, BoundaryID secondary_boundary_id, bool displaced)
 Call reinit on mortar user objects with matching primary boundary ID, secondary boundary ID, and displacement characteristics.
 
virtual const std::vector< VectorTag > & currentResidualVectorTags () const override
 Return the residual vector tags we are currently computing.
 
void setCurrentResidualVectorTags (const std::set< TagID > &vector_tags)
 Set the current residual vector tag data structure based on the passed in tag IDs.
 
void clearCurrentResidualVectorTags ()
 Clear the current residual vector tag data structure.
 
void clearCurrentJacobianMatrixTags ()
 Clear the current Jacobian matrix tag data structure ... if someone creates it.
 
virtual void needFV () override
 marks this problem as including/needing finite volume functionality.
 
virtual bool haveFV () const override
 returns true if this problem includes/needs finite volume functionality.
 
virtual bool hasNonlocalCoupling () const override
 Whether the simulation has active nonlocal coupling which should be accounted for in the Jacobian.
 
bool identifyVariableGroupsInNL () const
 Whether to identify variable groups in nonlinear systems.
 
virtual void setCurrentLowerDElem (const Elem *const lower_d_elem, const THREAD_ID tid) override
 Set the current lower dimensional element.
 
virtual void setCurrentBoundaryID (BoundaryID bid, const THREAD_ID tid) override
 sets the current boundary ID in assembly
 
const std::vector< NonlinearSystemName > & getNonlinearSystemNames () const
 
const std::vector< LinearSystemName > & getLinearSystemNames () const
 
const std::vector< SolverSystemName > & getSolverSystemNames () const
 
virtual const libMesh::CouplingMatrix & nonlocalCouplingMatrix (const unsigned i) const override
 
virtual bool checkNonlocalCouplingRequirement () const override
 
virtual Moose::FEBackend feBackend () const
 
void createTagMatrices (CreateTaggedMatrixKey)
 
bool useHashTableMatrixAssembly () const
 
bool hasKokkosObjects () const
 
bool hasKokkosResidualObjects () const
 
void addKokkosMeshInitializationHook (std::function< void()> function)
 Add a function hook that needs to be called after Kokkos mesh initialization.
 
const bool & currentlyComputingResidual () const
 Returns true if the problem is in the process of computing the residual.
 
virtual bool nlConverged (const unsigned int nl_sys_num)
 
virtual bool converged (const unsigned int sys_num)
 Eventually we want to convert this virtual over to taking a solver system number argument.
 
bool defaultGhosting ()
 Whether or not the user has requested default ghosting ot be on.
 
virtual TagID addVectorTag (const TagName &tag_name, const Moose::VectorTagType type=Moose::VECTOR_TAG_RESIDUAL)
 Create a Tag.
 
void addNotZeroedVectorTag (const TagID tag)
 Adds a vector tag to the list of vectors that will not be zeroed when other tagged vectors are.
 
bool vectorTagNotZeroed (const TagID tag) const
 Checks if a vector tag is in the list of vectors that will not be zeroed when other tagged vectors are.
 
virtual const VectorTag & getVectorTag (const TagID tag_id) const
 Get a VectorTag from a TagID.
 
std::vector< VectorTag > getVectorTags (const std::set< TagID > &tag_ids) const
 
virtual const std::vector< VectorTag > & getVectorTags (const Moose::VectorTagType type=Moose::VECTOR_TAG_ANY) const
 Return all vector tags, where a tag is represented by a map from name to ID.
 
virtual TagID getVectorTagID (const TagName &tag_name) const
 Get a TagID from a TagName.
 
virtual TagName vectorTagName (const TagID tag) const
 Retrieve the name associated with a TagID.
 
virtual bool vectorTagExists (const TagID tag_id) const
 Check to see if a particular Tag exists.
 
virtual bool vectorTagExists (const TagName &tag_name) const
 Check to see if a particular Tag exists by using Tag name.
 
virtual unsigned int numVectorTags (const Moose::VectorTagType type=Moose::VECTOR_TAG_ANY) const
 The total number of tags, which can be limited to the tag type.
 
virtual Moose::VectorTagType vectorTagType (const TagID tag_id) const
 
virtual TagID addMatrixTag (TagName tag_name)
 Create a Tag.
 
virtual TagID getMatrixTagID (const TagName &tag_name) const
 Get a TagID from a TagName.
 
virtual TagName matrixTagName (TagID tag)
 Retrieve the name associated with a TagID.
 
virtual bool matrixTagExists (const TagName &tag_name) const
 Check to see if a particular Tag exists.
 
virtual bool matrixTagExists (TagID tag_id) const
 Check to see if a particular Tag exists.
 
virtual unsigned int numMatrixTags () const
 The total number of tags.
 
virtual std::map< TagName, TagID > & getMatrixTags ()
 Return all matrix tags in the system, where a tag is represented by a map from name to ID.
 
virtual bool hasLinearVariable (const std::string &var_name) const
 Whether or not this problem has this linear variable.
 
virtual bool hasAuxiliaryVariable (const std::string &var_name) const
 Whether or not this problem has this auxiliary variable.
 
virtual const std::set< MooseVariableFieldBase * > & getActiveElementalMooseVariables (const THREAD_ID tid) const
 Get the MOOSE variables to be reinited on each element.
 
virtual bool hasActiveElementalMooseVariables (const THREAD_ID tid) const
 Whether or not a list of active elemental moose variables has been set.
 
Moose::CoordinateSystemType getCoordSystem (SubdomainID sid) const
 
unsigned int getAxisymmetricRadialCoord () const
 Returns the desired radial direction for RZ coordinate transformation.
 
virtual DiracKernelInfo & diracKernelInfo ()
 
void reinitNodes (const std::vector< dof_id_type > &nodes, const THREAD_ID tid)
 
void reinitNodesNeighbor (const std::vector< dof_id_type > &nodes, const THREAD_ID tid)
 
void reinitNeighborLowerDElem (const Elem *elem, const THREAD_ID tid=0)
 reinitialize a neighboring lower dimensional element
 
void reinitMortarElem (const Elem *elem, const THREAD_ID tid=0)
 Reinit a mortar element to obtain a valid JxW.
 
void reinitGeomSearch ()
 reinitialize this object's geometric search data, e.g.
 
virtual void storeSubdomainMatPropName (SubdomainID block_id, const std::string &name)
 Adds the given material property to a storage map based on block ids.
 
virtual void storeBoundaryMatPropName (BoundaryID boundary_id, const std::string &name)
 Adds the given material property to a storage map based on boundary ids.
 
virtual void storeSubdomainZeroMatProp (SubdomainID block_id, const MaterialPropertyName &name)
 Adds to a map based on block ids of material properties for which a zero value can be returned.
 
virtual void storeBoundaryZeroMatProp (BoundaryID boundary_id, const MaterialPropertyName &name)
 Adds to a map based on boundary ids of material properties for which a zero value can be returned.
 
virtual void storeSubdomainDelayedCheckMatProp (const std::string &requestor, SubdomainID block_id, const std::string &name)
 Adds to a map based on block ids of material properties to validate.
 
virtual void storeBoundaryDelayedCheckMatProp (const std::string &requestor, BoundaryID boundary_id, const std::string &name)
 Adds to a map based on boundary ids of material properties to validate.
 
virtual void checkBlockMatProps ()
 Checks block material properties integrity.
 
virtual void checkBoundaryMatProps ()
 Checks boundary material properties integrity.
 
virtual void markMatPropRequested (const std::string &)
 Helper method for adding a material property name to the _material_property_requested set.
 
virtual bool isMatPropRequested (const std::string &prop_name) const
 Find out if a material property has been requested by any object.
 
void addConsumedPropertyName (const MooseObjectName &obj_name, const std::string &prop_name)
 Helper for tracking the object that is consuming a property for MaterialPropertyDebugOutput.
 
const std::map< MooseObjectName, std::set< std::string > > & getConsumedPropertyMap () const
 Return the map that tracks the object with consumed material properties.
 
virtual std::set< SubdomainID > getMaterialPropertyBlocks (const std::string &prop_name)
 Get a vector containing the block ids the material property is defined on.
 
virtual std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &prop_name)
 Get a vector of block id equivalences that the material property is defined on.
 
virtual bool hasBlockMaterialProperty (SubdomainID block_id, const std::string &prop_name)
 Check if a material property is defined on a block.
 
virtual std::set< BoundaryID > getMaterialPropertyBoundaryIDs (const std::string &prop_name)
 Get a vector containing the block ids the material property is defined on.
 
virtual std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &prop_name)
 Get a vector of block id equivalences that the material property is defined on.
 
virtual bool hasBoundaryMaterialProperty (BoundaryID boundary_id, const std::string &prop_name)
 Check if a material property is defined on a block.
 
virtual std::set< dof_id_type > & ghostedElems ()
 Return the list of elements that should have their DoFs ghosted to this processor.
 
const bool & currentlyComputingJacobian () const
 Returns true if the problem is in the process of computing the Jacobian.
 
void setCurrentlyComputingJacobian (const bool currently_computing_jacobian)
 Set whether or not the problem is in the process of computing the Jacobian.
 
const bool & currentlyComputingResidualAndJacobian () const
 Returns true if the problem is in the process of computing the residual and the Jacobian.
 
void setCurrentlyComputingResidualAndJacobian (bool currently_computing_residual_and_jacobian)
 Set whether or not the problem is in the process of computing the Jacobian.
 
virtual bool safeAccessTaggedMatrices () const
 Is it safe to access the tagged matrices.
 
virtual bool safeAccessTaggedVectors () const
 Is it safe to access the tagged vectors.
 
const std::set< TagID > & getActiveScalarVariableCoupleableVectorTags (const THREAD_ID tid) const
 
const std::set< TagID > & getActiveScalarVariableCoupleableMatrixTags (const THREAD_ID tid) const
 
const std::set< TagID > & getActiveFEVariableCoupleableVectorTags (const THREAD_ID tid) const
 
const std::set< TagID > & getActiveFEVariableCoupleableMatrixTags (const THREAD_ID tid) const
 
void addAlgebraicGhostingFunctor (libMesh::GhostingFunctor &algebraic_gf, bool to_mesh=true)
 Add an algebraic ghosting functor to this problem's DofMaps.
 
void addCouplingGhostingFunctor (libMesh::GhostingFunctor &coupling_gf, bool to_mesh=true)
 Add a coupling functor to this problem's DofMaps.
 
void removeAlgebraicGhostingFunctor (libMesh::GhostingFunctor &algebraic_gf)
 Remove an algebraic ghosting functor from this problem's DofMaps.
 
void removeCouplingGhostingFunctor (libMesh::GhostingFunctor &coupling_gf)
 Remove a coupling ghosting functor from this problem's DofMaps.
 
void hasScalingVector (const unsigned int nl_sys_num)
 Tells this problem that the assembly associated with the given nonlinear system number involves a scaling vector.
 
void clearAllDofIndices ()
 Clear dof indices from variables in nl and aux systems.
 
template<typename T >
const Moose::Functor< T > & getFunctor (const std::string &name, const THREAD_ID tid, const std::string &requestor_name, bool requestor_is_ad)
 
bool hasFunctor (const std::string &name, const THREAD_ID tid) const
 checks whether we have a functor corresponding to name on the thread id tid
 
template<typename T >
bool hasFunctorWithType (const std::string &name, const THREAD_ID tid) const
 checks whether we have a functor of type T corresponding to name on the thread id tid
 
template<typename T >
void addFunctor (const std::string &name, const Moose::FunctorBase< T > &functor, const THREAD_ID tid)
 add a functor to the problem functor container
 
template<typename T , typename PolymorphicLambda >
const Moose::FunctorBase< T > & addPiecewiseByBlockLambdaFunctor (const std::string &name, PolymorphicLambda my_lammy, const std::set< ExecFlagType > &clearance_schedule, const MooseMesh &mesh, const std::set< SubdomainID > &block_ids, const THREAD_ID tid)
 Add a functor that has block-wise lambda definitions, e.g.
 
void setFunctorOutput (bool set_output)
 Setter for debug functor output.
 
void setChainControlDataOutput (bool set_output)
 Setter for debug chain control data output.
 
template<typename T >
void registerUnfilledFunctorRequest (T *functor_interface, const std::string &functor_name, const THREAD_ID tid)
 Register an unfulfilled functor request.
 
void reinitFVFace (const THREAD_ID tid, const FaceInfo &fi)
 reinitialize the finite volume assembly data for the provided face and thread
 
void preparePRefinement ()
 Prepare DofMap and Assembly classes with our p-refinement information.
 
bool doingPRefinement () const
 
template<typename T >
MooseVariableFEBase & getVariableHelper (const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type, Moose::VarFieldType expected_var_field_type, const std::vector< T > &systems, const SystemBase &aux) const
 
void _setCLIOption ()
 For Internal Use.
 
virtual void terminateSolve ()
 Allow objects to request clean termination of the solve.
 
virtual bool isSolveTerminationRequested () const
 Check of termination has been requested.
 
const ConsoleStream & console () const
 Return console handle.
 
virtual bool enabled () const
 Return the enabled status of the object.
 
std::shared_ptr< MooseObject > getSharedPtr ()
 Get another shared pointer to this object that has the same ownership group.
 
std::shared_ptr< const MooseObject > getSharedPtr () const
 
bool isKokkosObject () const
 Get whether this object is a Kokkos functor The parameter MooseBase::kokkos_object_param is set by the Kokkos base classes.
 
MooseApp & getMooseApp () const
 Get the MooseApp this class is associated with.
 
const std::string & type () const
 Get the type of this class.
 
const std::string & name () const
 Get the name of the class.
 
std::string typeAndName () const
 Get the class's combined type and name; useful in error handling.
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParameters & parameters () const
 Get the parameters of the object.
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
template<typename T >
const T & getParam (const std::string &name) const
 Retrieve a parameter for the object.
 
template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 Retrieve two parameters and provide pair of parameters for the object.
 
template<typename T >
const T * queryParam (const std::string &name) const
 Query a parameter for the object.
 
template<typename T >
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 Retrieve a renamed parameter for the object.
 
template<typename T >
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 Verifies that the requested parameter exists and is not NULL and returns it to the caller.
 
bool isParamValid (const std::string &name) const
 Test if the supplied parameter is valid.
 
bool isParamSetByUser (const std::string &name) const
 Test if the supplied parameter is set by a user, as opposed to not set or set to default.
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 Connect controllable parameter of this action with the controllable parameters of the objects added by this action.
 
template<typename... Args>
void paramError (const std::string &param, Args... args) const
 Emits an error prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.
 
template<typename... Args>
void paramWarning (const std::string &param, Args... args) const
 Emits a warning prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.
 
template<typename... Args>
void paramWarning (const std::string &param, Args... args) const
 
template<typename... Args>
void paramInfo (const std::string &param, Args... args) const
 Emits an informational message prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 Deprecated message prefix; the error type is no longer used.
 
template<typename... Args>
void mooseError (Args &&... args) const
 Emits an error prefixed with object name and type and optionally a file path to the top-level block parameter if available.
 
template<typename... Args>
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
template<typename... Args>
void mooseErrorNonPrefixed (Args &&... args) const
 Emits an error without the prefixing included in mooseError().
 
template<typename... Args>
void mooseWarning (Args &&... args) const
 Emits a warning prefixed with object name and type.
 
template<typename... Args>
void mooseWarning (Args &&... args) const
 
template<typename... Args>
void mooseWarningNonPrefixed (Args &&... args) const
 Emits a warning without the prefixing included in mooseWarning().
 
template<typename... Args>
void mooseWarningNonPrefixed (Args &&... args) const
 
template<typename... Args>
void mooseDeprecated (Args &&... args) const
 Emits a deprecation warning prefixed with the object name and type, and a stack trace.
 
template<typename... Args>
void mooseDeprecated (Args &&... args) const
 
template<typename... Args>
void mooseDeprecatedNoTrace (Args &&... args) const
 Emits a deprecation warning prefixed with the object name and type, and no stack trace.
 
template<typename... Args>
void mooseInfo (Args &&... args) const
 
void callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
 External method for calling moose error with added object context.
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 
std::string getDataFileName (const std::string &param) const
 Deprecated method.
 
std::string getDataFileNameByName (const std::string &relative_path) const
 Deprecated method.
 
std::string getDataFilePath (const std::string &relative_path) const
 Returns the path of a data file for a given relative file path.
 
PerfGraph & perfGraph ()
 Get the PerfGraph.
 
const libMesh::ConstElemRange & getEvaluableElementRange ()
 In general, {evaluable elements} >= {local elements} U {algebraic ghosting elements}.
 
const libMesh::ConstElemRange & getNonlinearEvaluableElementRange ()
 
const libMesh::ConstElemRange & getCurrentAlgebraicElementRange ()
 These are the element and nodes that contribute to the jacobian and residual for this local processor.
 
const libMesh::ConstNodeRange & getCurrentAlgebraicNodeRange ()
 
const ConstBndNodeRange & getCurrentAlgebraicBndNodeRange ()
 
void setCurrentAlgebraicElementRange (libMesh::ConstElemRange *range)
 These functions allow setting custom ranges for the algebraic elements, nodes, and boundary nodes that contribute to the jacobian and residual for this local processor.
 
void setCurrentAlgebraicNodeRange (libMesh::ConstNodeRange *range)
 
void setCurrentAlgebraicBndNodeRange (ConstBndNodeRange *range)
 
void allowOutput (bool state)
 Ability to enable/disable all output calls.
 
template<typename T >
void allowOutput (bool state)
 
Moose::Kokkos::Array< Moose::Kokkos::System > & getKokkosSystems ()
 Get the Kokkos System array (always populated when any Kokkos object exists)
 
const Moose::Kokkos::Array< Moose::Kokkos::System > & getKokkosSystems () const
 
Moose::Kokkos::Array< Moose::Kokkos::FESystem > & getKokkosFESystems ()
 Get the Kokkos FESystem array (populated only when FE Kokkos objects exist)
 
const Moose::Kokkos::Array< Moose::Kokkos::FESystem > & getKokkosFESystems () const
 
Moose::Kokkos::System & getKokkosSystem (const unsigned int sys_num)
 Get the Kokkos System of a specified number.
 
const Moose::Kokkos::System & getKokkosSystem (const unsigned int sys_num) const
 
Moose::Kokkos::FESystem & getKokkosFESystem (const unsigned int sys_num)
 Get the Kokkos FESystem of a specified number.
 
const Moose::Kokkos::FESystem & getKokkosFESystem (const unsigned int sys_num) const
 
bool hasMultiApps () const
 Returns whether or not the current simulation has any multiapps.
 
bool hasMultiApps (ExecFlagType type) const
 
bool hasMultiApp (const std::string &name) const
 
const AutomaticMortarGeneration & getMortarInterface (const std::pair< BoundaryID, BoundaryID > &primary_secondary_boundary_pair, const std::pair< SubdomainID, SubdomainID > &primary_secondary_subdomain_pair, bool on_displaced) const
 Return the undisplaced or displaced mortar generation object associated with the provided boundaries and subdomains.
 
AutomaticMortarGeneration & getMortarInterface (const std::pair< BoundaryID, BoundaryID > &primary_secondary_boundary_pair, const std::pair< SubdomainID, SubdomainID > &primary_secondary_subdomain_pair, bool on_displaced)
 
const MaterialPropertyStorage & getMaterialPropertyStorage ()
 Return a reference to the material property storage.
 
const MaterialPropertyStorage & getBndMaterialPropertyStorage ()
 
const MaterialPropertyStorage & getNeighborMaterialPropertyStorage ()
 
Moose::Kokkos::MaterialPropertyStorage & getKokkosMaterialPropertyStorage ()
 
Moose::Kokkos::MaterialPropertyStorage & getKokkosBndMaterialPropertyStorage ()
 
Moose::Kokkos::MaterialPropertyStorage & getKokkosNeighborMaterialPropertyStorage ()
 
const MooseObjectWarehouse< Indicator > & getIndicatorWarehouse ()
 Return indicator/marker storage.
 
const MooseObjectWarehouse< InternalSideIndicatorBase > & getInternalSideIndicatorWarehouse ()
 
const MooseObjectWarehouse< Marker > & getMarkerWarehouse ()
 
bool needBoundaryMaterialOnSide (BoundaryID bnd_id, const THREAD_ID tid)
 These methods are used to determine whether stateful material properties need to be stored on internal sides.
 
bool needInterfaceMaterialOnSide (BoundaryID bnd_id, const THREAD_ID tid)
 
bool needInternalNeighborSideMaterial (SubdomainID subdomain_id, const THREAD_ID tid)
 
const ExecFlagType & getCurrentExecuteOnFlag () const
 Return/set the current execution flag.
 
void setCurrentExecuteOnFlag (const ExecFlagType &)
 

Static Public Member Functions

static InputParameters validParams ()
 
static void selectVectorTagsFromSystem (const SystemBase &system, const std::vector< VectorTag > &input_vector_tags, std::set< TagID > &selected_tags)
 Select the vector tags which belong to a specific system.
 
static void selectMatrixTagsFromSystem (const SystemBase &system, const std::map< TagName, TagID > &input_matrix_tags, std::set< TagID > &selected_tags)
 Select the matrix tags which belong to a specific system.
 
static void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 External method for calling moose error with added object context.
 
template<typename T >
static void objectSetupHelper (const std::vector< T * > &objects, const ExecFlagType &exec_flag)
 Helpers for calling the necessary setup/execute functions for the supplied objects.
 
template<typename T >
static void objectExecuteHelper (const std::vector< T * > &objects)
 

Public Attributes

std::map< std::string, std::vector< dof_id_type > > _var_dof_map
 
 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 An instance of helper class to write streams to the Console objects.
 
std::vector< Real > _real_zero
 Convenience zeros.
 
std::vector< VariableValue > _scalar_zero
 
std::vector< VariableValue > _zero
 
std::vector< VariablePhiValue > _phi_zero
 
std::vector< MooseArray< ADReal > > _ad_zero
 
std::vector< VariableGradient > _grad_zero
 
std::vector< MooseArray< ADRealVectorValue > > _ad_grad_zero
 
std::vector< VariablePhiGradient > _grad_phi_zero
 
std::vector< VariableSecond > _second_zero
 
std::vector< MooseArray< ADRealTensorValue > > _ad_second_zero
 
std::vector< VariablePhiSecond > _second_phi_zero
 
std::vector< Point > _point_zero
 
std::vector< VectorVariableValue > _vector_zero
 
std::vector< VectorVariableCurl > _vector_curl_zero
 

Static Public Attributes

static const std::string type_param = "_type"
 The name of the parameter that contains the object type.
 
static const std::string name_param = "_object_name"
 The name of the parameter that contains the object name.
 
static const std::string unique_name_param = "_unique_name"
 The name of the parameter that contains the unique object name.
 
static const std::string app_param = "_moose_app"
 The name of the parameter that contains the MooseApp.
 
static const std::string moose_base_param = "_moose_base"
 The name of the parameter that contains the moose system base.
 
static const std::string kokkos_object_param = "_kokkos_object"
 The name of the parameter that indicates an object is a Kokkos functor.
 

Protected Member Functions

void dumpObjectHelper (const std::string &system, const std::string &type, const std::string &name, const InputParameters &parameters)
 
void dumpVariableHelper (const std::string &system, const std::string &var_name, libMesh::FEFamily family, Order order, Real scale_factor, const std::set< SubdomainID > *const active_subdomains)
 
std::string deduceNecessaryParameters (const std::string &type, const InputParameters &parameters)
 build a text snippet of the minimal set of parameters that need to be specified
 
std::map< std::string, std::string > stringifyParameters (const InputParameters &parameters)
 create a string map form parameter names to stringified parameter values
 
virtual void meshChanged ()
 Deprecated.
 
void createTagVectors ()
 Create extra tagged vectors and matrices.
 
void createTagSolutions ()
 Create extra tagged solution vectors.
 
virtual void meshDisplaced ()
 Update data after a mesh displaced.
 
void computeSystems (const ExecFlagType &type)
 Do generic system computations.
 
bool duplicateVariableCheck (const std::string &var_name, const libMesh::FEType &type, bool is_aux, const std::set< SubdomainID > *const active_subdomains)
 Helper to check for duplicate variable names across systems or within a single system.
 
void computeUserObjectsInternal (const ExecFlagType &type, TheWarehouse::Query &query)
 
void computeKokkosUserObjectsInternal (const ExecFlagType &type, TheWarehouse::Query &query)
 
void checkDisplacementOrders ()
 Verify that SECOND order mesh uses SECOND order displacements.
 
void checkUserObjects ()
 
void checkDependMaterialsHelper (const std::map< SubdomainID, std::vector< std::shared_ptr< MaterialBase > > > &materials_map)
 Helper method for checking Material object dependency.
 
void checkCoordinateSystems ()
 Verify that there are no element type/coordinate type conflicts.
 
void reinitBecauseOfGhostingOrNewGeomObjects (bool mortar_changed=false)
 Call when it is possible that the needs for ghosted elements has changed.
 
void addObjectParamsHelper (InputParameters &params, const std::string &object_name, const std::string &var_param_name="variable")
 Helper for setting the "_subproblem" and "_sys" parameters in addObject() and in addUserObject().
 
template<typename T >
MooseVariableFieldBase & getVariableHelper (const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type, Moose::VarFieldType expected_var_field_type, const std::vector< T > &nls, const SystemBase &aux) const
 Helper function called by getVariable that handles the logic for checking whether Variables of the requested type are available.
 
bool verifyVectorTags () const
 Verify the integrity of _vector_tags and _typed_vector_tags.
 
template<bool warning>
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 Set solution invalid mark for the given solution ID.
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 Call to register a named section for timing.
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 Call to register a named section for timing.
 
std::string timedSectionName (const std::string &section_name) const
 
template<typename T , typename... Args>
T & declareRestartableData (const std::string &data_name, Args &&... args)
 Declare a piece of data as "restartable" and initialize it.
 
template<typename T , typename... Args>
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 Declares a piece of "managed" restartable data and initialize it.
 
template<typename T , typename... Args>
const T & getRestartableData (const std::string &data_name) const
 Declare a piece of data as "restartable" and initialize it Similar to declareRestartableData but returns a const reference to the object.
 
template<typename T , typename... Args>
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 Declare a piece of data as "restartable" and initialize it.
 
template<typename T , typename... Args>
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 Declare a piece of data as "recoverable" and initialize it.
 
template<typename T , typename... Args>
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 Declare a piece of data as "restartable".
 
template<typename T , typename... Args>
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 Declare a piece of data as "restartable".
 
std::string restartableName (const std::string &data_name) const
 Gets the name of a piece of restartable data given a data name, adding the system name and object name prefix.
 

Protected Attributes

std::map< std::string, std::map< std::string, std::string > > _generated_syntax
 store input syntax to build objects generated by a specific action
 
const bool _include_all_user_specified_params
 Whether to include all user-specified parameters in the dump or only parameters that differ from the default value.
 
MooseMesh & _mesh
 
bool _initialized
 
std::optional< std::vector< ConvergenceName > > _nonlinear_convergence_names
 Nonlinear system(s) convergence name(s)
 
std::optional< std::vector< ConvergenceName > > _linear_convergence_names
 Linear system(s) convergence name(s) (if any)
 
std::optional< ConvergenceName > _multiapp_fixed_point_convergence_name
 MultiApp fixed point convergence name.
 
std::optional< ConvergenceName > _steady_state_convergence_name
 Steady-state detection convergence name.
 
std::set< TagID > _fe_vector_tags
 
std::set< TagID > _fe_matrix_tags
 
std::set< TagID > _linear_vector_tags
 Temporary storage for filtered vector tags for linear systems.
 
std::set< TagID > _linear_matrix_tags
 Temporary storage for filtered matrix tags for linear systems.
 
const bool & _solve
 Whether or not to actually solve the nonlinear system.
 
bool _transient
 
Real & _time
 
Real & _time_old
 
Real & _time_older
 
int & _t_step
 
Real & _dt
 
Real & _dt_old
 
bool _need_to_add_default_nonlinear_convergence
 Flag that the problem needs to add the default nonlinear convergence.
 
bool _need_to_add_default_multiapp_fixed_point_convergence
 Flag that the problem needs to add the default fixed point convergence.
 
bool _need_to_add_default_steady_state_convergence
 Flag that the problem needs to add the default steady convergence.
 
const std::vector< LinearSystemName > _linear_sys_names
 The linear system names.
 
const std::size_t _num_linear_sys
 The number of linear systems.
 
std::vector< std::shared_ptr< LinearSystem > > _linear_systems
 The vector of linear systems.
 
std::map< LinearSystemName, unsigned int > _linear_sys_name_to_num
 Map from linear system name to number.
 
LinearSystem * _current_linear_sys
 The current linear system that we are solving.
 
const bool _using_default_nl
 Boolean to check if we have the default nonlinear system.
 
const std::vector< NonlinearSystemName > _nl_sys_names
 The nonlinear system names.
 
const std::size_t _num_nl_sys
 The number of nonlinear systems.
 
std::vector< std::shared_ptr< NonlinearSystemBase > > _nl
 The nonlinear systems.
 
std::map< NonlinearSystemName, unsigned int > _nl_sys_name_to_num
 Map from nonlinear system name to number.
 
NonlinearSystemBase * _current_nl_sys
 The current nonlinear system that we are solving.
 
SolverSystem * _current_solver_sys
 The current solver system.
 
std::vector< std::shared_ptr< SolverSystem > > _solver_systems
 Combined container to base pointer of every solver system.
 
std::map< SolverVariableName, unsigned int > _solver_var_to_sys_num
 Map connecting variable names with their respective solver systems.
 
std::map< SolverSystemName, unsigned int > _solver_sys_name_to_num
 Map connecting solver system names with their respective systems.
 
std::vector< SolverSystemName > _solver_sys_names
 The union of nonlinear and linear system names.
 
std::shared_ptr< AuxiliarySystem > _aux
 The auxiliary system.
 
Moose::CouplingType _coupling
 Type of variable coupling.
 
std::vector< std::unique_ptr< libMesh::CouplingMatrix > > _cm
 Coupling matrix for variables.
 
Moose::Kokkos::Array< Moose::Kokkos::System > _kokkos_systems
 System array - sparsely populated (only slots for systems needing a Kokkos::System)
 
Moose::Kokkos::Array< Moose::Kokkos::FESystem > _kokkos_fe_systems
 FESystem array - sparsely populated (only slots for systems needing a Kokkos::FESystem)
 
std::map< std::string, unsigned int > _subspace_dim
 Dimension of the subspace spanned by the vectors with a given prefix.
 
std::vector< std::vector< std::unique_ptr< Assembly > > > _assembly
 The Assembly objects.
 
Moose::Kokkos::Assembly _kokkos_assembly
 
MooseObjectWarehouse< MeshDivision > _mesh_divisions
 Warehouse to store mesh divisions NOTE: this could probably be moved to the MooseMesh instead of the Problem Time (and people's uses) will tell where this fits best.
 
MooseObjectWarehouse< Function > _functions
 functions
 
MooseObjectWarehouse< Moose::FunctionBase > _kokkos_functions
 
MooseObjectWarehouse< Convergence > _convergences
 convergence warehouse
 
MooseObjectWarehouse< KernelBase > _nonlocal_kernels
 nonlocal kernels
 
MooseObjectWarehouse< IntegratedBCBase > _nonlocal_integrated_bcs
 nonlocal integrated_bcs
 
MaterialPropertyRegistry _material_prop_registry
 
MaterialPropertyStorage & _material_props
 
MaterialPropertyStorage & _bnd_material_props
 
MaterialPropertyStorage & _neighbor_material_props
 
Moose::Kokkos::MaterialPropertyStorage & _kokkos_material_props
 
Moose::Kokkos::MaterialPropertyStorage & _kokkos_bnd_material_props
 
Moose::Kokkos::MaterialPropertyStorage & _kokkos_neighbor_material_props
 
MooseObjectWarehouse< Marker > _markers
 
ReporterData _reporter_data
 
ExecuteMooseObjectWarehouse< MultiApp > _multi_apps
 MultiApp Warehouse.
 
ExecuteMooseObjectWarehouse< TransientMultiApp > _transient_multi_apps
 Storage for TransientMultiApps (only needed for calling 'computeDT')
 
ExecuteMooseObjectWarehouse< Transfer > _transfers
 Normal Transfers.
 
ExecuteMooseObjectWarehouse< Transfer > _to_multi_app_transfers
 Transfers executed just before MultiApps to transfer data to them.
 
ExecuteMooseObjectWarehouse< Transfer > _from_multi_app_transfers
 Transfers executed just after MultiApps to transfer data from them.
 
ExecuteMooseObjectWarehouse< Transfer > _between_multi_app_transfers
 Transfers executed just before MultiApps to transfer data between them.
 
const unsigned int _num_concurrent_multiapps
 Number of concurrent applications being solved at the same time.
 
std::map< std::string, std::unique_ptr< RandomData > > _random_data_objects
 A map of objects that consume random numbers.
 
std::vector< std::unordered_map< SubdomainID, bool > > _block_mat_side_cache
 Cache for calculating materials on side.
 
std::vector< std::unordered_map< BoundaryID, bool > > _bnd_mat_side_cache
 Cache for calculating materials on side.
 
std::vector< std::unordered_map< BoundaryID, bool > > _interface_mat_side_cache
 Cache for calculating materials on interface.
 
std::vector< MeshChangedInterface * > _notify_when_mesh_changes
 Objects to be notified when the mesh changes.
 
std::vector< MeshDisplacedInterface * > _notify_when_mesh_displaces
 Objects to be notified when the mesh displaces.
 
Adaptivity _adaptivity
 
unsigned int _cycles_completed
 
std::shared_ptr< XFEMInterface > _xfem
 Pointer to XFEM controller.
 
MooseMesh * _displaced_mesh
 
std::shared_ptr< DisplacedProblem > _displaced_problem
 
GeometricSearchData _geometric_search_data
 
std::unique_ptr< MortarInterfaceWarehouse > _mortar_data
 
bool _reinit_displaced_elem
 Whether to call DisplacedProblem::reinitElem when this->reinitElem is called.
 
bool _reinit_displaced_face
 Whether to call DisplacedProblem::reinitElemFace when this->reinitElemFace is called.
 
bool _reinit_displaced_neighbor
 Whether to call DisplacedProblem::reinitNeighbor when this->reinitNeighbor is called.
 
bool _input_file_saved
 whether input file has been written
 
bool _has_dampers
 Whether or not this system has any Dampers associated with it.
 
bool _has_constraints
 Whether or not this system has any Constraints.
 
bool _snesmf_reuse_base
 If or not to resuse the base vector for matrix-free calculation.
 
bool _skip_exception_check
 If or not skip 'exception and stop solve'.
 
bool _snesmf_reuse_base_set_by_user
 If or not _snesmf_reuse_base is set by user.
 
bool _has_initialized_stateful
 Whether nor not stateful materials have been initialized.
 
bool _const_jacobian
 true if the Jacobian is constant
 
bool _has_jacobian
 Indicates if the Jacobian was computed.
 
bool _needs_old_newton_iter
 Indicates that we need to compute variable values for previous Newton iteration.
 
bool _previous_nl_solution_required
 Indicates we need to save the previous NL iteration variable values.
 
std::vector< bool > _previous_multiapp_fp_nl_solution_required
 Indicates we need to save the previous multiapp fixed-point iteration solver variable values.
 
bool _previous_multiapp_fp_aux_solution_required
 Indicates we need to save the previous multiapp fixed-point iteration auxiliary variable values.
 
std::vector< bool > _previous_multisystem_fp_nl_solution_required
 Indicates we need to save the previous multi-system fixed-point iteration solver variable values.
 
bool _previous_multisystem_fp_aux_solution_required
 Indicates we need to save the previous multi-system fixed-point iteration auxiliary variable values.
 
bool _has_nonlocal_coupling
 Indicates if nonlocal coupling is required/exists.
 
bool _calculate_jacobian_in_uo
 
std::vector< std::vector< const MooseVariableFEBase * > > _uo_jacobian_moose_vars
 
std::vector< unsigned char > _has_active_material_properties
 Whether there are active material properties on each thread.
 
std::vector< SolverParams > _solver_params
 
CoverageCheckMode _kernel_coverage_check
 Determines whether and which subdomains are to be checked to ensure that they have an active kernel.
 
std::vector< SubdomainName > _kernel_coverage_blocks
 
const bool _boundary_restricted_node_integrity_check
 whether to perform checking of boundary restricted nodal object variable dependencies, e.g.
 
const bool _boundary_restricted_elem_integrity_check
 whether to perform checking of boundary restricted elemental object variable dependencies, e.g.
 
const bool _side_uo_interface_mat_prop_integrity_check
 Whether to check that side user objects do not consume interface material properties.
 
CoverageCheckMode _material_coverage_check
 Determines whether and which subdomains are to be checked to ensure that they have an active material.
 
std::vector< SubdomainName > _material_coverage_blocks
 
bool _fv_bcs_integrity_check
 Whether to check overlapping Dirichlet and Flux BCs and/or multiple DirichletBCs per sideset.
 
const bool _fv_face_integrity_check
 Whether to check FV boundary and interface objects against the faces on which they execute.
 
const bool _material_dependency_check
 Determines whether a check to verify material dependencies on every subdomain.
 
const bool _uo_aux_state_check
 Whether or not checking the state of uo/aux evaluation.
 
bool _check_residual_for_nans
 Whether to check the residual for NaN or Inf values.
 
unsigned int _max_qps
 Maximum number of quadrature points used in the problem.
 
libMesh::Order _max_scalar_order
 Maximum scalar variable order.
 
bool _has_time_integrator
 Indicates whether or not this executioner has a time integrator (during setup)
 
bool _has_exception
 Whether or not an exception has occurred.
 
bool _parallel_barrier_messaging
 Whether or not information about how many transfers have completed is printed.
 
MooseEnum _verbose_setup
 Whether or not to be verbose during setup.
 
bool _verbose_multiapps
 Whether or not to be verbose with multiapps.
 
bool _verbose_restore
 Whether or not to be verbose on solution restoration post a failed time step.
 
std::string _exception_message
 The error message to go with an exception.
 
ExecFlagType _current_execute_on_flag
 Current execute_on flag.
 
ExecuteMooseObjectWarehouse< Control > _control_warehouse
 The control logic warehouse.
 
Moose::PetscSupport::PetscOptions _petsc_options
 PETSc option storage.
 
PetscOptions _petsc_option_data_base
 
bool _is_petsc_options_inserted
 If or not PETSc options have been added to database.
 
std::shared_ptr< LineSearch > _line_search
 
std::unique_ptr< libMesh::ConstElemRange > _evaluable_local_elem_range
 
std::unique_ptr< libMesh::ConstElemRange > _nl_evaluable_local_elem_range
 
std::unique_ptr< libMesh::ConstElemRange > _aux_evaluable_local_elem_range
 
std::unique_ptr< libMesh::ConstElemRange > _current_algebraic_elem_range
 
std::unique_ptr< libMesh::ConstNodeRange > _current_algebraic_node_range
 
std::unique_ptr< ConstBndNodeRange > _current_algebraic_bnd_node_range
 
bool _using_ad_mat_props
 Automatic differentiaion (AD) flag which indicates whether any consumer has requested an AD material property or whether any suppier has declared an AD material property.
 
unsigned short _current_ic_state
 
const bool _use_hash_table_matrix_assembly
 Whether to assemble matrices using hash tables instead of preallocating matrix memory.
 
std::map< TagName, TagID > _matrix_tag_name_to_tag_id
 The currently declared tags.
 
std::map< TagID, TagName > _matrix_tag_id_to_tag_name
 Reverse map.
 
Factory & _factory
 The Factory for building objects.
 
DiracKernelInfo _dirac_kernel_info
 
std::map< SubdomainID, std::set< std::string > > _map_block_material_props
 Map of material properties (block_id -> list of properties)
 
std::map< BoundaryID, std::set< std::string > > _map_boundary_material_props
 Map for boundary material properties (boundary_id -> list of properties)
 
std::map< SubdomainID, std::set< MaterialPropertyName > > _zero_block_material_props
 Set of properties returned as zero properties.
 
std::map< BoundaryID, std::set< MaterialPropertyName > > _zero_boundary_material_props
 
std::set< std::string > _material_property_requested
 set containing all material property names that have been requested by getMaterialProperty*
 
std::vector< std::set< MooseVariableFieldBase * > > _active_elemental_moose_variables
 This is the set of MooseVariableFieldBase that will actually get reinited by a call to reinit(elem)
 
std::vector< unsigned int > _has_active_elemental_moose_variables
 Whether or not there is currently a list of active elemental moose variables.
 
std::vector< std::set< TagID > > _active_fe_var_coupleable_matrix_tags
 
std::vector< std::set< TagID > > _active_fe_var_coupleable_vector_tags
 
std::vector< std::set< TagID > > _active_sc_var_coupleable_matrix_tags
 
std::vector< std::set< TagID > > _active_sc_var_coupleable_vector_tags
 
bool _default_ghosting
 Whether or not to use default libMesh coupling.
 
std::set< dof_id_type > _ghosted_elems
 Elements that should have Dofs ghosted to the local processor.
 
bool _currently_computing_jacobian
 Flag to determine whether the problem is currently computing Jacobian.
 
bool _currently_computing_residual_and_jacobian
 Flag to determine whether the problem is currently computing the residual and Jacobian.
 
bool _computing_nonlinear_residual
 Whether the non-linear residual is being evaluated.
 
bool _currently_computing_residual
 Whether the residual is being evaluated.
 
bool _safe_access_tagged_matrices
 Is it safe to retrieve data from tagged matrices.
 
bool _safe_access_tagged_vectors
 Is it safe to retrieve data from tagged vectors.
 
bool _have_ad_objects
 AD flag indicating whether any AD objects have been added.
 
std::unordered_set< TagID > _not_zeroed_tagged_vectors
 the list of vector tags that will not be zeroed when all other tags are
 
bool _cli_option_found
 True if the CLI option is found.
 
bool _color_output
 True if we're going to attempt to write color output.
 
bool _termination_requested
 True if termination of the solve has been requested.
 
const bool & _enabled
 Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.
 
MooseApp & _app
 The MOOSE application this is associated with.
 
ActionFactory & _action_factory
 Builds Actions.
 
const std::string & _type
 The type of this class.
 
const std::string & _name
 The name of this class.
 
const InputParameters & _pars
 The object's parameters.
 
const Parallel::Communicator & _communicator
 
MooseApp & _pg_moose_app
 The MooseApp that owns the PerfGraph.
 
const std::string _prefix
 A prefix to use for all sections.
 
MooseApp & _restartable_app
 Reference to the application.
 
const std::string _restartable_system_name
 The system name this object is in.
 
const THREAD_ID _restartable_tid
 The thread ID for this object.
 
const bool _restartable_read_only
 Flag for toggling read only status (see ReporterData)
 
InitialConditionWarehouse _ics
 
FVInitialConditionWarehouse _fv_ics
 
ScalarInitialConditionWarehouse _scalar_ics
 
MaterialWarehouse _materials
 
MaterialWarehouse _interface_materials
 
MaterialWarehouse _discrete_materials
 
MaterialWarehouse _all_materials
 
MaterialWarehouse _kokkos_materials
 
MooseObjectWarehouse< Indicator > _indicators
 
MooseObjectWarehouse< InternalSideIndicatorBase > _internal_side_indicators
 
std::map< SubdomainID, std::multimap< std::string, std::string > > _map_block_material_props_check
 Data structures of the requested material properties.
 
std::map< BoundaryID, std::multimap< std::string, std::string > > _map_boundary_material_props_check
 

Private Types

enum class  TrueFunctorIs { UNSET , NONAD , AD }
 

Private Member Functions

void setResidualObjectParamsAndLog (const std::string &ro_name, const std::string &name, InputParameters &parameters, const unsigned int nl_sys_num, const std::string &base_name, bool &reinit_displaced)
 Set the subproblem and system parameters for residual objects and log their addition.
 
void setAuxKernelParamsAndLog (const std::string &ak_name, const std::string &name, InputParameters &parameters, const std::string &base_name)
 Set the subproblem and system parameters for auxiliary kernels and log their addition.
 
TheWarehouse::Query getUOQuery (const std::string &system, const ExecFlagType &type, const Moose::AuxGroup &group) const
 
void getUOExecutionGroups (TheWarehouse::Query &query, std::set< int > &execution_groups) const
 
void handleException (const std::string &calling_method)
 Handle exceptions.
 
std::vector< MortarUserObject * > getMortarUserObjects (BoundaryID primary_boundary_id, BoundaryID secondary_boundary_id, bool displaced, const std::vector< MortarUserObject * > &mortar_uo_superset)
 Helper for getting mortar objects corresponding to primary boundary ID, secondary boundary ID, and displaced parameters, given some initial set.
 
std::vector< MortarUserObject * > getMortarUserObjects (BoundaryID primary_boundary_id, BoundaryID secondary_boundary_id, bool displaced)
 Helper for getting mortar objects corresponding to primary boundary ID, secondary boundary ID, and displaced parameters from the entire active mortar user object set.
 
virtual std::pair< bool, unsigned int > determineSolverSystem (const std::string &var_name, bool error_if_not_found=false) const override
 Determine what solver system the provided variable name lies in.
 
void checkICRestartError (const std::string &ic_name, const std::string &name, const VariableName &var_name)
 Checks if the variable of the initial condition is getting restarted and errors for specific cases.
 
void addAnyRedistributers ()
 
void updateMaxQps ()
 
void joinAndFinalize (TheWarehouse::Query query, bool isgen=false)
 
void kokkosJoinAndFinalize (const std::vector< Moose::Kokkos::UserObject * > &userobjs)
 
virtual void resetState ()
 Reset state of this object in preparation for the next evaluation.
 
void cloneAlgebraicGhostingFunctor (libMesh::GhostingFunctor &algebraic_gf, bool to_mesh=true)
 Creates (n_sys - 1) clones of the provided algebraic ghosting functor (corresponding to the nonlinear system algebraic ghosting functor), initializes the clone with the appropriate DofMap, and then adds the clone to said DofMap.
 
void cloneCouplingGhostingFunctor (libMesh::GhostingFunctor &coupling_gf, bool to_mesh=true)
 Creates (n_sys - 1) clones of the provided coupling ghosting functor (corresponding to the nonlinear system coupling ghosting functor), initializes the clone with the appropriate DofMap, and then adds the clone to said DofMap.
 
void showFunctors () const
 Lists all functors in the problem.
 
void showFunctorRequestors () const
 Lists all functors and all the objects that requested them.
 
RestartableDataValue & registerRestartableDataOnApp (std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
 Helper function for actually registering the restartable data.
 
void registerRestartableNameWithFilterOnApp (const std::string &name, Moose::RESTARTABLE_FILTER filter)
 Helper function for actually registering the restartable data.
 
template<typename T , typename... Args>
RestartableData< T > & declareRestartableDataHelper (const std::string &data_name, void *context, Args &&... args) const
 Helper function for declaring restartable data.
 
std::string restrictionSubdomainCheckName (SubdomainID check_id)
 Helper functions for checking MaterialProperties.
 
std::string restrictionBoundaryCheckName (BoundaryID check_id)
 

Static Private Member Functions

static SolverParams makeLinearSolverParams ()
 Make basic solver params for linear solves.
 
static const hit::Node * getHitNode (const InputParameters &params)
 Internal method for getting a hit node (if available) given a set of parameters.
 
static std::string messagePrefix (const InputParameters &params, const bool hit_prefix)
 Internal method for getting the message prefix for an object (object type, name, etc).
 

Private Attributes

Restartable::ManagedValue< RestartableEquationSystems > _req
 The EquationSystems object, wrapped for restart.
 
bool _error_on_jacobian_nonzero_reallocation
 Whether to error when the Jacobian is re-allocated, usually because the sparsity pattern changed.
 
const bool _restore_original_nonzero_pattern
 Whether we should restore the original nonzero pattern for every Jacobian evaluation.
 
bool _ignore_zeros_in_jacobian
 Whether to ignore zeros in the Jacobian, thereby leading to a reduced sparsity pattern.
 
bool _preserve_matrix_sparsity_pattern
 Whether to preserve the system matrix / Jacobian sparsity pattern, using 0-valued entries usually.
 
const bool _force_restart
 
const bool _allow_ics_during_restart
 
const bool _skip_nl_system_check
 
bool _fail_next_system_convergence_check
 
const bool _allow_invalid_solution
 
const bool _show_invalid_solution_console
 
const bool & _immediately_print_invalid_solution
 
bool _started_initial_setup
 At or beyond initialSteup stage.
 
bool _has_internal_edge_residual_objects
 Whether the problem has dgkernels or interface kernels.
 
bool _u_dot_requested
 Whether solution time derivative needs to be stored.
 
bool _u_dotdot_requested
 Whether solution second time derivative needs to be stored.
 
bool _u_dot_old_requested
 Whether old solution time derivative needs to be stored.
 
bool _u_dotdot_old_requested
 Whether old solution second time derivative needs to be stored.
 
bool _has_mortar
 Whether the simulation requires mortar coupling.
 
unsigned int _num_grid_steps
 Number of steps in a grid sequence.
 
bool _trust_user_coupling_matrix = false
 Whether to trust the user coupling matrix no matter what.
 
bool _computing_scaling_jacobian = false
 Flag used to indicate whether we are computing the scaling Jacobian.
 
bool _computing_scaling_residual = false
 Flag used to indicate whether we are computing the scaling Residual.
 
bool _checking_uo_aux_state = false
 Flag used to indicate whether we are doing the uo/aux state check in execute.
 
ExecFlagEnum _print_execution_on
 When to print the execution of loops.
 
const bool _identify_variable_groups_in_nl
 Whether to identify variable groups in nonlinear systems. This affects dof ordering.
 
std::vector< VectorTag > _current_residual_vector_tags
 A data member to store the residual vector tag(s) passed into computeResidualTag(s).
 
bool _have_fv = false
 Whether we are performing some calculations with finite volume discretizations.
 
const bool _regard_general_exceptions_as_errors
 If we catch an exception during residual/Jacobian evaluaton for which we don't have specific handling, immediately error instead of allowing the time step to be cut.
 
std::vector< libMesh::CouplingMatrix > _nonlocal_cm
 nonlocal coupling matrix
 
bool _requires_nonlocal_coupling
 nonlocal coupling requirement flag
 
bool _has_kokkos_objects = false
 Whether we have any Kokkos objects.
 
bool _has_kokkos_residual_objects = false
 Whether we have any Kokkos residual objects.
 
std::vector< std::function< void()> > _kokkos_mesh_initialization_hooks
 Container holding hooks for functions that need to be called after Kokkos mesh initialization.
 
std::vector< std::multimap< std::string, std::tuple< TrueFunctorIs, std::unique_ptr< Moose::FunctorEnvelopeBase >, std::unique_ptr< Moose::FunctorEnvelopeBase > > > > _functors
 A container holding pointers to all the functors in our problem.
 
std::vector< std::map< std::string, std::unique_ptr< Moose::FunctorAbstract > > > _pbblf_functors
 Container to hold PiecewiseByBlockLambdaFunctors.
 
std::map< std::string, std::set< std::string > > _functor_to_requestors
 The requestors of functors where the key is the prop name and the value is a set of names of requestors.
 
std::vector< std::multimap< std::string, std::pair< bool, bool > > > _functor_to_request_info
 A multimap (for each thread) from unfilled functor requests to whether the requests were for AD functors and whether the requestor was an AD object.
 
bool _show_functors
 Whether to output a list of the functors used and requested (currently only at initialSetup)
 
bool _show_chain_control_data
 Whether to output a list of all the chain control data.
 
std::vector< VectorTag > _vector_tags
 The declared vector tags.
 
std::vector< std::vector< VectorTag > > _typed_vector_tags
 The vector tags associated with each VectorTagType This is kept separate from _vector_tags for quick access into typed vector tags in places where we don't want to build a new vector every call (like in residual evaluation)
 
std::map< TagName, TagID > _vector_tags_name_map
 Map of vector tag TagName to TagID.
 
std::map< MooseObjectName, std::set< std::string > > _consumed_material_properties
 
std::unordered_map< libMesh::GhostingFunctor *, std::vector< std::shared_ptr< libMesh::GhostingFunctor > > > _root_alg_gf_to_sys_clones
 A map from a root algebraic ghosting functor, e.g.
 
std::unordered_map< libMesh::GhostingFunctor *, std::vector< std::shared_ptr< libMesh::GhostingFunctor > > > _root_coupling_gf_to_sys_clones
 A map from a root coupling ghosting functor, e.g.
 
const ParallelParamObject & _parent
 
const MooseBase & _si_moose_base
 The MooseBase that owns this interface.
 
const FEProblemBase * _si_problem
 A pointer to FEProblem base.
 
const RestartableDataMapName _metaname
 Restartable metadata name.
 
std::string _restartable_name
 The name of the object.
 

Detailed Description

Specialization of SubProblem for dumping generated objects as input file syntax.

Definition at line 36 of file DumpObjectsProblem.h.

Member Typedef Documentation

◆ DataFileParameterType

using DataFileInterface::DataFileParameterType = DataFileName
inherited

The parameter type this interface expects for a data file name.

Definition at line 27 of file DataFileInterface.h.

Member Enumeration Documentation

◆ CoverageCheckMode

enum class FEProblemBase::CoverageCheckMode
stronginherited

◆ TrueFunctorIs

enum class SubProblem::TrueFunctorIs
strongprivateinherited
Enumerator
UNSET 
NONAD 
AD 

Definition at line 1133 of file SubProblem.h.

Constructor & Destructor Documentation

◆ DumpObjectsProblem()

DumpObjectsProblem::DumpObjectsProblem ( const InputParameters &  parameters)

Definition at line 51 of file DumpObjectsProblem.C.

53 _include_all_user_specified_params(getParam<bool>("include_all_user_specified_params"))
54{
55 // Make dummy systems based on parameters passed
56 _solver_systems.resize(0);
57 for (const auto i : index_range(_nl_sys_names))
58 {
59 const auto & sys_name = _nl_sys_names[i];
60 const auto & new_sys = std::make_shared<DumpObjectsNonlinearSystem>(*this, sys_name);
61 _solver_systems.push_back(new_sys);
62 _nl[i] = new_sys;
63 }
64 for (const auto i : index_range(_linear_sys_names))
65 {
66 const auto & sys_name = _linear_sys_names[i];
67 const auto & new_sys = std::make_shared<DumpObjectsLinearSystem>(*this, sys_name);
68 _solver_systems.push_back(new_sys);
69 _linear_systems[i] = new_sys;
70 }
71 _aux = std::make_shared<AuxiliarySystem>(*this, "aux0");
72
73 // Create a dummy assembly for the systems at hand
75
76 // Create extra vectors and matrices if any
78
79 // Create extra solution vectors if any
81
82 // Add an action to call printObjects at the end of the action/tasks phase
83 // NOTE: We previously relied on problem.solve() but some executioners (SIMPLE in NavierStokes) do
84 // not support this
85 auto action_params = _app.getActionFactory().getValidParams("DumpObjectsAction");
86 action_params.applyParameters(parameters);
87 auto dump_objects_action =
88 _app.getActionFactory().create("DumpObjectsAction", "dump_objects", action_params);
89 _app.actionWarehouse().addActionBlock(dump_objects_action);
90}
std::shared_ptr< Action > create(const std::string &action, const std::string &action_name, InputParameters &parameters)
InputParameters getValidParams(const std::string &name)
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
const bool _include_all_user_specified_params
Whether to include all user-specified parameters in the dump or only parameters that differ from the ...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
std::shared_ptr< AuxiliarySystem > _aux
The auxiliary system.
void createTagVectors()
Create extra tagged vectors and matrices.
std::vector< std::shared_ptr< LinearSystem > > _linear_systems
The vector of linear systems.
virtual void newAssemblyArray(std::vector< std::shared_ptr< SolverSystem > > &solver_systems)
const std::vector< LinearSystemName > _linear_sys_names
The linear system names.
std::vector< std::shared_ptr< NonlinearSystemBase > > _nl
The nonlinear systems.
void createTagSolutions()
Create extra tagged solution vectors.
std::vector< std::shared_ptr< SolverSystem > > _solver_systems
Combined container to base pointer of every solver system.
const std::vector< NonlinearSystemName > _nl_sys_names
The nonlinear system names.
void applyParameters(const InputParameters &common, const std::vector< std::string > &exclude={}, const bool allow_private=false)
Method for applying common parameters.
ActionWarehouse & actionWarehouse()
Return a writable reference to the ActionWarehouse associated with this app.
Definition MooseApp.h:217
ActionFactory & getActionFactory()
Retrieve a writable reference to the ActionFactory associated with this App.
Definition MooseApp.h:412
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
MooseApp & _app
The MOOSE application this is associated with.
Definition MooseBase.h:375
auto index_range(const T &sizable)

Member Function Documentation

◆ _setCLIOption()

void Problem::_setCLIOption ( )
inlineinherited

For Internal Use.

Definition at line 32 of file Problem.h.

32{ _cli_option_found = true; }
bool _cli_option_found
True if the CLI option is found.
Definition Problem.h:52

◆ acceptInvalidSolution()

bool FEProblemBase::acceptInvalidSolution ( ) const
inherited

Whether or not to accept the solution based on its invalidity.

If this returns false, it means that an invalid solution was encountered (an error) that was not allowed.

Definition at line 4124 of file FEProblemBase.C.

4125{
4126 return allowInvalidSolution() || // invalid solutions are always allowed
4127 !_app.solutionInvalidity().hasInvalidSolutionError(); // if not allowed, check for errors
4128}
bool allowInvalidSolution() const
Whether to accept / allow an invalid solution.
SolutionInvalidity & solutionInvalidity()
Get the SolutionInvalidity for this app.
Definition MooseApp.h:185
bool hasInvalidSolutionError() const
Whether or not an invalid solution was encountered that was an error.

Referenced by SolverSystem::checkInvalidSolution(), and NonlinearSystem::converged().

◆ adaptivity()

Adaptivity & FEProblemBase::adaptivity ( )
inlineinherited

Definition at line 2171 of file FEProblemBase.h.

2171{ return _adaptivity; }
Adaptivity _adaptivity

Referenced by Eigenvalue::execute(), SteadyBase::execute(), and FEProblemBase::initialAdaptMesh().

◆ adaptMesh()

virtual bool DumpObjectsProblem::adaptMesh ( )
inlineoverridevirtual
Returns
Whether or not the mesh was changed

Reimplemented from FEProblemBase.

Definition at line 70 of file DumpObjectsProblem.h.

70{ return false; }

◆ addAlgebraicGhostingFunctor()

void SubProblem::addAlgebraicGhostingFunctor ( libMesh::GhostingFunctor &  algebraic_gf,
bool  to_mesh = true 
)
inherited

Add an algebraic ghosting functor to this problem's DofMaps.

Definition at line 1028 of file SubProblem.C.

1029{
1030 EquationSystems & eq = es();
1031 const auto n_sys = eq.n_systems();
1032 if (!n_sys)
1033 return;
1034
1035 eq.get_system(0).get_dof_map().add_algebraic_ghosting_functor(algebraic_gf, to_mesh);
1036 cloneAlgebraicGhostingFunctor(algebraic_gf, to_mesh);
1037}
void cloneAlgebraicGhostingFunctor(libMesh::GhostingFunctor &algebraic_gf, bool to_mesh=true)
Creates (n_sys - 1) clones of the provided algebraic ghosting functor (corresponding to the nonlinear...
virtual libMesh::EquationSystems & es()=0

◆ addAnyRedistributers()

void FEProblemBase::addAnyRedistributers ( )
privateinherited

Definition at line 6752 of file FEProblemBase.C.

6753{
6754#ifdef LIBMESH_ENABLE_AMR
6755 if ((_adaptivity.isOn() || _num_grid_steps) &&
6758 {
6759 // Even on a serialized Mesh, we don't keep our material
6760 // properties serialized, so we'll rely on the callback to
6761 // redistribute() to redistribute properties at the same time
6762 // libMesh is redistributing elements.
6763 auto add_redistributer = [this](MooseMesh & mesh,
6764 const std::string & redistributer_name,
6765 const bool use_displaced_mesh)
6766 {
6768 redistribute_params.set<MooseApp *>(MooseBase::app_param) = &_app;
6769 redistribute_params.set<std::string>("for_whom") = this->name();
6770 redistribute_params.set<MooseMesh *>("mesh") = &mesh;
6771 redistribute_params.set<Moose::RelationshipManagerType>("rm_type") =
6773 redistribute_params.set<bool>("use_displaced_mesh") = use_displaced_mesh;
6774 redistribute_params.setHitNode(*parameters().getHitNode(), {});
6775
6776 std::shared_ptr<RedistributeProperties> redistributer =
6778 "RedistributeProperties", redistributer_name, redistribute_params);
6779
6782
6784 redistributer->addMaterialPropertyStorage(_bnd_material_props);
6785
6787 redistributer->addMaterialPropertyStorage(_neighbor_material_props);
6788
6789 mesh.getMesh().add_ghosting_functor(redistributer);
6790 };
6791
6792 add_redistributer(_mesh, "mesh_property_redistributer", false);
6794 add_redistributer(_displaced_problem->mesh(), "displaced_mesh_property_redistributer", true);
6795 }
6796#endif // LIBMESH_ENABLE_AMR
6797}
bool isOn()
Is adaptivity on?
Definition Adaptivity.h:193
MaterialPropertyStorage & _material_props
MaterialPropertyStorage & _neighbor_material_props
MooseMesh & _mesh
unsigned int _num_grid_steps
Number of steps in a grid sequence.
MaterialPropertyStorage & _bnd_material_props
virtual MooseMesh & mesh() override
std::shared_ptr< DisplacedProblem > _displaced_problem
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters &parameters, THREAD_ID tid=0, bool print_deprecated=true)
Definition Factory.C:142
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void setHitNode(const std::string &param, const hit::Node &node, const SetParamHitNodeKey)
Sets the hit node associated with the parameter param to node.
const hit::Node * getHitNode(const std::string &param) const
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
Base class for MOOSE-based applications.
Definition MooseApp.h:110
const std::string & name() const
Get the name of the class.
Definition MooseBase.h:103
static const std::string app_param
The name of the parameter that contains the MooseApp.
Definition MooseBase.h:59
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
Definition MooseMesh.C:3512
RedistributeProperties is used for its redistribute() callback, which ensures that any stateful prope...
static InputParameters validParams()
void addMaterialPropertyStorage(MaterialPropertyStorage &mat_props)
Pushes the given pair ( mat_data , mat_props ) onto our list of _materials data to redistribute each ...
Factory & _factory
The Factory for building objects.
RelationshipManagerType
Main types of Relationship Managers.

◆ addAuxArrayVariable()

void FEProblemBase::addAuxArrayVariable ( const std::string &  var_name,
const libMesh::FEType &  type,
unsigned int  components,
const std::set< SubdomainID > *const  active_subdomains = NULL 
)
virtualinherited

Definition at line 3452 of file FEProblemBase.C.

3456{
3457 parallel_object_only();
3458
3459 mooseDeprecated("Please use the addAuxVariable(var_type, var_name, params) API instead");
3460
3461 if (duplicateVariableCheck(var_name, type, /* is_aux = */ true, active_subdomains))
3462 return;
3463
3464 InputParameters params = _factory.getValidParams("ArrayMooseVariable");
3465 params.set<FEProblemBase *>("_fe_problem_base") = this;
3467 params.set<MooseEnum>("order") = type.order.get_order();
3468 params.set<MooseEnum>("family") = Moose::stringify(type.family);
3469 params.set<bool>("p_refinement") = type.p_refinement;
3470 params.set<unsigned int>("components") = components;
3471
3472 if (active_subdomains)
3473 for (const SubdomainID & id : *active_subdomains)
3474 params.set<std::vector<SubdomainName>>("block").push_back(Moose::stringify(id));
3475
3476 logAdd("Variable", var_name, "ArrayMooseVariable", params);
3477 _aux->addVariable("ArrayMooseVariable", var_name, params);
3479 _displaced_problem->addAuxVariable("ArrayMooseVariable", var_name, params);
3480}
subdomain_id_type SubdomainID
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition MooseError.h:363
void logAdd(const std::string &system, const std::string &name, const std::string &type, const InputParameters &params) const
Output information about the object just added to the problem.
bool duplicateVariableCheck(const std::string &var_name, const libMesh::FEType &type, bool is_aux, const std::set< SubdomainID > *const active_subdomains)
Helper to check for duplicate variable names across systems or within a single system.
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
Definition Factory.C:68
const std::string & type() const
Get the type of this class.
Definition MooseBase.h:93
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
std::string stringify(const T &t)
conversion to string
Definition Conversion.h:65
VarKindType
Framework-wide stuff.
Definition MooseTypes.h:769
@ VAR_AUXILIARY
Definition MooseTypes.h:771
std::string stringify(MOOSEIOType type)
Definition NEML2Utils.C:18

◆ addAuxKernel()

void FEProblemBase::addAuxKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 3517 of file FEProblemBase.C.

3520{
3521 parallel_object_only();
3522
3523 setAuxKernelParamsAndLog(kernel_name, name, parameters, "AuxKernel");
3524
3525 _aux->addKernel(kernel_name, name, parameters);
3526}
void setAuxKernelParamsAndLog(const std::string &ak_name, const std::string &name, InputParameters &parameters, const std::string &base_name)
Set the subproblem and system parameters for auxiliary kernels and log their addition.

◆ addAuxScalarKernel()

void FEProblemBase::addAuxScalarKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3529 of file FEProblemBase.C.

3532{
3533 parallel_object_only();
3534
3535 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3536 {
3537 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3538 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
3539 }
3540 else
3541 {
3542 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3543 {
3544 // We allow AuxScalarKernels to request that they use_displaced_mesh,
3545 // but then be overridden when no displacements variables are
3546 // provided in the Mesh block. If that happened, update the value
3547 // of use_displaced_mesh appropriately for this AuxScalarKernel.
3548 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3549 parameters.set<bool>("use_displaced_mesh") = false;
3550 }
3551
3552 parameters.set<SubProblem *>("_subproblem") = this;
3553 parameters.set<SystemBase *>("_sys") = _aux.get();
3554 }
3555
3556 logAdd("AuxScalarKernel", name, kernel_name, parameters);
3557 _aux->addScalarKernel(kernel_name, name, parameters);
3558}
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
bool have_parameter(std::string_view name) const
A wrapper around the Parameters base class method.
Generic class for solving transient nonlinear problems.
Definition SubProblem.h:79
Base class for a system (of equations)
Definition SystemBase.h:87

◆ addAuxScalarVariable()

void FEProblemBase::addAuxScalarVariable ( const std::string &  var_name,
libMesh::Order  order,
Real  scale_factor = 1.,
const std::set< SubdomainID > *const  active_subdomains = NULL 
)
virtualinherited

Definition at line 3483 of file FEProblemBase.C.

3487{
3488 parallel_object_only();
3489
3490 mooseDeprecated("Please use the addAuxVariable(var_type, var_name, params) API instead");
3491
3492 if (order > _max_scalar_order)
3493 _max_scalar_order = order;
3494
3495 FEType type(order, SCALAR);
3496 if (duplicateVariableCheck(var_name, type, /* is_aux = */ true, active_subdomains))
3497 return;
3498
3499 InputParameters params = _factory.getValidParams("MooseVariableScalar");
3500 params.set<FEProblemBase *>("_fe_problem_base") = this;
3502
3503 params.set<MooseEnum>("order") = type.order.get_order();
3504 params.set<MooseEnum>("family") = "SCALAR";
3505 params.set<std::vector<Real>>("scaling") = std::vector<Real>{1};
3506 if (active_subdomains)
3507 for (const SubdomainID & id : *active_subdomains)
3508 params.set<std::vector<SubdomainName>>("block").push_back(Moose::stringify(id));
3509
3510 logAdd("ScalarVariable", var_name, "MooseVariableScalar", params);
3511 _aux->addVariable("MooseVariableScalar", var_name, params);
3513 _displaced_problem->addAuxVariable("MooseVariableScalar", var_name, params);
3514}
libMesh::Order _max_scalar_order
Maximum scalar variable order.

◆ addAuxVariable() [1/2]

virtual void FEProblemBase::addAuxVariable ( const std::string &  var_name,
const libMesh::FEType &  type,
const std::set< SubdomainID > *const  active_subdomains = NULL 
)
virtual

Reimplemented from FEProblemBase.

◆ addAuxVariable() [2/2]

void FEProblemBase::addAuxVariable ( const std::string &  var_type,
const std::string &  var_name,
InputParameters &  params 
)
virtual

Canonical method for adding an auxiliary variable.

Parameters
var_typethe type of the variable, e.g. MooseVariableScalar
var_namethe variable name, e.g. 'u'
paramsthe InputParameters from which to construct the variable

Reimplemented from FEProblemBase.

Definition at line 1059 of file FEProblemBase.C.

3381{
3382 parallel_object_only();
3383
3384 const auto fe_type = MooseUtils::variableFEType(params);
3385
3386 const auto active_subdomains_vector =
3387 _mesh.getSubdomainIDs(params.get<std::vector<SubdomainName>>("block"));
3388 const std::set<SubdomainID> active_subdomains(active_subdomains_vector.begin(),
3389 active_subdomains_vector.end());
3390
3391 if (duplicateVariableCheck(var_name, fe_type, /* is_aux = */ true, &active_subdomains))
3392 return;
3393
3394 params.set<FEProblemBase *>("_fe_problem_base") = this;
3396
3397 logAdd("AuxVariable", var_name, var_type, params);
3398 _aux->addVariable(var_type, var_name, params);
3400 // MooseObjects need to be unique so change the name here
3401 _displaced_problem->addAuxVariable(var_type, var_name, params);
3402}
std::vector< SubdomainID > getSubdomainIDs(const std::vector< SubdomainName > &subdomain_names) const
Get the associated subdomainIDs for the subdomain names that are passed in.
Definition MooseMesh.C:1684
libMesh::FEType variableFEType(const InputParameters &params)
Definition MooseUtils.C:98

◆ addBoundaryCondition()

void FEProblemBase::addBoundaryCondition ( const std::string &  bc_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 3307 of file FEProblemBase.C.

3310{
3311 parallel_object_only();
3312
3313 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3314 if (!isSolverSystemNonlinear(nl_sys_num))
3315 mooseError(
3316 "You are trying to add a BoundaryCondition to a linear variable/system, which is not "
3317 "supported at the moment!");
3318
3320 bc_name, name, parameters, nl_sys_num, "BoundaryCondition", _reinit_displaced_face);
3321 _nl[nl_sys_num]->addBoundaryCondition(bc_name, name, parameters);
3322}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
bool isSolverSystemNonlinear(const unsigned int sys_num)
Check if the solver system is nonlinear.
bool _reinit_displaced_face
Whether to call DisplacedProblem::reinitElemFace when this->reinitElemFace is called.
void setResidualObjectParamsAndLog(const std::string &ro_name, const std::string &name, InputParameters &parameters, const unsigned int nl_sys_num, const std::string &base_name, bool &reinit_displaced)
Set the subproblem and system parameters for residual objects and log their addition.
virtual std::pair< bool, unsigned int > determineSolverSystem(const std::string &var_name, bool error_if_not_found=false) const override
Determine what solver system the provided variable name lies in.
std::string varName(const std::string &var_param_name, const std::string &moose_object_with_var_param_name) const
Determine the actual variable name from the given variable \emph parameter name.

Referenced by DiffusionCG::addBoundaryConditionsFromComponents(), and DiffusionCG::addFEBCs().

◆ addCachedJacobian()

void FEProblemBase::addCachedJacobian ( const THREAD_ID  tid)
overridevirtualinherited

◆ addCachedResidual()

void FEProblemBase::addCachedResidual ( const THREAD_ID  tid)
overridevirtualinherited

◆ addCachedResidualDirectly()

void FEProblemBase::addCachedResidualDirectly ( NumericVector< libMesh::Number > &  residual,
const THREAD_ID  tid 
)
virtualinherited

Allows for all the residual contributions that are currently cached to be added directly into the vector passed in.

Parameters
residualThe vector to add the cached contributions to.
tidThe thread id.

Definition at line 2099 of file FEProblemBase.C.

2100{
2102 _assembly[tid][_current_nl_sys->number()]->addCachedResidualDirectly(
2104
2106 _assembly[tid][_current_nl_sys->number()]->addCachedResidualDirectly(
2108
2109 std::vector<VectorTag> extra_residual_vector_tags;
2110 extra_residual_vector_tags.reserve(currentResidualVectorTags().size());
2111 const auto time_tag = _current_nl_sys->timeVectorTag();
2112 const auto non_time_tag = _current_nl_sys->nonTimeVectorTag();
2113 for (const auto & vector_tag : currentResidualVectorTags())
2114 if (vector_tag._id != time_tag && vector_tag._id != non_time_tag)
2115 extra_residual_vector_tags.push_back(vector_tag);
2116
2117 // Flush extra vector tag caches (e.g. from extra_vector_tags on NodalConstraints)
2118 // to their respective system vectors after the standard TIME/NONTIME caches above.
2119 // Without this, NodalConstraint contributions to extra vector tags are silently
2120 // discarded by the blanket clearCachedResiduals.
2121 _assembly[tid][_current_nl_sys->number()]->addCachedResiduals(Assembly::GlobalDataKey{},
2122 extra_residual_vector_tags);
2123
2124 // We do this because by adding the cached residual directly, we cannot ensure that all of the
2125 // cached residuals are emptied after only the two add calls above
2126 _assembly[tid][_current_nl_sys->number()]->clearCachedResiduals(Assembly::GlobalDataKey{});
2127
2129 _displaced_problem->addCachedResidualDirectly(residual, tid);
2130}
if(!dmm->_nl) SETERRQ(PETSC_COMM_WORLD
Key structure for APIs manipulating global vectors/matrices.
Definition Assembly.h:836
virtual const std::vector< VectorTag > & currentResidualVectorTags() const override
Return the residual vector tags we are currently computing.
std::vector< std::vector< std::unique_ptr< Assembly > > > _assembly
The Assembly objects.
NonlinearSystemBase * _current_nl_sys
The current nonlinear system that we are solving.
TagID timeVectorTag() const override
Ideally, we should not need this API.
TagID nonTimeVectorTag() const override
virtual const VectorTag & getVectorTag(const TagID tag_id) const
Get a VectorTag from a TagID.
Definition SubProblem.C:150
bool hasVector(const std::string &tag_name) const
Check if the named vector exists in the system.
Definition SystemBase.C:921
unsigned int number() const
Gets the number of this system.

Referenced by NonlinearSystemBase::constraintResiduals(), and NonlinearSystemBase::enforceNodalConstraintsResidual().

◆ addConstraint()

void FEProblemBase::addConstraint ( const std::string &  c_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3325 of file FEProblemBase.C.

3328{
3329 parallel_object_only();
3330
3331 _has_constraints = true;
3332
3333 auto determine_var_param_name = [&parameters, this]()
3334 {
3335 if (parameters.isParamValid("variable"))
3336 return "variable";
3337 else
3338 {
3339 // must be a mortar constraint
3340 const bool has_secondary_var = parameters.isParamValid("secondary_variable");
3341 const bool has_primary_var = parameters.isParamValid("primary_variable");
3342 if (!has_secondary_var && !has_primary_var)
3343 mooseError(
3344 "Either a 'secondary_variable' or 'primary_variable' parameter must be supplied for '",
3346 "'");
3347 return has_secondary_var ? "secondary_variable" : "primary_variable";
3348 }
3349 };
3350
3351 const auto nl_sys_num =
3352 determineSolverSystem(parameters.varName(determine_var_param_name(), name), true).second;
3353 if (!isSolverSystemNonlinear(nl_sys_num))
3354 mooseError("You are trying to add a Constraint to a linear variable/system, which is not "
3355 "supported at the moment!");
3356
3357 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3358 {
3359 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3360 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3362 }
3363 else
3364 {
3365 // It might _want_ to use a displaced mesh... but we're not so set it to false
3366 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3367 parameters.set<bool>("use_displaced_mesh") = false;
3368
3369 parameters.set<SubProblem *>("_subproblem") = this;
3370 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3371 }
3372
3373 logAdd("Constraint", name, c_name, parameters);
3374 _nl[nl_sys_num]->addConstraint(c_name, name, parameters);
3375}
bool _has_constraints
Whether or not this system has any Constraints.
const std::string & getObjectName() const
bool isParamValid(const std::string &name) const
This method returns parameters that have been initialized in one fashion or another,...
const Elem & get(const ElemType type_in)

◆ addConsumedPropertyName()

void SubProblem::addConsumedPropertyName ( const MooseObjectName &  obj_name,
const std::string &  prop_name 
)
inherited

Helper for tracking the object that is consuming a property for MaterialPropertyDebugOutput.

Definition at line 725 of file SubProblem.C.

726{
727 _consumed_material_properties[obj_name].insert(prop_name);
728}
std::map< MooseObjectName, std::set< std::string > > _consumed_material_properties

Referenced by MaterialPropertyInterface::addConsumedPropertyName().

◆ addConvergence()

void FEProblemBase::addConvergence ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Adds a Convergence object.

Definition at line 2723 of file FEProblemBase.C.

2726{
2727 parallel_object_only();
2728
2729 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
2730 {
2731 std::shared_ptr<Convergence> conv = _factory.create<Convergence>(type, name, parameters, tid);
2732 _convergences.addObject(conv, tid);
2733 }
2734}
unsigned int THREAD_ID
Definition MooseTypes.h:237
Base class for convergence criteria.
Definition Convergence.h:26
MooseObjectWarehouse< Convergence > _convergences
convergence warehouse
virtual void addObject(std::shared_ptr< T > object, THREAD_ID tid=0, bool recurse=true) override
Adds an object to the storage structure.
unsigned int n_threads()

Referenced by FEProblemBase::addDefaultMultiAppFixedPointConvergence(), FEProblemBase::addDefaultNonlinearConvergence(), ReferenceResidualProblem::addDefaultNonlinearConvergence(), and FEProblemBase::addDefaultSteadyStateConvergence().

◆ addCouplingGhostingFunctor()

void SubProblem::addCouplingGhostingFunctor ( libMesh::GhostingFunctor &  coupling_gf,
bool  to_mesh = true 
)
inherited

Add a coupling functor to this problem's DofMaps.

Definition at line 1061 of file SubProblem.C.

1062{
1063 const auto num_nl_sys = numNonlinearSystems();
1064 if (!num_nl_sys)
1065 return;
1066
1067 systemBaseNonlinear(0).system().get_dof_map().add_coupling_functor(coupling_gf, to_mesh);
1068 cloneCouplingGhostingFunctor(coupling_gf, to_mesh);
1069}
virtual std::size_t numNonlinearSystems() const =0
virtual const SystemBase & systemBaseNonlinear(const unsigned int sys_num) const =0
Return the nonlinear system object as a base class reference given the system number.
void cloneCouplingGhostingFunctor(libMesh::GhostingFunctor &coupling_gf, bool to_mesh=true)
Creates (n_sys - 1) clones of the provided coupling ghosting functor (corresponding to the nonlinear ...
virtual libMesh::System & system()=0
Get the reference to the libMesh system.
void add_coupling_functor(GhostingFunctor &coupling_functor, bool to_mesh=true)
const DofMap & get_dof_map() const

◆ addDamper()

void FEProblemBase::addDamper ( const std::string &  damper_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 5782 of file FEProblemBase.C.

5785{
5786 parallel_object_only();
5787
5788 const auto nl_sys_num =
5789 parameters.isParamValid("variable")
5790 ? determineSolverSystem(parameters.varName("variable", name), true).second
5791 : (unsigned int)0;
5792
5793 if (!isSolverSystemNonlinear(nl_sys_num))
5794 mooseError("You are trying to add a DGKernel to a linear variable/system, which is not "
5795 "supported at the moment!");
5796
5797 parameters.set<SubProblem *>("_subproblem") = this;
5798 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
5799
5800 _has_dampers = true;
5801 logAdd("Damper", name, damper_name, parameters);
5802 _nl[nl_sys_num]->addDamper(damper_name, name, parameters);
5803}
void ErrorVector unsigned int
bool _has_dampers
Whether or not this system has any Dampers associated with it.

◆ addDefaultMultiAppFixedPointConvergence()

void FEProblemBase::addDefaultMultiAppFixedPointConvergence ( const InputParameters &  params)
inherited

Adds the default fixed point Convergence associated with the problem.

This is called if the user does not supply 'multiapp_fixed_point_convergence'.

Parameters
[in]paramsParameters to apply to Convergence parameters

Definition at line 2749 of file FEProblemBase.C.

2750{
2751 const std::string class_name = "DefaultMultiAppFixedPointConvergence";
2752 InputParameters params = _factory.getValidParams(class_name);
2753 params.applyParameters(params_to_apply);
2754 params.applyParameters(parameters());
2755 params.set<bool>("added_as_default") = true;
2757}
virtual void addConvergence(const std::string &type, const std::string &name, InputParameters &parameters)
Adds a Convergence object.
const ConvergenceName & getMultiAppFixedPointConvergenceName() const
Gets the MultiApp fixed point convergence object name.

◆ addDefaultNonlinearConvergence()

void FEProblemBase::addDefaultNonlinearConvergence ( const InputParameters &  params)
virtualinherited

Adds the default nonlinear Convergence associated with the problem.

This is called if the user does not supply 'nonlinear_convergence'.

Parameters
[in]paramsParameters to apply to Convergence parameters

Reimplemented in ReferenceResidualProblem.

Definition at line 2737 of file FEProblemBase.C.

2738{
2739 const std::string class_name = "DefaultNonlinearConvergence";
2740 InputParameters params = _factory.getValidParams(class_name);
2741 params.applyParameters(params_to_apply);
2742 params.applyParameters(parameters());
2743 params.set<bool>("added_as_default") = true;
2744 for (const auto & conv_name : getNonlinearConvergenceNames())
2745 addConvergence(class_name, conv_name, params);
2746}
const std::vector< ConvergenceName > & getNonlinearConvergenceNames() const
Gets the nonlinear system convergence object name(s).

◆ addDefaultSteadyStateConvergence()

void FEProblemBase::addDefaultSteadyStateConvergence ( const InputParameters &  params)
inherited

Adds the default steady-state detection Convergence.

This is called if the user does not supply 'steady_state_convergence'.

Parameters
[in]paramsParameters to apply to Convergence parameters

Definition at line 2760 of file FEProblemBase.C.

2761{
2762 const std::string class_name = "DefaultSteadyStateConvergence";
2763 InputParameters params = _factory.getValidParams(class_name);
2764 params.applyParameters(params_to_apply);
2765 params.applyParameters(parameters());
2766 params.set<bool>("added_as_default") = true;
2767 addConvergence(class_name, getSteadyStateConvergenceName(), params);
2768}
const ConvergenceName & getSteadyStateConvergenceName() const
Gets the steady-state detection convergence object name.

◆ addDGKernel()

void FEProblemBase::addDGKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3601 of file FEProblemBase.C.

3604{
3605 parallel_object_only();
3606
3607 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3608 if (!isSolverSystemNonlinear(nl_sys_num))
3609 mooseError("You are trying to add a DGKernel to a linear variable/system, which is not "
3610 "supported at the moment!");
3611
3612 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3613 {
3614 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3615 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3617 }
3618 else
3619 {
3620 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3621 {
3622 // We allow DGKernels to request that they use_displaced_mesh,
3623 // but then be overridden when no displacements variables are
3624 // provided in the Mesh block. If that happened, update the value
3625 // of use_displaced_mesh appropriately for this DGKernel.
3626 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3627 parameters.set<bool>("use_displaced_mesh") = false;
3628 }
3629
3630 parameters.set<SubProblem *>("_subproblem") = this;
3631 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3632 }
3633
3634 logAdd("DGKernel", name, dg_kernel_name, parameters);
3635 _nl[nl_sys_num]->addDGKernel(dg_kernel_name, name, parameters);
3636
3638}
bool _reinit_displaced_neighbor
Whether to call DisplacedProblem::reinitNeighbor when this->reinitNeighbor is called.
bool _has_internal_edge_residual_objects
Whether the problem has dgkernels or interface kernels.

◆ addDiracKernel()

void FEProblemBase::addDiracKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3561 of file FEProblemBase.C.

3564{
3565 parallel_object_only();
3566
3567 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3568 if (!isSolverSystemNonlinear(nl_sys_num))
3569 mooseError("You are trying to add a DiracKernel to a linear variable/system, which is not "
3570 "supported at the moment!");
3571
3572 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3573 {
3574 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3575 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3577 }
3578 else
3579 {
3580 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3581 {
3582 // We allow DiracKernels to request that they use_displaced_mesh,
3583 // but then be overridden when no displacements variables are
3584 // provided in the Mesh block. If that happened, update the value
3585 // of use_displaced_mesh appropriately for this DiracKernel.
3586 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3587 parameters.set<bool>("use_displaced_mesh") = false;
3588 }
3589
3590 parameters.set<SubProblem *>("_subproblem") = this;
3591 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3592 }
3593
3594 logAdd("DiracKernel", name, kernel_name, parameters);
3595 _nl[nl_sys_num]->addDiracKernel(kernel_name, name, parameters);
3596}
bool _reinit_displaced_elem
Whether to call DisplacedProblem::reinitElem when this->reinitElem is called.

◆ addDisplacedProblem()

void FEProblemBase::addDisplacedProblem ( std::shared_ptr< DisplacedProblem >  displaced_problem)
virtualinherited

Definition at line 8695 of file FEProblemBase.C.

8696{
8697 parallel_object_only();
8698
8701}
std::shared_ptr< DisplacedProblem > displaced_problem
MooseMesh * _displaced_mesh

◆ addDistribution()

void FEProblemBase::addDistribution ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

The following functions will enable MOOSE to have the capability to import distributions.

Definition at line 2896 of file FEProblemBase.C.

2899{
2900 parameters.set<std::string>("type") = type;
2901 addObject<Distribution>(type, name, parameters, /* threaded = */ false);
2902}

◆ addElementalFieldVariable()

void FEProblemBase::addElementalFieldVariable ( const std::string &  var_type,
const std::string &  var_name,
InputParameters &  params 
)
virtualinherited

Add an elemental field variable for use in the adaptivity system.

Reimplemented in MFEMProblem.

Definition at line 3405 of file FEProblemBase.C.

3408{
3409 addAuxVariable(var_type, var_name, params);
3410}
virtual void addAuxVariable(const std::string &var_type, const std::string &var_name, InputParameters &params)
Canonical method for adding an auxiliary variable.

Referenced by AddElementalFieldAction::init().

◆ addFunction()

void FEProblemBase::addFunction ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 2697 of file FEProblemBase.C.

2700{
2701 parallel_object_only();
2702
2703 parameters.set<SubProblem *>("_subproblem") = this;
2704
2705 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
2706 {
2707 std::shared_ptr<Function> func = _factory.create<Function>(type, name, parameters, tid);
2708 logAdd("Function", name, type, parameters);
2709 _functions.addObject(func, tid);
2710
2711 if (auto * const functor = dynamic_cast<Moose::FunctorBase<Real> *>(func.get()))
2712 {
2713 this->addFunctor(name, *functor, tid);
2715 _displaced_problem->addFunctor(name, *functor, tid);
2716 }
2717 else
2718 mooseError("Unrecognized function functor type");
2719 }
2720}
MooseObjectWarehouse< Function > _functions
functions
Base class for function objects.
Definition Function.h:30
Base class template for functor objects.
void addFunctor(const std::string &name, const Moose::FunctorBase< T > &functor, const THREAD_ID tid)
add a functor to the problem functor container

Referenced by MFEMProblem::addFunction(), and FEProblemBase::getFunction().

◆ addFunctor()

template<typename T >
void SubProblem::addFunctor ( const std::string &  name,
const Moose::FunctorBase< T > &  functor,
const THREAD_ID  tid 
)
inherited

add a functor to the problem functor container

Definition at line 1374 of file SubProblem.h.

1377{
1378 constexpr bool added_functor_is_ad =
1379 !std::is_same<T, typename MetaPhysicL::RawType<T>::value_type>::value;
1380
1381 mooseAssert(tid < _functors.size(), "Too large a thread ID");
1382
1383 auto & functor_to_request_info = _functor_to_request_info[tid];
1384 auto & functors = _functors[tid];
1385 auto it = functors.find("wraps_" + name);
1386 if (it != functors.end())
1387 {
1388 // We have this functor already. If it's a null functor, we want to replace it with the valid
1389 // functor we have now. If it's not then we'll add a new entry into the multimap and then we'll
1390 // error later if a user requests a functor because their request is ambiguous. This is the
1391 // reason that the functors container is a multimap: for nice error messages
1392 auto * const existing_wrapper_base =
1393 added_functor_is_ad ? std::get<2>(it->second).get() : std::get<1>(it->second).get();
1394 auto * const existing_wrapper = dynamic_cast<Moose::Functor<T> *>(existing_wrapper_base);
1395 if (existing_wrapper && existing_wrapper->template wrapsType<Moose::NullFunctor<T>>())
1396 {
1397 // Sanity check
1398 auto [request_info_it, request_info_end_it] = functor_to_request_info.equal_range(name);
1399 if (request_info_it == request_info_end_it)
1400 mooseError("We are wrapping a NullFunctor but we don't have any unfilled functor request "
1401 "info. This doesn't make sense.");
1402
1403 // Check for valid requests
1404 while (request_info_it != request_info_end_it)
1405 {
1406 auto & [requested_functor_is_ad, requestor_is_ad] = request_info_it->second;
1407 if (!requested_functor_is_ad && requestor_is_ad && added_functor_is_ad)
1408 mooseError("We are requesting a non-AD functor '" + name +
1409 "' from an AD object, but the true functor is AD. This means we could be "
1410 "dropping important derivatives. We will not allow this");
1411 // We're going to eventually check whether we've fulfilled all functor requests and our
1412 // check will be that the multimap is empty. This request is fulfilled, so erase it from the
1413 // map now
1414 request_info_it = functor_to_request_info.erase(request_info_it);
1415 }
1416
1417 // Ok we didn't have the functor before, so we will add it now
1418 std::get<0>(it->second) =
1420 existing_wrapper->assign(functor);
1421 // Finally we create the non-AD or AD complement of the just added functor
1422 if constexpr (added_functor_is_ad)
1423 {
1424 typedef typename MetaPhysicL::RawType<T>::value_type NonADType;
1425 auto * const existing_non_ad_wrapper_base = std::get<1>(it->second).get();
1426 auto * const existing_non_ad_wrapper =
1427 dynamic_cast<Moose::Functor<NonADType> *>(existing_non_ad_wrapper_base);
1428 mooseAssert(existing_non_ad_wrapper->template wrapsType<Moose::NullFunctor<NonADType>>(),
1429 "Both members of pair should have been wrapping a NullFunctor");
1430 existing_non_ad_wrapper->assign(
1431 std::make_unique<Moose::RawValueFunctor<NonADType>>(functor));
1432 }
1433 else
1434 {
1435 typedef typename Moose::ADType<T>::type ADType;
1436 auto * const existing_ad_wrapper_base = std::get<2>(it->second).get();
1437 auto * const existing_ad_wrapper =
1438 dynamic_cast<Moose::Functor<ADType> *>(existing_ad_wrapper_base);
1439 mooseAssert(existing_ad_wrapper->template wrapsType<Moose::NullFunctor<ADType>>(),
1440 "Both members of pair should have been wrapping a NullFunctor");
1441 existing_ad_wrapper->assign(std::make_unique<Moose::ADWrapperFunctor<ADType>>(functor));
1442 }
1443 return;
1444 }
1445 else if (!existing_wrapper)
1446 {
1447 // Functor was emplaced but the cast failed. This could be a double definition with
1448 // different types, or it could be a request with one type then a definition with another
1449 // type. Either way it is going to error later, but it is cleaner to catch it now
1450 mooseError("Functor '",
1451 name,
1452 "' is being added with return type '",
1453 MooseUtils::prettyCppType<T>(),
1454 "' but it has already been defined or requested with return type '",
1455 existing_wrapper_base->returnType(),
1456 "'.");
1457 }
1458 }
1459
1460 // We are a new functor, create the opposite ADType one and store it with other functors
1461 if constexpr (added_functor_is_ad)
1462 {
1463 typedef typename MetaPhysicL::RawType<T>::value_type NonADType;
1464 auto new_non_ad_wrapper = std::make_unique<Moose::Functor<NonADType>>(
1465 std::make_unique<Moose::RawValueFunctor<NonADType>>(functor));
1466 auto new_ad_wrapper = std::make_unique<Moose::Functor<T>>(functor);
1467 _functors[tid].emplace("wraps_" + name,
1468 std::make_tuple(SubProblem::TrueFunctorIs::AD,
1469 std::move(new_non_ad_wrapper),
1470 std::move(new_ad_wrapper)));
1471 }
1472 else
1473 {
1474 typedef typename Moose::ADType<T>::type ADType;
1475 auto new_non_ad_wrapper = std::make_unique<Moose::Functor<T>>((functor));
1476 auto new_ad_wrapper = std::make_unique<Moose::Functor<ADType>>(
1477 std::make_unique<Moose::ADWrapperFunctor<ADType>>(functor));
1478 _functors[tid].emplace("wraps_" + name,
1479 std::make_tuple(SubProblem::TrueFunctorIs::NONAD,
1480 std::move(new_non_ad_wrapper),
1481 std::move(new_ad_wrapper)));
1482 }
1483}
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
Definition MooseBase.h:271
Wraps non-AD functors such that they can be used in objects that have requested the functor as AD.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
A functor that serves as a placeholder during the simulation setup phase if a functor consumer reques...
std::vector< std::multimap< std::string, std::tuple< TrueFunctorIs, std::unique_ptr< Moose::FunctorEnvelopeBase >, std::unique_ptr< Moose::FunctorEnvelopeBase > > > > _functors
A container holding pointers to all the functors in our problem.
std::vector< std::multimap< std::string, std::pair< bool, bool > > > _functor_to_request_info
A multimap (for each thread) from unfilled functor requests to whether the requests were for AD funct...

Referenced by FEProblemBase::addFunction(), SubProblem::addPiecewiseByBlockLambdaFunctor(), and FEProblemBase::addUserObject().

◆ addFunctorMaterial()

void FEProblemBase::addFunctorMaterial ( const std::string &  functor_material_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 4131 of file FEProblemBase.C.

4134{
4135 parallel_object_only();
4136
4137 auto add_functor_materials = [&](const auto & parameters, const auto & name)
4138 {
4139 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
4140 {
4141 // Create the general Block/Boundary MaterialBase object
4142 std::shared_ptr<MaterialBase> material =
4143 _factory.create<MaterialBase>(functor_material_name, name, parameters, tid);
4144 logAdd("FunctorMaterial", name, functor_material_name, parameters);
4145 _all_materials.addObject(material, tid);
4146 _materials.addObject(material, tid);
4147 }
4148 };
4149
4150 parameters.set<SubProblem *>("_subproblem") = this;
4151 add_functor_materials(parameters, name);
4153 {
4154 auto disp_params = parameters;
4155 disp_params.set<SubProblem *>("_subproblem") = _displaced_problem.get();
4156 add_functor_materials(disp_params, name + "_displaced");
4157 }
4158}
MaterialWarehouse _materials
MaterialWarehouse _all_materials
MaterialBases compute MaterialProperties.

◆ addFVBC()

void FEProblemBase::addFVBC ( const std::string &  fv_bc_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3655 of file FEProblemBase.C.

3658{
3659 addObject<FVBoundaryCondition>(fv_bc_name, name, parameters);
3660}

Referenced by DiffusionFV::addFVBCs().

◆ addFVGradientMethod()

void FEProblemBase::addFVGradientMethod ( const std::string &  method_type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add an FV gradient method.

Parameters
method_typeThe type of the method.
nameThe name of the method.
parametersThe input parameters of the method.

Definition at line 4775 of file FEProblemBase.C.

4778{
4779 parallel_object_only();
4780
4782
4783 for (const auto tid : make_range(libMesh::n_threads()))
4784 {
4785 auto method = _factory.create<FVGradientMethod>(method_type, name, parameters, tid);
4786 logAdd("FVGradientMethod", name, method_type, parameters);
4787 theWarehouse().add(method);
4788 }
4789}
void addObjectParamsHelper(InputParameters &params, const std::string &object_name, const std::string &var_param_name="variable")
Helper for setting the "_subproblem" and "_sys" parameters in addObject() and in addUserObject().
TheWarehouse & theWarehouse() const
Base class for linear finite-volume cell-gradient methods.
void add(std::shared_ptr< MooseObject > obj)
add adds a new object to the warehouse and stores attributes/metadata about it for running queries/fi...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
IntRange< T > make_range(T beg, T end)

◆ addFVInitialCondition()

void FEProblemBase::addFVInitialCondition ( const std::string &  ic_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add an initial condition for a finite volume variables.

Parameters
ic_nameThe name of the boundary condition object
nameThe user-defined name from the input file
parametersThe input parameters for construction

Definition at line 3824 of file FEProblemBase.C.

3827{
3828 parallel_object_only();
3829
3830 // before we start to mess with the initial condition, we need to check parameters for errors.
3832 const std::string & var_name = parameters.get<VariableName>("variable");
3833
3834 // Forbid initial conditions on a restarted problem, as they would override the restart
3835 checkICRestartError(ic_name, name, var_name);
3836
3837 parameters.set<SubProblem *>("_subproblem") = this;
3838
3839 // field IC
3840 if (hasVariable(var_name))
3841 {
3842 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); ++tid)
3843 {
3844 auto & var = getVariable(
3846 parameters.set<SystemBase *>("_sys") = &var.sys();
3847 std::shared_ptr<FVInitialConditionBase> ic;
3848 if (var.isFV())
3849 ic = _factory.create<FVInitialCondition>(ic_name, name, parameters, tid);
3850 else
3851 mooseError(
3852 "Your variable for an FVInitialCondition needs to be an a finite volume variable!");
3853 _fv_ics.addObject(ic, tid);
3854 }
3855 }
3856 else
3857 mooseError("Variable '",
3858 var_name,
3859 "' requested in finite volume initial condition '",
3860 name,
3861 "' does not exist.");
3862}
virtual const MooseVariableFieldBase & getVariable(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
Returns the variable reference for requested variable which must be of the expected_var_type (Nonline...
virtual bool hasVariable(const std::string &var_name) const override
Whether or not this problem has the variable.
FVInitialConditionWarehouse _fv_ics
void checkICRestartError(const std::string &ic_name, const std::string &name, const VariableName &var_name)
Checks if the variable of the initial condition is getting restarted and errors for specific cases.
This is a template class that implements the workhorse compute and computeNodal methods.
void addObject(std::shared_ptr< FVInitialConditionBase > object, THREAD_ID tid, bool recurse=true)
Add object to the warehouse.
void checkParams(const std::string &parsing_syntax)
This function checks parameters stored in the object to make sure they are in the correct state as th...
@ VAR_FIELD_ANY
Definition MooseTypes.h:781
@ VAR_ANY
Definition MooseTypes.h:772

◆ addFVInterfaceKernel()

void FEProblemBase::addFVInterfaceKernel ( const std::string &  fv_ik_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

We assume that variable1 and variable2 can live on different systems, in this case the user needs to create two interface kernels with flipped variables and parameters

Definition at line 3663 of file FEProblemBase.C.

3666{
3669 addObject<FVInterfaceKernel>(
3670 fv_ik_name, name, parameters, /*threaded=*/true, /*variable_param_name=*/"variable1");
3671}

◆ addFVInterpolationMethod()

void FEProblemBase::addFVInterpolationMethod ( const std::string &  method_type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add an FV interpolation method.

Parameters
method_typeThe type of the method.
nameThe name of the method.
parametersThe input parameters of the method.

Definition at line 4758 of file FEProblemBase.C.

4761{
4762 parallel_object_only();
4763
4765
4766 for (const auto tid : make_range(libMesh::n_threads()))
4767 {
4768 auto method = _factory.create<FVInterpolationMethod>(method_type, name, parameters, tid);
4769 logAdd("FVInterpolationMethod", name, method_type, parameters);
4770 theWarehouse().add(method);
4771 }
4772}
Registered base class for linear FV interpolation objects.

◆ addFVKernel()

void FEProblemBase::addFVKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3641 of file FEProblemBase.C.

3644{
3645 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3646 // FVElementalKernels are computed in the historically finite element threaded loops. They rely
3647 // on Assembly data like _current_elem. When we call reinit on the FEProblemBase we will only
3648 // reinit the DisplacedProblem and its associated Assembly objects if we mark this boolean as
3649 // true
3651 addObject<FVKernel>(fv_kernel_name, name, parameters);
3652}

Referenced by DiffusionFV::addFVKernels().

◆ addGhostedBoundary()

void FEProblemBase::addGhostedBoundary ( BoundaryID  boundary_id)
overridevirtualinherited

Will make sure that all necessary elements from boundary_id are ghosted to this processor.

Implements SubProblem.

Definition at line 2316 of file FEProblemBase.C.

2317{
2318 _mesh.addGhostedBoundary(boundary_id);
2320 _displaced_mesh->addGhostedBoundary(boundary_id);
2321}
void addGhostedBoundary(BoundaryID boundary_id)
This will add the boundary ids to be ghosted to this processor.
Definition MooseMesh.C:3293

Referenced by DisplacedProblem::addGhostedBoundary().

◆ addGhostedElem()

void FEProblemBase::addGhostedElem ( dof_id_type  elem_id)
overridevirtualinherited

Will make sure that all dofs connected to elem_id are ghosted to this processor.

Implements SubProblem.

Definition at line 2309 of file FEProblemBase.C.

2310{
2311 if (_mesh.elemPtr(elem_id)->processor_id() != processor_id())
2312 _ghosted_elems.insert(elem_id);
2313}
virtual Elem * elemPtr(const dof_id_type i)
Definition MooseMesh.C:3177
std::set< dof_id_type > _ghosted_elems
Elements that should have Dofs ghosted to the local processor.
processor_id_type processor_id() const

Referenced by DisplacedProblem::addGhostedElem(), and NodalPatchRecovery::NodalPatchRecovery().

◆ addHDGKernel()

void FEProblemBase::addHDGKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3221 of file FEProblemBase.C.

3224{
3225 parallel_object_only();
3226 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3227 if (!isSolverSystemNonlinear(nl_sys_num))
3228 mooseError("You are trying to add a HDGKernel to a linear variable/system, which is not "
3229 "supported at the moment!");
3231 kernel_name, name, parameters, nl_sys_num, "HDGKernel", _reinit_displaced_elem);
3232
3233 _nl[nl_sys_num]->addHDGKernel(kernel_name, name, parameters);
3234}

◆ addIndicator()

void FEProblemBase::addIndicator ( const std::string &  indicator_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 5813 of file FEProblemBase.C.

5816{
5817 parallel_object_only();
5818
5819 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
5820 {
5821 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
5822 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
5824 }
5825 else
5826 {
5827 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
5828 {
5829 // We allow Indicators to request that they use_displaced_mesh,
5830 // but then be overridden when no displacements variables are
5831 // provided in the Mesh block. If that happened, update the value
5832 // of use_displaced_mesh appropriately for this Indicator.
5833 if (parameters.have_parameter<bool>("use_displaced_mesh"))
5834 parameters.set<bool>("use_displaced_mesh") = false;
5835 }
5836
5837 parameters.set<SubProblem *>("_subproblem") = this;
5838 parameters.set<SystemBase *>("_sys") = _aux.get();
5839 }
5840
5841 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
5842 {
5843 std::shared_ptr<Indicator> indicator =
5844 _factory.create<Indicator>(indicator_name, name, parameters, tid);
5845 logAdd("Indicator", name, indicator_name, parameters);
5846 std::shared_ptr<InternalSideIndicatorBase> isi =
5847 std::dynamic_pointer_cast<InternalSideIndicatorBase>(indicator);
5848 if (isi)
5850 else
5851 _indicators.addObject(indicator, tid);
5852 }
5853}
MooseObjectWarehouse< Indicator > _indicators
MooseObjectWarehouse< InternalSideIndicatorBase > _internal_side_indicators

◆ addInitialCondition()

void FEProblemBase::addInitialCondition ( const std::string &  ic_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 3764 of file FEProblemBase.C.

3767{
3768 parallel_object_only();
3769
3770 // before we start to mess with the initial condition, we need to check parameters for errors.
3772 const std::string & var_name = parameters.get<VariableName>("variable");
3773
3774 // Forbid initial conditions on a restarted problem, as they would override the restart
3775 checkICRestartError(ic_name, name, var_name);
3776
3777 parameters.set<SubProblem *>("_subproblem") = this;
3778
3779 // field IC
3780 if (hasVariable(var_name))
3781 {
3782 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); ++tid)
3783 {
3786 parameters.set<SystemBase *>("_sys") = &var.sys();
3787 std::shared_ptr<InitialConditionBase> ic;
3788 if (dynamic_cast<MooseVariable *>(&var))
3789 ic = _factory.create<InitialCondition>(ic_name, name, parameters, tid);
3790 else if (dynamic_cast<VectorMooseVariable *>(&var))
3792 else if (dynamic_cast<ArrayMooseVariable *>(&var))
3793 ic = _factory.create<ArrayInitialCondition>(ic_name, name, parameters, tid);
3794 else if (dynamic_cast<MooseVariableFVReal *>(&var))
3795 ic = _factory.create<InitialCondition>(ic_name, name, parameters, tid);
3796 else if (dynamic_cast<MooseLinearVariableFVReal *>(&var))
3797 ic = _factory.create<InitialCondition>(ic_name, name, parameters, tid);
3798 else
3799 mooseError("Your FE variable in initial condition ",
3800 name,
3801 " must be either of scalar or vector type");
3802 logAdd("IC", name, ic_name, parameters);
3803 _ics.addObject(ic, tid);
3804 }
3805 }
3806
3807 // scalar IC
3808 else if (hasScalarVariable(var_name))
3809 {
3810 MooseVariableScalar & var = getScalarVariable(0, var_name);
3811 parameters.set<SystemBase *>("_sys") = &var.sys();
3812 std::shared_ptr<ScalarInitialCondition> ic =
3814 logAdd("ScalarIC", name, ic_name, parameters);
3816 }
3817
3818 else
3819 mooseError(
3820 "Variable '", var_name, "' requested in initial condition '", name, "' does not exist.");
3821}
ScalarInitialConditionWarehouse _scalar_ics
virtual bool hasScalarVariable(const std::string &var_name) const override
Returns a Boolean indicating whether any system contains a variable with the name provided.
virtual MooseVariableScalar & getScalarVariable(const THREAD_ID tid, const std::string &var_name) override
Returns the scalar variable reference from whichever system contains it.
InitialConditionWarehouse _ics
This is a template class that implements the workhorse compute and computeNodal methods.
void addObject(std::shared_ptr< InitialConditionBase > object, THREAD_ID tid, bool recurse=true)
Add object to the warehouse.
virtual void addObject(std::shared_ptr< T > object, THREAD_ID tid=0, bool recurse=true)
Adds an object to the storage structure.
SystemBase & sys()
Get the system this variable is part of.
This class provides an interface for common operations on field variables of both FE and FV types wit...
Class for scalar variables (they are different).
InitialConditions are objects that set the initial value of variables.

Referenced by DiffusionPhysicsBase::addInitialConditions(), and DiffusionPhysicsBase::addInitialConditionsFromComponents().

◆ addInterfaceKernel()

void FEProblemBase::addInterfaceKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3692 of file FEProblemBase.C.

3695{
3696 parallel_object_only();
3697
3698 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3699 if (!isSolverSystemNonlinear(nl_sys_num))
3700 mooseError("You are trying to add a InterfaceKernel to a linear variable/system, which is not "
3701 "supported at the moment!");
3702
3703 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3704 {
3705 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3706 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3708 }
3709 else
3710 {
3711 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3712 {
3713 // We allow InterfaceKernels to request that they use_displaced_mesh,
3714 // but then be overridden when no displacements variables are
3715 // provided in the Mesh block. If that happened, update the value
3716 // of use_displaced_mesh appropriately for this InterfaceKernel.
3717 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3718 parameters.set<bool>("use_displaced_mesh") = false;
3719 }
3720
3721 parameters.set<SubProblem *>("_subproblem") = this;
3722 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3723 }
3724
3725 logAdd("InterfaceKernel", name, interface_kernel_name, parameters);
3726 _nl[nl_sys_num]->addInterfaceKernel(interface_kernel_name, name, parameters);
3727
3729}

◆ addInterfaceMaterial()

void FEProblemBase::addInterfaceMaterial ( const std::string &  material_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 4169 of file FEProblemBase.C.

4172{
4174}
virtual void addMaterialHelper(std::vector< MaterialWarehouse * > warehouse, const std::string &material_name, const std::string &name, InputParameters &parameters)
MaterialWarehouse _interface_materials

◆ addJacobian()

void FEProblemBase::addJacobian ( const THREAD_ID  tid)
overridevirtualinherited

Implements SubProblem.

Definition at line 2153 of file FEProblemBase.C.

2154{
2157 _assembly[tid][_current_nl_sys->number()]->addJacobianNonlocal(Assembly::GlobalDataKey{});
2159 {
2160 _displaced_problem->addJacobian(tid);
2162 _displaced_problem->addJacobianNonlocal(tid);
2163 }
2164}
bool _has_nonlocal_coupling
Indicates if nonlocal coupling is required/exists.

Referenced by ComputeDiracThread::postElement().

◆ addJacobianBlockTags()

void FEProblemBase::addJacobianBlockTags ( libMesh::SparseMatrix< libMesh::Number > &  jacobian,
unsigned int  ivar,
unsigned int  jvar,
const DofMap &  dof_map,
std::vector< dof_id_type > &  dof_indices,
const std::set< TagID > &  tags,
const THREAD_ID  tid 
)
virtualinherited

Definition at line 2228 of file FEProblemBase.C.

2235{
2236 _assembly[tid][_current_nl_sys->number()]->addJacobianBlockTags(
2237 jacobian, ivar, jvar, dof_map, dof_indices, Assembly::GlobalDataKey{}, tags);
2238
2240 if (_nonlocal_cm[_current_nl_sys->number()](ivar, jvar) != 0)
2241 {
2243 _assembly[tid][_current_nl_sys->number()]->addJacobianBlockNonlocalTags(
2244 jacobian,
2245 ivar,
2246 jvar,
2247 dof_map,
2248 dof_indices,
2249 jv.allDofIndices(),
2251 tags);
2252 }
2253
2255 {
2256 _displaced_problem->addJacobianBlockTags(jacobian, ivar, jvar, dof_map, dof_indices, tags, tid);
2258 if (_nonlocal_cm[_current_nl_sys->number()](ivar, jvar) != 0)
2259 {
2261 _displaced_problem->addJacobianBlockNonlocal(
2262 jacobian, ivar, jvar, dof_map, dof_indices, jv.allDofIndices(), tags, tid);
2263 }
2264 }
2265}
std::vector< libMesh::CouplingMatrix > _nonlocal_cm
nonlocal coupling matrix
const std::vector< dof_id_type > & allDofIndices() const
Get all global dofindices for the variable.
MooseVariableFieldBase & getVariable(THREAD_ID tid, const std::string &var_name) const
Gets a reference to a variable of with specified name.
Definition SystemBase.C:89

Referenced by ComputeJacobianBlocksThread::postElement().

◆ addJacobianLowerD()

void FEProblemBase::addJacobianLowerD ( const THREAD_ID  tid)
overridevirtualinherited

Implements SubProblem.

Definition at line 2183 of file FEProblemBase.C.

2184{
2185 _assembly[tid][_current_nl_sys->number()]->addJacobianLowerD(Assembly::GlobalDataKey{});
2187 _displaced_problem->addJacobianLowerD(tid);
2188}

Referenced by ComputeJacobianThread::accumulateLower(), and ComputeResidualAndJacobianThread::accumulateLower().

◆ addJacobianNeighbor() [1/3]

void FEProblemBase::addJacobianNeighbor ( const THREAD_ID  tid)
overridevirtualinherited

◆ addJacobianNeighbor() [2/3]

virtual void FEProblemBase::addJacobianNeighbor ( libMesh::SparseMatrix< libMesh::Number > &  jacobian,
unsigned int  ivar,
unsigned int  jvar,
const DofMap &  dof_map,
std::vector< dof_id_type > &  dof_indices,
std::vector< dof_id_type > &  neighbor_dof_indices,
const std::set< TagID > &  tags,
const THREAD_ID  tid 
)
overridevirtualinherited

◆ addJacobianNeighbor() [3/3]

virtual void SubProblem::addJacobianNeighbor ( libMesh::SparseMatrix< libMesh::Number > &  jacobian,
unsigned int  ivar,
unsigned int  jvar,
const libMesh::DofMap &  dof_map,
std::vector< dof_id_type > &  dof_indices,
std::vector< dof_id_type > &  neighbor_dof_indices,
const std::set< TagID > &  tags,
const THREAD_ID  tid 
)
pure virtualinherited

◆ addJacobianNeighborLowerD()

void FEProblemBase::addJacobianNeighborLowerD ( const THREAD_ID  tid)
overridevirtualinherited

Implements SubProblem.

Definition at line 2175 of file FEProblemBase.C.

2176{
2177 _assembly[tid][_current_nl_sys->number()]->addJacobianNeighborLowerD(Assembly::GlobalDataKey{});
2179 _displaced_problem->addJacobianNeighborLowerD(tid);
2180}

Referenced by ComputeJacobianThread::accumulateNeighborLower(), and ComputeResidualAndJacobianThread::accumulateNeighborLower().

◆ addJacobianOffDiagScalar()

void FEProblemBase::addJacobianOffDiagScalar ( unsigned int  ivar,
const THREAD_ID  tid = 0 
)
virtualinherited

Definition at line 2197 of file FEProblemBase.C.

2198{
2199 _assembly[tid][_current_nl_sys->number()]->addJacobianOffDiagScalar(ivar,
2201}

Referenced by NonlinearSystemBase::computeScalarKernelsJacobians().

◆ addJacobianScalar()

void FEProblemBase::addJacobianScalar ( const THREAD_ID  tid = 0)
virtualinherited

Definition at line 2191 of file FEProblemBase.C.

2192{
2193 _assembly[tid][_current_nl_sys->number()]->addJacobianScalar(Assembly::GlobalDataKey{});
2194}

Referenced by NonlinearSystemBase::computeScalarKernelsJacobians().

◆ addKernel()

void FEProblemBase::addKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 3205 of file FEProblemBase.C.

3208{
3209 parallel_object_only();
3210 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3211 if (!isSolverSystemNonlinear(nl_sys_num))
3212 mooseError("You are trying to add a Kernel to a linear variable/system, which is not "
3213 "supported at the moment!");
3215 kernel_name, name, parameters, nl_sys_num, "Kernel", _reinit_displaced_elem);
3216
3217 _nl[nl_sys_num]->addKernel(kernel_name, name, parameters);
3218}

Referenced by DiffusionCG::addFEKernels().

◆ addKokkosAuxKernel()

virtual void FEProblemBase::addKokkosAuxKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosBoundaryCondition()

virtual void FEProblemBase::addKokkosBoundaryCondition ( const std::string &  bc_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosFunction()

virtual void FEProblemBase::addKokkosFunction ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add a Kokkos function to the problem.

Parameters
typeThe Kokkos function type
nameThe Kokkos function name
parametersThe Kokkos function input parameters

Referenced by FEProblemBase::getKokkosFunction().

◆ addKokkosKernel()

virtual void FEProblemBase::addKokkosKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosLinearFVBC()

virtual void FEProblemBase::addKokkosLinearFVBC ( const std::string &  bc_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosLinearFVKernel()

virtual void FEProblemBase::addKokkosLinearFVKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosMaterial()

virtual void FEProblemBase::addKokkosMaterial ( const std::string &  material_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosMeshInitializationHook()

void FEProblemBase::addKokkosMeshInitializationHook ( std::function< void()>  function)
inlineinherited

Add a function hook that needs to be called after Kokkos mesh initialization.

Parameters
functionThe function to be called

Definition at line 3080 of file FEProblemBase.h.

3081 {
3082 _kokkos_mesh_initialization_hooks.push_back(function);
3083 }
std::vector< std::function< void()> > _kokkos_mesh_initialization_hooks
Container holding hooks for functions that need to be called after Kokkos mesh initialization.

Referenced by BlockRestrictable::initializeBlockRestrictable(), and BoundaryRestrictable::initializeBoundaryRestrictable().

◆ addKokkosNodalKernel()

virtual void FEProblemBase::addKokkosNodalKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosPostprocessor()

virtual void FEProblemBase::addKokkosPostprocessor ( const std::string &  pp_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosReporter()

virtual void FEProblemBase::addKokkosReporter ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosUserObject()

virtual void FEProblemBase::addKokkosUserObject ( const std::string &  user_object_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addKokkosVectorPostprocessor()

virtual void FEProblemBase::addKokkosVectorPostprocessor ( const std::string &  pp_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

◆ addLinearFVBC()

void FEProblemBase::addLinearFVBC ( const std::string &  fv_bc_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3682 of file FEProblemBase.C.

3685{
3686 addObject<LinearFVBoundaryCondition>(bc_name, name, parameters);
3687}

◆ addLinearFVKernel()

void FEProblemBase::addLinearFVKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3674 of file FEProblemBase.C.

3677{
3678 addObject<LinearFVKernel>(kernel_name, name, parameters);
3679}

◆ addLineSearch()

virtual void DumpObjectsProblem::addLineSearch ( const InputParameters &  )
inlineoverridevirtual

add a MOOSE line search

Reimplemented from FEProblemBase.

Definition at line 71 of file DumpObjectsProblem.h.

71{}

◆ addMarker()

void FEProblemBase::addMarker ( const std::string &  marker_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 5856 of file FEProblemBase.C.

5859{
5860 parallel_object_only();
5861
5862 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
5863 {
5864 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
5865 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
5867 }
5868 else
5869 {
5870 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
5871 {
5872 // We allow Markers to request that they use_displaced_mesh,
5873 // but then be overridden when no displacements variables are
5874 // provided in the Mesh block. If that happened, update the value
5875 // of use_displaced_mesh appropriately for this Marker.
5876 if (parameters.have_parameter<bool>("use_displaced_mesh"))
5877 parameters.set<bool>("use_displaced_mesh") = false;
5878 }
5879
5880 parameters.set<SubProblem *>("_subproblem") = this;
5881 parameters.set<SystemBase *>("_sys") = _aux.get();
5882 }
5883
5884 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
5885 {
5886 std::shared_ptr<Marker> marker = _factory.create<Marker>(marker_name, name, parameters, tid);
5887 logAdd("Marker", name, marker_name, parameters);
5888 _markers.addObject(marker, tid);
5889 }
5890}
MooseObjectWarehouse< Marker > _markers

◆ addMaterial()

void FEProblemBase::addMaterial ( const std::string &  material_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 4161 of file FEProblemBase.C.

4164{
4166}

Referenced by ComponentMaterialPropertyInterface::addMaterials().

◆ addMaterialHelper()

void FEProblemBase::addMaterialHelper ( std::vector< MaterialWarehouse * >  warehouse,
const std::string &  material_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 4177 of file FEProblemBase.C.

4181{
4182 parallel_object_only();
4183
4184 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
4185 {
4186 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
4188 }
4189 else
4190 {
4191 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
4192 {
4193 // We allow Materials to request that they use_displaced_mesh,
4194 // but then be overridden when no displacements variables are
4195 // provided in the Mesh block. If that happened, update the value
4196 // of use_displaced_mesh appropriately for this Material.
4197 if (parameters.have_parameter<bool>("use_displaced_mesh"))
4198 parameters.set<bool>("use_displaced_mesh") = false;
4199 }
4200
4201 parameters.set<SubProblem *>("_subproblem") = this;
4202 }
4203
4204 unsigned int n_threads = libMesh::n_threads();
4205
4206#ifdef MOOSE_KOKKOS_ENABLED
4208 n_threads = 1;
4209#endif
4210
4211 for (THREAD_ID tid = 0; tid < n_threads; tid++)
4212 {
4213 // Create the general Block/Boundary MaterialBase object
4214 std::shared_ptr<MaterialBase> material =
4215 _factory.create<MaterialBase>(mat_name, name, parameters, tid);
4216 logAdd("Material", name, mat_name, parameters);
4217 bool discrete = !material->getParam<bool>("compute");
4218
4219 // If the object is boundary restricted or if it is a functor material we do not create the
4220 // neighbor and face objects
4221 if (material->boundaryRestricted() || dynamic_cast<FunctorMaterial *>(material.get()))
4222 {
4223 _all_materials.addObject(material, tid);
4224 if (discrete)
4225 _discrete_materials.addObject(material, tid);
4226 else
4227 for (auto && warehouse : warehouses)
4228 warehouse->addObject(material, tid);
4229 }
4230
4231 // Non-boundary restricted require face and neighbor objects
4232 else
4233 {
4234 // TODO: we only need to do this if we have needs for face materials (e.g.
4235 // FV, DG, etc.) - but currently we always do it. Figure out how to fix
4236 // this.
4237
4238 // The name of the object being created, this is changed multiple times as objects are
4239 // created below
4240 std::string object_name;
4241
4242 // Create a copy of the supplied parameters to the setting for "_material_data_type" isn't
4243 // used from a previous tid loop
4244 InputParameters current_parameters = parameters;
4245
4246 // face material
4247 current_parameters.set<Moose::MaterialDataType>("_material_data_type") =
4249 object_name = name + "_face";
4250 std::shared_ptr<MaterialBase> face_material =
4251 _factory.create<MaterialBase>(mat_name, object_name, current_parameters, tid);
4252
4253 // neighbor material
4254 current_parameters.set<Moose::MaterialDataType>("_material_data_type") =
4256 current_parameters.set<bool>("_neighbor") = true;
4257 object_name = name + "_neighbor";
4258 std::shared_ptr<MaterialBase> neighbor_material =
4259 _factory.create<MaterialBase>(mat_name, object_name, current_parameters, tid);
4260
4261 // Store the material objects
4262 _all_materials.addObjects(material, neighbor_material, face_material, tid);
4263
4264 if (discrete)
4265 _discrete_materials.addObjects(material, neighbor_material, face_material, tid);
4266 else
4267 for (auto && warehouse : warehouses)
4268 warehouse->addObjects(material, neighbor_material, face_material, tid);
4269
4270 // Names of all controllable parameters for this Material object
4271 const std::string & base = parameters.getBase();
4272 MooseObjectParameterName name(MooseObjectName(base, material->name()), "*");
4273 const auto param_names =
4275
4276 // Connect parameters of the primary Material object to those on the face and neighbor
4277 // objects
4278 for (const auto & p_name : param_names)
4279 {
4280 MooseObjectParameterName primary_name(MooseObjectName(base, material->name()),
4281 p_name.parameter());
4282 MooseObjectParameterName face_name(MooseObjectName(base, face_material->name()),
4283 p_name.parameter());
4284 MooseObjectParameterName neighbor_name(MooseObjectName(base, neighbor_material->name()),
4285 p_name.parameter());
4287 primary_name, face_name, false);
4289 primary_name, neighbor_name, false);
4290 }
4291 }
4292 }
4293}
MaterialWarehouse _discrete_materials
std::vector< std::shared_ptr< T > > addObject(const std::string &type, const std::string &name, InputParameters &parameters, const bool threaded=true, const std::string &var_param_name="variable")
Method for creating and adding an object to the warehouse.
FunctorMaterials compute functor material properties.
std::vector< MooseObjectParameterName > getControllableParameterNames(const MooseObjectParameterName &input) const
Return a vector of parameters names matching the supplied name.
void addControllableParameterConnection(const MooseObjectParameterName &primary, const MooseObjectParameterName &secondary, bool error_on_empty=true)
Method for linking control parameters of different names.
bool isKokkosObject() const
Returns whether this InputParameters belongs to a Kokkos object Checks whether MooseBase::kokkos_obje...
const std::string & getBase() const
void addObjects(std::shared_ptr< MaterialBase > block, std::shared_ptr< MaterialBase > neighbor, std::shared_ptr< MaterialBase > face, THREAD_ID tid=0)
A special method unique to this class for adding Block, Neighbor, and Face material objects.
InputParameterWarehouse & getInputParameterWarehouse()
Get the InputParameterWarehouse for MooseObjects.
Definition MooseApp.C:2872
A class for storing the names of MooseObject by tag and object name.
A class for storing an input parameter name.
MaterialDataType
MaterialData types.
Definition MooseTypes.h:746
@ NEIGHBOR_MATERIAL_DATA
Definition MooseTypes.h:750
@ FACE_MATERIAL_DATA
Definition MooseTypes.h:749

Referenced by FEProblemBase::addInterfaceMaterial(), and FEProblemBase::addMaterial().

◆ addMatrixTag()

TagID SubProblem::addMatrixTag ( TagName  tag_name)
virtualinherited

Create a Tag.

Tags can be associated with Vectors and Matrices and allow objects (such as Kernels) to arbitrarily contribute values to any set of vectors/matrics

Note: If the tag is already present then this will simply return the TagID of that Tag

Parameters
tag_nameThe name of the tag to create, the TagID will get automatically generated

Reimplemented in DisplacedProblem.

Definition at line 300 of file SubProblem.C.

301{
302 auto tag_name_upper = MooseUtils::toUpper(tag_name);
303 auto existing_tag = _matrix_tag_name_to_tag_id.find(tag_name_upper);
304 if (existing_tag == _matrix_tag_name_to_tag_id.end())
305 {
306 auto tag_id = _matrix_tag_name_to_tag_id.size();
307
308 _matrix_tag_name_to_tag_id[tag_name_upper] = tag_id;
309
310 _matrix_tag_id_to_tag_name[tag_id] = tag_name_upper;
311 }
312
313 return _matrix_tag_name_to_tag_id.at(tag_name_upper);
314}
std::map< TagID, TagName > _matrix_tag_id_to_tag_name
Reverse map.
std::map< TagName, TagID > _matrix_tag_name_to_tag_id
The currently declared tags.
std::string toUpper(std::string name)
Convert supplied string to upper case.

Referenced by DisplacedProblem::addMatrixTag(), FEProblemBase::createTagMatrices(), LinearSystem::LinearSystem(), NonlinearEigenSystem::NonlinearEigenSystem(), and NonlinearSystemBase::NonlinearSystemBase().

◆ addMeshDivision()

void FEProblemBase::addMeshDivision ( const std::string &  type,
const std::string &  name,
InputParameters &  params 
)
virtualinherited

Add a MeshDivision.

Definition at line 2851 of file FEProblemBase.C.

2854{
2855 parallel_object_only();
2856 parameters.set<FEProblemBase *>("_fe_problem_base") = this;
2857 parameters.set<SubProblem *>("_subproblem") = this;
2858 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
2859 {
2860 std::shared_ptr<MeshDivision> func = _factory.create<MeshDivision>(type, name, parameters, tid);
2861 _mesh_divisions.addObject(func, tid);
2862 }
2863}
MooseObjectWarehouse< MeshDivision > _mesh_divisions
Warehouse to store mesh divisions NOTE: this could probably be moved to the MooseMesh instead of the ...
Base class for MeshDivision objects.

◆ addMultiApp()

void FEProblemBase::addMultiApp ( const std::string &  multi_app_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add a MultiApp to the problem.

Definition at line 5893 of file FEProblemBase.C.

5896{
5897 parallel_object_only();
5898
5899 parameters.set<MPI_Comm>("_mpi_comm") = _communicator.get();
5900
5901 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
5902 {
5903 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
5904 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
5906 }
5907 else
5908 {
5909 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
5910 {
5911 // We allow MultiApps to request that they use_displaced_mesh,
5912 // but then be overridden when no displacements variables are
5913 // provided in the Mesh block. If that happened, update the value
5914 // of use_displaced_mesh appropriately for this MultiApp.
5915 if (parameters.have_parameter<bool>("use_displaced_mesh"))
5916 parameters.set<bool>("use_displaced_mesh") = false;
5917 }
5918
5919 parameters.set<SubProblem *>("_subproblem") = this;
5920 parameters.set<SystemBase *>("_sys") = _aux.get();
5921 }
5922
5923 std::shared_ptr<MultiApp> multi_app = _factory.create<MultiApp>(multi_app_name, name, parameters);
5924 logAdd("MultiApp", name, multi_app_name, parameters);
5925 multi_app->possiblyCreateChildApplications();
5926
5927 _multi_apps.addObject(multi_app);
5928
5929 // Store TransientMultiApp objects in another container, this is needed for calling computeDT
5930 std::shared_ptr<TransientMultiApp> trans_multi_app =
5931 std::dynamic_pointer_cast<TransientMultiApp>(multi_app);
5932 if (trans_multi_app)
5933 _transient_multi_apps.addObject(trans_multi_app);
5934}
void addObject(std::shared_ptr< T > object, THREAD_ID tid=0, bool recurse=true) override
Adds an object to the storage structure.
ExecuteMooseObjectWarehouse< MultiApp > _multi_apps
MultiApp Warehouse.
ExecuteMooseObjectWarehouse< TransientMultiApp > _transient_multi_apps
Storage for TransientMultiApps (only needed for calling 'computeDT')
A MultiApp represents one or more MOOSE applications that are running simultaneously.
Definition MultiApp.h:140
const Parallel::Communicator & _communicator

◆ addNodalKernel()

void FEProblemBase::addNodalKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3237 of file FEProblemBase.C.

3240{
3241 parallel_object_only();
3242
3243 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3244 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3245 {
3246 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3247 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3249 }
3250 else
3251 {
3252 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3253 {
3254 // We allow NodalKernels to request that they use_displaced_mesh,
3255 // but then be overridden when no displacements variables are
3256 // provided in the Mesh block. If that happened, update the value
3257 // of use_displaced_mesh appropriately for this NodalKernel.
3258 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3259 parameters.set<bool>("use_displaced_mesh") = false;
3260 }
3261
3262 parameters.set<SubProblem *>("_subproblem") = this;
3263 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3264 }
3265 logAdd("NodalKernel", name, kernel_name, parameters);
3266 _nl[nl_sys_num]->addNodalKernel(kernel_name, name, parameters);
3267}

◆ addNotZeroedVectorTag()

void SubProblem::addNotZeroedVectorTag ( const TagID  tag)
inherited

Adds a vector tag to the list of vectors that will not be zeroed when other tagged vectors are.

Parameters
tagthe TagID of the vector that will be manually managed

Definition at line 138 of file SubProblem.C.

139{
140 _not_zeroed_tagged_vectors.insert(tag);
141}
std::unordered_set< TagID > _not_zeroed_tagged_vectors
the list of vector tags that will not be zeroed when all other tags are

Referenced by FEProblemBase::createTagVectors().

◆ addObject()

template<typename T >
std::vector< std::shared_ptr< T > > FEProblemBase::addObject ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters,
const bool  threaded = true,
const std::string &  var_param_name = "variable" 
)
inherited

Method for creating and adding an object to the warehouse.

Template Parameters
TThe base object type (registered in the Factory)
Parameters
typeString type of the object (registered in the Factory)
nameName for the object to be created
parametersInputParameters for the object
threadedWhether or not to create n_threads copies of the object
var_param_nameThe name of the parameter on the object which holds the primary variable.
Returns
A vector of shared_ptrs to the added objects

Definition at line 3811 of file FEProblemBase.h.

3816{
3817 parallel_object_only();
3818
3819 logAdd(MooseUtils::prettyCppType<T>(), name, type, parameters);
3820 // Add the _subproblem and _sys parameters depending on use_displaced_mesh
3821 addObjectParamsHelper(parameters, name, var_param_name);
3822
3823 const auto n_threads = threaded ? libMesh::n_threads() : 1;
3824 std::vector<std::shared_ptr<T>> objects(n_threads);
3825 for (THREAD_ID tid = 0; tid < n_threads; ++tid)
3826 {
3827 std::shared_ptr<T> obj = _factory.create<T>(type, name, parameters, tid);
3828 theWarehouse().add(obj);
3829 objects[tid] = std::move(obj);
3830 }
3831
3832 return objects;
3833}

◆ addObjectParamsHelper()

void FEProblemBase::addObjectParamsHelper ( InputParameters &  params,
const std::string &  object_name,
const std::string &  var_param_name = "variable" 
)
protectedinherited

Helper for setting the "_subproblem" and "_sys" parameters in addObject() and in addUserObject().

This is needed due to header includes/forward declaration issues

Definition at line 4578 of file FEProblemBase.C.

4581{
4582 // Due to objects like SolutionUserObject which manipulate libmesh objects
4583 // and variables directly at the back end, we need a default option here
4584 // which is going to be the pointer to the first solver system within this
4585 // problem
4586 unsigned int sys_num = 0;
4587 if (parameters.isParamValid(var_param_name))
4588 {
4589 const auto variable_name = parameters.varName(var_param_name, object_name);
4590 if (this->hasVariable(variable_name) || this->hasScalarVariable(variable_name))
4591 sys_num = getSystem(variable_name).number();
4592 }
4593 if (parameters.isParamValid("solver_sys"))
4594 {
4595 const auto var_sys_num = sys_num;
4596 sys_num = getSystemBase(parameters.get<SolverSystemName>("solver_sys")).number();
4597 if (sys_num != var_sys_num && parameters.isParamValid(var_param_name))
4598 mooseError("We dont support setting 'variable' to a variable that is not set to the same "
4599 "system as the 'solver_sys' parameter");
4600 }
4601
4602 if (_displaced_problem && parameters.have_parameter<bool>("use_displaced_mesh") &&
4603 parameters.get<bool>("use_displaced_mesh"))
4604 {
4605 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
4606 if (sys_num == _aux->number())
4607 parameters.set<SystemBase *>("_sys") = &_displaced_problem->systemBaseAuxiliary();
4608 else
4609 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(sys_num);
4610 }
4611 else
4612 {
4613 // The object requested use_displaced_mesh, but it was overridden
4614 // due to there being no displacements variables in the [Mesh] block.
4615 // If that happened, update the value of use_displaced_mesh appropriately.
4616 if (!_displaced_problem && parameters.have_parameter<bool>("use_displaced_mesh") &&
4617 parameters.get<bool>("use_displaced_mesh"))
4618 parameters.set<bool>("use_displaced_mesh") = false;
4619
4620 parameters.set<SubProblem *>("_subproblem") = this;
4621
4622 if (sys_num == _aux->number())
4623 parameters.set<SystemBase *>("_sys") = _aux.get();
4624 else
4625 parameters.set<SystemBase *>("_sys") = _solver_systems[sys_num].get();
4626 }
4627}
virtual const SystemBase & getSystemBase(const unsigned int sys_num) const
Get constant reference to a system in this problem.
virtual libMesh::System & getSystem(const std::string &var_name) override
Returns the equation system containing the variable provided.
unsigned int number() const

Referenced by FEProblemBase::addFVGradientMethod(), FEProblemBase::addFVInterpolationMethod(), FEProblemBase::addObject(), and FEProblemBase::addUserObject().

◆ addOutput()

void FEProblemBase::addOutput ( const std::string &  object_type,
const std::string &  object_name,
InputParameters &  parameters 
)
inherited

Adds an Output object.

Definition at line 9833 of file FEProblemBase.C.

9836{
9837 parallel_object_only();
9838
9839 // Get a reference to the OutputWarehouse
9840 OutputWarehouse & output_warehouse = _app.getOutputWarehouse();
9841
9842 // Reject the reserved names for objects not built by MOOSE
9843 if (!parameters.get<bool>("_built_by_moose") && output_warehouse.isReservedName(object_name))
9844 mooseError("The name '", object_name, "' is a reserved name for output objects");
9845
9846 // Check that an object by the same name does not already exist; this must be done before the
9847 // object is created to avoid getting misleading errors from the Parser
9848 if (output_warehouse.hasOutput(object_name))
9849 mooseError("An output object named '", object_name, "' already exists");
9850
9851 // Add a pointer to the FEProblemBase class
9852 parameters.addPrivateParam<FEProblemBase *>("_fe_problem_base", this);
9853
9854 // --show-input should enable the display of the input file on the screen
9855 if (object_type == "Console" && _app.getParam<bool>("show_input") &&
9856 parameters.get<bool>("output_screen"))
9857 parameters.set<ExecFlagEnum>("execute_input_on") = EXEC_INITIAL;
9858
9859 // Record whether this object's own block set 'file_base' itself before a common 'file_base'
9860 // from the [Outputs] block, if any, is copied down onto it below -- that copy makes
9861 // 'file_base' look valid and user-set on this object even when only the common block set it
9862 // (see #4215), so this must be captured first.
9863 if (parameters.isParamDefined("_file_base_set_by_own_block"))
9864 parameters.set<bool>("_file_base_set_by_own_block") = parameters.isParamSetByUser("file_base");
9865
9866 // Apply only user-set parameters from the common [Outputs] block so that
9867 // each output type's own defaults are not overridden by common defaults.
9868 const InputParameters * common = output_warehouse.getCommonParameters();
9869 if (common)
9871
9872 // Set the correct value for the binary flag for XDA/XDR output
9873 if (object_type == "XDR")
9874 parameters.set<bool>("_binary") = true;
9875 else if (object_type == "XDA")
9876 parameters.set<bool>("_binary") = false;
9877
9878 // Adjust the checkpoint suffix if auto recovery was enabled
9879 if (object_name == "auto_recovery_checkpoint")
9880 parameters.set<std::string>("suffix") = "auto_recovery";
9881
9882 // Create the object and add it to the warehouse
9883 std::shared_ptr<Output> output = _factory.create<Output>(object_type, object_name, parameters);
9884 logAdd("Output", object_name, object_type, parameters);
9885 output_warehouse.addOutput(output);
9886}
const ExecFlagType EXEC_INITIAL
Definition Moose.C:31
A MultiMooseEnum object to hold "execute_on" flags.
bool isParamDefined(const std::string &name) const
Method returns true if the parameter is defined for any type.
bool isParamSetByUser(const std::string &name) const
Method returns true if the parameter was set by the user.
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
void applyCommonUserSetParameters(const InputParameters &common, const std::vector< std::string > &exclude={}, const bool allow_private=false)
Variant of applyParameters that only applies parameters explicitly set by the user in common (i....
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
Definition MooseApp.C:2414
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Definition MooseBase.h:406
Class for storing and utilizing output objects.
const InputParameters * getCommonParameters() const
Get a reference to the common output parameters.
bool isReservedName(const std::string &name)
Test if the given name is reserved.
bool hasOutput(const std::string &name) const
Returns true if the output object exists.
void addOutput(std::shared_ptr< Output > output)
Adds an existing output object to the warehouse.
Based class for output objects.
Definition Output.h:52

◆ addPiecewiseByBlockLambdaFunctor()

template<typename T , typename PolymorphicLambda >
const Moose::FunctorBase< T > & SubProblem::addPiecewiseByBlockLambdaFunctor ( const std::string &  name,
PolymorphicLambda  my_lammy,
const std::set< ExecFlagType > &  clearance_schedule,
const MooseMesh &  mesh,
const std::set< SubdomainID > &  block_ids,
const THREAD_ID  tid 
)
inherited

Add a functor that has block-wise lambda definitions, e.g.

the evaluations of the functor are based on a user-provided lambda expression.

Parameters
nameThe name of the functor to add
my_lammyThe lambda expression that will be called when the functor is evaluated
clearance_scheduleHow often to clear functor evaluations. The default value is always, which means that the functor will be re-evaluated every time it is called. If it is something other than always, than cached values may be returned
meshThe mesh on which this functor operates
block_idsThe blocks on which the lambda expression is defined
tidThe thread on which the functor we are adding will run
Returns
The added functor

Definition at line 1337 of file SubProblem.h.

1343{
1344 auto & pbblf_functors = _pbblf_functors[tid];
1345
1346 auto [it, first_time_added] =
1347 pbblf_functors.emplace(name,
1348 std::make_unique<PiecewiseByBlockLambdaFunctor<T>>(
1349 name, my_lammy, clearance_schedule, mesh, block_ids));
1350
1351 auto * functor = dynamic_cast<PiecewiseByBlockLambdaFunctor<T> *>(it->second.get());
1352 if (!functor)
1353 {
1354 if (first_time_added)
1355 mooseError("This should be impossible. If this was the first time we added the functor, then "
1356 "the dynamic cast absolutely should have succeeded");
1357 else
1358 mooseError("Attempted to add a lambda functor with the name '",
1359 name,
1360 "' but another lambda functor of that name returns a different type");
1361 }
1362
1363 if (first_time_added)
1364 addFunctor(name, *functor, tid);
1365 else
1366 // The functor already exists
1367 functor->setFunctor(mesh, block_ids, my_lammy);
1368
1369 return *functor;
1370}
A material property that is evaluated on-the-fly via calls to various overloads of operator()
std::vector< std::map< std::string, std::unique_ptr< Moose::FunctorAbstract > > > _pbblf_functors
Container to hold PiecewiseByBlockLambdaFunctors.
virtual MooseMesh & mesh()=0

Referenced by FunctorMaterial::addFunctorPropertyByBlocks().

◆ addPostprocessor()

void FEProblemBase::addPostprocessor ( const std::string &  pp_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 4651 of file FEProblemBase.C.

4654{
4655 checkUserObjectNameCollision(name, "Postprocessor");
4656
4657 addUserObject(pp_name, name, parameters);
4658}
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters &parameters)
void checkUserObjectNameCollision(const std::string &name, const std::string &type) const
Check for name collision between different user objects.

Referenced by MFEMProblem::addPostprocessor(), and DiffusionPhysicsBase::addPostprocessors().

◆ addPredictor()

void FEProblemBase::addPredictor ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 7686 of file FEProblemBase.C.

7689{
7690 parallel_object_only();
7691
7693 mooseError("Vector bounds cannot be used with LinearSystems!");
7694
7695 parameters.set<SubProblem *>("_subproblem") = this;
7696 std::shared_ptr<Predictor> predictor = _factory.create<Predictor>(type, name, parameters);
7697 logAdd("Predictor", name, type, parameters);
7698
7699 for (auto & nl : _nl)
7700 nl->setPredictor(predictor);
7701}
virtual std::size_t numLinearSystems() const override
virtual std::size_t numNonlinearSystems() const override
Base class for predictors.
Definition Predictor.h:29

Referenced by AB2PredictorCorrector::AB2PredictorCorrector().

◆ addReporter()

void FEProblemBase::addReporter ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add a Reporter object to the simulation.

Parameters
typeC++ object type to construct
nameA uniquely identifying object name
parametersComplete parameters for the object to be created.

For an example use, refer to AddReporterAction.C/h

Definition at line 4671 of file FEProblemBase.C.

4674{
4676
4678}

Referenced by MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer().

◆ addResidual()

void FEProblemBase::addResidual ( const THREAD_ID  tid)
overridevirtualinherited

Implements SubProblem.

Definition at line 2038 of file FEProblemBase.C.

2039{
2042
2044 _displaced_problem->addResidual(tid);
2045}

Referenced by ComputeDiracThread::postElement().

◆ addResidualLower()

void FEProblemBase::addResidualLower ( const THREAD_ID  tid)
overridevirtualinherited

◆ addResidualNeighbor()

void FEProblemBase::addResidualNeighbor ( const THREAD_ID  tid)
overridevirtualinherited

◆ addResidualScalar()

void FEProblemBase::addResidualScalar ( const THREAD_ID  tid = 0)
virtualinherited

Definition at line 2068 of file FEProblemBase.C.

2069{
2070 _assembly[tid][_current_nl_sys->number()]->addResidualScalar(Assembly::GlobalDataKey{},
2072}

Referenced by NonlinearSystemBase::computeResidualInternal().

◆ addSampler()

void FEProblemBase::addSampler ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

The following functions will enable MOOSE to have the capability to import Samplers.

Definition at line 2937 of file FEProblemBase.C.

2940{
2941 const auto samplers = addObject<Sampler>(type, name, parameters);
2942 for (auto & sampler : samplers)
2943 sampler->init();
2944}
virtual void init() override

◆ addScalarKernel()

void FEProblemBase::addScalarKernel ( const std::string &  kernel_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 3270 of file FEProblemBase.C.

3273{
3274 parallel_object_only();
3275
3276 const auto nl_sys_num = determineSolverSystem(parameters.varName("variable", name), true).second;
3277 if (!isSolverSystemNonlinear(nl_sys_num))
3278 mooseError("You are trying to add a ScalarKernel to a linear variable/system, which is not "
3279 "supported at the moment!");
3280
3281 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3282 {
3283 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3284 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3285 }
3286 else
3287 {
3288 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3289 {
3290 // We allow ScalarKernels to request that they use_displaced_mesh,
3291 // but then be overridden when no displacements variables are
3292 // provided in the Mesh block. If that happened, update the value
3293 // of use_displaced_mesh appropriately for this ScalarKernel.
3294 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3295 parameters.set<bool>("use_displaced_mesh") = false;
3296 }
3297
3298 parameters.set<SubProblem *>("_subproblem") = this;
3299 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3300 }
3301
3302 logAdd("ScalarKernel", name, kernel_name, parameters);
3303 _nl[nl_sys_num]->addScalarKernel(kernel_name, name, parameters);
3304}

◆ addTimeIntegrator()

void FEProblemBase::addTimeIntegrator ( const std::string &  type,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 7651 of file FEProblemBase.C.

7654{
7655 parallel_object_only();
7656
7657 parameters.set<SubProblem *>("_subproblem") = this;
7658 logAdd("TimeIntegrator", name, type, parameters);
7659 _aux->addTimeIntegrator(type, name + ":aux", parameters);
7660 for (auto & sys : _solver_systems)
7661 sys->addTimeIntegrator(type, name + ":" + sys->name(), parameters);
7662 _has_time_integrator = true;
7663
7664 // add vectors to store u_dot, u_dotdot, udot_old, u_dotdot_old and
7665 // solution vectors older than 2 time steps, if requested by the time
7666 // integrator
7667 _aux->addDotVectors();
7668 for (auto & nl : _nl)
7669 {
7670 nl->addDotVectors();
7671
7672 auto tag_udot = nl->getTimeIntegrators()[0]->uDotFactorTag();
7673 if (!nl->hasVector(tag_udot))
7674 nl->associateVectorToTag(*nl->solutionUDot(), tag_udot);
7675 auto tag_udotdot = nl->getTimeIntegrators()[0]->uDotDotFactorTag();
7676 if (!nl->hasVector(tag_udotdot) && uDotDotRequested())
7677 nl->associateVectorToTag(*nl->solutionUDotDot(), tag_udotdot);
7678 }
7679
7681 // Time integrator does not exist when displaced problem is created.
7682 _displaced_problem->addTimeIntegrator();
7683}
virtual void addTimeIntegrator(const std::string &type, const std::string &name, InputParameters &parameters)
virtual bool uDotDotRequested()
Get boolean flag to check whether solution second time derivative needs to be stored.
bool _has_time_integrator
Indicates whether or not this executioner has a time integrator (during setup)

Referenced by TransientBase::setupTimeIntegrator().

◆ addTransfer()

void FEProblemBase::addTransfer ( const std::string &  transfer_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Add a Transfer to the problem.

Reimplemented in MFEMProblem.

Definition at line 6438 of file FEProblemBase.C.

6441{
6442 parallel_object_only();
6443
6444 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
6445 {
6446 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
6447 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
6449 }
6450 else
6451 {
6452 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
6453 {
6454 // We allow Transfers to request that they use_displaced_mesh,
6455 // but then be overridden when no displacements variables are
6456 // provided in the Mesh block. If that happened, update the value
6457 // of use_displaced_mesh appropriately for this Transfer.
6458 if (parameters.have_parameter<bool>("use_displaced_mesh"))
6459 parameters.set<bool>("use_displaced_mesh") = false;
6460 }
6461
6462 parameters.set<SubProblem *>("_subproblem") = this;
6463 parameters.set<SystemBase *>("_sys") = _aux.get();
6464 }
6465
6466 // Handle the "SAME_AS_MULTIAPP" execute option. The get method is used to test for the
6467 // flag so the set by user flag is not reset, calling set with the true flag causes the set
6468 // by user status to be reset, which should only be done if the EXEC_SAME_AS_MULTIAPP is
6469 // being applied to the object.
6471 {
6472 ExecFlagEnum & exec_enum = parameters.set<ExecFlagEnum>("execute_on", true);
6473 std::shared_ptr<MultiApp> multiapp;
6474 if (parameters.isParamValid("multi_app"))
6475 multiapp = getMultiApp(parameters.get<MultiAppName>("multi_app"));
6476 // This catches the sibling transfer case, where we want to be executing only as often as the
6477 // receiving application. A transfer 'to' a multiapp is executed before that multiapp
6478 else if (parameters.isParamValid("to_multi_app"))
6479 multiapp = getMultiApp(parameters.get<MultiAppName>("to_multi_app"));
6480 else if (parameters.isParamValid("from_multi_app"))
6481 multiapp = getMultiApp(parameters.get<MultiAppName>("from_multi_app"));
6482 // else do nothing because the user has provided invalid input. They should get a nice error
6483 // about this during transfer construction. This necessitates checking for null in this next
6484 // line, however
6485 if (multiapp)
6486 exec_enum = multiapp->getParam<ExecFlagEnum>("execute_on");
6487 }
6488
6489 // Create the Transfer objects
6490 std::shared_ptr<Transfer> transfer = _factory.create<Transfer>(transfer_name, name, parameters);
6491 logAdd("Transfer", name, transfer_name, parameters);
6492
6493 // Add MultiAppTransfer object
6494 std::shared_ptr<MultiAppTransfer> multi_app_transfer =
6495 std::dynamic_pointer_cast<MultiAppTransfer>(transfer);
6496 if (multi_app_transfer)
6497 {
6498 if (multi_app_transfer->directions().isValueSet(MultiAppTransfer::TO_MULTIAPP))
6499 _to_multi_app_transfers.addObject(multi_app_transfer);
6500 if (multi_app_transfer->directions().isValueSet(MultiAppTransfer::FROM_MULTIAPP))
6501 _from_multi_app_transfers.addObject(multi_app_transfer);
6502 if (multi_app_transfer->directions().isValueSet(MultiAppTransfer::BETWEEN_MULTIAPP))
6503 _between_multi_app_transfers.addObject(multi_app_transfer);
6504 }
6505 else
6506 _transfers.addObject(transfer);
6507}
const ExecFlagType EXEC_SAME_AS_MULTIAPP
Definition Moose.C:56
ExecuteMooseObjectWarehouse< Transfer > _between_multi_app_transfers
Transfers executed just before MultiApps to transfer data between them.
std::shared_ptr< MultiApp > getMultiApp(const std::string &multi_app_name) const
Get a MultiApp object by name.
ExecuteMooseObjectWarehouse< Transfer > _to_multi_app_transfers
Transfers executed just before MultiApps to transfer data to them.
ExecuteMooseObjectWarehouse< Transfer > _transfers
Normal Transfers.
ExecuteMooseObjectWarehouse< Transfer > _from_multi_app_transfers
Transfers executed just after MultiApps to transfer data from them.
bool isValueSet(const std::string &value) const
Methods for seeing if a value is set in the MultiMooseEnum.
Base class for all Transfer objects.
Definition Transfer.h:40
@ FROM_MULTIAPP
Definition Transfer.h:71
@ TO_MULTIAPP
Definition Transfer.h:70
@ BETWEEN_MULTIAPP
Definition Transfer.h:72

Referenced by MFEMProblem::addTransfer().

◆ addUserObject()

std::vector< std::shared_ptr< UserObject > > FEProblemBase::addUserObject ( const std::string &  user_object_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Definition at line 4681 of file FEProblemBase.C.

4684{
4685 parallel_object_only();
4686
4687 std::vector<std::shared_ptr<UserObject>> uos;
4688
4689 // Add the _subproblem and _sys parameters depending on use_displaced_mesh
4691
4692 for (const auto tid : make_range(libMesh::n_threads()))
4693 {
4694 // Create the UserObject
4695 std::shared_ptr<UserObject> user_object =
4696 _factory.create<UserObject>(user_object_name, name, parameters, tid);
4697 logAdd("UserObject", name, user_object_name, parameters);
4698 uos.push_back(user_object);
4699
4700 if (tid != 0)
4701 user_object->setPrimaryThreadCopy(uos[0].get());
4702
4703 theWarehouse().add(user_object);
4704
4705 // Attempt to create all the possible UserObject types
4706 auto euo = std::dynamic_pointer_cast<ElementUserObject>(user_object);
4707 auto suo = std::dynamic_pointer_cast<SideUserObject>(user_object);
4708 auto isuo = std::dynamic_pointer_cast<InternalSideUserObject>(user_object);
4709 auto iuo = std::dynamic_pointer_cast<InterfaceUserObjectBase>(user_object);
4710 auto nuo = std::dynamic_pointer_cast<NodalUserObject>(user_object);
4711 auto duo = std::dynamic_pointer_cast<DomainUserObject>(user_object);
4712 auto guo = std::dynamic_pointer_cast<GeneralUserObject>(user_object);
4713 auto tguo = std::dynamic_pointer_cast<ThreadedGeneralUserObject>(user_object);
4714 auto muo = std::dynamic_pointer_cast<MortarUserObject>(user_object);
4715
4716 // Account for displaced mesh use
4717 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
4718 {
4719 // Whether to re-init or not depends on the attributes of the base classes.
4720 // For example, InterfaceUOBase has "_current_side_elem" and "_neighbor_elem"
4721 // so it needs to reinit on displaced neighbors and faces
4722 // _reinit_displaced_elem -> _current_elem will be reinited
4723 // _reinit_displaced_face -> _current_elem, lowerD if any and _current_side_elem to be
4724 // reinited _reinit_displaced_neighbor -> _current_elem, lowerD if any and _current_neighbor
4725 // to be reinited Note that as soon as you use materials on the displaced mesh, all three get
4726 // turned on.
4727 if (euo || nuo || duo)
4729 if (suo || duo || isuo || iuo)
4731 if (iuo || duo || isuo)
4733 }
4734
4735 // These objects only require one thread
4736 if ((guo && !tguo) || muo)
4737 break;
4738 }
4739
4740 // Add as a Functor if it is one. We usually need to add the user object from thread 0 as the
4741 // registered functor for all threads because when user objects are thread joined, generally only
4742 // the primary thread copy ends up with all the data
4743 for (const auto tid : make_range(libMesh::n_threads()))
4744 {
4745 const decltype(uos)::size_type uo_index = uos.front()->needThreadedCopy() ? tid : 0;
4746 if (const auto functor = dynamic_cast<Moose::FunctorBase<Real> *>(uos[uo_index].get()))
4747 {
4748 this->addFunctor(name, *functor, tid);
4750 _displaced_problem->addFunctor(name, *functor, tid);
4751 }
4752 }
4753
4754 return uos;
4755}
Base class for user-specific data.
Definition UserObject.h:20

Referenced by FEProblemBase::addPostprocessor(), FEProblemBase::addReporter(), PhysicsBase::addUserObject(), and FEProblemBase::addVectorPostprocessor().

◆ addVariable()

void FEProblemBase::addVariable ( const std::string &  var_type,
const std::string &  var_name,
InputParameters &  params 
)
virtual

Canonical method for adding a non-linear variable.

Parameters
var_typethe type of the variable, e.g. MooseVariableScalar
var_namethe variable name, e.g. 'u'
paramsthe InputParameters from which to construct the variable

Reimplemented from FEProblemBase.

Definition at line 1007 of file FEProblemBase.C.

3081{
3082 parallel_object_only();
3083
3084 const auto fe_type = MooseUtils::variableFEType(params);
3085
3086 const auto active_subdomains_vector =
3087 _mesh.getSubdomainIDs(params.get<std::vector<SubdomainName>>("block"));
3088 const std::set<SubdomainID> active_subdomains(active_subdomains_vector.begin(),
3089 active_subdomains_vector.end());
3090
3091 if (duplicateVariableCheck(var_name, fe_type, /* is_aux = */ false, &active_subdomains))
3092 return;
3093
3094 params.set<FEProblemBase *>("_fe_problem_base") = this;
3096 SolverSystemName sys_name = params.get<SolverSystemName>("solver_sys");
3097
3098 const auto solver_system_number = solverSysNum(sys_name);
3099 logAdd("Variable", var_name, var_type, params);
3100 _solver_systems[solver_system_number]->addVariable(var_type, var_name, params);
3102 // MooseObjects need to be unique so change the name here
3103 _displaced_problem->addVariable(var_type, var_name, params, solver_system_number);
3104
3105 _solver_var_to_sys_num[var_name] = solver_system_number;
3106}
unsigned int solverSysNum(const SolverSystemName &solver_sys_name) const override
std::map< SolverVariableName, unsigned int > _solver_var_to_sys_num
Map connecting variable names with their respective solver systems.
@ VAR_SOLVER
Definition MooseTypes.h:770

◆ addVectorPostprocessor()

void FEProblemBase::addVectorPostprocessor ( const std::string &  pp_name,
const std::string &  name,
InputParameters &  parameters 
)
virtualinherited

Reimplemented in MFEMProblem.

Definition at line 4661 of file FEProblemBase.C.

4664{
4665 checkUserObjectNameCollision(name, "VectorPostprocessor");
4666
4667 addUserObject(pp_name, name, parameters);
4668}

Referenced by MFEMProblem::addVectorPostprocessor(), and ExtraIDIntegralReporter::ExtraIDIntegralReporter().

◆ addVectorTag()

TagID SubProblem::addVectorTag ( const TagName &  tag_name,
const Moose::VectorTagType  type = Moose::VECTOR_TAG_RESIDUAL 
)
virtualinherited

Create a Tag.

Tags can be associated with Vectors and Matrices and allow objects (such as Kernels) to arbitrarily contribute values to any set of vectors/matrics

Note: If the tag is already present then this will simply return the TagID of that Tag, but the type must be the same.

Parameters
tag_nameThe name of the tag to create, the TagID will get automatically generated
typeThe type of the tag

Reimplemented in DisplacedProblem.

Definition at line 81 of file SubProblem.C.

83{
85 mooseError("Vector tag type cannot be VECTOR_TAG_ANY");
86
87 const auto tag_name_upper = MooseUtils::toUpper(tag_name);
88
89 // First, see if the tag exists already
90 for (const auto & vector_tag : _vector_tags)
91 {
92 mooseAssert(_vector_tags[vector_tag._id] == vector_tag, "Vector tags index mismatch");
93 if (vector_tag._name == tag_name_upper)
94 {
95 if (vector_tag._type != type)
96 mooseError("While attempting to add vector tag with name '",
97 tag_name_upper,
98 "' and type ",
99 type,
100 ",\na tag with the same name but type ",
101 vector_tag._type,
102 " was found.\n\nA tag can only exist with one type.");
103
104 return vector_tag._id;
105 }
106 }
107
108 // Doesn't exist - create it
109 const TagID new_tag_id = _vector_tags.size();
110 const TagTypeID new_tag_type_id = _typed_vector_tags[type].size();
111 // Primary storage for all tags where the index in the vector == the tag ID
112 _vector_tags.emplace_back(new_tag_id, new_tag_type_id, tag_name_upper, type);
113 // Secondary storage for each type so that we can have quick access to all tags of a type
114 _typed_vector_tags[type].emplace_back(new_tag_id, new_tag_type_id, tag_name_upper, type);
115 // Name map storage for quick name access
116 _vector_tags_name_map.emplace(tag_name_upper, new_tag_id);
117
118 // Make sure that _vector_tags, _typed_vector_tags, and _vector_tags_name_map are sane
120
121 return new_tag_id;
122}
unsigned int TagID
Definition MooseTypes.h:238
unsigned int TagTypeID
Definition MooseTypes.h:239
std::vector< VectorTag > _vector_tags
The declared vector tags.
std::vector< std::vector< VectorTag > > _typed_vector_tags
The vector tags associated with each VectorTagType This is kept separate from _vector_tags for quick ...
std::map< TagName, TagID > _vector_tags_name_map
Map of vector tag TagName to TagID.
bool verifyVectorTags() const
Verify the integrity of _vector_tags and _typed_vector_tags.
Definition SubProblem.C:230
@ VECTOR_TAG_ANY

Referenced by DisplacedProblem::addVectorTag(), PicardSolve::allocateStorage(), SecantSolve::allocateStorage(), SteffensenSolve::allocateStorage(), FEProblemBase::createTagSolutions(), FEProblemBase::createTagVectors(), NonlinearSystemBase::getResidualNonTimeVector(), NonlinearSystemBase::getResidualTimeVector(), LinearSystem::LinearSystem(), SystemBase::needSolutionState(), NonlinearEigenSystem::NonlinearEigenSystem(), and NonlinearSystemBase::NonlinearSystemBase().

◆ advanceMultiApps()

void FEProblemBase::advanceMultiApps ( ExecFlagType  type)
inlineinherited

Deprecated method; use finishMultiAppStep and/or incrementMultiAppTStep depending on your purpose.

Definition at line 1748 of file FEProblemBase.h.

1749 {
1750 mooseDeprecated("Deprecated method; use finishMultiAppStep and/or incrementMultiAppTStep "
1751 "depending on your purpose");
1753 }
void finishMultiAppStep(ExecFlagType type, bool recurse_through_multiapp_levels=false)
Finish the MultiApp time step (endStep, postStep) associated with the ExecFlagType.

◆ advanceState()

virtual void DumpObjectsProblem::advanceState ( )
inlineoverridevirtual

Advance all of the state holding vectors / datastructures so that we can move to the next timestep.

Reimplemented from FEProblemBase.

Definition at line 62 of file DumpObjectsProblem.h.

62{}

◆ allowInvalidSolution()

bool FEProblemBase::allowInvalidSolution ( ) const
inlineinherited

Whether to accept / allow an invalid solution.

Definition at line 2471 of file FEProblemBase.h.

2471{ return _allow_invalid_solution; }
const bool _allow_invalid_solution

Referenced by FEProblemBase::acceptInvalidSolution().

◆ allowMeshContractionAfterMeshChanged()

virtual bool FEProblemBase::allowMeshContractionAfterMeshChanged ( ) const
inlinevirtualinherited

Whether meshChanged() should allow the mesh to be contracted (deletes children of coarsened elements and renumbers nodes and elements).

This should be overriden with care as disabling contraction may result in a substantial increase in the memory footprint of the mesh.

Definition at line 2212 of file FEProblemBase.h.

2212{ return true; }

Referenced by FEProblemBase::meshChanged().

◆ allowOutput() [1/2]

void FEProblemBase::allowOutput ( bool  state)
inherited

Ability to enable/disable all output calls.

This is needed by Multiapps and applications to disable output for cases when executioners call other executions and when Multiapps are sub cycling.

Definition at line 7594 of file FEProblemBase.C.

7595{
7597}
void allowOutput(bool state)
Ability to enable/disable output calls This is private, users should utilize FEProblemBase::allowOutp...

Referenced by TransientMultiApp::resetApp(), and TransientMultiApp::solveStep().

◆ allowOutput() [2/2]

template<typename T >
void FEProblemBase::allowOutput ( bool  state)
inherited

Definition at line 3762 of file FEProblemBase.h.

3763{
3765}

◆ areCoupled()

bool FEProblemBase::areCoupled ( const unsigned int  ivar,
const unsigned int  jvar,
const unsigned int  nl_sys_num 
) const
inherited

◆ assembly() [1/2]

const Assembly & FEProblemBase::assembly ( const THREAD_ID  tid,
const unsigned int  sys_num 
) const
inlineoverridevirtualinherited

Implements SubProblem.

Definition at line 3919 of file FEProblemBase.h.

3920{
3921 mooseAssert(tid < _assembly.size(), "Assembly objects not initialized");
3922 mooseAssert(sys_num < _assembly[tid].size(),
3923 "System number larger than the assembly container size");
3924 return *_assembly[tid][sys_num];
3925}

◆ assembly() [2/2]

Assembly & FEProblemBase::assembly ( const THREAD_ID  tid,
const unsigned int  sys_num 
)
inlineoverridevirtualinherited

◆ automaticScaling() [1/3]

bool SubProblem::automaticScaling ( ) const
inherited

Automatic scaling getter.

Returns
A boolean representing whether we are performing automatic scaling

Definition at line 842 of file SubProblem.C.

1168{
1169 // Currently going to assume that we are applying or not applying automatic scaling consistently
1170 // across nonlinear systems
1172}
virtual const SystemBase & systemBaseNonlinear(const unsigned int sys_num) const override
Return the nonlinear system object as a base class reference given the system number.
bool automaticScaling() const
Getter for whether we are performing automatic scaling.
Definition SystemBase.h:123

◆ automaticScaling() [2/3]

void SubProblem::automaticScaling ( bool  automatic_scaling)
virtualinherited

Automatic scaling setter.

Parameters
automatic_scalingA boolean representing whether we are performing automatic scaling

Reimplemented from SubProblem.

Definition at line 836 of file SubProblem.C.

1161{
1162 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
1163 systemBaseNonlinear(nl_sys_num).automaticScaling(automatic_scaling);
1164}
bool automaticScaling() const
Automatic scaling getter.

◆ automaticScaling() [3/3]

void FEProblemBase::automaticScaling ( bool  automatic_scaling)
overridevirtualinherited

Automatic scaling setter.

Parameters
automatic_scalingA boolean representing whether we are performing automatic scaling

Reimplemented from SubProblem.

Definition at line 10019 of file FEProblemBase.C.

10020{
10022 _displaced_problem->automaticScaling(automatic_scaling);
10023
10024 SubProblem::automaticScaling(automatic_scaling);
10025}
bool automaticScaling() const
Automatic scaling getter.

Referenced by DisplacedProblem::DisplacedProblem(), and FEProblemSolve::FEProblemSolve().

◆ backupGeometricSearchState()

void FEProblemBase::backupGeometricSearchState ( )
inherited

Snapshot geometric search state (both on the regular and, if present, the displaced mesh) so it can be restored with restoreGeometricSearchState() if this step is later rejected.

Called from advanceState(), i.e. before this step's timestepSetup() has run.

Definition at line 7510 of file FEProblemBase.C.

7511{
7513
7515 _displaced_problem->geomSearchData().backup();
7516}
GeometricSearchData _geometric_search_data
void backup()
Snapshot the PenetrationLocators' restartable state (the same state used for restart/recover),...

Referenced by FEProblemBase::advanceState().

◆ backupMultiApps()

void FEProblemBase::backupMultiApps ( ExecFlagType  type)
inherited

Backup the MultiApps associated with the ExecFlagType.

Definition at line 6373 of file FEProblemBase.C.

6374{
6375 const auto & multi_apps = _multi_apps[type].getActiveObjects();
6376
6377 if (multi_apps.size())
6378 {
6379 TIME_SECTION("backupMultiApps", 5, "Backing Up MultiApp");
6380
6382 _console << COLOR_CYAN << "\nBacking Up MultiApps on " << type.name() << COLOR_DEFAULT
6383 << std::endl;
6384
6385 for (const auto & multi_app : multi_apps)
6386 multi_app->backup();
6387
6389
6391 _console << COLOR_CYAN << "Finished Backing Up MultiApps on " << type.name() << "\n"
6392 << COLOR_DEFAULT << std::endl;
6393 }
6394}
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
bool _verbose_multiapps
Whether or not to be verbose with multiapps.
bool _parallel_barrier_messaging
Whether or not information about how many transfers have completed is printed.
const std::vector< std::shared_ptr< T > > & getActiveObjects(THREAD_ID tid=0) const
Retrieve complete vector to the active all/block/boundary restricted objects for a given thread.
void parallelBarrierNotify(const Parallel::Communicator &comm, bool messaging)
Definition MooseUtils.C:390

Referenced by FixedPointSolve::solve().

◆ bumpAllQRuleOrder()

void FEProblemBase::bumpAllQRuleOrder ( libMesh::Order  order,
SubdomainID  block 
)
inherited

Definition at line 6851 of file FEProblemBase.C.

6852{
6853 for (unsigned int tid = 0; tid < libMesh::n_threads(); ++tid)
6854 for (const auto i : index_range(_nl))
6855 _assembly[tid][i]->bumpAllQRuleOrder(order, block);
6856
6858 _displaced_problem->bumpAllQRuleOrder(order, block);
6859
6860 updateMaxQps();
6861}
void bumpAllQRuleOrder(libMesh::Order order, SubdomainID block)

Referenced by FEProblemBase::bumpAllQRuleOrder().

◆ bumpVolumeQRuleOrder()

void FEProblemBase::bumpVolumeQRuleOrder ( libMesh::Order  order,
SubdomainID  block 
)
inherited

Increases the element/volume quadrature order for the specified mesh block if and only if the current volume quadrature order is lower.

This can only cause the quadrature level to increase. If volume_order is lower than or equal to the current volume/elem quadrature rule order, then nothing is done (i.e. this function is idempotent).

Definition at line 6838 of file FEProblemBase.C.

6839{
6840 for (unsigned int tid = 0; tid < libMesh::n_threads(); ++tid)
6841 for (const auto i : index_range(_nl))
6842 _assembly[tid][i]->bumpVolumeQRuleOrder(order, block);
6843
6845 _displaced_problem->bumpVolumeQRuleOrder(order, block);
6846
6847 updateMaxQps();
6848}
void bumpVolumeQRuleOrder(libMesh::Order order, SubdomainID block)
Increases the element/volume quadrature order for the specified mesh block if and only if the current...

Referenced by FEProblemBase::bumpVolumeQRuleOrder().

◆ cacheJacobian()

void FEProblemBase::cacheJacobian ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 2204 of file FEProblemBase.C.

2205{
2208 _displaced_problem->cacheJacobian(tid);
2209}
virtual void cacheJacobian(const THREAD_ID tid)

Referenced by ComputeResidualAndJacobianThread::accumulate(), NonlinearSystemBase::constraintJacobians(), and ComputeJacobianThread::postElement().

◆ cacheJacobianNeighbor()

void FEProblemBase::cacheJacobianNeighbor ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 2212 of file FEProblemBase.C.

2213{
2216 _displaced_problem->cacheJacobianNeighbor(tid);
2217}
virtual void cacheJacobianNeighbor(const THREAD_ID tid)

Referenced by NonlinearSystemBase::constraintJacobians().

◆ cacheResidual()

void FEProblemBase::cacheResidual ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 2075 of file FEProblemBase.C.

2076{
2079 _displaced_problem->cacheResidual(tid);
2080}
virtual void cacheResidual(const THREAD_ID tid)

Referenced by ComputeResidualAndJacobianThread::accumulate(), ComputeResidualThread::accumulate(), and NonlinearSystemBase::constraintResiduals().

◆ cacheResidualNeighbor()

void FEProblemBase::cacheResidualNeighbor ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 2083 of file FEProblemBase.C.

2084{
2087 _displaced_problem->cacheResidualNeighbor(tid);
2088}
virtual void cacheResidualNeighbor(const THREAD_ID tid)

Referenced by NonlinearSystemBase::constraintResiduals().

◆ callMooseError() [1/2]

void MooseBase::callMooseError ( MooseApp *const  app,
const InputParameters &  params,
std::string  msg,
const bool  with_prefix,
const hit::Node *  node,
const bool  show_trace = true 
)
staticinherited

External method for calling moose error with added object context.

Needed so that objects without the MooseBase context (InputParameters) can call errors with context

Parameters
appThe app pointer (if available); adds multiapp context and clears the console
paramsThe parameters, needed to obtain object information
msgThe message
with_prefixIf true, add the prefix from messagePrefix(), which is the object information (type, name, etc)
nodeOptional hit node to add file path context as a prefix
show_traceWhether or not to show a stack trace, defaults to true

Definition at line 114 of file MooseBase.C.

120{
121 if (!node)
122 node = MooseBase::getHitNode(params);
123
124 std::string multiapp_prefix = "";
125 if (app)
126 {
127 if (!app->isUltimateMaster())
128 multiapp_prefix = app->name();
130 }
131
132 if (with_prefix)
133 // False here because the hit context will get processed by the node
134 msg = messagePrefix(params, false) + msg;
135
136 moose::internal::mooseErrorRaw(msg, multiapp_prefix, node, show_trace);
137}
bool isUltimateMaster() const
Whether or not this app is the ultimate master app.
Definition MooseApp.h:866
const hit::Node * getHitNode() const
Definition MooseBase.h:136
std::string messagePrefix(const bool hit_prefix=true) const
Definition MooseBase.h:256
void mooseConsole()
Send current output buffer to Console output objects.
void mooseErrorRaw(std::string msg, const std::string &prefix="", const hit::Node *node=nullptr, const bool show_trace=true)
Main callback for emitting a moose error.
Definition MooseError.C:51

◆ callMooseError() [2/2]

void MooseBase::callMooseError ( std::string  msg,
const bool  with_prefix,
const hit::Node *  node = nullptr,
const bool  show_trace = true 
) const
inherited

External method for calling moose error with added object context.

Parameters
msgThe message
with_prefixIf true, add the prefix from messagePrefix(), which is the object information (type, name, etc)
nodeOptional hit node to add file path context as a prefix
show_traceWhether or not to show a stack trace, defaults to true

Definition at line 105 of file MooseBase.C.

109{
110 callMooseError(&_app, _pars, msg, with_prefix, node, show_trace);
111}
MooseApp & _app
The MOOSE application this is associated with.
Definition MooseBase.h:375
void callMooseError(std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
External method for calling moose error with added object context.
Definition MooseBase.C:105
const InputParameters & _pars
The object's parameters.
Definition MooseBase.h:384

Referenced by MooseBase::callMooseError(), InputParameters::callMooseError(), MooseBase::mooseDocumentedError(), MooseBase::mooseError(), and MooseBase::mooseErrorNonPrefixed().

◆ captureDump() [1/20]

DumpObjectsProblem::captureDump ( addAuxKernel  ,
"AuxKernels"   
)

◆ captureDump() [2/20]

AuxScalarKernels DumpObjectsProblem::captureDump ( addAuxVariable  ,
"AuxVariables"   
)

◆ captureDump() [3/20]

AuxScalarKernels BCs DumpObjectsProblem::captureDump ( addConstraint  ,
"Constraints"   
)

◆ captureDump() [4/20]

AuxScalarKernels BCs Convergence DumpObjectsProblem::captureDump ( addDamper  ,
"Dampers"   
)

◆ captureDump() [5/20]

AuxScalarKernels BCs Convergence DGKernels DumpObjectsProblem::captureDump ( addDiracKernel  ,
"DiracKernels"   
)

◆ captureDump() [6/20]

AuxScalarKernels BCs Convergence DGKernels Distributions DumpObjectsProblem::captureDump ( addFunction  ,
"Functions"   
)

◆ captureDump() [7/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials DumpObjectsProblem::captureDump ( addFVBC  ,
"FVBCs"   
)

◆ captureDump() [8/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs DumpObjectsProblem::captureDump ( addFVInterfaceKernel  ,
"FVInterfaceKernels"   
)

◆ captureDump() [9/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels DumpObjectsProblem::captureDump ( addHDGKernel  ,
"HDGKernels"   
)

◆ captureDump() [10/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators DumpObjectsProblem::captureDump ( addInitialCondition  ,
"ICs"   
)

◆ captureDump() [11/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels DumpObjectsProblem::captureDump ( addKernel  ,
"Kernels"   
)

◆ captureDump() [12/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels DumpObjectsProblem::captureDump ( addKokkosBoundaryCondition  ,
"BCs"   
)

◆ captureDump() [13/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions DumpObjectsProblem::captureDump ( addKokkosKernel  ,
"Kernels"   
)

◆ captureDump() [14/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials DumpObjectsProblem::captureDump ( addKokkosNodalKernel  ,
"NodalKernels"   
)

◆ captureDump() [15/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs DumpObjectsProblem::captureDump ( addLinearFVKernel  ,
"LinearFVKernels"   
)

◆ captureDump() [16/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers DumpObjectsProblem::captureDump ( addMaterial  ,
"Materials"   
)

◆ captureDump() [17/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions DumpObjectsProblem::captureDump ( addMultiApp  ,
"MultiApps"   
)

◆ captureDump() [18/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels DumpObjectsProblem::captureDump ( addPostprocessor  ,
"Postprocessors"   
)

◆ captureDump() [19/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor DumpObjectsProblem::captureDump ( addSampler  ,
"Samplers"   
)

◆ captureDump() [20/20]

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor ScalarKernels DumpObjectsProblem::captureDump ( addTransfer  ,
"Transfers"   
)

◆ captureDumpUO()

AuxScalarKernels BCs Convergence DGKernels Distributions FunctorMaterials FVICs FVKernels Adaptivity Indicators InterfaceKernels AuxKernels Functions Materials LinearFVBCs Adaptivity Markers MeshDivisions NodalKernels Executioner Predictor ScalarKernels Executioner TimeIntegrators DumpObjectsProblem::captureDumpUO ( addUserObject  ,
"UserObjects"   
)

◆ checkBlockMatProps()

void SubProblem::checkBlockMatProps ( )
virtualinherited

Checks block material properties integrity.

See also
FEProblemBase::checkProblemIntegrity

Definition at line 612 of file SubProblem.C.

613{
614 // Variable for storing all available blocks/boundaries from the mesh
615 std::set<SubdomainID> all_ids(mesh().meshSubdomains());
616
617 std::stringstream errors;
618
619 // Loop through the properties to check
620 for (const auto & check_it : _map_block_material_props_check)
621 {
622 // The current id for the property being checked (BoundaryID || BlockID)
623 SubdomainID check_id = check_it.first;
624
625 std::set<SubdomainID> check_ids = {check_id};
626
627 // Loop through all the block/boundary ids
628 for (const auto & id : check_ids)
629 {
630 // Loop through all the stored properties
631 for (const auto & prop_it : check_it.second)
632 {
633 // Produce an error if the material property is not defined on the current block/boundary
634 // and any block/boundary
635 // and not is not a zero material property.
636 if (_map_block_material_props[id].count(prop_it.second) == 0 &&
637 _zero_block_material_props[id].count(prop_it.second) == 0)
638 {
639 std::string check_name = restrictionSubdomainCheckName(id);
640 if (check_name.empty())
641 check_name = std::to_string(id);
642 errors << "Material property '" << prop_it.second << "', requested by '" << prop_it.first
643 << "' is not defined on block " << check_name << "\n";
644 }
645 }
646 }
647 }
648
649 if (!errors.str().empty())
650 mooseError(errors.str());
651}
unsigned int count
Definition MortarUtils.C:53
std::map< SubdomainID, std::set< MaterialPropertyName > > _zero_block_material_props
Set of properties returned as zero properties.
std::map< SubdomainID, std::multimap< std::string, std::string > > _map_block_material_props_check
Data structures of the requested material properties.
std::string restrictionSubdomainCheckName(SubdomainID check_id)
Helper functions for checking MaterialProperties.
Definition SubProblem.C:761
std::map< SubdomainID, std::set< std::string > > _map_block_material_props
Map of material properties (block_id -> list of properties)

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkBoundaryMatProps()

void SubProblem::checkBoundaryMatProps ( )
virtualinherited

Checks boundary material properties integrity.

See also
FEProblemBase::checkProblemIntegrity

Definition at line 654 of file SubProblem.C.

655{
656 // Variable for storing the value for ANY_BOUNDARY_ID
658
659 // Variable for storing all available blocks/boundaries from the mesh
660 std::set<BoundaryID> all_ids(mesh().getBoundaryIDs());
661
662 std::stringstream errors;
663
664 // Loop through the properties to check
665 for (const auto & check_it : _map_boundary_material_props_check)
666 {
667 // The current id for the property being checked (BoundaryID || BlockID)
668 BoundaryID check_id = check_it.first;
669
670 // In the case when the material being checked has an ID is set to ANY, then loop through all
671 // the possible ids and verify that the material property is defined.
672 std::set<BoundaryID> check_ids{check_id};
673 if (check_id == any_id)
674 check_ids = all_ids;
675
676 // Loop through all the block/boundary ids
677 for (const auto & id : check_ids)
678 {
679 // Loop through all the stored properties
680 for (const auto & prop_it : check_it.second)
681 {
682 // Produce an error if the material property is not defined on the current block/boundary
683 // and any block/boundary
684 // and not is not a zero material property.
685 if (_map_boundary_material_props[id].count(prop_it.second) == 0 &&
686 _map_boundary_material_props[any_id].count(prop_it.second) == 0 &&
687 _zero_boundary_material_props[id].count(prop_it.second) == 0 &&
688 _zero_boundary_material_props[any_id].count(prop_it.second) == 0)
689 {
690 std::string check_name = restrictionBoundaryCheckName(id);
691 if (check_name.empty())
692 check_name = std::to_string(id);
693 errors << "Material property '" << prop_it.second << "', requested by '" << prop_it.first
694 << "' is not defined on boundary " << check_name << "\n";
695 }
696 }
697 }
698 }
699
700 if (!errors.str().empty())
701 mooseError(errors.str());
702}
boundary_id_type BoundaryID
std::string restrictionBoundaryCheckName(BoundaryID check_id)
Definition SubProblem.C:772
std::map< BoundaryID, std::multimap< std::string, std::string > > _map_boundary_material_props_check
std::map< BoundaryID, std::set< std::string > > _map_boundary_material_props
Map for boundary material properties (boundary_id -> list of properties)
std::map< BoundaryID, std::set< MaterialPropertyName > > _zero_boundary_material_props
std::vector< BoundaryID > getBoundaryIDs(const libMesh::MeshBase &mesh, const std::vector< BoundaryName > &boundary_name, bool generate_unknown, const std::set< BoundaryID > &mesh_boundary_ids)
Gets the boundary IDs with their names.
const BoundaryID ANY_BOUNDARY_ID
Definition MooseTypes.C:21

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkCoordinateSystems()

void FEProblemBase::checkCoordinateSystems ( )
protectedinherited

Verify that there are no element type/coordinate type conflicts.

Definition at line 9585 of file FEProblemBase.C.

9586{
9588}
void checkCoordinateSystems()
Performs a sanity check for every element in the mesh.
Definition MooseMesh.C:4391

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkDependMaterialsHelper()

void FEProblemBase::checkDependMaterialsHelper ( const std::map< SubdomainID, std::vector< std::shared_ptr< MaterialBase > > > &  materials_map)
protectedinherited

Helper method for checking Material object dependency.

See also
checkProblemIntegrity

These two sets are used to make sure that all dependent props on a block are actually supplied

Definition at line 9464 of file FEProblemBase.C.

9466{
9467 for (const auto & it : materials_map)
9468 {
9470 std::set<std::string> block_depend_props, block_supplied_props;
9471
9472 for (const auto & mat1 : it.second)
9473 {
9474 auto & alldeps = mat1->getMatPropDependencies(); // includes requested stateful props
9475 for (auto & dep : alldeps)
9476 block_depend_props.insert(_material_prop_registry.getName(dep));
9477
9478 // See if any of the active materials supply this property
9479 for (const auto & mat2 : it.second)
9480 {
9481 const std::set<std::string> & supplied_props = mat2->MaterialBase::getSuppliedItems();
9482 block_supplied_props.insert(supplied_props.begin(), supplied_props.end());
9483 }
9484 }
9485
9486 // Add zero material properties specific to this block and unrestricted
9487 block_supplied_props.insert(_zero_block_material_props[it.first].begin(),
9488 _zero_block_material_props[it.first].end());
9489
9490 // Error check to make sure all properties consumed by materials are supplied on this block
9491 std::set<std::string> difference;
9492 std::set_difference(block_depend_props.begin(),
9493 block_depend_props.end(),
9494 block_supplied_props.begin(),
9495 block_supplied_props.end(),
9496 std::inserter(difference, difference.end()));
9497
9498 if (!difference.empty())
9499 {
9500 std::ostringstream oss;
9501 oss << "One or more Material Properties were not supplied on block ";
9502 const std::string & subdomain_name = _mesh.getSubdomainName(it.first);
9503 if (subdomain_name.length() > 0)
9504 oss << subdomain_name << " (" << it.first << ")";
9505 else
9506 oss << it.first;
9507 oss << ":\n";
9508 for (const auto & name : difference)
9509 oss << name << "\n";
9510 mooseError(oss.str());
9511 }
9512 }
9513
9514 // This loop checks that materials are not supplied by multiple Material objects
9515 for (const auto & it : materials_map)
9516 {
9517 const auto & materials = it.second;
9518 std::set<std::string> inner_supplied, outer_supplied;
9519
9520 for (const auto & outer_mat : materials)
9521 {
9522 // Storage for properties for this material (outer) and all other materials (inner)
9523 outer_supplied = outer_mat->getSuppliedItems();
9524 inner_supplied.clear();
9525
9526 // Property to material map for error reporting
9527 std::map<std::string, std::set<std::string>> prop_to_mat;
9528 for (const auto & name : outer_supplied)
9529 prop_to_mat[name].insert(outer_mat->name());
9530
9531 for (const auto & inner_mat : materials)
9532 {
9533 if (outer_mat == inner_mat)
9534 continue;
9535
9536 // Check whether these materials are an AD pair
9537 auto outer_mat_type = outer_mat->type();
9538 auto inner_mat_type = inner_mat->type();
9539 removeSubstring(outer_mat_type, "<RESIDUAL>");
9540 removeSubstring(outer_mat_type, "<JACOBIAN>");
9541 removeSubstring(inner_mat_type, "<RESIDUAL>");
9542 removeSubstring(inner_mat_type, "<JACOBIAN>");
9543 if (outer_mat_type == inner_mat_type && outer_mat_type != outer_mat->type() &&
9544 inner_mat_type != inner_mat->type())
9545 continue;
9546
9547 inner_supplied.insert(inner_mat->getSuppliedItems().begin(),
9548 inner_mat->getSuppliedItems().end());
9549
9550 for (const auto & inner_supplied_name : inner_supplied)
9551 prop_to_mat[inner_supplied_name].insert(inner_mat->name());
9552 }
9553
9554 // Test that a property isn't supplied on multiple blocks
9555 std::set<std::string> intersection;
9556 std::set_intersection(outer_supplied.begin(),
9557 outer_supplied.end(),
9558 inner_supplied.begin(),
9559 inner_supplied.end(),
9560 std::inserter(intersection, intersection.end()));
9561
9562 if (!intersection.empty())
9563 {
9564 std::ostringstream oss;
9565 oss << "The following material properties are declared on block " << it.first
9566 << " by multiple materials:\n";
9567 oss << ConsoleUtils::indent(2) << std::setw(30) << std::left << "Material Property"
9568 << "Material Objects\n";
9569 for (const auto & outer_name : intersection)
9570 {
9571 oss << ConsoleUtils::indent(2) << std::setw(30) << std::left << outer_name;
9572 for (const auto & inner_name : prop_to_mat[outer_name])
9573 oss << inner_name << " ";
9574 oss << '\n';
9575 }
9576
9577 mooseError(oss.str());
9578 break;
9579 }
9580 }
9581 }
9582}
void removeSubstring(std::string &main, const std::string &sub)
MaterialPropertyRegistry _material_prop_registry
const std::string & getSubdomainName(SubdomainID subdomain_id) const
Return the name of a block given an id.
Definition MooseMesh.C:1714
std::string indent(unsigned int spaces)
Create empty string for indenting.

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkDisplacementOrders()

void FEProblemBase::checkDisplacementOrders ( )
protectedinherited

Verify that SECOND order mesh uses SECOND order displacements.

Definition at line 9388 of file FEProblemBase.C.

9389{
9391 {
9392 bool mesh_has_second_order_elements = false;
9393 for (const auto & elem : as_range(_displaced_mesh->activeLocalElementsBegin(),
9394 _displaced_mesh->activeLocalElementsEnd()))
9395 {
9396 if (elem->default_order() == SECOND)
9397 {
9398 mesh_has_second_order_elements = true;
9399 break;
9400 }
9401 }
9402
9403 // We checked our local elements, so take the max over all processors.
9404 _displaced_mesh->comm().max(mesh_has_second_order_elements);
9405
9406 // If the Mesh has second order elements, make sure the
9407 // displacement variables are second-order.
9408 if (mesh_has_second_order_elements)
9409 {
9410 const std::vector<std::string> & displacement_variables =
9411 _displaced_problem->getDisplacementVarNames();
9412
9413 for (const auto & var_name : displacement_variables)
9414 {
9415 MooseVariableFEBase & mv =
9416 _displaced_problem->getVariable(/*tid=*/0,
9417 var_name,
9420 if (mv.order() != SECOND)
9421 mooseError("Error: mesh has SECOND order elements, so all displacement variables must be "
9422 "SECOND order.");
9423 }
9424 }
9425 }
9426}
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int.
void max(const T &r, T &o, Request &req) const
const Parallel::Communicator & comm() const
@ VAR_FIELD_STANDARD
Definition MooseTypes.h:777
SimpleRange< IndexType > as_range(const std::pair< IndexType, IndexType > &p)

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkDuplicatePostprocessorVariableNames()

void FEProblemBase::checkDuplicatePostprocessorVariableNames ( )
inherited

Definition at line 1666 of file FEProblemBase.C.

1667{
1668 for (const auto & pp : _reporter_data.getPostprocessorNames())
1669 if (hasScalarVariable(pp))
1670 mooseError("Postprocessor \"" + pp +
1671 "\" has the same name as a scalar variable in the system.");
1672}
ReporterData _reporter_data

Referenced by FEProblemBase::checkProblemIntegrity().

◆ checkExceptionAndStopSolve()

void FEProblemBase::checkExceptionAndStopSolve ( bool  print_message = true)
virtualinherited

Check to see if an exception has occurred on any processor and, if possible, force the solve to fail, which will result in the time step being cut.

Notes:

  • The exception have be registered by calling setException() prior to calling this.
  • This is collective on MPI, and must be called simultaneously by all processors!
  • If called when the solve can be interruped, it will do so and also throw a MooseException, which must be handled.
  • If called at a stage in the execution when the solve cannot be interupted (i.e., there is no solve active), it will generate an error and terminate the application.
  • DO NOT CALL THIS IN A THREADED REGION! This is meant to be called just after a threaded section.
Parameters
print_messagewhether to print a message with exception information

Definition at line 7288 of file FEProblemBase.C.

7289{
7291 return;
7292
7293 TIME_SECTION("checkExceptionAndStopSolve", 5);
7294
7295 // See if any processor had an exception. If it did, get back the
7296 // processor that the exception occurred on.
7297 unsigned int processor_id;
7298
7300
7301 if (_has_exception)
7302 {
7304
7306 {
7307 // Print the message
7308 if (_communicator.rank() == 0 && print_message)
7309 {
7310 _console << "\n" << _exception_message << "\n";
7311 if (isTransient())
7312 _console
7313 << "To recover, the solution will fail and then be re-attempted with a reduced time "
7314 "step.\n"
7315 << std::endl;
7316 }
7317
7318 // Stop the solve -- this entails setting
7319 // SNESSetFunctionDomainError() or directly inserting NaNs in the
7320 // residual vector to let PETSc >= 3.6 return DIVERGED_NANORINF.
7321 if (_current_nl_sys)
7323
7326
7327 // and close Aux system (we MUST do this here; see #11525)
7328 _aux->solution().close();
7329
7330 // We've handled this exception, so we no longer have one.
7331 _has_exception = false;
7332
7333 // Force the next non-linear convergence check to fail (and all further residual evaluation
7334 // to be skipped).
7336
7337 // Repropagate the exception, so it can be caught at a higher level, typically
7338 // this is NonlinearSystem::computeResidual().
7340 }
7341 else
7342 mooseError("The following parallel-communicated exception was detected during " +
7343 Moose::stringify(_current_execute_on_flag) + " evaluation:\n" +
7345 "\nBecause this did not occur during residual evaluation, there"
7346 " is no way to handle this, so the solution is aborting.\n");
7347 }
7348}
LinearSystem * _current_linear_sys
The current linear system that we are solving.
std::set< TagID > _fe_vector_tags
std::string _exception_message
The error message to go with an exception.
ExecFlagType _current_execute_on_flag
Current execute_on flag.
bool _skip_exception_check
If or not skip 'exception and stop solve'.
bool _fail_next_system_convergence_check
bool _has_exception
Whether or not an exception has occurred.
virtual bool isTransient() const override
virtual void stopSolve(const ExecFlagType &exec_flag, const std::set< TagID > &vector_tags_to_close) override
Quit the current solve as soon as possible.
Provides a way for users to bail out of the current solve.
virtual void stopSolve(const ExecFlagType &exec_flag, const std::set< TagID > &vector_tags_to_close)=0
Quit the current solve as soon as possible.
void maxloc(T &r, unsigned int &max_id) const
processor_id_type rank() const
void broadcast(T &data, const unsigned int root_id=0, const bool identical_sizes=false) const
bool isSolverExecFlag(const ExecFlagType &exec_flag)
Definition Moose.C:68

Referenced by NonlinearSystemBase::computeJacobianInternal(), FEProblemBase::computeUserObjects(), FEProblemBase::handleException(), DisplacedProblem::updateMesh(), and DisplacedProblem::updateMesh().

◆ checkICRestartError()

void FEProblemBase::checkICRestartError ( const std::string &  ic_name,
const std::string &  name,
const VariableName &  var_name 
)
privateinherited

Checks if the variable of the initial condition is getting restarted and errors for specific cases.

Parameters
ic_nameThe name of the initial condition
var_nameThe name of the variable

Definition at line 3732 of file FEProblemBase.C.

3735{
3737 {
3738 std::string restart_method = "";
3739 if (_app.isRestarting())
3740 restart_method =
3741 "a checkpoint restart, by IC object '" + ic_name + "' for variable '" + name + "'";
3742 else if (_app.getExReaderForRestart())
3743 {
3744 std::vector<std::string> restarted_vars = _app.getExReaderForRestart()->get_elem_var_names();
3745 const auto nodal_vars = _app.getExReaderForRestart()->get_nodal_var_names();
3746 const auto global_vars = _app.getExReaderForRestart()->get_global_var_names();
3747 restarted_vars.insert(restarted_vars.end(), nodal_vars.begin(), nodal_vars.end());
3748 restarted_vars.insert(restarted_vars.end(), global_vars.begin(), global_vars.end());
3749
3750 if (std::find(restarted_vars.begin(), restarted_vars.end(), var_name) != restarted_vars.end())
3751 restart_method = "an Exodus restart, by IC object '" + ic_name + "' for variable '" + name +
3752 "' that is also being restarted";
3753 }
3754 if (!restart_method.empty())
3755 mooseError(
3756 "Initial conditions have been specified during ",
3757 restart_method,
3758 ".\nThis is only allowed if you specify 'allow_initial_conditions_with_restart' to "
3759 "the [Problem], as initial conditions can override restarted fields");
3760 }
3761}
const bool _allow_ics_during_restart
bool isRestarting() const
Whether or not this is a "restart" calculation.
Definition MooseApp.C:1680
libMesh::ExodusII_IO * getExReaderForRestart() const
Get the Exodus reader to restart variables from an Exodus mesh file.
Definition MooseApp.h:449
const std::vector< std::string > & get_global_var_names()
const std::vector< std::string > & get_elem_var_names()
const std::vector< std::string > & get_nodal_var_names()

Referenced by FEProblemBase::addFVInitialCondition(), and FEProblemBase::addInitialCondition().

◆ checkingUOAuxState()

bool FEProblemBase::checkingUOAuxState ( ) const
inlineinherited

Return a flag to indicate whether we are executing user objects and auxliary kernels for state check Note: This function can return true only when hasUOAuxStateCheck() returns true, i.e.

the check has been activated by users through Problem/check_uo_aux_state input parameter.

Definition at line 229 of file FEProblemBase.h.

229{ return _checking_uo_aux_state; }
bool _checking_uo_aux_state
Flag used to indicate whether we are doing the uo/aux state check in execute.

Referenced by MemoryUsage::execute(), VectorMemoryUsage::execute(), MemoryUsage::finalize(), PerfGraphData::finalize(), and VectorMemoryUsage::finalize().

◆ checkNonlocalCoupling()

void FEProblemBase::checkNonlocalCoupling ( )
inherited
Returns
Flag indicating nonlocal coupling exists or not.

Definition at line 1805 of file FEProblemBase.C.

1806{
1807 TIME_SECTION("checkNonlocalCoupling", 5, "Checking Nonlocal Coupling");
1808
1809 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
1810 for (auto & nl : _nl)
1811 {
1812 const auto & all_kernels = nl->getKernelWarehouse();
1813 const auto & kernels = all_kernels.getObjects(tid);
1814 for (const auto & kernel : kernels)
1815 {
1816 std::shared_ptr<NonlocalKernel> nonlocal_kernel =
1817 std::dynamic_pointer_cast<NonlocalKernel>(kernel);
1818 if (nonlocal_kernel)
1819 {
1822 _nonlocal_kernels.addObject(kernel, tid);
1823 }
1824 }
1825 const MooseObjectWarehouse<IntegratedBCBase> & all_integrated_bcs =
1826 nl->getIntegratedBCWarehouse();
1827 const auto & integrated_bcs = all_integrated_bcs.getObjects(tid);
1828 for (const auto & integrated_bc : integrated_bcs)
1829 {
1830 std::shared_ptr<NonlocalIntegratedBC> nonlocal_integrated_bc =
1831 std::dynamic_pointer_cast<NonlocalIntegratedBC>(integrated_bc);
1832 if (nonlocal_integrated_bc)
1833 {
1836 _nonlocal_integrated_bcs.addObject(integrated_bc, tid);
1837 }
1838 }
1839 }
1840}
MooseObjectWarehouse< IntegratedBCBase > _nonlocal_integrated_bcs
nonlocal integrated_bcs
MooseObjectWarehouse< KernelBase > _nonlocal_kernels
nonlocal kernels
bool _requires_nonlocal_coupling
nonlocal coupling requirement flag
bool _calculate_jacobian_in_uo
const std::vector< std::shared_ptr< T > > & getObjects(THREAD_ID tid=0) const
Retrieve complete vector to the all/block/boundary restricted objects for a given thread.
A storage container for MooseObjects that inherit from SetupInterface.

◆ checkNonlocalCouplingRequirement()

bool FEProblemBase::checkNonlocalCouplingRequirement ( ) const
overridevirtualinherited
Returns
whether there will be nonlocal coupling at any point in the simulation, e.g. whether there are any active \emph or inactive nonlocal kernels or boundary conditions

Implements SubProblem.

Definition at line 10453 of file FEProblemBase.C.

10454{
10456}

Referenced by DisplacedProblem::checkNonlocalCouplingRequirement(), ComputeJacobianThread::compute(), ComputeJacobianThread::compute(), ComputeFullJacobianThread::computeOnBoundary(), and ComputeFullJacobianThread::computeOnElement().

◆ checkProblemIntegrity()

void FEProblemBase::checkProblemIntegrity ( )
virtualinherited

Method called to perform a series of sanity checks before a simulation is run.

This method doesn't return when errors are found, instead it generally calls mooseError() directly.

If a material is specified for any block in the simulation, then all blocks must have a material specified.

unsigned int is necessary to print SubdomainIDs in the statement below

vector is necessary to get the subdomain names

Reimplemented in EigenProblem.

Definition at line 9216 of file FEProblemBase.C.

9217{
9218 TIME_SECTION("checkProblemIntegrity", 5);
9219
9220 // Subdomains specified by the "Problem/block" parameter
9221 const auto & subdomain_names = getParam<std::vector<SubdomainName>>("block");
9222 auto mesh_subdomains_vec = MooseMeshUtils::getSubdomainIDs(_mesh, subdomain_names);
9223 std::set<SubdomainID> mesh_subdomains(mesh_subdomains_vec.begin(), mesh_subdomains_vec.end());
9224
9225 // Check kernel coverage of subdomains (blocks) in the mesh
9228 {
9229 std::set<SubdomainID> blocks;
9232 blocks = mesh_subdomains;
9234 {
9235 blocks = mesh_subdomains;
9236 for (const auto & subdomain_name : _kernel_coverage_blocks)
9237 {
9238 const auto id = _mesh.getSubdomainID(subdomain_name);
9239 if (id == Moose::INVALID_BLOCK_ID)
9240 paramError("kernel_coverage_block_list",
9241 "Subdomain \"",
9242 subdomain_name,
9243 "\" not found in mesh.");
9244 blocks.erase(id);
9245 }
9246 }
9248 for (const auto & subdomain_name : _kernel_coverage_blocks)
9249 {
9250 const auto id = _mesh.getSubdomainID(subdomain_name);
9251 if (id == Moose::INVALID_BLOCK_ID)
9252 paramError("kernel_coverage_block_list",
9253 "Subdomain \"",
9254 subdomain_name,
9255 "\" not found in mesh.");
9256 blocks.insert(id);
9257 }
9258 if (!blocks.empty())
9259 for (auto & nl : _nl)
9260 nl->checkKernelCoverage(blocks);
9261 }
9262
9263 // Check materials
9264 {
9265#ifdef LIBMESH_ENABLE_AMR
9266 if ((_adaptivity.isOn() || _num_grid_steps) &&
9269 {
9270 _console << "Using EXPERIMENTAL Stateful Material Property projection with Adaptivity!\n"
9271 << std::flush;
9272 }
9273#endif
9274
9275 std::set<SubdomainID> local_mesh_subs(mesh_subdomains);
9276
9279 {
9284 bool check_material_coverage = false;
9285 std::set<SubdomainID> ids = _all_materials.getActiveBlocks();
9286 for (const auto & id : ids)
9287 {
9288 local_mesh_subs.erase(id);
9289 check_material_coverage = true;
9290 }
9291
9292 // did the user limit the subdomains to be checked?
9294 {
9295 for (const auto & subdomain_name : _material_coverage_blocks)
9296 {
9297 const auto id = _mesh.getSubdomainID(subdomain_name);
9298 if (id == Moose::INVALID_BLOCK_ID)
9299 paramError("material_coverage_block_list",
9300 "Subdomain \"" + subdomain_name + "\" not found in mesh.");
9301 local_mesh_subs.erase(id);
9302 }
9303 }
9305 {
9306 std::set<SubdomainID> blocks(local_mesh_subs);
9307 for (const auto & subdomain_name : _material_coverage_blocks)
9308 {
9309 const auto id = _mesh.getSubdomainID(subdomain_name);
9310 if (id == Moose::INVALID_BLOCK_ID)
9311 paramError("material_coverage_block_list",
9312 "Subdomain \"" + subdomain_name + "\" not found in mesh.");
9313 blocks.erase(id);
9314 }
9315 for (const auto id : blocks)
9316 local_mesh_subs.erase(id);
9317 }
9318
9319 // also exclude mortar spaces from the material check
9320 auto && mortar_subdomain_ids = _mortar_data->getMortarSubdomainIDs();
9321 for (auto subdomain_id : mortar_subdomain_ids)
9322 local_mesh_subs.erase(subdomain_id);
9323
9324 // Check Material Coverage
9325 if (check_material_coverage && !local_mesh_subs.empty())
9326 {
9327 std::stringstream extra_subdomain_ids;
9329 std::copy(local_mesh_subs.begin(),
9330 local_mesh_subs.end(),
9331 std::ostream_iterator<unsigned int>(extra_subdomain_ids, " "));
9333 std::vector<SubdomainID> local_mesh_subs_vec(local_mesh_subs.begin(),
9334 local_mesh_subs.end());
9335
9336 mooseError("The following blocks from your input mesh do not contain an active material: " +
9337 extra_subdomain_ids.str() +
9338 "(names: " + Moose::stringify(_mesh.getSubdomainNames(local_mesh_subs_vec)) +
9339 ")\nWhen ANY mesh block contains a Material object, "
9340 "all blocks must contain a Material object.\n");
9341 }
9342 }
9343
9344 // Check material properties on blocks and boundaries
9347
9348 // Check that material properties exist when requested by other properties on a given block
9349 const auto & materials = _all_materials.getActiveObjects();
9350 for (const auto & material : materials)
9351 material->checkStatefulSanity();
9352
9353 // auto mats_to_check = _materials.getActiveBlockObjects();
9354 // const auto & discrete_materials = _discrete_materials.getActiveBlockObjects();
9355 // for (const auto & map_it : discrete_materials)
9356 // for (const auto & container_element : map_it.second)
9357 // mats_to_check[map_it.first].push_back(container_element);
9360 }
9361
9363
9364 // Verify that we don't have any Element type/Coordinate Type conflicts
9366
9367 // Coordinate transforms are only intended for use with MultiApps at this time. If you are not
9368 // using multiapps but still require these, contact a moose developer
9370 !hasMultiApps())
9371 mooseError("Coordinate transformation parameters, listed below, are only to be used in the "
9372 "context of application to application field transfers at this time. The mesh is "
9373 "not modified by these parameters within an application.\n"
9374 "You should likely use a 'TransformGenerator' in the [Mesh] block to achieve the "
9375 "desired mesh modification.\n\n",
9377
9378 // If using displacements, verify that the order of the displacement
9379 // variables matches the order of the elements in the displaced
9380 // mesh.
9382
9383 // Check for postprocessor names with same name as a scalar variable
9385}
char ** blocks
std::vector< SubdomainName > _material_coverage_blocks
void checkDependMaterialsHelper(const std::map< SubdomainID, std::vector< std::shared_ptr< MaterialBase > > > &materials_map)
Helper method for checking Material object dependency.
const bool _skip_nl_system_check
const bool & _solve
Whether or not to actually solve the nonlinear system.
void checkDisplacementOrders()
Verify that SECOND order mesh uses SECOND order displacements.
std::unique_ptr< MortarInterfaceWarehouse > _mortar_data
CoverageCheckMode _kernel_coverage_check
Determines whether and which subdomains are to be checked to ensure that they have an active kernel.
void checkUserObjects()
const bool _material_dependency_check
Determines whether a check to verify material dependencies on every subdomain.
bool hasMultiApps() const
Returns whether or not the current simulation has any multiapps.
void checkCoordinateSystems()
Verify that there are no element type/coordinate type conflicts.
void checkDuplicatePostprocessorVariableNames()
CoverageCheckMode _material_coverage_check
Determines whether and which subdomains are to be checked to ensure that they have an active material...
std::vector< SubdomainName > _kernel_coverage_blocks
bool hasScalingOrRotationTransformation() const
Returns true if the app has scaling and/or rotation transformation.
static InputParameters validParams()
Describes the parameters this object can take to setup transformations.
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Definition MooseBase.h:457
std::vector< SubdomainName > getSubdomainNames(const std::vector< SubdomainID > &subdomain_ids) const
Get the associated subdomainNames for the subdomain ids that are passed in.
Definition MooseMesh.C:1720
MooseAppCoordTransform & coordTransform()
Definition MooseMesh.h:2062
SubdomainID getSubdomainID(const SubdomainName &subdomain_name) const
Get the associated subdomain ID for the subdomain name.
Definition MooseMesh.C:1678
std::set< SubdomainID > getActiveBlocks(THREAD_ID tid=0) const
Return a set of active SubdomainsIDs.
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
virtual void checkBoundaryMatProps()
Checks boundary material properties integrity.
Definition SubProblem.C:654
virtual void checkBlockMatProps()
Checks block material properties integrity.
Definition SubProblem.C:612
std::vector< subdomain_id_type > getSubdomainIDs(const libMesh::MeshBase &mesh, const std::vector< SubdomainName > &subdomain_name)
Get the associated subdomainIDs for the subdomain names that are passed in.
const SubdomainID INVALID_BLOCK_ID
Definition MooseTypes.C:20

Referenced by EigenProblem::checkProblemIntegrity().

◆ checkResidualForNans()

virtual bool FEProblemBase::checkResidualForNans ( ) const
inlineoverridevirtualinherited

Whether to check residual for NaN/Inf values.

Implements SubProblem.

Definition at line 232 of file FEProblemBase.h.

232{ return _check_residual_for_nans; }
bool _check_residual_for_nans
Whether to check the residual for NaN or Inf values.

Referenced by DisplacedProblem::checkResidualForNans().

◆ checkUserObjectJacobianRequirement()

void FEProblemBase::checkUserObjectJacobianRequirement ( THREAD_ID  tid)
inherited

Definition at line 1843 of file FEProblemBase.C.

1844{
1845 std::set<const MooseVariableFEBase *> uo_jacobian_moose_vars;
1846 {
1847 std::vector<ShapeElementUserObject *> objs;
1848 theWarehouse()
1849 .query()
1851 .condition<AttribThread>(tid)
1852 .queryInto(objs);
1853
1854 for (const auto & uo : objs)
1855 {
1856 _calculate_jacobian_in_uo = uo->computeJacobianFlag();
1857 const auto & mv_deps = uo->jacobianMooseVariables();
1858 uo_jacobian_moose_vars.insert(mv_deps.begin(), mv_deps.end());
1859 }
1860 }
1861 {
1862 std::vector<ShapeSideUserObject *> objs;
1863 theWarehouse()
1864 .query()
1866 .condition<AttribThread>(tid)
1867 .queryInto(objs);
1868 for (const auto & uo : objs)
1869 {
1870 _calculate_jacobian_in_uo = uo->computeJacobianFlag();
1871 const auto & mv_deps = uo->jacobianMooseVariables();
1872 uo_jacobian_moose_vars.insert(mv_deps.begin(), mv_deps.end());
1873 }
1874 }
1875
1876 _uo_jacobian_moose_vars[tid].assign(uo_jacobian_moose_vars.begin(), uo_jacobian_moose_vars.end());
1877 std::sort(
1878 _uo_jacobian_moose_vars[tid].begin(), _uo_jacobian_moose_vars[tid].end(), sortMooseVariables);
1879}
@ ShapeSideUserObject
@ ShapeElementUserObject
std::vector< std::vector< const MooseVariableFEBase * > > _uo_jacobian_moose_vars
QueryCache & condition(Args &&... args)
Adds a new condition to the query.
Query query()
query creates and returns an initialized a query object for querying objects from the warehouse.

◆ checkUserObjectNameCollision()

void FEProblemBase::checkUserObjectNameCollision ( const std::string &  name,
const std::string &  type 
) const
inherited

Check for name collision between different user objects.

Parameters
nameThe object name being added
typeThe object type being added

Definition at line 4630 of file FEProblemBase.C.

4632{
4633 if (hasUserObject(name))
4634 mooseError("A ",
4636 " already exists. You may not add a ",
4637 type,
4638 " by the same name.");
4639
4640#ifdef MOOSE_KOKKOS_ENABLED
4642 mooseError("A ",
4643 getKokkosUserObject<UserObjectBase>(name).typeAndName(),
4644 " already exists. You may not add a ",
4645 type,
4646 " by the same name.");
4647#endif
4648}
bool hasKokkosUserObject(const std::string &name) const
Check if there if a Kokkos user object of given name.
bool hasUserObject(const std::string &name) const
Check if there if a user object of given name.
const UserObject & getUserObjectBase(const std::string &name, const THREAD_ID tid=0) const
Get the user object by its name.
std::string typeAndName() const
Get the class's combined type and name; useful in error handling.
Definition MooseBase.C:57

Referenced by FEProblemBase::addPostprocessor(), MFEMProblem::addPostprocessor(), FEProblemBase::addReporter(), FEProblemBase::addVectorPostprocessor(), and MFEMProblem::addVectorPostprocessor().

◆ checkUserObjects()

void FEProblemBase::checkUserObjects ( )
protectedinherited

Definition at line 9429 of file FEProblemBase.C.

9430{
9431 // Check user_objects block coverage
9432 std::set<SubdomainID> mesh_subdomains = _mesh.meshSubdomains();
9433 std::set<SubdomainID> user_objects_blocks;
9434
9435 // gather names of all user_objects that were defined in the input file
9436 // and the blocks that they are defined on
9437 std::set<std::string> names;
9438
9439 std::vector<UserObjectBase *> objects;
9441
9442 for (const auto & obj : objects)
9443 names.insert(obj->name());
9444
9445 // See if all referenced blocks are covered
9446 std::set<SubdomainID> difference;
9447 std::set_difference(user_objects_blocks.begin(),
9448 user_objects_blocks.end(),
9449 mesh_subdomains.begin(),
9450 mesh_subdomains.end(),
9451 std::inserter(difference, difference.end()));
9452
9453 if (!difference.empty())
9454 {
9455 std::ostringstream oss;
9456 oss << "One or more UserObjects is referencing a nonexistent block:\n";
9457 for (const auto & id : difference)
9458 oss << id << "\n";
9459 mooseError(oss.str());
9460 }
9461}
const std::set< SubdomainID > & meshSubdomains() const
Returns a read-only reference to the set of subdomains currently present in the Mesh.
Definition MooseMesh.C:3235

Referenced by FEProblemBase::checkProblemIntegrity().

◆ clearActiveElementalMooseVariables()

void FEProblemBase::clearActiveElementalMooseVariables ( const THREAD_ID  tid)
overridevirtualinherited

Clear the active elemental MooseVariableFEBase.

If there are no active variables then they will all be reinited. Call this after finishing the computation that was using a restricted set of MooseVariableFEBases

Parameters
tidThe thread id

Reimplemented from SubProblem.

Definition at line 6680 of file FEProblemBase.C.

6681{
6683
6685 _displaced_problem->clearActiveElementalMooseVariables(tid);
6686}
virtual void clearActiveElementalMooseVariables(const THREAD_ID tid)
Clear the active elemental MooseVariableFieldBase.
Definition SubProblem.C:455

Referenced by ComputeDiracThread::post(), ComputeIndicatorThread::post(), ComputeMarkerThread::post(), ComputeMaterialsObjectThread::post(), and ComputeUserObjectsThread::post().

◆ clearActiveFEVariableCoupleableMatrixTags()

void FEProblemBase::clearActiveFEVariableCoupleableMatrixTags ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6689 of file FEProblemBase.C.

6690{
6692
6694 _displaced_problem->clearActiveFEVariableCoupleableMatrixTags(tid);
6695}
virtual void clearActiveFEVariableCoupleableMatrixTags(const THREAD_ID tid)
Definition SubProblem.C:373

◆ clearActiveFEVariableCoupleableVectorTags()

void FEProblemBase::clearActiveFEVariableCoupleableVectorTags ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6698 of file FEProblemBase.C.

6699{
6701
6703 _displaced_problem->clearActiveFEVariableCoupleableVectorTags(tid);
6704}
virtual void clearActiveFEVariableCoupleableVectorTags(const THREAD_ID tid)
Definition SubProblem.C:367

◆ clearActiveMaterialProperties()

void FEProblemBase::clearActiveMaterialProperties ( const THREAD_ID  tid)
inherited

Clear the active material properties.

Should be called at the end of every computing thread

Parameters
tidThe thread id

Definition at line 6746 of file FEProblemBase.C.

6747{
6749}
std::vector< unsigned char > _has_active_material_properties
Whether there are active material properties on each thread.

Referenced by NodalPatchRecovery::compute(), ComputeDiracThread::post(), ComputeIndicatorThread::post(), ComputeUserObjectsThread::post(), ComputeIndicatorThread::subdomainChanged(), and ComputeMarkerThread::subdomainChanged().

◆ clearActiveScalarVariableCoupleableMatrixTags()

void FEProblemBase::clearActiveScalarVariableCoupleableMatrixTags ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6707 of file FEProblemBase.C.

6708{
6710
6712 _displaced_problem->clearActiveScalarVariableCoupleableMatrixTags(tid);
6713}
virtual void clearActiveScalarVariableCoupleableMatrixTags(const THREAD_ID tid)
Definition SubProblem.C:414

Referenced by AuxiliarySystem::clearScalarVariableCoupleableTags().

◆ clearActiveScalarVariableCoupleableVectorTags()

void FEProblemBase::clearActiveScalarVariableCoupleableVectorTags ( const THREAD_ID  tid)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6716 of file FEProblemBase.C.

6717{
6719
6721 _displaced_problem->clearActiveScalarVariableCoupleableVectorTags(tid);
6722}
virtual void clearActiveScalarVariableCoupleableVectorTags(const THREAD_ID tid)
Definition SubProblem.C:408

Referenced by AuxiliarySystem::clearScalarVariableCoupleableTags().

◆ clearAllDofIndices()

void SubProblem::clearAllDofIndices ( )
inherited

Clear dof indices from variables in nl and aux systems.

Definition at line 1182 of file SubProblem.C.

1183{
1184 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
1187}
void clearAllDofIndices()
Clear dof indices from variables in nl and aux systems.
virtual const SystemBase & systemBaseAuxiliary() const =0
Return the auxiliary system object as a base class reference.
void clearAllDofIndices()
Clear all dof indices from moose variables.

Referenced by FEProblemBase::solve().

◆ clearCurrentJacobianMatrixTags()

void FEProblemBase::clearCurrentJacobianMatrixTags ( )
inlineinherited

Clear the current Jacobian matrix tag data structure ... if someone creates it.

Definition at line 3021 of file FEProblemBase.h.

3021{}

Referenced by FEProblemBase::resetState().

◆ clearCurrentResidualVectorTags()

void FEProblemBase::clearCurrentResidualVectorTags ( )
inlineinherited

Clear the current residual vector tag data structure.

Definition at line 3956 of file FEProblemBase.h.

3957{
3959}
std::vector< VectorTag > _current_residual_vector_tags
A data member to store the residual vector tag(s) passed into computeResidualTag(s).

Referenced by CrankNicolson::init(), and FEProblemBase::resetState().

◆ clearDiracInfo()

void FEProblemBase::clearDiracInfo ( )
overridevirtualinherited

Gets called before Dirac Kernels are asked to add the points they are supposed to be evaluated in.

Implements SubProblem.

Definition at line 2667 of file FEProblemBase.C.

2668{
2670
2672 _displaced_problem->clearDiracInfo();
2673}
void clearPoints()
Remove all of the current points and elements.
DiracKernelInfo _dirac_kernel_info

Referenced by NonlinearSystemBase::computeDiracContributions().

◆ cloneAlgebraicGhostingFunctor()

void SubProblem::cloneAlgebraicGhostingFunctor ( libMesh::GhostingFunctor &  algebraic_gf,
bool  to_mesh = true 
)
privateinherited

Creates (n_sys - 1) clones of the provided algebraic ghosting functor (corresponding to the nonlinear system algebraic ghosting functor), initializes the clone with the appropriate DofMap, and then adds the clone to said DofMap.

Parameters
algebraic_gfthe (nonlinear system's) algebraic ghosting functor to clone
to_meshwhether the clone should be added to the corresponding DofMap's underlying MeshBase (the underlying MeshBase will be the same for every system held by this object's EquationSystems object)

Definition at line 1006 of file SubProblem.C.

1007{
1008 EquationSystems & eq = es();
1009 const auto n_sys = eq.n_systems();
1010
1011 auto pr = _root_alg_gf_to_sys_clones.emplace(
1012 &algebraic_gf, std::vector<std::shared_ptr<libMesh::GhostingFunctor>>(n_sys - 1));
1013 mooseAssert(pr.second, "We are adding a duplicate algebraic ghosting functor");
1014 auto & clones_vec = pr.first->second;
1015
1016 for (MooseIndex(n_sys) i = 1; i < n_sys; ++i)
1017 {
1018 DofMap & dof_map = eq.get_system(i).get_dof_map();
1019 std::shared_ptr<libMesh::GhostingFunctor> clone_alg_gf = algebraic_gf.clone();
1020 std::dynamic_pointer_cast<RelationshipManager>(clone_alg_gf)
1021 ->init(mesh(), *algebraic_gf.get_mesh(), &dof_map);
1022 dof_map.add_algebraic_ghosting_functor(clone_alg_gf, to_mesh);
1023 clones_vec[i - 1] = clone_alg_gf;
1024 }
1025}
std::unordered_map< libMesh::GhostingFunctor *, std::vector< std::shared_ptr< libMesh::GhostingFunctor > > > _root_alg_gf_to_sys_clones
A map from a root algebraic ghosting functor, e.g.
virtual std::unique_ptr< GhostingFunctor > clone() const=0
const MeshBase * get_mesh() const

Referenced by SubProblem::addAlgebraicGhostingFunctor().

◆ cloneCouplingGhostingFunctor()

void SubProblem::cloneCouplingGhostingFunctor ( libMesh::GhostingFunctor &  coupling_gf,
bool  to_mesh = true 
)
privateinherited

Creates (n_sys - 1) clones of the provided coupling ghosting functor (corresponding to the nonlinear system coupling ghosting functor), initializes the clone with the appropriate DofMap, and then adds the clone to said DofMap.

Parameters
coupling_gfthe (nonlinear system's) coupling ghosting functor to clone
to_meshwhether the clone should be added to the corresponding DofMap's underlying MeshBase (the underlying MeshBase will be the same for every system held by this object's EquationSystems object)

Definition at line 1040 of file SubProblem.C.

1041{
1042 const std::size_t num_nl_sys = numNonlinearSystems();
1043
1044 auto pr = _root_coupling_gf_to_sys_clones.emplace(
1045 &coupling_gf, std::vector<std::shared_ptr<libMesh::GhostingFunctor>>(num_nl_sys - 1));
1046 mooseAssert(pr.second, "We are adding a duplicate coupling functor");
1047 auto & clones_vec = pr.first->second;
1048
1049 for (const auto i : make_range(std::size_t(1), num_nl_sys))
1050 {
1051 DofMap & dof_map = systemBaseNonlinear(i).system().get_dof_map();
1052 std::shared_ptr<libMesh::GhostingFunctor> clone_coupling_gf = coupling_gf.clone();
1053 std::dynamic_pointer_cast<RelationshipManager>(clone_coupling_gf)
1054 ->init(mesh(), *coupling_gf.get_mesh(), &dof_map);
1055 dof_map.add_coupling_functor(clone_coupling_gf, to_mesh);
1056 clones_vec[i - 1] = clone_coupling_gf;
1057 }
1058}
std::unordered_map< libMesh::GhostingFunctor *, std::vector< std::shared_ptr< libMesh::GhostingFunctor > > > _root_coupling_gf_to_sys_clones
A map from a root coupling ghosting functor, e.g.

Referenced by SubProblem::addCouplingGhostingFunctor().

◆ computeBounds()

void FEProblemBase::computeBounds ( libMesh::NonlinearImplicitSystem &  sys,
NumericVector< libMesh::Number > &  lower,
NumericVector< libMesh::Number > &  upper 
)
virtualinherited

Definition at line 8366 of file FEProblemBase.C.

8369{
8370 try
8371 {
8372 try
8373 {
8374 mooseAssert(_current_nl_sys && (sys.number() == _current_nl_sys->number()),
8375 "I expect these system numbers to be the same");
8376
8377 if (!_current_nl_sys->hasVector("lower_bound") || !_current_nl_sys->hasVector("upper_bound"))
8378 return;
8379
8380 TIME_SECTION("computeBounds", 1, "Computing Bounds");
8381
8382 NumericVector<Number> & _lower = _current_nl_sys->getVector("lower_bound");
8383 NumericVector<Number> & _upper = _current_nl_sys->getVector("upper_bound");
8384 _lower.swap(lower);
8385 _upper.swap(upper);
8386 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); tid++)
8388
8389 _aux->residualSetup();
8391 _lower.swap(lower);
8392 _upper.swap(upper);
8393 }
8394 catch (...)
8395 {
8396 handleException("computeBounds");
8397 }
8398 }
8399 catch (MooseException & e)
8400 {
8401 mooseError("Irrecoverable exception: " + std::string(e.what()));
8402 }
8403 catch (...)
8404 {
8405 mooseError("Unexpected exception type");
8406 }
8407}
const ExecFlagType EXEC_LINEAR
Definition Moose.C:32
void computeSystems(const ExecFlagType &type)
Do generic system computations.
void handleException(const std::string &calling_method)
Handle exceptions.
virtual void residualSetup(THREAD_ID tid=0) const override
virtual const char * what() const
Get out the error message.
virtual NumericVector< Number > & getVector(const std::string &name)
Get a raw NumericVector by name.
Definition SystemBase.C:930
virtual void swap(NumericVector< T > &v)

Referenced by Moose::compute_bounds().

◆ computeDamping()

Real FEProblemBase::computeDamping ( const NumericVector< libMesh::Number > &  soln,
const NumericVector< libMesh::Number > &  update 
)
virtualinherited

Definition at line 8648 of file FEProblemBase.C.

8650{
8651 // Default to no damping
8652 Real damping = 1.0;
8653
8654 if (_has_dampers)
8655 {
8656 TIME_SECTION("computeDamping", 1, "Computing Damping");
8657
8658 // Save pointer to the current solution
8659 const NumericVector<Number> * _saved_current_solution = _current_nl_sys->currentSolution();
8660
8662 // For now, do not re-compute auxiliary variables. Doing so allows a wild solution increment
8663 // to get to the material models, which may not be able to cope with drastically different
8664 // values. Once more complete dependency checking is in place, auxiliary variables (and
8665 // material properties) will be computed as needed by dampers.
8666 // _aux.compute();
8667 damping = _current_nl_sys->computeDamping(soln, update);
8668
8669 // restore saved solution
8670 _current_nl_sys->setSolution(*_saved_current_solution);
8671 }
8672
8673 return damping;
8674}
Real computeDamping(const NumericVector< Number > &solution, const NumericVector< Number > &update)
Compute damping.
void setSolution(const NumericVector< Number > &soln)
Set the solution to a given vector.
virtual const NumericVector< Number > *const & currentSolution() const override final
The solution vector that is currently being operated on.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by FEProblemBase::computePostCheck().

◆ computeIndicators()

virtual void DumpObjectsProblem::computeIndicators ( )
inlineoverridevirtual

Reimplemented from FEProblemBase.

Definition at line 68 of file DumpObjectsProblem.h.

68{}

◆ computeIndicatorsAndMarkers()

void FEProblemBase::computeIndicatorsAndMarkers ( )
virtualinherited

Definition at line 5056 of file FEProblemBase.C.

5057{
5060}
virtual void computeIndicators()
virtual void computeMarkers()

◆ computeJacobian()

void FEProblemBase::computeJacobian ( const NumericVector< libMesh::Number > &  soln,
libMesh::SparseMatrix< libMesh::Number > &  jacobian,
const unsigned int  nl_sys_num 
)
virtualinherited

Form a Jacobian matrix with the default tag (system).

Reimplemented in EigenProblem.

Definition at line 8191 of file FEProblemBase.C.

8194{
8195 setCurrentNonlinearSystem(nl_sys_num);
8196
8197 _fe_matrix_tags.clear();
8198
8199 auto & tags = getMatrixTags();
8200 for (auto & tag : tags)
8201 _fe_matrix_tags.insert(tag.second);
8202
8204}
std::set< TagID > _fe_matrix_tags
void setCurrentNonlinearSystem(const unsigned int nl_sys_num)
virtual void computeJacobianInternal(const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian, const std::set< TagID > &tags)
Form a Jacobian matrix for multiple tags.
virtual std::map< TagName, TagID > & getMatrixTags()
Return all matrix tags in the system, where a tag is represented by a map from name to ID.
Definition SubProblem.h:253

Referenced by FEProblemBase::computeJacobianSys().

◆ computeJacobianBlock()

void FEProblemBase::computeJacobianBlock ( libMesh::SparseMatrix< libMesh::Number > &  jacobian,
libMesh::System &  precond_system,
unsigned int  ivar,
unsigned int  jvar 
)
virtualinherited

Really not a good idea to use this.

It computes just one block of the Jacobian into a smaller matrix. Calling this in a loop is EXTREMELY ineffecient! Try to use computeJacobianBlocks() instead!

Parameters
jacobianThe matrix you want to fill
precond_systemThe libMesh::system of the preconditioning system
ivarthe block-row of the Jacobian
jvarthe block-column of the Jacobian

Definition at line 8354 of file FEProblemBase.C.

8358{
8359 JacobianBlock jac_block(precond_system, jacobian, ivar, jvar);
8360 std::vector<JacobianBlock *> blocks = {&jac_block};
8361 mooseAssert(_current_nl_sys, "This should be non-null");
8363}
virtual void computeJacobianBlocks(std::vector< JacobianBlock * > &blocks, const unsigned int nl_sys_num)
Computes several Jacobian blocks simultaneously, summing their contributions into smaller preconditio...
Helper class for holding the preconditioning blocks to fill.

◆ computeJacobianBlocks()

void FEProblemBase::computeJacobianBlocks ( std::vector< JacobianBlock * > &  blocks,
const unsigned int  nl_sys_num 
)
virtualinherited

Computes several Jacobian blocks simultaneously, summing their contributions into smaller preconditioning matrices.

Used by Physics-based preconditioning

Parameters
blocksThe blocks to fill in (JacobianBlock is defined in ComputeJacobianBlocksThread)

Reimplemented in EigenProblem.

Definition at line 8334 of file FEProblemBase.C.

8336{
8337 TIME_SECTION("computeTransientImplicitJacobian", 2);
8338 setCurrentNonlinearSystem(nl_sys_num);
8339
8341 {
8343 _displaced_problem->updateMesh();
8344 }
8345
8347
8351}
const ExecFlagType EXEC_NONLINEAR
Definition Moose.C:34
const ExecFlagType EXEC_PRE_DISPLACE
Definition Moose.C:55
void computeJacobianBlocks(std::vector< JacobianBlock * > &blocks)
Computes several Jacobian blocks simultaneously, summing their contributions into smaller preconditio...
bool _currently_computing_jacobian
Flag to determine whether the problem is currently computing Jacobian.

Referenced by FEProblemBase::computeJacobianBlock(), and PhysicsBasedPreconditioner::setup().

◆ computeJacobianInternal()

void FEProblemBase::computeJacobianInternal ( const NumericVector< libMesh::Number > &  soln,
libMesh::SparseMatrix< libMesh::Number > &  jacobian,
const std::set< TagID > &  tags 
)
virtualinherited

Form a Jacobian matrix for multiple tags.

It should not be called directly by users.

Definition at line 8207 of file FEProblemBase.C.

8210{
8211 TIME_SECTION("computeJacobianInternal", 1);
8212
8214
8216
8217 computeJacobianTags(tags);
8218
8220}
virtual void computeJacobianTags(const std::set< TagID > &tags)
Form multiple matrices, and each is associated with a tag.
TagID systemMatrixTag() const override
Return the Matrix Tag ID for System.
virtual void disassociateMatrixFromTag(libMesh::SparseMatrix< Number > &matrix, TagID tag)
Disassociate a matrix from a tag.
virtual void associateMatrixToTag(libMesh::SparseMatrix< Number > &matrix, TagID tag)
Associate a matrix to a tag.

Referenced by FEProblemBase::computeJacobian().

◆ computeJacobianSys()

void FEProblemBase::computeJacobianSys ( libMesh::NonlinearImplicitSystem &  sys,
const NumericVector< libMesh::Number > &  soln,
libMesh::SparseMatrix< libMesh::Number > &  jacobian 
)
virtualinherited

Form a Jacobian matrix.

It is called by Libmesh.

Definition at line 8167 of file FEProblemBase.C.

8170{
8171 // Reset before Jacobian setup, calculation & execution
8173 computeJacobian(soln, jacobian, sys.number());
8174}
virtual void computeJacobian(const NumericVector< libMesh::Number > &soln, libMesh::SparseMatrix< libMesh::Number > &jacobian, const unsigned int nl_sys_num)
Form a Jacobian matrix with the default tag (system).
void resetIterationOccurences()
Reset the number of solution invalid occurrences back to zero.

Referenced by Moose::compute_jacobian(), and NonlinearSystem::computeScalingJacobian().

◆ computeJacobianTag()

void FEProblemBase::computeJacobianTag ( const NumericVector< libMesh::Number > &  soln,
libMesh::SparseMatrix< libMesh::Number > &  jacobian,
TagID  tag 
)
virtualinherited

Form a Jacobian matrix for a given tag.

Definition at line 8177 of file FEProblemBase.C.

8180{
8182
8183 _current_nl_sys->associateMatrixToTag(jacobian, tag);
8184
8185 computeJacobianTags({tag});
8186
8188}

Referenced by ActuallyExplicitEuler::solve(), and ExplicitSSPRungeKutta::solveStage().

◆ computeJacobianTags()

void FEProblemBase::computeJacobianTags ( const std::set< TagID > &  tags)
virtualinherited

Form multiple matrices, and each is associated with a tag.

Definition at line 8223 of file FEProblemBase.C.

8224{
8225 try
8226 {
8227 try
8228 {
8230 {
8231 TIME_SECTION("computeJacobianTags", 5, "Computing Jacobian");
8232
8233 for (auto tag : tags)
8234 if (_current_nl_sys->hasMatrix(tag))
8235 {
8236 auto & matrix = _current_nl_sys->getMatrix(tag);
8239 else
8240 matrix.zero();
8242 // PETSc algorithms require diagonal allocations regardless of whether there is
8243 // non-zero diagonal dependence. With global AD indexing we only add non-zero
8244 // dependence, so PETSc will scream at us unless we artificially add the diagonals.
8245 for (auto index : make_range(matrix.row_start(), matrix.row_stop()))
8246 matrix.add(index, index, 0);
8247 }
8248
8249 _aux->zeroVariablesForJacobian();
8250
8251 unsigned int n_threads = libMesh::n_threads();
8252
8253 // Random interface objects
8254 for (const auto & it : _random_data_objects)
8255 it.second->updateSeeds(EXEC_NONLINEAR);
8256
8260 _displaced_problem->setCurrentlyComputingJacobian(true);
8261
8263
8264 for (unsigned int tid = 0; tid < n_threads; tid++)
8265 reinitScalars(tid);
8266
8268
8269 _aux->jacobianSetup();
8270
8272 {
8274 _displaced_problem->updateMesh();
8275 // A standalone scaling Jacobian is assembled without a preceding residual evaluation, so
8276 // the displaced mortar segment mesh can be stale relative to the just-updated displaced
8277 // parent mesh. Every other Jacobian evaluation is preceded by a residual (or combined
8278 // residual/Jacobian) evaluation that already rebuilt the mortar mesh, so doing it here in
8279 // the general case would be duplicative.
8280 if (_current_nl_sys->computingScalingJacobian() && _mortar_data->hasDisplacedObjects())
8282 }
8283
8284 for (unsigned int tid = 0; tid < n_threads; tid++)
8285 {
8288 }
8289
8290#ifdef MOOSE_KOKKOS_ENABLED
8292#endif
8293
8295
8297
8299
8301
8303
8305
8306 // For explicit Euler calculations for example we often compute the Jacobian one time and
8307 // then re-use it over and over. If we're performing automatic scaling, we don't want to
8308 // use that kernel, diagonal-block only Jacobian for our actual matrix when performing
8309 // solves!
8311 _has_jacobian = true;
8312 }
8313 }
8314 catch (...)
8315 {
8316 handleException("computeJacobianTags");
8317 }
8318 }
8319 catch (const MooseException &)
8320 {
8321 // The buck stops here, we have already handled the exception by
8322 // calling the system's stopSolve() method, it is now up to PETSc to return a
8323 // "diverged" reason during the next solve.
8324 }
8325 catch (...)
8326 {
8327 mooseError("Unexpected exception type");
8328 }
8329
8330 resetState();
8331}
virtual void computeUserObjects(const ExecFlagType &type, const Moose::AuxGroup &group)
Call compute methods on UserObjects.
virtual void resetState()
Reset state of this object in preparation for the next evaluation.
virtual void reinitScalars(const THREAD_ID tid, bool reinit_for_derivative_reordering=false) override
fills the VariableValue arrays for scalar variables from the solution vector
std::map< std::string, std::unique_ptr< RandomData > > _random_data_objects
A map of objects that consume random numbers.
void executeControls(const ExecFlagType &exec_type)
Performs setup and execute calls for Control objects.
const bool _restore_original_nonzero_pattern
Whether we should restore the original nonzero pattern for every Jacobian evaluation.
bool _const_jacobian
true if the Jacobian is constant
bool execMultiApps(ExecFlagType type, bool auto_advance=true)
Execute the MultiApps associated with the ExecFlagType.
MooseObjectWarehouse< Moose::FunctionBase > _kokkos_functions
virtual void updateMortarMesh()
bool haveADObjects() const
Method for reading wehther we have any ad objects.
Definition SubProblem.h:779
bool _has_jacobian
Indicates if the Jacobian was computed.
virtual void jacobianSetup(THREAD_ID tid=0) const override
virtual void jacobianSetup(THREAD_ID tid=0) const
void computeJacobianTags(const std::set< TagID > &tags)
Computes multiple (tag associated) Jacobian matricese.
virtual libMesh::System & system() override
Get the reference to the libMesh system.
void jacobianSetup()
Calls the jacobianSetup function for each of the output objects.
bool _safe_access_tagged_matrices
Is it safe to retrieve data from tagged matrices.
virtual libMesh::SparseMatrix< Number > & getMatrix(TagID tag)
Get a raw SparseMatrix.
bool computingScalingJacobian() const
Whether we are computing an initial Jacobian for automatic variable scaling.
virtual void restore_original_nonzero_pattern()
bool has_static_condensation() const
@ POST_AUX
Definition MooseTypes.h:761
@ PRE_AUX
Definition MooseTypes.h:760

Referenced by EigenProblem::computeJacobianAB(), FEProblemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTag(), EigenProblem::computeJacobianTag(), and EigenProblem::computeMatricesTags().

◆ computeKokkosUserObjectsInternal()

void FEProblemBase::computeKokkosUserObjectsInternal ( const ExecFlagType &  type,
TheWarehouse::Query &  query 
)
protectedinherited

◆ computeLinearSystemSys()

void FEProblemBase::computeLinearSystemSys ( libMesh::LinearImplicitSystem &  sys,
libMesh::SparseMatrix< libMesh::Number > &  system_matrix,
NumericVector< libMesh::Number > &  rhs,
const bool  compute_gradients = true 
)
virtualinherited

Assemble both the right hand side and the system matrix of a given linear system.

Parameters
sysThe linear system which should be assembled
system_matrixThe sparse matrix which should hold the system matrix
rhsThe vector which should hold the right hand side
compute_gradientsA flag to disable the computation of new gradients during the assembly, can be used to lag gradients

Definition at line 8410 of file FEProblemBase.C.

8414{
8415 TIME_SECTION("computeLinearSystemSys", 5);
8416
8418
8421
8422 // We are using the residual tag system for right hand sides so we fetch everything
8423 const auto & vector_tags = getVectorTags(Moose::VECTOR_TAG_RESIDUAL);
8424
8425 // We filter out tags which do not have associated vectors in the current
8426 // system. This is essential to be able to use system-dependent vector tags.
8429
8433 compute_gradients);
8434
8439 // We reset the tags to the default containers for further operations
8444}
std::set< TagID > _linear_vector_tags
Temporary storage for filtered vector tags for linear systems.
void setCurrentLinearSystem(unsigned int sys_num)
Set the current linear system pointer.
void computeLinearSystemTags(const NumericVector< libMesh::Number > &soln, const std::set< TagID > &vector_tags, const std::set< TagID > &matrix_tags, const bool compute_gradients=true)
Assemble the current linear system given a set of vector and matrix tags.
unsigned int linearSysNum(const LinearSystemName &linear_sys_name) const override
std::set< TagID > _linear_matrix_tags
Temporary storage for filtered matrix tags for linear systems.
TagID rightHandSideVectorTag() const
virtual TagID systemMatrixTag() const override
Return the Matrix Tag ID for System.
NumericVector< Number > & getRightHandSideVector()
Fetching the right hand side vector from the libmesh system.
SparseMatrix< Number > & getSystemMatrix()
Fetching the system matrix from the libmesh system.
std::vector< VectorTag > getVectorTags(const std::set< TagID > &tag_ids) const
Definition SubProblem.C:161
static void selectVectorTagsFromSystem(const SystemBase &system, const std::vector< VectorTag > &input_vector_tags, std::set< TagID > &selected_tags)
Select the vector tags which belong to a specific system.
Definition SubProblem.C:278
static void selectMatrixTagsFromSystem(const SystemBase &system, const std::map< TagName, TagID > &input_matrix_tags, std::set< TagID > &selected_tags)
Select the matrix tags which belong to a specific system.
Definition SubProblem.C:289
virtual void associateVectorToTag(NumericVector< Number > &vec, TagID tag)
Associate a vector for a given tag.
Definition SystemBase.C:978
virtual void disassociateVectorFromTag(NumericVector< Number > &vec, TagID tag)
Disassociate a given vector from a given tag.
Definition SystemBase.C:990
const std::string & name() const
@ VECTOR_TAG_RESIDUAL

Referenced by Moose::compute_linear_system(), and FEProblemBase::computeResidualL2Norm().

◆ computeLinearSystemTags()

void FEProblemBase::computeLinearSystemTags ( const NumericVector< libMesh::Number > &  soln,
const std::set< TagID > &  vector_tags,
const std::set< TagID > &  matrix_tags,
const bool  compute_gradients = true 
)
inherited

Assemble the current linear system given a set of vector and matrix tags.

Parameters
solnThe solution which should be used for the system assembly
vector_tagsThe vector tags for the right hand side
matrix_tagsThe matrix tags for the matrix
compute_gradientsA flag to disable the computation of new gradients during the assembly, can be used to lag gradients

Definition at line 8447 of file FEProblemBase.C.

8451{
8452 TIME_SECTION("computeLinearSystemTags", 5, "Computing Linear System");
8453
8455
8456 for (auto tag : matrix_tags)
8457 {
8458 auto & matrix = _current_linear_sys->getMatrix(tag);
8459 matrix.zero();
8460 }
8461
8462 unsigned int n_threads = libMesh::n_threads();
8463
8465
8466 // Random interface objects
8467 for (const auto & it : _random_data_objects)
8468 it.second->updateSeeds(EXEC_NONLINEAR);
8469
8471
8473
8474 _aux->jacobianSetup();
8475
8476 for (THREAD_ID tid = 0; tid < n_threads; tid++)
8477 {
8479 }
8480
8481#ifdef MOOSE_KOKKOS_ENABLED
8483#endif
8484
8485 try
8486 {
8488 }
8489 catch (MooseException & e)
8490 {
8491 _console << "\nA MooseException was raised during Auxiliary variable computation.\n"
8492 << "The next solve will fail, the timestep will be reduced, and we will try again.\n"
8493 << std::endl;
8494
8495 // We know the next solve is going to fail, so there's no point in
8496 // computing anything else after this. Plus, using incompletely
8497 // computed AuxVariables in subsequent calculations could lead to
8498 // other errors or unhandled exceptions being thrown.
8499 return;
8500 }
8501
8504
8506
8507 _current_linear_sys->computeLinearSystemTags(vector_tags, matrix_tags, compute_gradients);
8508
8509 // Reset execution flag as after this point we are no longer on LINEAR
8511
8512 // These are the relevant parts of resetState()
8515}
const ExecFlagType EXEC_NONE
Definition Moose.C:30
void computeLinearSystemTags(const std::set< TagID > &vector_tags, const std::set< TagID > &matrix_tags, const bool compute_gradients=true)
Compute the right hand side and the system matrix of the system for given tags.
bool _safe_access_tagged_vectors
Is it safe to retrieve data from tagged vectors.
virtual void zero()=0

Referenced by FEProblemBase::computeLinearSystemSys().

◆ computeMarkers()

virtual void DumpObjectsProblem::computeMarkers ( )
inlineoverridevirtual

Reimplemented from FEProblemBase.

Definition at line 69 of file DumpObjectsProblem.h.

69{}

◆ computeMultiAppsDT()

Real FEProblemBase::computeMultiAppsDT ( ExecFlagType  type)
inherited

Find the smallest timestep over all MultiApps.

Definition at line 6425 of file FEProblemBase.C.

6426{
6427 const auto & multi_apps = _transient_multi_apps[type].getActiveObjects();
6428
6429 Real smallest_dt = std::numeric_limits<Real>::max();
6430
6431 for (const auto & multi_app : multi_apps)
6432 smallest_dt = std::min(smallest_dt, multi_app->computeDT());
6433
6434 return smallest_dt;
6435}
auto min(const L &left, const R &right)

Referenced by TransientBase::constrainDTFromMultiApp().

◆ computeNearNullSpace()

void FEProblemBase::computeNearNullSpace ( libMesh::NonlinearImplicitSystem &  sys,
std::vector< NumericVector< libMesh::Number > * > &  sp 
)
virtualinherited

Definition at line 8518 of file FEProblemBase.C.

8520{
8521 mooseAssert(_current_nl_sys && (sys.number() == _current_nl_sys->number()),
8522 "I expect these system numbers to be the same");
8523
8524 sp.clear();
8525 for (unsigned int i = 0; i < subspaceDim("NearNullSpace"); ++i)
8526 {
8527 std::stringstream postfix;
8528 postfix << "_" << i;
8529 std::string modename = "NearNullSpace" + postfix.str();
8530 sp.push_back(&_current_nl_sys->getVector(modename));
8531 }
8532}
unsigned int subspaceDim(const std::string &prefix) const
Dimension of the subspace spanned by vectors with a given prefix.

Referenced by Moose::compute_nearnullspace().

◆ computeNullSpace()

void FEProblemBase::computeNullSpace ( libMesh::NonlinearImplicitSystem &  sys,
std::vector< NumericVector< libMesh::Number > * > &  sp 
)
virtualinherited

Definition at line 8535 of file FEProblemBase.C.

8537{
8538 mooseAssert(_current_nl_sys && (sys.number() == _current_nl_sys->number()),
8539 "I expect these system numbers to be the same");
8540 sp.clear();
8541 for (unsigned int i = 0; i < subspaceDim("NullSpace"); ++i)
8542 {
8543 std::stringstream postfix;
8544 postfix << "_" << i;
8545 sp.push_back(&_current_nl_sys->getVector("NullSpace" + postfix.str()));
8546 }
8547}

Referenced by Moose::compute_nullspace().

◆ computePostCheck()

void FEProblemBase::computePostCheck ( libMesh::NonlinearImplicitSystem &  sys,
const NumericVector< libMesh::Number > &  old_soln,
NumericVector< libMesh::Number > &  search_direction,
NumericVector< libMesh::Number > &  new_soln,
bool &  changed_search_direction,
bool &  changed_new_soln 
)
virtualinherited

Definition at line 8565 of file FEProblemBase.C.

8571{
8572 mooseAssert(_current_nl_sys && (sys.number() == _current_nl_sys->number()),
8573 "I expect these system numbers to be the same");
8574
8575 // This function replaces the old PetscSupport::dampedCheck() function.
8576 //
8577 // 1.) Recreate code in PetscSupport::dampedCheck() for constructing
8578 // ghosted "soln" and "update" vectors.
8579 // 2.) Call FEProblemBase::computeDamping() with these ghost vectors.
8580 // 3.) Recreate the code in PetscSupport::dampedCheck() to actually update
8581 // the solution vector based on the damping, and set the "changed" flags
8582 // appropriately.
8583
8584 TIME_SECTION("computePostCheck", 2, "Computing Post Check");
8585
8587
8588 // MOOSE's FEProblemBase doesn't update the solution during the
8589 // postcheck, but FEProblemBase-derived classes might.
8591 {
8592 // We need ghosted versions of new_soln and search_direction (the
8593 // ones we get from libmesh/PETSc are PARALLEL vectors. To make
8594 // our lives simpler, we use the same ghosting pattern as the
8595 // system's current_local_solution to create new ghosted vectors.
8596
8597 // Construct zeroed-out clones with the same ghosted dofs as the
8598 // System's current_local_solution.
8599 std::unique_ptr<NumericVector<Number>> ghosted_solution =
8600 sys.current_local_solution->zero_clone(),
8601 ghosted_search_direction =
8602 sys.current_local_solution->zero_clone();
8603
8604 // Copy values from input vectors into clones with ghosted values.
8605 *ghosted_solution = new_soln;
8606 *ghosted_search_direction = search_direction;
8607
8608 if (_has_dampers)
8609 {
8610 // Compute the damping coefficient using the ghosted vectors
8611 Real damping = computeDamping(*ghosted_solution, *ghosted_search_direction);
8612
8613 // If some non-trivial damping was computed, update the new_soln
8614 // vector accordingly.
8615 if (damping < 1.0)
8616 {
8617 new_soln = old_soln;
8618 new_soln.add(-damping, search_direction);
8619 changed_new_soln = true;
8620 }
8621 }
8622
8624 {
8625 // Update the ghosted copy of the new solution, if necessary.
8626 if (changed_new_soln)
8627 *ghosted_solution = new_soln;
8628
8629 bool updated_solution = updateSolution(new_soln, *ghosted_solution);
8630 if (updated_solution)
8631 changed_new_soln = true;
8632 }
8633 }
8634
8636 {
8638 _aux->copyCurrentIntoPreviousNL();
8639 }
8640
8641 // MOOSE doesn't change the search_direction
8642 changed_search_direction = false;
8643
8645}
const ExecFlagType EXEC_POSTCHECK
Definition Moose.C:36
virtual bool shouldUpdateSolution()
Check to see whether the problem should update the solution.
virtual Real computeDamping(const NumericVector< libMesh::Number > &soln, const NumericVector< libMesh::Number > &update)
virtual bool updateSolution(NumericVector< libMesh::Number > &vec_solution, NumericVector< libMesh::Number > &ghosted_solution)
Update the solution.
virtual void setPreviousNewtonSolution(const NumericVector< Number > &soln)
virtual bool vectorTagExists(const TagID tag_id) const
Check to see if a particular Tag exists.
Definition SubProblem.h:201
virtual void add(const numeric_index_type i, const T value)=0
std::unique_ptr< NumericVector< Number > > current_local_solution
const TagName PREVIOUS_NL_SOLUTION_TAG
Definition MooseTypes.C:28

Referenced by Moose::compute_postcheck().

◆ computeResidual() [1/2]

virtual void FEProblemBase::computeResidual ( const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual,
const unsigned int  nl_sys_num 
)
virtualinherited

Form a residual with default tags (nontime, time, residual).

◆ computeResidual() [2/2]

void FEProblemBase::computeResidual ( libMesh::NonlinearImplicitSystem &  sys,
const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual 
)
inherited

This function is called by Libmesh to form a residual.

This is deprecated. We should remove this as soon as RattleSnake is fixed.

Referenced by FEProblemBase::computeResidualL2Norm(), FEProblemBase::computeResidualSys(), ActuallyExplicitEuler::solve(), and ExplicitSSPRungeKutta::solveStage().

◆ computeResidualAndJacobian()

void FEProblemBase::computeResidualAndJacobian ( const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual,
libMesh::SparseMatrix< libMesh::Number > &  jacobian 
)
inherited

Form a residual and Jacobian with default tags.

Definition at line 7797 of file FEProblemBase.C.

7800{
7801 try
7802 {
7803 try
7804 {
7805 // vector tags
7807 const auto & residual_vector_tags = getVectorTags(Moose::VECTOR_TAG_RESIDUAL);
7808
7809 mooseAssert(_fe_vector_tags.empty(),
7810 "This should be empty indicating a clean starting state");
7811 // We filter out tags which do not have associated vectors in the current nonlinear
7812 // system. This is essential to be able to use system-dependent residual tags.
7814
7816
7817 // matrix tags
7818 {
7819 _fe_matrix_tags.clear();
7820
7821 auto & tags = getMatrixTags();
7822 for (auto & tag : tags)
7823 _fe_matrix_tags.insert(tag.second);
7824 }
7825
7827
7830
7831 for (const auto tag : _fe_matrix_tags)
7832 if (_current_nl_sys->hasMatrix(tag))
7833 {
7834 auto & matrix = _current_nl_sys->getMatrix(tag);
7835 matrix.zero();
7837 // PETSc algorithms require diagonal allocations regardless of whether there is non-zero
7838 // diagonal dependence. With global AD indexing we only add non-zero
7839 // dependence, so PETSc will scream at us unless we artificially add the diagonals.
7840 for (auto index : make_range(matrix.row_start(), matrix.row_stop()))
7841 matrix.add(index, index, 0);
7842 }
7843
7844 _aux->zeroVariablesForResidual();
7845
7846 unsigned int n_threads = libMesh::n_threads();
7847
7849
7850 // Random interface objects
7851 for (const auto & it : _random_data_objects)
7852 it.second->updateSeeds(EXEC_LINEAR);
7853
7858 {
7859 _displaced_problem->setCurrentlyComputingResidual(true);
7860 _displaced_problem->setCurrentlyComputingJacobian(true);
7861 _displaced_problem->setCurrentlyComputingResidualAndJacobian(true);
7862 }
7863
7865
7866 for (unsigned int tid = 0; tid < n_threads; tid++)
7867 reinitScalars(tid);
7868
7870
7871 _aux->residualSetup();
7872
7874 {
7876 _displaced_problem->updateMesh();
7877 if (_mortar_data->hasDisplacedObjects())
7879 }
7880
7881 for (THREAD_ID tid = 0; tid < n_threads; tid++)
7882 {
7885 }
7886
7887#ifdef MOOSE_KOKKOS_ENABLED
7889#endif
7890
7892
7894
7896
7898
7901
7903
7906 }
7907 catch (...)
7908 {
7909 handleException("computeResidualAndJacobian");
7910 }
7911 }
7912 catch (const MooseException &)
7913 {
7914 // The buck stops here, we have already handled the exception by
7915 // calling the system's stopSolve() method, it is now up to PETSc to return a
7916 // "diverged" reason during the next solve.
7917 }
7918 catch (...)
7919 {
7920 mooseError("Unexpected exception type");
7921 }
7922
7923 resetState();
7924 _fe_vector_tags.clear();
7925 _fe_matrix_tags.clear();
7926}
void setCurrentResidualVectorTags(const std::set< TagID > &vector_tags)
Set the current residual vector tag data structure based on the passed in tag IDs.
void setCurrentlyComputingResidual(bool currently_computing_residual) final
Set whether or not the problem is in the process of computing the residual.
virtual void residualSetup(THREAD_ID tid=0) const
void computeResidualAndJacobianTags(const std::set< TagID > &vector_tags, const std::set< TagID > &matrix_tags)
Form possibly multiple tag-associated vectors and matrices.
TagID residualVectorTag() const override
void residualSetup()
Calls the residualSetup function for each of the output objects.
void setCurrentlyComputingJacobian(const bool currently_computing_jacobian)
Set whether or not the problem is in the process of computing the Jacobian.
Definition SubProblem.h:697
void setCurrentlyComputingResidualAndJacobian(bool currently_computing_residual_and_jacobian)
Set whether or not the problem is in the process of computing the Jacobian.

Referenced by ComputeResidualAndJacobian::residual_and_jacobian().

◆ computeResidualInternal()

void FEProblemBase::computeResidualInternal ( const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual,
const std::set< TagID > &  tags 
)
virtualinherited

Form a residual vector for a set of tags.

It should not be called directly by users.

Definition at line 7958 of file FEProblemBase.C.

7961{
7962 parallel_object_only();
7963
7964 TIME_SECTION("computeResidualInternal", 1);
7965
7966 try
7967 {
7969
7971
7972 computeResidualTags(tags);
7973
7975 }
7976 catch (MooseException & e)
7977 {
7978 // If a MooseException propagates all the way to here, it means
7979 // that it was thrown from a MOOSE system where we do not
7980 // (currently) properly support the throwing of exceptions, and
7981 // therefore we have no choice but to error out. It may be
7982 // *possible* to handle exceptions from other systems, but in the
7983 // meantime, we don't want to silently swallow any unhandled
7984 // exceptions here.
7985 mooseError("An unhandled MooseException was raised during residual computation. Please "
7986 "contact the MOOSE team for assistance.");
7987 }
7988}
virtual void computeResidualTags(const std::set< TagID > &tags)
Form multiple residual vectors and each is associated with one tag.

◆ computeResidualL2Norm() [1/3]

Real FEProblemBase::computeResidualL2Norm ( )
virtualinherited

Computes the residual using whatever is sitting in the current solution vector then returns the L2 norm.

Returns
The L2 norm of the residual

Reimplemented in EigenProblem.

Definition at line 7730 of file FEProblemBase.C.

7731{
7732 TIME_SECTION("computeResidualL2Norm", 2, "Computing L2 Norm of Residual");
7733
7734 // We use sum the squared norms of the individual systems and then take the square root of it
7735 Real l2_norm = 0.0;
7736 for (auto sys : _nl)
7737 {
7738 const auto norm = computeResidualL2Norm(*sys);
7739 l2_norm += norm * norm;
7740 }
7741
7742 for (auto sys : _linear_systems)
7743 {
7744 const auto norm = computeResidualL2Norm(*sys);
7745 l2_norm += norm * norm;
7746 }
7747
7748 return std::sqrt(l2_norm);
7749}
virtual Real computeResidualL2Norm()
Computes the residual using whatever is sitting in the current solution vector then returns the L2 no...
auto norm(const T &a)

Referenced by FEProblemBase::computeResidualL2Norm().

◆ computeResidualL2Norm() [2/3]

Real FEProblemBase::computeResidualL2Norm ( LinearSystem &  sys)
inherited

Computes the residual of a linear system using whatever is sitting in the current solution vector then returns the L2 norm.

Definition at line 7712 of file FEProblemBase.C.

7713{
7714 _current_linear_sys = &sys;
7715
7716 // We assemble the current system to check the current residual
7720 /*compute fresh gradients*/ true);
7721
7722 // Unfortunate, but we have to allocate a new vector for the residual
7723 auto residual = sys.linearImplicitSystem().rhs->clone();
7724 residual->scale(-1.0);
7725 residual->add_vector(*sys.currentSolution(), *sys.linearImplicitSystem().matrix);
7726 return residual->l2_norm();
7727}
virtual void computeLinearSystemSys(libMesh::LinearImplicitSystem &sys, libMesh::SparseMatrix< libMesh::Number > &system_matrix, NumericVector< libMesh::Number > &rhs, const bool compute_gradients=true)
Assemble both the right hand side and the system matrix of a given linear system.
libMesh::LinearImplicitSystem & linearImplicitSystem()
Return a reference to the stored linear implicit system.
NumericVector< Number > * rhs
SparseMatrix< Number > * matrix
virtual std::unique_ptr< NumericVector< T > > clone() const=0

◆ computeResidualL2Norm() [3/3]

Real FEProblemBase::computeResidualL2Norm ( NonlinearSystemBase &  sys)
inherited

Computes the residual of a nonlinear system using whatever is sitting in the current solution vector then returns the L2 norm.

Definition at line 7704 of file FEProblemBase.C.

7705{
7706 _current_nl_sys = &sys;
7707 computeResidual(*sys.currentSolution(), sys.RHS(), sys.number());
7708 return sys.RHS().l2_norm();
7709}
void computeResidual(libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual)
This function is called by Libmesh to form a residual.
virtual NumericVector< Number > & RHS()=0
virtual Real l2_norm() const=0

Referenced by DefaultMultiAppFixedPointConvergence::checkConvergence(), Residual::getValue(), DefaultMultiAppFixedPointConvergence::initialize(), and DefaultMultiAppFixedPointConvergence::preSolve().

◆ computeResidualSys()

void FEProblemBase::computeResidualSys ( libMesh::NonlinearImplicitSystem &  sys,
const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual 
)
virtualinherited

This function is called by Libmesh to form a residual.

Definition at line 7752 of file FEProblemBase.C.

7755{
7756 parallel_object_only();
7757
7758 TIME_SECTION("computeResidualSys", 5);
7759 // Reset before residual setup, calculation & execution
7761
7762 computeResidual(soln, residual, sys.number());
7763}

Referenced by NonlinearSystem::computeScalingResidual(), ComputeFDResidualFunctor::residual(), ComputeResidualFunctor::residual(), and NonlinearSystem::solve().

◆ computeResidualTag()

void FEProblemBase::computeResidualTag ( const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual,
TagID  tag 
)
virtualinherited

Form a residual vector for a given tag.

Definition at line 7929 of file FEProblemBase.C.

7932{
7933 try
7934 {
7936
7937 _current_nl_sys->associateVectorToTag(residual, tag);
7938
7939 computeResidualTags({tag});
7940
7942 }
7943 catch (MooseException & e)
7944 {
7945 // If a MooseException propagates all the way to here, it means
7946 // that it was thrown from a MOOSE system where we do not
7947 // (currently) properly support the throwing of exceptions, and
7948 // therefore we have no choice but to error out. It may be
7949 // *possible* to handle exceptions from other systems, but in the
7950 // meantime, we don't want to silently swallow any unhandled
7951 // exceptions here.
7952 mooseError("An unhandled MooseException was raised during residual computation. Please "
7953 "contact the MOOSE team for assistance.");
7954 }
7955}

◆ computeResidualTags()

void FEProblemBase::computeResidualTags ( const std::set< TagID > &  tags)
virtualinherited

Form multiple residual vectors and each is associated with one tag.

Definition at line 8077 of file FEProblemBase.C.

8078{
8079 parallel_object_only();
8080
8081 try
8082 {
8083 try
8084 {
8085 TIME_SECTION("computeResidualTags", 5, "Computing Residual");
8086
8087 ADReal::do_derivatives = false;
8088
8090
8091 _aux->zeroVariablesForResidual();
8092
8093 unsigned int n_threads = libMesh::n_threads();
8094
8096
8097 // Random interface objects
8098 for (const auto & it : _random_data_objects)
8099 it.second->updateSeeds(EXEC_LINEAR);
8100
8101 // This is itself a residual evaluation (distinct from the combined residual/Jacobian path
8102 // above, which sets this before its own updateMortarMesh() call): mark it so that
8103 // updateMortarMesh() below knows not to reinit the equation systems mid-evaluation. Reset by
8104 // resetState() at the bottom of this function.
8107 _displaced_problem->setCurrentlyComputingResidual(true);
8108
8110
8111 for (unsigned int tid = 0; tid < n_threads; tid++)
8112 reinitScalars(tid);
8113
8115
8116 _aux->residualSetup();
8117
8119 {
8121 _displaced_problem->updateMesh();
8122 if (_mortar_data->hasDisplacedObjects())
8124 }
8125
8126 for (THREAD_ID tid = 0; tid < n_threads; tid++)
8127 {
8130 }
8131
8132#ifdef MOOSE_KOKKOS_ENABLED
8134#endif
8135
8137
8139
8141
8143
8146 }
8147 catch (...)
8148 {
8149 handleException("computeResidualTags");
8150 }
8151 }
8152 catch (const MooseException &)
8153 {
8154 // The buck stops here, we have already handled the exception by
8155 // calling the system's stopSolve() method, it is now up to PETSc to return a
8156 // "diverged" reason during the next solve.
8157 }
8158 catch (...)
8159 {
8160 mooseError("Unexpected exception type");
8161 }
8162
8163 resetState();
8164}
void computeResidualTags(const std::set< TagID > &tags)
Form multiple tag-associated residual vectors for all the given tags.

Referenced by EigenProblem::computeResidualAB(), FEProblemBase::computeResidualInternal(), FEProblemBase::computeResidualTag(), EigenProblem::computeResidualTag(), and FEProblemBase::computeResidualType().

◆ computeResidualType()

void FEProblemBase::computeResidualType ( const NumericVector< libMesh::Number > &  soln,
NumericVector< libMesh::Number > &  residual,
TagID  tag 
)
virtualinherited

Form a residual vector for a given tag and "residual" tag.

Definition at line 7991 of file FEProblemBase.C.

7994{
7995 TIME_SECTION("computeResidualType", 5);
7996
7997 try
7998 {
8000
8002
8004
8006 }
8007 catch (MooseException & e)
8008 {
8009 // If a MooseException propagates all the way to here, it means
8010 // that it was thrown from a MOOSE system where we do not
8011 // (currently) properly support the throwing of exceptions, and
8012 // therefore we have no choice but to error out. It may be
8013 // *possible* to handle exceptions from other systems, but in the
8014 // meantime, we don't want to silently swallow any unhandled
8015 // exceptions here.
8016 mooseError("An unhandled MooseException was raised during residual computation. Please "
8017 "contact the MOOSE team for assistance.");
8018 }
8019}

◆ computeSystems()

void FEProblemBase::computeSystems ( const ExecFlagType &  type)
protectedinherited

Do generic system computations.

Definition at line 10354 of file FEProblemBase.C.

10355{
10356 // When performing an adjoint solve in the optimization module, the current solver system is the
10357 // adjoint. However, the adjoint solve requires having accurate time derivative calculations for
10358 // the forward system. The cleanest way to handle such uses is just to compute the time
10359 // derivatives for all solver systems instead of trying to guess which ones we need and don't need
10360 for (auto & solver_sys : _solver_systems)
10361 solver_sys->compute(type);
10362
10363 _aux->compute(type);
10364}

Referenced by FEProblemBase::computeBounds(), FEProblemBase::computeJacobianBlocks(), EigenProblem::computeJacobianBlocks(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and FEProblemBase::execute().

◆ computeTransposeNullSpace()

void FEProblemBase::computeTransposeNullSpace ( libMesh::NonlinearImplicitSystem &  sys,
std::vector< NumericVector< libMesh::Number > * > &  sp 
)
virtualinherited

Definition at line 8550 of file FEProblemBase.C.

8552{
8553 mooseAssert(_current_nl_sys && (sys.number() == _current_nl_sys->number()),
8554 "I expect these system numbers to be the same");
8555 sp.clear();
8556 for (unsigned int i = 0; i < subspaceDim("TransposeNullSpace"); ++i)
8557 {
8558 std::stringstream postfix;
8559 postfix << "_" << i;
8560 sp.push_back(&_current_nl_sys->getVector("TransposeNullSpace" + postfix.str()));
8561 }
8562}

Referenced by Moose::compute_transpose_nullspace().

◆ computeUserObjectByName()

void FEProblemBase::computeUserObjectByName ( const ExecFlagType &  type,
const Moose::AuxGroup &  group,
const std::string &  name 
)
virtualinherited

Compute an user object with the given name.

Definition at line 5390 of file FEProblemBase.C.

5393{
5394 const auto old_exec_flag = _current_execute_on_flag;
5396
5397 std::set<int> execution_groups;
5398
5399#ifdef MOOSE_KOKKOS_ENABLED
5400 TheWarehouse::Query kokkos_query =
5401 getUOQuery("KokkosUserObject", type, group).condition<AttribName>(name);
5402 getUOExecutionGroups(kokkos_query, execution_groups);
5403#endif
5404
5406 getUOExecutionGroups(query, execution_groups);
5407
5408 for (const auto execution_group : execution_groups)
5409 {
5410#ifdef MOOSE_KOKKOS_ENABLED
5412 type, kokkos_query.clone().condition<AttribExecutionOrderGroup>(execution_group));
5413#endif
5414
5416 query.clone().condition<AttribExecutionOrderGroup>(execution_group));
5417 }
5418
5419 _current_execute_on_flag = old_exec_flag;
5420}
TheWarehouse::Query getUOQuery(const std::string &system, const ExecFlagType &type, const Moose::AuxGroup &group) const
void computeUserObjectsInternal(const ExecFlagType &type, TheWarehouse::Query &query)
void computeKokkosUserObjectsInternal(const ExecFlagType &type, TheWarehouse::Query &query)
void getUOExecutionGroups(TheWarehouse::Query &query, std::set< int > &execution_groups) const
QueryCache is a convenient way to construct and pass around (possible partially constructed) warehous...
QueryCache clone() const
clone creates and returns an independent copy of the query in its current state.
query_obj query

Referenced by MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), MultiAppGeneralFieldFunctorTransfer::execute(), MultiAppGeneralFieldUserObjectTransfer::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppPostprocessorTransfer::execute(), MultiAppUserObjectTransfer::execute(), MultiAppVectorPostprocessorTransfer::executeToMultiapp(), and MultiAppConservativeTransfer::postExecute().

◆ computeUserObjects()

void FEProblemBase::computeUserObjects ( const ExecFlagType &  type,
const Moose::AuxGroup &  group 
)
virtualinherited

Call compute methods on UserObjects.

Definition at line 5423 of file FEProblemBase.C.

5424{
5425 std::set<int> execution_groups;
5426
5427#ifdef MOOSE_KOKKOS_ENABLED
5428 TheWarehouse::Query kokkos_query = getUOQuery("KokkosUserObject", type, group);
5429 getUOExecutionGroups(kokkos_query, execution_groups);
5430#endif
5431
5432 TheWarehouse::Query query = getUOQuery("UserObject", type, group);
5433 getUOExecutionGroups(query, execution_groups);
5434
5435 for (const auto execution_group : execution_groups)
5436 {
5437#ifdef MOOSE_KOKKOS_ENABLED
5439 type, kokkos_query.clone().condition<AttribExecutionOrderGroup>(execution_group));
5440#endif
5441
5443 query.clone().condition<AttribExecutionOrderGroup>(execution_group));
5444 }
5445
5446 // Exceptions raised on solver execution flags are communicated and handled by the PARALLEL_CATCH
5447 // surrounding the assembly loops of the residual, Jacobian and linear systems. On all other
5448 // execution flags there is no solve left to fail, so the exception is communicated here in order
5449 // to report it at the point of the simulation where it was raised
5452}
virtual void checkExceptionAndStopSolve(bool print_message=true)
Check to see if an exception has occurred on any processor and, if possible, force the solve to fail,...

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and FEProblemBase::execute().

◆ computeUserObjectsInternal()

void FEProblemBase::computeUserObjectsInternal ( const ExecFlagType &  type,
TheWarehouse::Query &  query 
)
protectedinherited

Definition at line 5455 of file FEProblemBase.C.

5456{
5457 try
5458 {
5459 TIME_SECTION("computeUserObjects", 1, "Computing User Objects");
5460
5461 std::vector<GeneralUserObject *> genobjs;
5462 query.clone().condition<AttribInterfaces>(Interfaces::GeneralUserObject).queryInto(genobjs);
5463
5464 std::vector<UserObject *> userobjs;
5465 query.clone()
5469 .queryInto(userobjs);
5470
5471 std::vector<UserObject *> tgobjs;
5472 query.clone()
5474 .queryInto(tgobjs);
5475
5476 std::vector<UserObject *> nodal;
5477 query.clone().condition<AttribInterfaces>(Interfaces::NodalUserObject).queryInto(nodal);
5478
5479 std::vector<MortarUserObject *> mortar;
5480 query.clone().condition<AttribInterfaces>(Interfaces::MortarUserObject).queryInto(mortar);
5481
5482 if (userobjs.empty() && genobjs.empty() && tgobjs.empty() && nodal.empty() && mortar.empty())
5483 return;
5484
5485 // Start the timer here since we have at least one active user object
5486 std::string compute_uo_tag = "computeUserObjects(" + Moose::stringify(type) + ")";
5487
5488 // Perform Residual/Jacobian setups
5489 if (type == EXEC_LINEAR)
5490 {
5491 for (auto obj : userobjs)
5492 obj->residualSetup();
5493 for (auto obj : nodal)
5494 obj->residualSetup();
5495 for (auto obj : mortar)
5496 obj->residualSetup();
5497 for (auto obj : tgobjs)
5498 obj->residualSetup();
5499 for (auto obj : genobjs)
5500 obj->residualSetup();
5501 }
5502 else if (type == EXEC_NONLINEAR)
5503 {
5504 for (auto obj : userobjs)
5505 obj->jacobianSetup();
5506 for (auto obj : nodal)
5507 obj->jacobianSetup();
5508 for (auto obj : mortar)
5509 obj->jacobianSetup();
5510 for (auto obj : tgobjs)
5511 obj->jacobianSetup();
5512 for (auto obj : genobjs)
5513 obj->jacobianSetup();
5514 }
5515
5516 for (auto obj : userobjs)
5517 obj->initialize();
5518
5519 // Execute Side/InternalSide/Interface/Elemental/DomainUserObjects
5520 if (!userobjs.empty())
5521 {
5522 // non-nodal user objects have to be run separately before the nodal user objects run
5523 // because some nodal user objects (NodalNormal related) depend on elemental user objects
5524 // :-(
5525 ComputeUserObjectsThread cppt(*this, query);
5527
5528 // There is one instance in rattlesnake where an elemental user object's finalize depends
5529 // on a side user object having been finalized first :-(
5536 }
5537
5538 // if any elemental user object may have written to variables we need to close the aux solution
5539 for (const auto & uo : userobjs)
5540 if (auto euo = dynamic_cast<const ElementUserObject *>(uo);
5541 euo && euo->hasWritableCoupledVariables())
5542 {
5543 _aux->solution().close();
5544 _aux->system().update();
5545 break;
5546 }
5547
5548 // Execute NodalUserObjects
5549 // BISON has an axial reloc elemental user object that has a finalize func that depends on a
5550 // nodal user object's prev value. So we can't initialize this until after elemental objects
5551 // have been finalized :-(
5552 for (auto obj : nodal)
5553 obj->initialize();
5554 if (query.clone().condition<AttribInterfaces>(Interfaces::NodalUserObject).count() > 0)
5555 {
5556 ComputeNodalUserObjectsThread cnppt(*this, query);
5559 }
5560
5561 // if any nodal user object may have written to variables we need to close the aux solution
5562 for (const auto & uo : nodal)
5563 if (auto nuo = dynamic_cast<const NodalUserObject *>(uo);
5564 nuo && nuo->hasWritableCoupledVariables())
5565 {
5566 _aux->solution().close();
5567 _aux->system().update();
5568 break;
5569 }
5570
5571 // Execute MortarUserObjects
5572 {
5573 for (auto obj : mortar)
5574 obj->initialize();
5575 if (!mortar.empty())
5576 {
5577 auto create_and_run_mortar_functors = [this, type, &mortar](const bool displaced)
5578 {
5579 // go over mortar interfaces and construct functors
5580 const auto & mortar_interfaces = getMortarInterfaces(displaced);
5581 for (const auto & [primary_secondary_boundary_pair, interface_config] : mortar_interfaces)
5582 {
5583 auto mortar_uos_to_execute =
5584 getMortarUserObjects(primary_secondary_boundary_pair.first,
5585 primary_secondary_boundary_pair.second,
5586 displaced,
5587 mortar);
5588
5589 auto * const subproblem = displaced ? cast_ptr<SubProblem *>(_displaced_problem.get())
5590 : cast_ptr<SubProblem *>(this);
5591 MortarUserObjectThread muot(mortar_uos_to_execute,
5592 *interface_config.amg,
5593 *subproblem,
5594 *this,
5595 displaced,
5596 subproblem->assembly(0, 0));
5597
5598 muot();
5599 }
5600 };
5601
5602 create_and_run_mortar_functors(false);
5604 create_and_run_mortar_functors(true);
5605 }
5606 for (auto obj : mortar)
5607 obj->finalize();
5608 }
5609
5610 // Execute threaded general user objects
5611 for (auto obj : tgobjs)
5612 obj->initialize();
5613 std::vector<GeneralUserObject *> tguos_zero;
5614 query.clone()
5615 .condition<AttribThread>(0)
5616 .condition<AttribInterfaces>(Interfaces::ThreadedGeneralUserObject)
5617 .queryInto(tguos_zero);
5618 for (auto obj : tguos_zero)
5619 {
5620 std::vector<GeneralUserObject *> tguos;
5621 auto q = query.clone()
5622 .condition<AttribName>(obj->name())
5623 .condition<AttribInterfaces>(Interfaces::ThreadedGeneralUserObject);
5624 q.queryInto(tguos);
5625
5627
5628 // Force one thread per ThreadedGeneralUserObject via grainsize
5630 tguos.end(),
5631 /*grainsize=*/1),
5632 ctguot);
5633 joinAndFinalize(q);
5634 }
5635
5636 // Execute general user objects
5638 }
5639 catch (...)
5640 {
5641 handleException("computeUserObjectsInternal");
5642 }
5643}
@ InternalSideUserObject
@ ThreadedGeneralUserObject
@ InterfaceUserObject
StoredRange< std::vector< GeneralUserObject * >::iterator, GeneralUserObject * > GeneralUserObjectRange
Thread to compute threaded general user objects.
Class for threaded computation of UserObjects.
bool hasWritableCoupledVariables() const
Checks whether the object has any writable coupled variables.
Definition Coupleable.h:142
void jacobianSetup() override
void joinAndFinalize(TheWarehouse::Query query, bool isgen=false)
void residualSetup() override
const libMesh::ConstElemRange & getCurrentAlgebraicElementRange()
These are the element and nodes that contribute to the jacobian and residual for this local processor...
const std::unordered_map< std::pair< BoundaryID, BoundaryID >, MortarInterfaceConfig > & getMortarInterfaces(bool on_displaced) const
std::vector< MortarUserObject * > getMortarUserObjects(BoundaryID primary_boundary_id, BoundaryID secondary_boundary_id, bool displaced, const std::vector< MortarUserObject * > &mortar_uo_superset)
Helper for getting mortar objects corresponding to primary boundary ID, secondary boundary ID,...
const libMesh::ConstNodeRange & getCurrentAlgebraicNodeRange()
A user object that runs over all the nodes and does an aggregation step to compute a single value.
void initialize(EquationSystems &es, const std::string &system_name)
void parallel_reduce(const Range &range, Body &body, unsigned int n_threads=libMesh::n_threads())
Tnew cast_ptr(Told *oldvar)

Referenced by FEProblemBase::computeUserObjectByName(), and FEProblemBase::computeUserObjects().

◆ computingNonlinearResid() [1/3]

bool SubProblem::computingNonlinearResid ( ) const
inlineinherited

Returns true if the problem is in the process of computing the nonlinear residual.

Definition at line 715 of file SubProblem.h.

bool _computing_nonlinear_residual
Whether the non-linear residual is being evaluated.

◆ computingNonlinearResid() [2/3]

void FEProblemBase::computingNonlinearResid ( bool  computing_nonlinear_residual)
finalvirtualinherited

Set whether or not the problem is in the process of computing the nonlinear residual.

Reimplemented from SubProblem.

Definition at line 9985 of file FEProblemBase.C.

9986{
9987 parallel_object_only();
9988
9990 _displaced_problem->computingNonlinearResid(computing_nonlinear_residual);
9991 _computing_nonlinear_residual = computing_nonlinear_residual;
9992}

Referenced by NonlinearSystemBase::computeResidualInternal(), NonlinearSystemBase::computeScaling(), ComputeFDResidualFunctor::residual(), ComputeResidualFunctor::residual(), and ComputeResidualAndJacobian::residual_and_jacobian().

◆ computingNonlinearResid() [3/3]

virtual void SubProblem::computingNonlinearResid ( const bool  computing_nonlinear_residual)
inlinevirtualinherited

Set whether or not the problem is in the process of computing the nonlinear residual.

Reimplemented from SubProblem.

Definition at line 720 of file SubProblem.h.

721 {
722 _computing_nonlinear_residual = computing_nonlinear_residual;
723 }

◆ computingPreSMOResidual()

bool FEProblemBase::computingPreSMOResidual ( const unsigned int  nl_sys_num) const
overridevirtualinherited

Returns true if the problem is in the process of computing it's initial residual.

Returns
Whether or not the problem is currently computing the initial residual.

Implements SubProblem.

Definition at line 7443 of file FEProblemBase.C.

7444{
7445 return _nl[nl_sys_num]->computingPreSMOResidual();
7446}

Referenced by DisplacedProblem::computingPreSMOResidual().

◆ computingScalingJacobian() [1/2]

bool FEProblemBase::computingScalingJacobian ( ) const
inlinefinaloverridevirtualinherited

Getter for whether we're computing the scaling jacobian.

Implements SubProblem.

Definition at line 2906 of file FEProblemBase.h.

bool _computing_scaling_jacobian
Flag used to indicate whether we are computing the scaling Jacobian.

◆ computingScalingJacobian() [2/2]

void FEProblemBase::computingScalingJacobian ( bool  computing_scaling_jacobian)
inlineinherited

◆ computingScalingResidual() [1/2]

bool FEProblemBase::computingScalingResidual ( ) const
inlinefinaloverridevirtualinherited
Returns
whether we are currently computing a residual for automatic scaling purposes

Implements SubProblem.

Definition at line 2919 of file FEProblemBase.h.

bool _computing_scaling_residual
Flag used to indicate whether we are computing the scaling Residual.

◆ computingScalingResidual() [2/2]

void FEProblemBase::computingScalingResidual ( bool  computing_scaling_residual)
inlineinherited

Setter for whether we're computing the scaling residual.

Definition at line 2911 of file FEProblemBase.h.

2912 {
2913 _computing_scaling_residual = computing_scaling_residual;
2914 }

Referenced by NonlinearSystemBase::computeResidualInternal(), NonlinearSystemBase::computeResidualTags(), NonlinearSystemBase::computeScaling(), and DisplacedProblem::computingScalingResidual().

◆ connectControllableParams()

void MooseBase::connectControllableParams ( const std::string &  parameter,
const std::string &  object_type,
const std::string &  object_name,
const std::string &  object_parameter 
) const
inherited

Connect controllable parameter of this action with the controllable parameters of the objects added by this action.

Parameters
parameterName of the controllable parameter of this action
object_typeType of the object added by this action.
object_nameName of the object added by this action.
object_parameterName of the parameter of the object.

Definition at line 77 of file MooseBase.C.

81{
82 auto & factory = _app.getFactory();
83 auto & ip_warehouse = _app.getInputParameterWarehouse();
84
85 MooseObjectParameterName primary_name(uniqueName(), parameter);
86 const auto base_type = factory.getValidParams(object_type).getBase();
87 MooseObjectParameterName secondary_name(base_type, object_name, object_parameter);
88 ip_warehouse.addControllableParameterConnection(primary_name, secondary_name);
89
90 const auto & tags = _pars.get<std::vector<std::string>>("control_tags");
91 for (const auto & tag : tags)
92 {
93 if (!tag.empty())
94 {
95 // Only adds the parameter with the different control tags if the derived class
96 // properly registers the parameter to its own syntax
97 MooseObjectParameterName tagged_name(tag, name(), parameter);
98 ip_warehouse.addControllableParameterConnection(
99 tagged_name, secondary_name, /*error_on_empty=*/false);
100 }
101 }
102}
Factory & getFactory()
Retrieve a writable reference to the Factory associated with this App.
Definition MooseApp.h:407
MooseObjectName uniqueName() const
Definition MooseBase.C:69

◆ console()

const ConsoleStream & Problem::console ( ) const
inlineinherited

Return console handle.

Definition at line 48 of file Problem.h.

48{ return _console; }

Referenced by Moose::SlepcSupport::mooseSlepcEPSMonitor(), ComputeLinearFVElementalThread::printBlockExecutionInformation(), ComputeLinearFVFaceThread::printBlockExecutionInformation(), ComputeDiracThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), NonlinearThread::printBoundaryExecutionInformation(), ComputeFVInitialConditionThread::printGeneralExecutionInformation(), ComputeInitialConditionThread::printGeneralExecutionInformation(), ComputeLinearFVElementalThread::printGeneralExecutionInformation(), ComputeLinearFVFaceThread::printGeneralExecutionInformation(), ComputeDiracThread::printGeneralExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeIndicatorThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), ComputeNodalDampingThread::printGeneralExecutionInformation(), ComputeNodalKernelBCJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelBcsThread::printGeneralExecutionInformation(), ComputeNodalKernelJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelsThread::printGeneralExecutionInformation(), ComputeNodalUserObjectsThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), and ComputeThreadedGeneralUserObjectsThread::printGeneralExecutionInformation().

◆ constJacobian()

bool FEProblemBase::constJacobian ( ) const
inherited

Returns _const_jacobian (whether a MOOSE object has specified that the Jacobian is the same as the previous time it was computed)

Definition at line 9827 of file FEProblemBase.C.

9828{
9829 return _const_jacobian;
9830}

Referenced by Moose::SlepcSupport::moosePetscSNESFormMatricesTags(), Moose::SlepcSupport::moosePetscSNESFormMatrixTag(), and DisplacedProblem::prepare().

◆ converged()

virtual bool SubProblem::converged ( const unsigned int  sys_num)
inlinevirtualinherited

Eventually we want to convert this virtual over to taking a solver system number argument.

We will have to first convert apps to use solverSystemConverged, and then once that is done, we can change this signature. Then we can go through the apps again and convert back to this changed API

Definition at line 113 of file SubProblem.h.

113{ return solverSystemConverged(sys_num); }
virtual bool solverSystemConverged(const unsigned int sys_num)
Definition SubProblem.h:100

Referenced by EigenExecutionerBase::inversePowerIteration(), EigenExecutionerBase::nonlinearSolve(), FEProblemSolve::solve(), AStableDirk4::solve(), ExplicitRK2::solve(), ExplicitTVDRK2::solve(), ImplicitMidpoint::solve(), LStableDirk2::solve(), LStableDirk3::solve(), LStableDirk4::solve(), DisplacedProblem::solverSystemConverged(), SubProblem::solverSystemConverged(), and AB2PredictorCorrector::step().

◆ coordTransform()

MooseAppCoordTransform & FEProblemBase::coordTransform ( )
inherited
Returns
the coordinate transformation object that describes how to transform this problem's coordinate system into the canonical/reference coordinate system

Definition at line 10225 of file FEProblemBase.C.

10226{
10227 return mesh().coordTransform();
10228}

◆ copySolutionsBackwards()

void FEProblemBase::copySolutionsBackwards ( )
virtualinherited

Definition at line 7449 of file FEProblemBase.C.

7450{
7451 TIME_SECTION("copySolutionsBackwards", 3, "Copying Solutions Backward");
7452
7453 for (auto & sys : _solver_systems)
7454 sys->copyStateHistoryBackwards();
7455 _aux->copyStateHistoryBackwards();
7456}

◆ coupling()

Moose::CouplingType FEProblemBase::coupling ( ) const
inlineinherited

Definition at line 197 of file FEProblemBase.h.

197{ return _coupling; }
Moose::CouplingType _coupling
Type of variable coupling.

Referenced by DiffusionLHDGAssemblyHelper::checkCoupling(), and NonlinearSystemBase::computeJacobianInternal().

◆ couplingEntries()

std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & FEProblemBase::couplingEntries ( const THREAD_ID  tid,
const unsigned int  nl_sys_num 
)
inherited

◆ couplingMatrix()

const libMesh::CouplingMatrix * FEProblemBase::couplingMatrix ( const unsigned int  nl_sys_num) const
inlineoverridevirtualinherited

The coupling matrix defining what blocks exist in the preconditioning matrix.

Implements SubProblem.

Definition at line 3928 of file FEProblemBase.h.

3929{
3930 return _cm[i].get();
3931}

Referenced by DiffusionLHDGAssemblyHelper::checkCoupling(), DisplacedProblem::couplingMatrix(), and DisplacedProblem::init().

◆ createMortarInterface()

void FEProblemBase::createMortarInterface ( const std::pair< BoundaryID, BoundaryID > &  primary_secondary_boundary_pair,
const std::pair< SubdomainID, SubdomainID > &  primary_secondary_subdomain_pair,
bool  on_displaced,
bool  periodic,
const bool  debug,
const bool  correct_edge_dropping,
const Real  minimum_projection_angle,
const Mortar3DSubpatchPlane  mortar_3d_subpatch_plane,
const MooseEnum &  triangulation,
const bool  triangulate_triangles,
const Mortar3DQuadraturePointMapping  mortar_3d_qp_mapping = Mortar3DQuadraturePointMapping::NORMAL_PROJECTION 
)
inherited

Definition at line 8734 of file FEProblemBase.C.

8746{
8747 _has_mortar = true;
8748
8749 if (on_displaced)
8750 return _mortar_data->createMortarInterface(primary_secondary_boundary_pair,
8751 primary_secondary_subdomain_pair,
8753 on_displaced,
8754 periodic,
8755 debug,
8756 correct_edge_dropping,
8757 minimum_projection_angle,
8758 mortar_3d_subpatch_plane,
8759 triangulation,
8760 triangulate_triangles,
8761 mortar_3d_qp_mapping);
8762 else
8763 return _mortar_data->createMortarInterface(primary_secondary_boundary_pair,
8764 primary_secondary_subdomain_pair,
8765 *this,
8766 on_displaced,
8767 periodic,
8768 debug,
8769 correct_edge_dropping,
8770 minimum_projection_angle,
8771 mortar_3d_subpatch_plane,
8772 triangulation,
8773 triangulate_triangles,
8774 mortar_3d_qp_mapping);
8775}
bool _has_mortar
Whether the simulation requires mortar coupling.

◆ createQRules()

void FEProblemBase::createQRules ( libMesh::QuadratureType  type,
libMesh::Order  order,
libMesh::Order  volume_order = libMesh::INVALID_ORDER,
libMesh::Order  face_order = libMesh::INVALID_ORDER,
SubdomainID  block = Moose::ANY_BLOCK_ID,
bool  allow_negative_qweights = true 
)
virtualinherited

Definition at line 6864 of file FEProblemBase.C.

6870{
6871 if (order == INVALID_ORDER)
6872 {
6873 // automatically determine the integration order
6874 order = _solver_systems[0]->getMinQuadratureOrder();
6875 for (const auto i : make_range(std::size_t(1), _solver_systems.size()))
6876 if (order < _solver_systems[i]->getMinQuadratureOrder())
6877 order = _solver_systems[i]->getMinQuadratureOrder();
6878 if (order < _aux->getMinQuadratureOrder())
6879 order = _aux->getMinQuadratureOrder();
6880 }
6881
6882 if (volume_order == INVALID_ORDER)
6883 volume_order = order;
6884
6885 if (face_order == INVALID_ORDER)
6886 face_order = order;
6887
6888 for (unsigned int tid = 0; tid < libMesh::n_threads(); ++tid)
6889 for (const auto i : index_range(_solver_systems))
6890 _assembly[tid][i]->createQRules(
6891 type, order, volume_order, face_order, block, allow_negative_qweights);
6892
6894 _displaced_problem->createQRules(
6895 type, order, volume_order, face_order, block, allow_negative_qweights);
6896
6897 updateMaxQps();
6898}
virtual void createQRules(libMesh::QuadratureType type, libMesh::Order order, libMesh::Order volume_order=libMesh::INVALID_ORDER, libMesh::Order face_order=libMesh::INVALID_ORDER, SubdomainID block=Moose::ANY_BLOCK_ID, bool allow_negative_qweights=true)

Referenced by ActionUnitTest::buildMinimalObjects(), MooseObjectUnitTest::buildObjects(), and FEProblemBase::createQRules().

◆ createTagMatrices()

void FEProblemBase::createTagMatrices ( CreateTaggedMatrixKey  )
inherited

Definition at line 743 of file FEProblemBase.C.

744{
745 auto & matrices = getParam<std::vector<std::vector<TagName>>>("extra_tag_matrices");
746 for (const auto sys_num : index_range(matrices))
747 for (auto & matrix : matrices[sys_num])
748 {
749 auto tag = addMatrixTag(matrix);
750 _solver_systems[sys_num]->addMatrix(tag);
751 }
752
753 for (auto & sys : _solver_systems)
754 sys->sizeVariableMatrixData();
755 _aux->sizeVariableMatrixData();
756}
for(PetscInt i=0;i< nvars;++i)
virtual TagID addMatrixTag(TagName tag_name)
Create a Tag.
Definition SubProblem.C:300

◆ createTagSolutions()

void FEProblemBase::createTagSolutions ( )
protectedinherited

Create extra tagged solution vectors.

Definition at line 759 of file FEProblemBase.C.

760{
761 for (auto & vector : getParam<std::vector<TagName>>("extra_tag_solutions"))
762 {
763 auto tag = addVectorTag(vector, Moose::VECTOR_TAG_SOLUTION);
764 for (auto & sys : _solver_systems)
765 sys->addVector(tag, false, libMesh::GHOSTED);
766 _aux->addVector(tag, false, libMesh::GHOSTED);
767 }
768
770 {
771 // We'll populate the zeroth state of the nonlinear iterations with the current solution for
772 // ease of use in doing things like copying solutions backwards. We're just storing pointers in
773 // the solution states containers so populating the zeroth state does not cost us the memory of
774 // a new vector
776 }
777
779 for (auto & sys : _solver_systems)
780 sys->associateVectorToTag(*sys->system().current_local_solution.get(), tag);
781 _aux->associateVectorToTag(*_aux->system().current_local_solution.get(), tag);
782}
bool _previous_nl_solution_required
Indicates we need to save the previous NL iteration variable values.
void needSolutionState(unsigned int oldest_needed, Moose::SolutionIterationType iteration_type)
Declare that we need up to old (1) or older (2) solution states for a given type of iteration.
virtual TagID addVectorTag(const TagName &tag_name, const Moose::VectorTagType type=Moose::VECTOR_TAG_RESIDUAL)
Create a Tag.
Definition SubProblem.C:81
@ VECTOR_TAG_SOLUTION
const TagName SOLUTION_TAG
Definition MooseTypes.C:25

Referenced by DumpObjectsProblem(), EigenProblem::EigenProblem(), ExternalProblem::ExternalProblem(), and FEProblem::FEProblem().

◆ createTagVectors()

void FEProblemBase::createTagVectors ( )
protectedinherited

Create extra tagged vectors and matrices.

Definition at line 721 of file FEProblemBase.C.

722{
723 // add vectors and their tags to system
724 auto & vectors = getParam<std::vector<std::vector<TagName>>>("extra_tag_vectors");
725 for (const auto sys_num : index_range(vectors))
726 for (auto & vector : vectors[sys_num])
727 {
728 auto tag = addVectorTag(vector);
729 _solver_systems[sys_num]->addVector(tag, false, libMesh::GHOSTED);
730 }
731
732 auto & not_zeroed_vectors = getParam<std::vector<std::vector<TagName>>>("not_zeroed_tag_vectors");
733 for (const auto sys_num : index_range(not_zeroed_vectors))
734 for (auto & vector : not_zeroed_vectors[sys_num])
735 {
736 auto tag = addVectorTag(vector);
737 _solver_systems[sys_num]->addVector(tag, false, GHOSTED);
739 }
740}
void addNotZeroedVectorTag(const TagID tag)
Adds a vector tag to the list of vectors that will not be zeroed when other tagged vectors are.
Definition SubProblem.C:138

Referenced by DumpObjectsProblem(), EigenProblem::EigenProblem(), ExternalProblem::ExternalProblem(), and FEProblem::FEProblem().

◆ currentLinearSysNum()

unsigned int FEProblemBase::currentLinearSysNum ( ) const
overridevirtualinherited
Returns
the current linear system number

Implements SubProblem.

Definition at line 10242 of file FEProblemBase.C.

10243{
10244 // If we don't have linear systems this should be an invalid number
10245 unsigned int current_linear_sys_num = libMesh::invalid_uint;
10246 if (_linear_systems.size())
10247 current_linear_sys_num = currentLinearSystem().number();
10248
10249 return current_linear_sys_num;
10250}
LinearSystem & currentLinearSystem()
Get a non-constant reference to the current linear system.
const unsigned int invalid_uint

Referenced by DisplacedProblem::currentLinearSysNum().

◆ currentLinearSystem() [1/2]

LinearSystem & FEProblemBase::currentLinearSystem ( )
inlineinherited

Get a non-constant reference to the current linear system.

Definition at line 3896 of file FEProblemBase.h.

3897{
3898 mooseAssert(_current_linear_sys, "The linear system is not currently set");
3899 return *_current_linear_sys;
3900}

Referenced by FEProblemBase::currentLinearSysNum(), and Moose::PetscSupport::petscLinearConverged().

◆ currentLinearSystem() [2/2]

const LinearSystem & FEProblemBase::currentLinearSystem ( ) const
inlineinherited

Get a constant reference to the current linear system.

Definition at line 3903 of file FEProblemBase.h.

3904{
3905 mooseAssert(_current_linear_sys, "The linear system is not currently set");
3906 return *_current_linear_sys;
3907}

◆ currentlyComputingJacobian()

const bool & SubProblem::currentlyComputingJacobian ( ) const
inlineinherited

◆ currentlyComputingResidual()

const bool & SubProblem::currentlyComputingResidual ( ) const
inlineinherited

Returns true if the problem is in the process of computing the residual.

Definition at line 728 of file SubProblem.h.

bool _currently_computing_residual
Whether the residual is being evaluated.

Referenced by FEProblemBase::updateMortarMesh().

◆ currentlyComputingResidualAndJacobian()

const bool & SubProblem::currentlyComputingResidualAndJacobian ( ) const
inlineinherited

Returns true if the problem is in the process of computing the residual and the Jacobian.

Definition at line 1486 of file SubProblem.h.

1487{
1489}
bool _currently_computing_residual_and_jacobian
Flag to determine whether the problem is currently computing the residual and Jacobian.

Referenced by SubProblem::reinitElemFaceRef(), and NEML2Utils::shouldCompute().

◆ currentNlSysNum()

unsigned int FEProblemBase::currentNlSysNum ( ) const
overridevirtualinherited
Returns
the current nonlinear system number

Implements SubProblem.

Definition at line 10231 of file FEProblemBase.C.

10232{
10233 // If we don't have nonlinear systems this should be an invalid number
10234 unsigned int current_nl_sys_num = libMesh::invalid_uint;
10235 if (_nl.size())
10236 current_nl_sys_num = currentNonlinearSystem().number();
10237
10238 return current_nl_sys_num;
10239}
NonlinearSystemBase & currentNonlinearSystem()

Referenced by DisplacedProblem::currentNlSysNum(), FEProblemBase::jacobianSetup(), and FEProblemBase::residualSetup().

◆ currentNonlinearSystem() [1/2]

NonlinearSystemBase & FEProblemBase::currentNonlinearSystem ( )
inlineinherited

◆ currentNonlinearSystem() [2/2]

const NonlinearSystemBase & FEProblemBase::currentNonlinearSystem ( ) const
inlineinherited

Definition at line 3873 of file FEProblemBase.h.

3874{
3875 mooseAssert(_current_nl_sys, "The nonlinear system is not currently set");
3876 return *_current_nl_sys;
3877}

◆ currentResidualVectorTags()

const std::vector< VectorTag > & FEProblemBase::currentResidualVectorTags ( ) const
inlineoverridevirtualinherited

◆ customSetup()

void FEProblemBase::customSetup ( const ExecFlagType &  exec_type)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 5155 of file FEProblemBase.C.

5156{
5157 SubProblem::customSetup(exec_type);
5158
5159 if (_line_search)
5160 _line_search->customSetup(exec_type);
5161
5162 unsigned int n_threads = libMesh::n_threads();
5163 for (THREAD_ID tid = 0; tid < n_threads; tid++)
5164 {
5165 _all_materials.customSetup(exec_type, tid);
5166 _functions.customSetup(exec_type, tid);
5167 }
5168
5169#ifdef MOOSE_KOKKOS_ENABLED
5170 _kokkos_functions.customSetup(exec_type);
5171#endif
5172
5173 _aux->customSetup(exec_type);
5174 for (auto & nl : _nl)
5175 nl->customSetup(exec_type);
5176
5178 _displaced_problem->customSetup(exec_type);
5179
5180 for (THREAD_ID tid = 0; tid < n_threads; tid++)
5181 {
5182 _internal_side_indicators.customSetup(exec_type, tid);
5183 _indicators.customSetup(exec_type, tid);
5184 _markers.customSetup(exec_type, tid);
5185 }
5186
5187 std::vector<UserObject *> userobjs;
5188 theWarehouse().query().condition<AttribSystem>("UserObject").queryIntoUnsorted(userobjs);
5189 for (auto obj : userobjs)
5190 obj->customSetup(exec_type);
5191
5192#ifdef MOOSE_KOKKOS_ENABLED
5193 {
5194 std::vector<UserObjectBase *> userobjs;
5195 theWarehouse().query().condition<AttribSystem>("KokkosUserObject").queryIntoUnsorted(userobjs);
5196 for (auto obj : userobjs)
5197 obj->customSetup(exec_type);
5198 }
5199#endif
5200
5201 _app.getOutputWarehouse().customSetup(exec_type);
5202}
void customSetup(const ExecFlagType &exec_type) override
std::shared_ptr< LineSearch > _line_search
virtual void customSetup(const ExecFlagType &exec_type, THREAD_ID tid=0) const
void customSetup(const ExecFlagType &exec_type)
Calls the setup function for each of the output objects.
virtual void customSetup(const ExecFlagType &exec_type)

Referenced by FEProblemBase::execute().

◆ declareManagedRestartableDataWithContext()

template<typename T , typename... Args>
Restartable::ManagedValue< T > Restartable::declareManagedRestartableDataWithContext ( const std::string &  data_name,
void *  context,
Args &&...  args 
)
protectedinherited

Declares a piece of "managed" restartable data and initialize it.

Here, "managed" restartable data means that the caller can destruct this data upon destruction of the return value of this method. Therefore, this ManagedValue<T> wrapper should survive after the final calls to dataStore() for it. That is... at the very end.

This is needed for objects whose destruction ordering is important, and enables natural c++ destruction in reverse construction order of the object that declares it.

See delcareRestartableData and declareRestartableDataWithContext for more information.

Definition at line 283 of file Restartable.h.

286{
287 auto & data_ptr =
288 declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...);
289 return Restartable::ManagedValue<T>(data_ptr);
290}
Wrapper class for restartable data that is "managed.
Definition Restartable.h:43

◆ declareRecoverableData()

template<typename T , typename... Args>
T & Restartable::declareRecoverableData ( const std::string &  data_name,
Args &&...  args 
)
protectedinherited

Declare a piece of data as "recoverable" and initialize it.

This means that in the event of a restart this piece of data will be restored back to its previous value.

Note - this data will NOT be restored on Restart!

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
argsArguments to forward to the constructor of the data

Definition at line 358 of file Restartable.h.

359{
360 const auto full_name = restartableName(data_name);
361
363
364 return declareRestartableDataWithContext<T>(data_name, nullptr, std::forward<Args>(args)...);
365}
std::string restartableName(const std::string &data_name) const
Gets the name of a piece of restartable data given a data name, adding the system name and object nam...
Definition Restartable.C:78
void registerRestartableNameWithFilterOnApp(const std::string &name, Moose::RESTARTABLE_FILTER filter)
Helper function for actually registering the restartable data.
Definition Restartable.C:71

◆ declareRestartableData()

template<typename T , typename... Args>
T & Restartable::declareRestartableData ( const std::string &  data_name,
Args &&...  args 
)
protectedinherited

Declare a piece of data as "restartable" and initialize it.

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
argsArguments to forward to the constructor of the data

Definition at line 276 of file Restartable.h.

277{
278 return declareRestartableDataWithContext<T>(data_name, nullptr, std::forward<Args>(args)...);
279}

◆ declareRestartableDataHelper()

template<typename T , typename... Args>
RestartableData< T > & Restartable::declareRestartableDataHelper ( const std::string &  data_name,
void *  context,
Args &&...  args 
) const
privateinherited

Helper function for declaring restartable data.

We use this function to reduce code duplication when returning const/nonconst references to the data.

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
contextContext pointer that will be passed to the load and store functions
argsArguments to forward to the constructor of the data

Definition at line 310 of file Restartable.h.

313{
314 const auto full_name = restartableName(data_name);
315
316 // Here we will create the RestartableData even though we may not use this instance.
317 // If it's already in use, the App will return a reference to the existing instance and we'll
318 // return that one instead. We might refactor this to have the app create the RestartableData
319 // at a later date.
320 auto data_ptr =
321 std::make_unique<RestartableData<T>>(full_name, context, std::forward<Args>(args)...);
322 auto & restartable_data_ref = cast_ref<RestartableData<T> &>(
323 registerRestartableDataOnApp(std::move(data_ptr), _restartable_tid));
324
325 return restartable_data_ref;
326}
const THREAD_ID _restartable_tid
The thread ID for this object.
RestartableDataValue & registerRestartableDataOnApp(std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
Helper function for actually registering the restartable data.
Definition Restartable.C:63

◆ declareRestartableDataWithContext()

template<typename T , typename... Args>
T & Restartable::declareRestartableDataWithContext ( const std::string &  data_name,
void *  context,
Args &&...  args 
)
protectedinherited

Declare a piece of data as "restartable" and initialize it.

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
contextContext pointer that will be passed to the load and store functions
argsArguments to forward to the constructor of the data

Definition at line 301 of file Restartable.h.

304{
305 return declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...).set();
306}

◆ declareRestartableDataWithObjectName()

template<typename T , typename... Args>
T & Restartable::declareRestartableDataWithObjectName ( const std::string &  data_name,
const std::string &  object_name,
Args &&...  args 
)
protectedinherited

Declare a piece of data as "restartable".

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
object_nameA supplied name for the object that is declaring this data.
argsArguments to forward to the constructor of the data

Definition at line 330 of file Restartable.h.

333{
334 return declareRestartableDataWithObjectNameWithContext<T>(
335 data_name, object_name, nullptr, std::forward<Args>(args)...);
336}

◆ declareRestartableDataWithObjectNameWithContext()

template<typename T , typename... Args>
T & Restartable::declareRestartableDataWithObjectNameWithContext ( const std::string &  data_name,
const std::string &  object_name,
void *  context,
Args &&...  args 
)
protectedinherited

Declare a piece of data as "restartable".

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
object_nameA supplied name for the object that is declaring this data.
contextContext pointer that will be passed to the load and store functions
argsArguments to forward to the constructor of the data

Definition at line 340 of file Restartable.h.

344{
345 std::string old_name = _restartable_name;
346
347 _restartable_name = object_name;
348
349 T & value = declareRestartableDataWithContext<T>(data_name, context, std::forward<Args>(args)...);
350
351 _restartable_name = old_name;
352
353 return value;
354}
std::string _restartable_name
The name of the object.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)

◆ deduceNecessaryParameters()

std::string DumpObjectsProblem::deduceNecessaryParameters ( const std::string &  type,
const InputParameters &  parameters 
)
protected

build a text snippet of the minimal set of parameters that need to be specified

Definition at line 93 of file DumpObjectsProblem.C.

95{
96 auto factory_params = stringifyParameters(_factory.getValidParams(type));
97 auto specified_params = stringifyParameters(parameters);
98
99 std::string param_text;
100 for (auto & value_pair : specified_params)
101 {
102 // parameter name
103 const auto & param_name = value_pair.first;
104 const auto & param_value = value_pair.second;
105
106 // determine whether to include the parameter
107 auto factory_it = factory_params.find(param_name);
108 bool include_param = (factory_it->second != param_value);
110 include_param = include_param || parameters.isParamSetByUser(param_name);
111 if (factory_it == factory_params.end() || include_param)
112 param_text += " " + param_name + " = " + param_value + '\n';
113 }
114
115 return param_text;
116}
std::map< std::string, std::string > stringifyParameters(const InputParameters &parameters)
create a string map form parameter names to stringified parameter values

Referenced by dumpObjectHelper().

◆ defaultGhosting()

bool SubProblem::defaultGhosting ( )
inlineinherited

Whether or not the user has requested default ghosting ot be on.

Definition at line 144 of file SubProblem.h.

144{ return _default_ghosting; }
bool _default_ghosting
Whether or not to use default libMesh coupling.

Referenced by DisplacedSystem::DisplacedSystem(), and NonlinearSystemBase::NonlinearSystemBase().

◆ determineSolverSystem()

std::pair< bool, unsigned int > FEProblemBase::determineSolverSystem ( const std::string &  var_name,
bool  error_if_not_found = false 
) const
overrideprivatevirtualinherited

Determine what solver system the provided variable name lies in.

Parameters
var_nameThe name of the variable we are doing solver system lookups for
error_if_not_foundWhether to error if the variable name isn't found in any of the solver systems
Returns
A pair in which the first member indicates whether the variable was found in the solver systems and the second member indicates the solver system number in which the variable was found (or an invalid unsigned integer if not found)

Implements SubProblem.

Definition at line 3109 of file FEProblemBase.C.

3111{
3112 auto map_it = _solver_var_to_sys_num.find(var_name);
3113 const bool var_in_sys = map_it != _solver_var_to_sys_num.end();
3114 if (var_in_sys)
3115 mooseAssert(_solver_systems[map_it->second]->hasVariable(var_name) ||
3116 _solver_systems[map_it->second]->hasScalarVariable(var_name),
3117 "If the variable is in our FEProblem solver system map, then it must be in the "
3118 "solver system we expect");
3119 else if (error_if_not_found)
3120 {
3121 if (_aux->hasVariable(var_name) || _aux->hasScalarVariable(var_name))
3122 mooseError("No solver variable named ",
3123 var_name,
3124 " found. Did you specify an auxiliary variable when you meant to specify a "
3125 "solver variable?");
3126 else
3127 mooseError("Unknown variable '",
3128 var_name,
3129 "'. It does not exist in the solver system(s) or auxiliary system");
3130 }
3131
3132 return std::make_pair(var_in_sys, var_in_sys ? map_it->second : libMesh::invalid_uint);
3133}

Referenced by FEProblemBase::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addHDGKernel(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addKernel(), FEProblemBase::addNodalKernel(), FEProblemBase::addScalarKernel(), DisplacedProblem::determineSolverSystem(), and FEProblemBase::getSystem().

◆ diracKernelInfo()

DiracKernelInfo & SubProblem::diracKernelInfo ( )
virtualinherited

Definition at line 737 of file SubProblem.C.

738{
739 return _dirac_kernel_info;
740}

◆ doingPRefinement()

bool SubProblem::doingPRefinement ( ) const
inherited
Returns
whether we're doing p-refinement

Definition at line 1349 of file SubProblem.C.

1350{
1351 return mesh().doingPRefinement();
1352}
void doingPRefinement(bool doing_p_refinement)
Indicate whether the kind of adaptivity we're doing includes p-refinement.
Definition MooseMesh.h:1502

Referenced by ElementAdaptivityLevelAux::ElementAdaptivityLevelAux(), ElementLpNormAux::ElementLpNormAux(), InternalSideIndicatorBase::InternalSideIndicatorBase(), FEProblemBase::meshChanged(), and VolumeAux::VolumeAux().

◆ dt()

virtual Real & FEProblemBase::dt ( ) const
inlinevirtualinherited

◆ dtOld()

virtual Real & FEProblemBase::dtOld ( ) const
inlinevirtualinherited

Definition at line 585 of file FEProblemBase.h.

585{ return _dt_old; }

Referenced by IterationAdaptiveDT::acceptStep().

◆ dumpAllGeneratedSyntax()

void DumpObjectsProblem::dumpAllGeneratedSyntax ( ) const

output input blocks for all paths

Definition at line 208 of file DumpObjectsProblem.C.

209{
210 Moose::out << "**START DUMP DATA**\n";
211 for (const auto & path : _generated_syntax)
212 for (const auto & system_pair : path.second)
213 Moose::out << '[' << system_pair.first << "]\n" << system_pair.second << "[]\n\n";
214 Moose::out << "**END DUMP DATA**\n";
215 Moose::out << std::flush;
216}
std::map< std::string, std::map< std::string, std::string > > _generated_syntax
store input syntax to build objects generated by a specific action
OStreamProxy out(std::cout)

Referenced by printObjects().

◆ dumpGeneratedSyntax()

void DumpObjectsProblem::dumpGeneratedSyntax ( const std::string  path)

output input blocks for a given action path

Definition at line 194 of file DumpObjectsProblem.C.

195{
196 auto pathit = _generated_syntax.find(path);
197 if (pathit == _generated_syntax.end())
198 return;
199
200 Moose::out << "**START DUMP DATA**\n";
201 for (const auto & system_pair : pathit->second)
202 Moose::out << '[' << system_pair.first << "]\n" << system_pair.second << "[]\n\n";
203 Moose::out << "**END DUMP DATA**\n";
204 Moose::out << std::flush;
205}

Referenced by printObjects().

◆ dumpObjectHelper()

void DumpObjectsProblem::dumpObjectHelper ( const std::string &  system,
const std::string &  type,
const std::string &  name,
const InputParameters &  parameters 
)
protected

Definition at line 119 of file DumpObjectsProblem.C.

123{
125 auto param_text = deduceNecessaryParameters(type, parameters);
126
127 // clang-format off
128 _generated_syntax[path][system] +=
129 " [" + name + "]\n"
130 + " type = " + type + '\n'
131 + param_text
132 + " []\n";
133 // clang-format on
134}
std::string getCurrentActionName() const
std::string deduceNecessaryParameters(const std::string &type, const InputParameters &parameters)
build a text snippet of the minimal set of parameters that need to be specified

◆ dumpVariableHelper()

void DumpObjectsProblem::dumpVariableHelper ( const std::string &  system,
const std::string &  var_name,
libMesh::FEFamily  family,
Order  order,
Real  scale_factor,
const std::set< SubdomainID > *const  active_subdomains 
)
protected

Definition at line 137 of file DumpObjectsProblem.C.

143{
145 std::string param_text;
146
147 if (active_subdomains)
148 {
149 std::string blocks;
150 for (auto & subdomain_id : *active_subdomains)
151 {
152 auto subdomain_name = _mesh.getMesh().subdomain_name(subdomain_id);
153 if (subdomain_name == "")
154 subdomain_name = std::to_string(subdomain_id);
155
156 if (!blocks.empty())
157 blocks += ' ';
158
159 blocks += subdomain_name;
160 }
161
162 if (active_subdomains->size() > 1)
163 blocks = "'" + blocks + "'";
164
165 param_text += " blocks = " + blocks + '\n';
166 }
167
168 if (family != LAGRANGE)
169 param_text += " family = " + libMesh::Utility::enum_to_string<FEFamily>(family) + '\n';
170 if (order != FIRST)
171 param_text += " order = " + libMesh::Utility::enum_to_string<Order>(order) + '\n';
172 if (scale_factor != 1.0)
173 param_text += " scale = " + std::to_string(scale_factor);
174
175 // clang-format off
176 _generated_syntax[path][system] +=
177 " [" + var_name + "]\n"
178 + param_text
179 + " []\n";
180 // clang-format on
181}

◆ duplicateVariableCheck()

bool FEProblemBase::duplicateVariableCheck ( const std::string &  var_name,
const libMesh::FEType &  type,
bool  is_aux,
const std::set< SubdomainID > *const  active_subdomains 
)
protectedinherited

Helper to check for duplicate variable names across systems or within a single system.

Definition at line 2972 of file FEProblemBase.C.

2976{
2977 std::set<SubdomainID> subdomainIDs;
2978 if (active_subdomains->size() == 0)
2979 {
2980 const auto subdomains = _mesh.meshSubdomains();
2981 subdomainIDs.insert(subdomains.begin(), subdomains.end());
2982 }
2983 else
2984 subdomainIDs.insert(active_subdomains->begin(), active_subdomains->end());
2985
2986 for (auto & sys : _solver_systems)
2987 {
2988 SystemBase * curr_sys_ptr = sys.get();
2989 SystemBase * other_sys_ptr = _aux.get();
2990 std::string error_prefix = "";
2991 if (is_aux)
2992 {
2993 curr_sys_ptr = _aux.get();
2994 other_sys_ptr = sys.get();
2995 error_prefix = "aux";
2996 }
2997
2998 if (other_sys_ptr->hasVariable(var_name))
2999 mooseError("Cannot have an auxiliary variable and a solver variable with the same name: ",
3000 var_name);
3001
3002 if (curr_sys_ptr->hasVariable(var_name))
3003 {
3004 const libMesh::Variable & var =
3005 curr_sys_ptr->system().variable(curr_sys_ptr->system().variable_number(var_name));
3006
3007 // variable type
3008 if (var.type() != type)
3009 mooseError("Mismatching types are specified for ",
3010 error_prefix,
3011 "variable with name '",
3012 var_name,
3013 "': '",
3014 Moose::stringify(var.type()),
3015 "' and '",
3017 "'");
3018
3019 // block-restriction
3020 if (!(active_subdomains->size() == 0 && var.active_subdomains().size() == 0))
3021 {
3022 const auto varActiveSubdomains = var.active_subdomains();
3023 std::set<SubdomainID> varSubdomainIDs;
3024 if (varActiveSubdomains.size() == 0)
3025 {
3026 const auto subdomains = _mesh.meshSubdomains();
3027 varSubdomainIDs.insert(subdomains.begin(), subdomains.end());
3028 }
3029 else
3030 varSubdomainIDs.insert(varActiveSubdomains.begin(), varActiveSubdomains.end());
3031
3032 // Is subdomainIDs a subset of varSubdomainIDs? With this we allow the case that the newly
3033 // requested block restriction is only a subset of the existing one.
3034 const auto isSubset = std::includes(varSubdomainIDs.begin(),
3035 varSubdomainIDs.end(),
3036 subdomainIDs.begin(),
3037 subdomainIDs.end());
3038
3039 if (!isSubset)
3040 {
3041 // helper function: make a string from a set of subdomain ids
3042 const auto stringifySubdomains = [this](std::set<SubdomainID> subdomainIDs)
3043 {
3044 std::stringstream s;
3045 for (auto const i : subdomainIDs)
3046 {
3047 // do we need to insert a comma?
3048 if (s.tellp() != 0)
3049 s << ", ";
3050
3051 // insert subdomain name and id -or- only the id (if no name is given)
3052 const auto subdomainName = _mesh.getSubdomainName(i);
3053 if (subdomainName.empty())
3054 s << i;
3055 else
3056 s << subdomainName << " (" << i << ")";
3057 }
3058 return s.str();
3059 };
3060
3061 const std::string msg = "Mismatching block-restrictions are specified for " +
3062 error_prefix + "variable with name '" + var_name + "': {" +
3063 stringifySubdomains(varSubdomainIDs) + "} and {" +
3064 stringifySubdomains(subdomainIDs) + "}";
3065
3066 mooseError(msg);
3067 }
3068 }
3069
3070 return true;
3071 }
3072 }
3073
3074 return false;
3075}
virtual bool hasVariable(const std::string &var_name) const
Query a system for a variable.
Definition SystemBase.C:848
const Variable & variable(unsigned int var) const
unsigned int variable_number(std::string_view var) const
const std::set< subdomain_id_type > & active_subdomains() const
const FEType & type() const

Referenced by FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), and FEProblemBase::addVariable().

◆ enabled()

virtual bool MooseObject::enabled ( ) const
inlinevirtualinherited

Return the enabled status of the object.

Reimplemented in EigenKernel.

Definition at line 49 of file MooseObject.h.

49{ return _enabled; }
const bool & _enabled
Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.
Definition MooseObject.h:71

Referenced by EigenKernel::enabled(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBoundaryRestrictionGroups(), and NodeFaceConstraint::validParams().

◆ errorOnJacobianNonzeroReallocation()

bool FEProblemBase::errorOnJacobianNonzeroReallocation ( ) const
inlineinherited

Will return True if the user wants to get an error when a nonzero is reallocated in the Jacobian by PETSc.

Definition at line 2431 of file FEProblemBase.h.

2432 {
2434 }
bool _error_on_jacobian_nonzero_reallocation
Whether to error when the Jacobian is re-allocated, usually because the sparsity pattern changed.

Referenced by NonlinearSystemBase::computeJacobianBlocks(), NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), NonlinearSystemBase::computeResidualAndJacobianInternal(), and NonlinearSystemBase::constraintJacobians().

◆ errorPrefix()

std::string MooseBase::errorPrefix ( const std::string &  ) const
inlineinherited

Deprecated message prefix; the error type is no longer used.

Definition at line 264 of file MooseBase.h.

264{ return messagePrefix(); }

◆ es()

virtual libMesh::EquationSystems & FEProblemBase::es ( )
inlineoverridevirtualinherited

◆ execMultiApps()

bool FEProblemBase::execMultiApps ( ExecFlagType  type,
bool  auto_advance = true 
)
inherited

Execute the MultiApps associated with the ExecFlagType.

Definition at line 6208 of file FEProblemBase.C.

6209{
6210 // Active MultiApps
6211 const std::vector<MooseSharedPointer<MultiApp>> & multi_apps =
6212 _multi_apps[exec_on].getActiveObjects();
6213
6214 // Do anything that needs to be done to Apps before transfers
6215 for (const auto & multi_app : multi_apps)
6216 multi_app->preTransfer(_dt, _time);
6217
6218 // Execute Transfers _to_ MultiApps
6220
6221 // Execute Transfers _beween_ MultiApps for the multiapps that don't execute on this flag
6222 // NOTE: there is usually no need to execute a transfer unless the multiapp providing its
6223 // data also executed. But we need to obey what the user requested for the execution schedule,
6224 // hence the two executions
6226
6227 // Order the multiapps based on their execution group
6228 // Build the ordered multiapp groups
6229 std::map<unsigned int, std::vector<MooseSharedPointer<MultiApp>>> ordered_multi_apps;
6230
6231 for (const auto & multi_app : multi_apps)
6232 ordered_multi_apps[multi_app->getParam<unsigned int>("execution_order_group")].push_back(
6233 multi_app);
6234
6235 // Check that concurrent multiapps will even be used
6236 if (multi_apps.size() && _num_concurrent_multiapps > 1)
6237 {
6238 bool has_concurrent_apps = false;
6239 for (const auto & [group, multi_app_group] : ordered_multi_apps)
6240 if (multi_app_group.size() > 1)
6241 has_concurrent_apps = true;
6242 if (!has_concurrent_apps)
6243 paramInfo(
6244 "num_concurrent_multiapps",
6245 "Due to the specified multiapp execution groups, or differences in execution schedules, "
6246 "concurrent multiapps are not actually used on " +
6247 Moose::stringify(exec_on));
6248 }
6249
6250 // Execute MultiApps
6251 if (multi_apps.size())
6252 {
6253 TIME_SECTION("execMultiApps", 1, "Executing MultiApps", false);
6254
6256 _console << COLOR_CYAN << "\nExecuting MultiApps on " << Moose::stringify(exec_on)
6257 << COLOR_DEFAULT << std::endl;
6258
6259 bool success = true;
6260
6261 for (const auto & [group_id, multi_app_group] : ordered_multi_apps)
6262 {
6263 bool group_success = true;
6264 if (_verbose_multiapps && ordered_multi_apps.size() > 1)
6265 _console << COLOR_CYAN << "\nExecuting MultiApps group " << Moose::stringify(group_id)
6266 << COLOR_DEFAULT << std::endl;
6267
6268 if (_verbose_multiapps && multi_app_group.size() > 1)
6269 {
6270 // Let the user know about concurrent multiapp use (new option: help them set it up)
6271 _console << COLOR_CYAN << "\nConcurrent MultiApps: " << std::endl;
6272 for (const auto & multi_app : multi_app_group)
6273 _console << multi_app->name() << " ";
6274 _console << COLOR_DEFAULT << std::endl;
6275 }
6276
6277 // With concurrent multiapps, the multiapps in a group have each been assigned a disjoint
6278 // subset of the ranks (see partitionConcurrentMultiApps()), so solveStep() does real work
6279 // only on those ranks and returns early on the others. Looping here therefore lets different
6280 // ranks advance different multiapps at the same time - the concurrency comes from the rank
6281 // partition. This notably avoids racing PETSc's process-global state (communicator and
6282 // options database).
6283 for (const auto & multi_app : multi_app_group)
6284 if (!multi_app->solveStep(_dt, _time, auto_advance))
6285 group_success = false;
6286
6287 // Whether to move on to the next group must be a collective decision so that every rank
6288 // leaves the group loop together and stays aligned for the following collectives.
6289 _communicator.min(group_success);
6290
6291 // No need to solve the other groups if this group failed
6292 if (!group_success)
6293 {
6294 success = false;
6295 break;
6296 }
6297
6298 // Execute Transfers _between_ MultiApps after each app executes
6299 for (const auto & multi_app : multi_app_group)
6300 execMultiAppTransfers(exec_on, MultiAppTransfer::BETWEEN_MULTIAPP, multi_app->name());
6301 }
6302
6304 _communicator.min(success);
6305
6306 if (!success)
6307 return false;
6308
6310 _console << COLOR_CYAN << "Finished Executing MultiApps on " << Moose::stringify(exec_on)
6311 << "\n"
6312 << COLOR_DEFAULT << std::endl;
6313 }
6314
6315 // Execute Transfers _from_ MultiApps (to the parent app)
6317
6318 // If we made it here then everything passed
6319 return true;
6320}
const unsigned int _num_concurrent_multiapps
Number of concurrent applications being solved at the same time.
void execMultiAppTransfers(ExecFlagType type, Transfer::DIRECTION direction, const MultiAppName &source_app="")
Execute MultiAppTransfers associated with execution flag and direction.
void paramInfo(const std::string &param, Args... args) const
Emits an informational message prefixed with the file and line number of the given param (from the in...
Definition MooseBase.h:471
Base class for all MultiAppTransfer objects.
void min(const T &r, T &o, Request &req) const

Referenced by FEProblemBase::adaptMesh(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), Eigenvalue::execute(), SteadyBase::execute(), TransientBase::execute(), MFEMSteady::execute(), EigenExecutionerBase::postExecute(), FixedPointSolve::solve(), FixedPointSolve::solveStep(), and MFEMTransient::takeStep().

◆ execMultiAppTransfers()

void FEProblemBase::execMultiAppTransfers ( ExecFlagType  type,
Transfer::DIRECTION  direction,
const MultiAppName &  source_app = "" 
)
inherited

Execute MultiAppTransfers associated with execution flag and direction.

Parameters
typeThe execution flag to execute.
directionThe direction (to or from) to transfer.
source_appThe source application to execute transfers from. Defaults to all sources

Definition at line 5961 of file FEProblemBase.C.

5964{
5965 // Keep track of whether a transfer is actually executed to avoid extraneous console output
5966 bool is_executing_a_transfer = false;
5967 bool to_multiapp = direction == MultiAppTransfer::TO_MULTIAPP;
5968 bool from_multiapp = direction == MultiAppTransfer::FROM_MULTIAPP;
5969
5970 // Build console output
5971 std::string string_direction;
5972 std::string additional_source_info = "";
5973 if (to_multiapp)
5974 string_direction = " To ";
5975 else if (from_multiapp)
5976 string_direction = " From ";
5977 else
5978 string_direction = " Between ";
5979 if (!source_app.empty())
5980 additional_source_info = " from app '" + source_app + "'";
5981
5982 // This lambda only checks the source app, since the exec_type selection is done in the warehouse
5983 auto executeThisTransfer = [this, &direction, &source_app, &type](auto & transfer)
5984 {
5985 mooseAssert(transfer->getExecuteOnEnum().contains(type), "Should execute on this schedule");
5986 // no restriction / ordering groups on transfers from parent to child at this time
5987 if (direction != MultiAppTransfer::BETWEEN_MULTIAPP)
5988 return true;
5989 // on sibling transfers, we can delay until the app has been executed if the transfer is set
5990 // that way.
5991 if (transfer->getFromName() == source_app && transfer->executeAfterSiblingSourceApp())
5992 {
5993 libmesh_ignore(this);
5994 mooseAssert(this->getMultiApp(transfer->getFromName())->getExecuteOnEnum().contains(type),
5995 "from_multiapp should also execute on this schedule");
5996 }
5997 // Execute if:
5998 // - transfer is set execute before from_multiapp, and we are calling this before source apps
5999 // - from_multiapp app is not executing on this execute_on
6000 // - from_multiapp just executed (set to source app)
6001 if ((source_app.empty() && (!transfer->executeAfterSiblingSourceApp() ||
6002 !transfer->getFromMultiApp()->getExecuteOnEnum().contains(type))) ||
6003 (transfer->getFromName() == source_app && transfer->executeAfterSiblingSourceApp()))
6004 return true;
6005 return false;
6006 };
6007
6009 : from_multiapp ? _from_multi_app_transfers[type]
6011
6012 if (wh.hasActiveObjects())
6013 {
6014 TIME_SECTION("execMultiAppTransfers", 1, "Executing Transfers");
6015
6016 const auto & transfers = wh.getActiveObjects();
6017
6019 {
6021 {"Name", "Type", "From", "To"});
6022
6023 // Build Table of Transfer Info
6024 for (const auto & transfer : transfers)
6025 {
6026 auto multiapp_transfer = dynamic_cast<MultiAppTransfer *>(transfer.get());
6027
6028 // Don't add transfer to table if it won't execute
6029 if (!executeThisTransfer(multiapp_transfer))
6030 continue;
6031
6032 is_executing_a_transfer = true;
6033 table.addRow(multiapp_transfer->name(),
6034 multiapp_transfer->type(),
6035 multiapp_transfer->getFromName(),
6036 multiapp_transfer->getToName());
6037 }
6038
6039 // Print it
6040 if (is_executing_a_transfer)
6041 {
6042 _console << COLOR_CYAN << "\nTransfers on " << Moose::stringify(type) << string_direction
6043 << "MultiApps" << additional_source_info << COLOR_DEFAULT << ":" << std::endl;
6044
6045 table.print(_console);
6046 }
6047 }
6048
6049 for (const auto & transfer : transfers)
6050 {
6051 auto multiapp_transfer = libMesh::cast_ptr<MultiAppTransfer *>(transfer.get());
6052 if (!executeThisTransfer(multiapp_transfer))
6053 continue;
6054
6055 transfer->setCurrentDirection(direction);
6056 transfer->execute();
6057 }
6058
6060
6061 if (_verbose_multiapps && is_executing_a_transfer)
6062 _console << COLOR_CYAN << "Transfers on " << Moose::stringify(type) << " Are Finished\n"
6063 << COLOR_DEFAULT << std::endl;
6064 }
6065
6066 if (_multi_apps[type].getActiveObjects().size() && !is_executing_a_transfer && _verbose_multiapps)
6067 _console << COLOR_CYAN << "\nNo Transfers on " << Moose::stringify(type) << string_direction
6068 << "MultiApps\n"
6069 << COLOR_DEFAULT << std::endl;
6070}
bool hasActiveObjects(THREAD_ID tid=0) const
A class for "pretty printing" a table of data.
void libmesh_ignore(const Args &...)

Referenced by FEProblemBase::execMultiApps().

◆ execute()

virtual void DumpObjectsProblem::execute ( const ExecFlagType &  exec_type)
inlineoverridevirtual

Convenience function for performing execution of MOOSE systems.

Reimplemented from FEProblemBase.

Definition at line 64 of file DumpObjectsProblem.h.

64{}

◆ executeAllObjects()

void FEProblemBase::executeAllObjects ( const ExecFlagType &  exec_type)
virtualinherited

Definition at line 5150 of file FEProblemBase.C.

5151{
5152}

Referenced by Executor::exec().

◆ executeControls()

void FEProblemBase::executeControls ( const ExecFlagType &  exec_type)
inherited

Performs setup and execute calls for Control objects.

Definition at line 5646 of file FEProblemBase.C.

5647{
5648 if (_control_warehouse[exec_type].hasActiveObjects())
5649 {
5650 TIME_SECTION("executeControls", 1, "Executing Controls");
5651
5653
5654 auto controls_wh = _control_warehouse[exec_type];
5655 // Add all of the dependencies into the resolver and sort them
5656 for (const auto & it : controls_wh.getActiveObjects())
5657 {
5658 // Make sure an item with no dependencies comes out too!
5659 resolver.addItem(it);
5660
5661 std::vector<std::string> & dependent_controls = it->getDependencies();
5662 for (const auto & depend_name : dependent_controls)
5663 {
5664 if (controls_wh.hasActiveObject(depend_name))
5665 {
5666 auto dep_control = controls_wh.getActiveObject(depend_name);
5667 resolver.addEdge(dep_control, it);
5668 }
5669 else
5670 mooseError("The Control \"",
5671 depend_name,
5672 "\" was not created, did you make a "
5673 "spelling mistake or forget to include it "
5674 "in your input file?");
5675 }
5676 }
5677
5678 const auto & ordered_controls = resolver.getSortedValues();
5679
5680 if (!ordered_controls.empty())
5681 {
5682 // already called by initialSetup when exec_type == EXEC_INITIAL
5683 if (exec_type != EXEC_INITIAL)
5684 _control_warehouse.setup(exec_type);
5685
5686 // Run the controls in the proper order
5687 for (const auto & control : ordered_controls)
5688 control->execute();
5689 }
5690 }
5691}
Class that represents the dependecy as a graph.
void addItem(const T &value)
Add an independent item to the set.
const std::vector< T > & getSortedValues()
This function also returns dependency resolved values but with a simpler single vector interface.
void addEdge(const T &a, const T &b)
Add an edge between nodes 'a' and 'b'.
void setup(const ExecFlagType &exec_flag, THREAD_ID tid=0) const
ExecuteMooseObjectWarehouse< Control > _control_warehouse
The control logic warehouse.
virtual void execute(const ExecFlagType &exec_type)
Convenience function for performing execution of MOOSE systems.

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and FEProblemBase::execute().

◆ executeSamplers()

void FEProblemBase::executeSamplers ( const ExecFlagType &  exec_type)
inherited

Performs setup and execute calls for Sampler objects.

Definition at line 5694 of file FEProblemBase.C.

5695{
5696 // TODO: This should be done in a threaded loop, but this should be super quick so for now
5697 // do a serial loop.
5698 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); ++tid)
5699 {
5700 std::vector<Sampler *> objects;
5701 theWarehouse()
5702 .query()
5703 .condition<AttribSystem>("Sampler")
5704 .condition<AttribThread>(tid)
5705 .condition<AttribExecOns>(exec_type)
5706 .queryInto(objects);
5707
5708 if (!objects.empty())
5709 {
5710 TIME_SECTION("executeSamplers", 1, "Executing Samplers");
5711 FEProblemBase::objectSetupHelper<Sampler>(objects, exec_type);
5712 FEProblemBase::objectExecuteHelper<Sampler>(objects);
5713 }
5714 }
5715}

Referenced by FEProblemBase::execute().

◆ feBackend()

virtual Moose::FEBackend FEProblemBase::feBackend ( ) const
inlinevirtualinherited

◆ fieldScalarCouplingEntries()

const std::vector< std::pair< MooseVariableFieldBase *, MooseVariableScalar * > > & FEProblemBase::fieldScalarCouplingEntries ( const THREAD_ID  tid,
const unsigned int  nl_sys_num 
) const
inherited

Definition at line 7014 of file FEProblemBase.C.

7015{
7016 return _assembly[tid][nl_sys]->fieldScalarCouplingEntries();
7017}

◆ finalizeMultiApps()

void FEProblemBase::finalizeMultiApps ( )
inherited

Definition at line 6323 of file FEProblemBase.C.

6324{
6325 const auto & multi_apps = _multi_apps.getActiveObjects();
6326
6327 for (const auto & multi_app : multi_apps)
6328 multi_app->finalize();
6329}

Referenced by Eigenvalue::execute(), SteadyBase::execute(), TransientBase::execute(), and MFEMSteady::execute().

◆ finalNonlinearResidual()

Real FEProblemBase::finalNonlinearResidual ( const unsigned int  nl_sys_num) const
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 7437 of file FEProblemBase.C.

7438{
7439 return _nl[nl_sys_num]->finalNonlinearResidual();
7440}

◆ finishMultiAppStep()

void FEProblemBase::finishMultiAppStep ( ExecFlagType  type,
bool  recurse_through_multiapp_levels = false 
)
inherited

Finish the MultiApp time step (endStep, postStep) associated with the ExecFlagType.

Optionally recurse through all multi-app levels

Definition at line 6351 of file FEProblemBase.C.

6352{
6353 const auto & multi_apps = _multi_apps[type].getActiveObjects();
6354
6355 if (multi_apps.size())
6356 {
6358 _console << COLOR_CYAN << "\nAdvancing MultiApps on " << type.name() << COLOR_DEFAULT
6359 << std::endl;
6360
6361 for (const auto & multi_app : multi_apps)
6362 multi_app->finishStep(recurse_through_multiapp_levels);
6363
6365
6367 _console << COLOR_CYAN << "Finished Advancing MultiApps on " << type.name() << "\n"
6368 << COLOR_DEFAULT << std::endl;
6369 }
6370}

Referenced by FEProblemBase::advanceMultiApps(), TransientBase::execute(), TransientMultiApp::finishStep(), and TransientBase::incrementStepOrReject().

◆ flagInvalidSolutionInternal()

template<bool warning>
template void SolutionInvalidInterface::flagInvalidSolutionInternal< false > ( const InvalidSolutionID  invalid_solution_id) const
protectedinherited

Set solution invalid mark for the given solution ID.

Definition at line 41 of file SolutionInvalidInterface.C.

43{
44 mooseAssert(
45 warning == moose::internal::getSolutionInvalidityRegistry().item(invalid_solution_id).warning,
46 "Inconsistent warning flag");
47 auto & solution_invalidity = _si_moose_base.getMooseApp().solutionInvalidity();
48 if constexpr (!warning)
50 solution_invalidity.printDebug(invalid_solution_id);
51 return solution_invalidity.flagInvalidSolutionInternal(invalid_solution_id);
52}
bool immediatelyPrintInvalidSolution() const
Whether or not the solution invalid warnings are printed out immediately.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Definition MooseBase.h:87
const FEProblemBase * _si_problem
A pointer to FEProblem base.
const MooseBase & _si_moose_base
The MooseBase that owns this interface.
void printDebug(InvalidSolutionID _invalid_solution_id) const
Immediately print the section and message for debug purpose.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.

◆ forceOutput()

void FEProblemBase::forceOutput ( )
inherited

Indicates that the next call to outputStep should be forced.

This is needed by the MultiApp system, if forceOutput is called the next call to outputStep, regardless of the type supplied to the call, will be executed with EXEC_FORCED.

Forced output will NOT override the allowOutput flag.

Definition at line 7600 of file FEProblemBase.C.

7601{
7603}
void forceOutput()
Indicates that the next call to outputStep should be forced This is private, users should utilize FEP...

Referenced by TransientMultiApp::solveStep().

◆ fvBCsIntegrityCheck() [1/2]

bool FEProblemBase::fvBCsIntegrityCheck ( ) const
inlineinherited
Returns
whether to perform a boundary condition integrity check for finite volume

Definition at line 2821 of file FEProblemBase.h.

2821{ return _fv_bcs_integrity_check; }
bool _fv_bcs_integrity_check
Whether to check overlapping Dirichlet and Flux BCs and/or multiple DirichletBCs per sideset.

◆ fvBCsIntegrityCheck() [2/2]

void FEProblemBase::fvBCsIntegrityCheck ( bool  fv_bcs_integrity_check)
inlineinherited
Parameters
fv_bcs_integrity_checkWhether to perform a boundary condition integrity check for finite volume

Definition at line 3934 of file FEProblemBase.h.

3935{
3937 // the user has requested that we don't check integrity so we will honor that
3938 return;
3939
3940 _fv_bcs_integrity_check = fv_bcs_integrity_check;
3941}

◆ geomSearchData()

virtual GeometricSearchData & FEProblemBase::geomSearchData ( )
inlineoverridevirtualinherited

◆ getActiveElementalMooseVariables()

const std::set< MooseVariableFEBase * > & SubProblem::getActiveElementalMooseVariables ( const THREAD_ID  tid) const
virtualinherited

Get the MOOSE variables to be reinited on each element.

Parameters
tidThe thread id

Definition at line 443 of file SubProblem.C.

444{
446}
std::vector< std::set< MooseVariableFieldBase * > > _active_elemental_moose_variables
This is the set of MooseVariableFieldBase that will actually get reinited by a call to reinit(elem)

Referenced by SystemBase::prepare(), SystemBase::prepareFace(), FEProblemBase::prepareMaterials(), and SystemBase::reinitElem().

◆ getActiveFEVariableCoupleableMatrixTags()

const std::set< TagID > & SubProblem::getActiveFEVariableCoupleableMatrixTags ( const THREAD_ID  tid) const
inherited

Definition at line 379 of file SubProblem.C.

380{
382}
std::vector< std::set< TagID > > _active_fe_var_coupleable_matrix_tags

◆ getActiveFEVariableCoupleableVectorTags()

const std::set< TagID > & SubProblem::getActiveFEVariableCoupleableVectorTags ( const THREAD_ID  tid) const
inherited

Definition at line 385 of file SubProblem.C.

386{
388}
std::vector< std::set< TagID > > _active_fe_var_coupleable_vector_tags

Referenced by MultiAppVariableValueSamplePostprocessorTransfer::execute().

◆ getActiveScalarVariableCoupleableMatrixTags()

const std::set< TagID > & SubProblem::getActiveScalarVariableCoupleableMatrixTags ( const THREAD_ID  tid) const
inherited

Definition at line 420 of file SubProblem.C.

421{
423}
std::vector< std::set< TagID > > _active_sc_var_coupleable_matrix_tags

Referenced by MooseVariableScalar::reinit().

◆ getActiveScalarVariableCoupleableVectorTags()

const std::set< TagID > & SubProblem::getActiveScalarVariableCoupleableVectorTags ( const THREAD_ID  tid) const
inherited

Definition at line 426 of file SubProblem.C.

427{
429}
std::vector< std::set< TagID > > _active_sc_var_coupleable_vector_tags

◆ getActualFieldVariable()

MooseVariableFieldBase & FEProblemBase::getActualFieldVariable ( const THREAD_ID  tid,
const std::string &  var_name 
)
overridevirtualinherited

Returns the variable reference for requested MooseVariableField which may be in any system.

Implements SubProblem.

Definition at line 6554 of file FEProblemBase.C.

6555{
6556 for (auto & sys : _solver_systems)
6557 if (sys->hasVariable(var_name))
6558 return sys->getActualFieldVariable<Real>(tid, var_name);
6559 if (_aux->hasVariable(var_name))
6560 return _aux->getActualFieldVariable<Real>(tid, var_name);
6561
6562 mooseError("Unknown variable " + var_name);
6563}
MooseVariableFieldBase & getActualFieldVariable(const THREAD_ID tid, const std::string &var_name) override
Returns the variable reference for requested MooseVariableField which may be in any system.

Referenced by MultiAppVariableValueSampleTransfer::execute().

◆ getArrayVariable()

ArrayMooseVariable & FEProblemBase::getArrayVariable ( const THREAD_ID  tid,
const std::string &  var_name 
)
overridevirtualinherited

Returns the variable reference for requested ArrayMooseVariable which may be in any system.

Implements SubProblem.

Definition at line 6578 of file FEProblemBase.C.

6579{
6580 for (auto & sys : _solver_systems)
6581 if (sys->hasVariable(var_name))
6582 return sys->getFieldVariable<RealEigenVector>(tid, var_name);
6583 if (_aux->hasVariable(var_name))
6584 return _aux->getFieldVariable<RealEigenVector>(tid, var_name);
6585
6586 mooseError("Unknown variable " + var_name);
6587}
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
Definition MooseTypes.h:147

Referenced by CoupleableMooseVariableDependencyIntermediateInterface::coupledArrayValueByName(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), and PointwiseRenormalizeVector::PointwiseRenormalizeVector().

◆ getAuxiliarySystem()

AuxiliarySystem & FEProblemBase::getAuxiliarySystem ( )
inlineinherited

Definition at line 1094 of file FEProblemBase.h.

1094{ return *_aux; }

Referenced by Adaptivity::adaptMesh(), DisplacedProblem::addTimeIntegrator(), ElementSubdomainModifierBase::applyIC(), TransientMultiApp::appTransferVector(), MooseMesh::cacheFaceInfoVariableOwnership(), MooseMesh::cacheFVElementalDoFs(), PNGOutput::calculateRescalingValues(), NonlinearSystemBase::computeJacobianInternal(), NonlinearSystemBase::computeNodalBCsJacobian(), NonlinearSystemBase::computeNodalBCsResidual(), NonlinearSystemBase::computeResidualTags(), NonlinearSystemBase::constraintResiduals(), DisplacedProblem::DisplacedProblem(), EigenExecutionerBase::EigenExecutionerBase(), FEProblemBase::execute(), ActivateElementsUserObjectBase::initSolutions(), EigenExecutionerBase::inversePowerIteration(), PNGOutput::makeMeshFunc(), MoveNodesByParsedExpressionModifier::MoveNodesByParsedExpressionModifier(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), ConsoleUtils::outputAuxiliarySystemInformation(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), BlockRestrictionDebugOutput::printBoundaryRestrictionGroups(), MultiApp::restore(), NonlinearSystemBase::setConstraintSecondaryValues(), TransientMultiApp::setupApp(), TransientMultiApp::solveStep(), AB2PredictorCorrector::step(), DisplacedProblem::syncSolutions(), Coupleable::writableCoupledValue(), and MoveNodesByParsedExpressionModifier::writeOutputs().

◆ getAxisymmetricRadialCoord()

unsigned int SubProblem::getAxisymmetricRadialCoord ( ) const
inherited

Returns the desired radial direction for RZ coordinate transformation.

Returns
The coordinate direction for the radial direction

Definition at line 785 of file SubProblem.C.

786{
788}
unsigned int getAxisymmetricRadialCoord() const
Returns the desired radial direction for RZ coordinate transformation.
Definition MooseMesh.C:4378

◆ getBase()

const std::string & MooseBase::getBase ( ) const
inlineinherited
Returns
The registered base for this object (set via InputParameters::registerBase())

Definition at line 147 of file MooseBase.h.

147{ return _pars.getBase(); }

Referenced by MooseBase::uniqueParameterName().

◆ getBndMaterialPropertyStorage()

const MaterialPropertyStorage & FEProblemBase::getBndMaterialPropertyStorage ( )
inlineinherited

Definition at line 2115 of file FEProblemBase.h.

2115{ return _bnd_material_props; }

◆ getCheckedPointerParam()

template<typename T >
T MooseBase::getCheckedPointerParam ( const std::string &  name,
const std::string &  error_string = "" 
) const
inherited

Verifies that the requested parameter exists and is not NULL and returns it to the caller.

The template parameter must be a pointer or an error will be thrown.

Definition at line 450 of file MooseBase.h.

451{
452 return _pars.getCheckedPointerParam<T>(name, error_string);
453}
T getCheckedPointerParam(const std::string &name, const std::string &error_string="") const
Verifies that the requested parameter exists and is not NULL and returns it to the caller.

◆ getConsumedPropertyMap()

const std::map< MooseObjectName, std::set< std::string > > & SubProblem::getConsumedPropertyMap ( ) const
inherited

Return the map that tracks the object with consumed material properties.

Definition at line 731 of file SubProblem.C.

732{
734}

Referenced by MaterialPropertyDebugOutput::output().

◆ getControlWarehouse()

ExecuteMooseObjectWarehouse< Control > & FEProblemBase::getControlWarehouse ( )
inlineinherited

Reference to the control logic warehouse.

Definition at line 2613 of file FEProblemBase.h.

2613{ return _control_warehouse; }

Referenced by LibtorchControlValuePostprocessor::initialSetup(), and LibtorchArtificialNeuralNetParameters::initialSetup().

◆ getConvergence()

Convergence & FEProblemBase::getConvergence ( const std::string &  name,
const THREAD_ID  tid = 0 
) const
virtualinherited

◆ getConvergenceObjects()

const std::vector< std::shared_ptr< Convergence > > & FEProblemBase::getConvergenceObjects ( const THREAD_ID  tid = 0) const
virtualinherited

Gets the Convergence objects.

Definition at line 2845 of file FEProblemBase.C.

2846{
2847 return _convergences.getActiveObjects(tid);
2848}

◆ getCoordSystem()

Moose::CoordinateSystemType SubProblem::getCoordSystem ( SubdomainID  sid) const
inherited

Definition at line 1287 of file SubProblem.C.

1288{
1289 return mesh().getCoordSystem(sid);
1290}
Moose::CoordinateSystemType getCoordSystem(SubdomainID sid) const
Get the coordinate system type, e.g.
Definition MooseMesh.C:4259

Referenced by BlockRestrictable::getBlockCoordSystem(), MultiApp::getBoundingBox(), Assembly::reinitLowerDElem(), Assembly::reinitNeighborLowerDElem(), and Assembly::setCoordinateTransformation().

◆ getCurrentAlgebraicBndNodeRange()

const ConstBndNodeRange & FEProblemBase::getCurrentAlgebraicBndNodeRange ( )
inherited

◆ getCurrentAlgebraicElementRange()

const ConstElemRange & FEProblemBase::getCurrentAlgebraicElementRange ( )
inherited

These are the element and nodes that contribute to the jacobian and residual for this local processor.

getCurrentAlgebraicElementRange() returns the element range that contributes to the system getCurrentAlgebraicNodeRange() returns the node range that contributes to the system getCurrentAlgebraicBndNodeRange returns the boundary node ranges that contributes to the system

Definition at line 10367 of file FEProblemBase.C.

10368{
10371
10373}
std::unique_ptr< libMesh::ConstElemRange > _current_algebraic_elem_range
const libMesh::ConstElemRange * getActiveLocalElementRange()
Return pointers to range objects for various types of ranges (local nodes, boundary elems,...
Definition MooseMesh.C:1247

Referenced by NonlinearSystemBase::computeDamping(), FEProblemBase::computeIndicators(), NonlinearSystemBase::computeJacobianBlocks(), NonlinearSystemBase::computeJacobianInternal(), FEProblemBase::computeMarkers(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), NonlinearSystemBase::computeScaling(), FEProblemBase::computeUserObjectsInternal(), FEProblemBase::initialSetup(), FEProblemBase::projectSolution(), and FEProblemBase::updateMaxQps().

◆ getCurrentAlgebraicNodeRange()

const ConstNodeRange & FEProblemBase::getCurrentAlgebraicNodeRange ( )
inherited

◆ getCurrentExecuteOnFlag()

const ExecFlagType & FEProblemBase::getCurrentExecuteOnFlag ( ) const
inherited

Return/set the current execution flag.

Returns EXEC_NONE when not being executed.

See also
FEProblemBase::execute

Definition at line 5138 of file FEProblemBase.C.

5139{
5141}

Referenced by MultiAppGeneralFieldTransfer::acceptPointInOriginMesh(), MultiAppTransfer::checkParentAppUserObjectExecuteOn(), MultiAppGeneralFieldTransfer::closestToPosition(), MultiAppGeneralFieldKDTreeTransferBase::computeNumSources(), NearestPositionsDivision::divisionIndex(), CartesianGridDivision::divisionIndex(), CylindricalGridDivision::divisionIndex(), NearestPositionsDivision::divisionIndex(), SphericalGridDivision::divisionIndex(), PIDTransientControl::execute(), Terminator::execute(), PositionsFunctorValueSampler::execute(), Control::getControllableParameterByName(), Material::getMaterialByName(), MultiAppGeneralFieldKDTreeTransferBase::getNumDivisions(), NumPositions::getValue(), DistributedPositions::initialize(), ParsedDownSelectionPositions::initialize(), TransformedPositions::initialize(), PositionsFunctorValueSampler::initialize(), MultiAppGeneralFieldTransfer::locatePointReceivers(), ComputeUserObjectsThread::printBlockExecutionInformation(), ComputeFVInitialConditionThread::printGeneralExecutionInformation(), ComputeInitialConditionThread::printGeneralExecutionInformation(), ComputeLinearFVElementalThread::printGeneralExecutionInformation(), ComputeLinearFVFaceThread::printGeneralExecutionInformation(), ComputeDiracThread::printGeneralExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeIndicatorThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), ComputeNodalDampingThread::printGeneralExecutionInformation(), ComputeNodalKernelBCJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelBcsThread::printGeneralExecutionInformation(), ComputeNodalKernelJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelsThread::printGeneralExecutionInformation(), ComputeNodalUserObjectsThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), ComputeThreadedGeneralUserObjectsThread::printGeneralExecutionInformation(), MultiApp::restore(), SolutionInvalidityOutput::shouldOutput(), ElementReporter::shouldStore(), GeneralReporter::shouldStore(), and NodalReporter::shouldStore().

◆ getCurrentICState()

unsigned short FEProblemBase::getCurrentICState ( )
inherited

Retrieves the current initial condition state.

Returns
current initial condition state

Definition at line 10426 of file FEProblemBase.C.

10427{
10428 return _current_ic_state;
10429}
unsigned short _current_ic_state

Referenced by ComputeInitialConditionThread::operator()().

◆ getDataFileName()

std::string DataFileInterface::getDataFileName ( const std::string &  param) const
inherited

Deprecated method.

The data file paths are now automatically set within the InputParameters object, so using getParam<DataFileName>("param_name") is now sufficient.

Definition at line 21 of file DataFileInterface.C.

22{
23 _parent.mooseDeprecated("getDataFileName() is deprecated. The file path is now directly set "
24 "within the InputParameters.\nUse getParam<DataFileName>(\"",
25 param,
26 "\") instead.");
27 return _parent.getParam<DataFileName>(param);
28}
const ParallelParamObject & _parent
void mooseDeprecated(Args &&... args) const
Emits a deprecation warning prefixed with the object name and type, and a stack trace.
Definition MooseBase.h:317

◆ getDataFileNameByName()

std::string DataFileInterface::getDataFileNameByName ( const std::string &  relative_path) const
inherited

Deprecated method.

Use getDataFilePath() instead.

Definition at line 31 of file DataFileInterface.C.

32{
33 _parent.mooseDeprecated("getDataFileNameByName() is deprecated. Use getDataFilePath(\"",
34 relative_path,
35 "\") instead.");
36 return getDataFilePath(relative_path);
37}
std::string getDataFilePath(const std::string &relative_path) const
Returns the path of a data file for a given relative file path.

◆ getDataFilePath()

std::string DataFileInterface::getDataFilePath ( const std::string &  relative_path) const
inherited

Returns the path of a data file for a given relative file path.

This can be used for hardcoded datafile names and will search the same locations as getDataFileName

Definition at line 40 of file DataFileInterface.C.

41{
42 // This should only ever be used with relative paths. There is no point to
43 // use this search path with an absolute path.
44 if (std::filesystem::path(relative_path).is_absolute())
45 _parent.mooseWarning("While using getDataFilePath(\"",
46 relative_path,
47 "\"): This API should not be used for absolute paths.");
48
49 // This will search the data paths for this relative path
50 std::optional<std::string> error;
52 {
53 // Throw on error so that if getPath() fails, we can throw an error
54 // with the context of _parent.mooseError()
55 Moose::ScopedThrowOnError scoped_throw_on_error;
56
57 try
58 {
59 found_path = Moose::DataFileUtils::getPath(relative_path);
60 }
61 catch (std::exception & e)
62 {
63 error = e.what();
64 }
65 }
66
67 if (error)
68 _parent.mooseError(*error);
69
70 mooseAssert(found_path.context == Moose::DataFileUtils::Context::DATA,
71 "Should only ever obtain data");
72 mooseAssert(found_path.data_name, "Should be set");
73
74 const std::string msg =
75 "Using data file '" + found_path.path + "' from " + *found_path.data_name + " data";
76 _parent.mooseInfo(msg);
77
78 return found_path.path;
79}
void mooseWarning(Args &&... args) const
Emits a warning prefixed with object name and type.
Definition MooseBase.h:299
void mooseInfo(Args &&... args) const
Definition MooseBase.h:334
Scoped helper for setting Moose::_throw_on_error during this scope.
Definition Moose.h:308
@ DATA
From installed/in-tree data.
Path getPath(std::string path, const GetPathOptions &options={})
Get the data path for a given path, searching the registered data.
Representation of a data file path.
std::optional< std::string > data_name
The name of the data registry the file came from (with context == DATA)
Context context
Context for the file (where it came from)

Referenced by DataFileInterface::getDataFileNameByName().

◆ getDiracElements()

void FEProblemBase::getDiracElements ( std::set< const Elem * > &  elems)
overridevirtualinherited

Fills "elems" with the elements that should be looped over for Dirac Kernels.

Implements SubProblem.

Definition at line 2648 of file FEProblemBase.C.

2649{
2650 // First add in the undisplaced elements
2652
2654 {
2655 std::set<const Elem *> displaced_elements;
2656 _displaced_problem->getDiracElements(displaced_elements);
2657
2658 { // Use the ids from the displaced elements to get the undisplaced elements
2659 // and add them to the list
2660 for (const auto & elem : displaced_elements)
2661 elems.insert(_mesh.elemPtr(elem->id()));
2662 }
2663 }
2664}
std::set< const Elem * > & getElements()
Returns a writeable reference to the _elements container.

Referenced by NonlinearSystemBase::computeDiracContributions().

◆ getDiscreteMaterialWarehouse()

const MaterialWarehouse & FEProblemBase::getDiscreteMaterialWarehouse ( ) const
inlineinherited

Definition at line 2371 of file FEProblemBase.h.

2371{ return _discrete_materials; }

◆ getDisplacedProblem() [1/2]

virtual std::shared_ptr< DisplacedProblem > FEProblemBase::getDisplacedProblem ( )
inlinevirtualinherited

Definition at line 2049 of file FEProblemBase.h.

2049{ return _displaced_problem; }

◆ getDisplacedProblem() [2/2]

virtual std::shared_ptr< const DisplacedProblem > FEProblemBase::getDisplacedProblem ( ) const
inlinevirtualinherited

◆ getDistribution()

Distribution & FEProblemBase::getDistribution ( const std::string &  name)
virtualinherited

Definition at line 2917 of file FEProblemBase.C.

2918{
2919 std::vector<Distribution *> objs;
2920 theWarehouse()
2921 .query()
2922 .condition<AttribSystem>("Distribution")
2923 .condition<AttribName>(name)
2924 .queryInto(objs);
2925 if (objs.empty())
2926 {
2927 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_distribution"),
2928 "A Distribution getter was called before Distributions have been constructed. "
2929 "If you are attempting to access this object in the constructor of another object "
2930 "then make sure that the Distribution is constructed before the object using it.");
2931 mooseError("Unable to find Distribution with name '" + name + "'");
2932 }
2933 return *(objs[0]);
2934}

Referenced by MooseServer::buildDistPlotResponses(), DistributionInterface::getDistribution(), and DistributionInterface::getDistributionByName().

◆ getEvaluableElementRange()

const ConstElemRange & FEProblemBase::getEvaluableElementRange ( )
inherited

In general, {evaluable elements} >= {local elements} U {algebraic ghosting elements}.

That is, the number of evaluable elements does NOT necessarily equal to the number of local and algebraic ghosting elements. For example, if using a Lagrange basis for all variables, if a non-local, non-algebraically-ghosted element is surrounded by neighbors which are local or algebraically ghosted, then all the nodal (Lagrange) degrees of freedom associated with the non-local, non-algebraically-ghosted element will be evaluable, and hence that element will be considered evaluable.

getNonlinearEvaluableElementRange() returns the evaluable element range based on the nonlinear system dofmap; getAuxliaryEvaluableElementRange() returns the evaluable element range based on the auxiliary system dofmap; getEvaluableElementRange() returns the element range that is evaluable based on both the nonlinear dofmap and the auxliary dofmap.

Definition at line 909 of file FEProblemBase.C.

910{
912 {
913 std::vector<const DofMap *> dof_maps(es().n_systems());
914 for (const auto i : make_range(es().n_systems()))
915 {
916 const auto & sys = es().get_system(i);
917 dof_maps[i] = &sys.get_dof_map();
918 }
920 std::make_unique<ConstElemRange>(_mesh.getMesh().multi_evaluable_elements_begin(dof_maps),
921 _mesh.getMesh().multi_evaluable_elements_end(dof_maps));
922 }
924}
virtual libMesh::EquationSystems & es() override
std::unique_ptr< libMesh::ConstElemRange > _evaluable_local_elem_range
const T_sys & get_system(std::string_view name) const

Referenced by NodalPatchRecoveryBase::gatherRequestList().

◆ getExecutor()

virtual Executor & FEProblemBase::getExecutor ( const std::string &  name)
inlinevirtualinherited

Definition at line 2503 of file FEProblemBase.h.

2503{ return _app.getExecutor(name); }
Executor * getExecutor() const
Definition MooseApp.h:341

◆ getFailNextNonlinearConvergenceCheck()

bool FEProblemBase::getFailNextNonlinearConvergenceCheck ( ) const
inlineinherited

Whether it will skip further residual evaluations and fail the next nonlinear convergence check(s)

Definition at line 2962 of file FEProblemBase.h.

bool getFailNextSystemConvergenceCheck() const
Whether it will fail the next system convergence check(s), triggering failed step behavior.

Referenced by NonlinearSystemBase::computeScaling(), NonlinearSystem::converged(), Moose::PetscSupport::petscNonlinearConverged(), and ComputeResidualFunctor::residual().

◆ getFailNextSystemConvergenceCheck()

bool FEProblemBase::getFailNextSystemConvergenceCheck ( ) const
inlineinherited

Whether it will fail the next system convergence check(s), triggering failed step behavior.

Definition at line 2964 of file FEProblemBase.h.

Referenced by FEProblemBase::getFailNextNonlinearConvergenceCheck(), and Moose::PetscSupport::petscLinearConverged().

◆ getFunction()

Function & FEProblemBase::getFunction ( const std::string &  name,
const THREAD_ID  tid = 0 
)
virtualinherited

Definition at line 2777 of file FEProblemBase.C.

2778{
2779 // This thread lock is necessary since this method will create functions
2780 // for all threads if one is missing.
2781 Threads::spin_mutex::scoped_lock lock(get_function_mutex);
2782
2783 if (!hasFunction(name, tid))
2784 {
2785 // If we didn't find a function, it might be a default function, attempt to construct one now
2786 std::istringstream ss(name);
2787 Real real_value;
2788
2789 // First see if it's just a constant. If it is, build a ConstantFunction
2790 if (ss >> real_value && ss.eof())
2791 {
2792 InputParameters params = _factory.getValidParams("ConstantFunction");
2793 params.set<Real>("value") = real_value;
2794 addFunction("ConstantFunction", ss.str(), params);
2795 }
2796 else
2797 {
2799 std::string vars = "x,y,z,t,NaN,pi,e";
2800 if (fp.Parse(name, vars) == -1) // -1 for success
2801 {
2802 // It parsed ok, so build a MooseParsedFunction
2803 InputParameters params = _factory.getValidParams("ParsedFunction");
2804 params.set<std::string>("expression") = name;
2805 addFunction("ParsedFunction", name, params);
2806 }
2807 }
2808
2809 // Try once more
2810 if (!hasFunction(name, tid))
2811 {
2812 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_function"),
2813 "getFunction() was called before Functions have been constructed. The requested "
2814 "Function '" +
2815 name + "' may exist in the input file, but Functions are not available yet.");
2816
2817 mooseError("Unable to find function " + name);
2818 }
2819 }
2820
2821 auto * const ret = dynamic_cast<Function *>(_functions.getActiveObject(name, tid).get());
2822 if (!ret)
2823 mooseError("No function named ", name, " of appropriate type");
2824
2825 return *ret;
2826}
Threads::spin_mutex get_function_mutex
char ** vars
virtual void addFunction(const std::string &type, const std::string &name, InputParameters &parameters)
virtual bool hasFunction(const std::string &name, const THREAD_ID tid=0)

Referenced by MFEMProblem::addFunction(), MooseServer::buildFuncPlotResponse(), FunctionInterface::getFunctionByName(), FunctionPeriodicBoundary::getFunctions(), IterationAdaptiveDT::init(), MooseParsedFunctionWrapper::initialize(), ChainControlParsedFunctionWrapper::initializeFunctionInputs(), and ParsedConvergence::initializeFunctionSymbol().

◆ getFunctionWarehouse()

const MooseObjectWarehouse< Function > & FEProblemBase::getFunctionWarehouse ( )
inlineinherited

Definition at line 2360 of file FEProblemBase.h.

2360{ return _functions; }

◆ getFunctor()

template<typename T >
const Moose::Functor< T > & SubProblem::getFunctor ( const std::string &  name,
const THREAD_ID  tid,
const std::string &  requestor_name,
bool  requestor_is_ad 
)
inherited
Template Parameters
TThe type that the functor will return when evaluated, e.g. ADReal or Real
Parameters
nameThe name of the functor to retrieve
tidThe thread ID that we are retrieving the functor property for
requestor_nameThe name of the object that is requesting this functor property
requestor_is_adWhether the requesting object is an AD object
Returns
a constant reference to the functor

Definition at line 1213 of file SubProblem.h.

1217{
1218 mooseAssert(tid < _functors.size(), "Too large a thread ID");
1219
1220 // Log the requestor
1221 _functor_to_requestors["wraps_" + name].insert(requestor_name);
1222
1223 constexpr bool requested_functor_is_ad =
1224 !std::is_same<T, typename MetaPhysicL::RawType<T>::value_type>::value;
1225
1226 auto & functor_to_request_info = _functor_to_request_info[tid];
1227
1228 // Get the requested functor if we already have it
1229 auto & functors = _functors[tid];
1230 if (auto find_ret = functors.find("wraps_" + name); find_ret != functors.end())
1231 {
1232 if (functors.count("wraps_" + name) > 1)
1233 mooseError("Attempted to get a functor with the name '",
1234 name,
1235 "' but multiple (" + std::to_string(functors.count("wraps_" + name)) +
1236 ") functors match. Make sure that you do not have functor material "
1237 "properties, functions, postprocessors or variables with the same names.");
1238
1239 auto & [true_functor_is, non_ad_functor, ad_functor] = find_ret->second;
1240 auto & functor_wrapper = requested_functor_is_ad ? *ad_functor : *non_ad_functor;
1241
1242 auto * const functor = dynamic_cast<Moose::Functor<T> *>(&functor_wrapper);
1243 if (!functor)
1244 mooseError("A call to SubProblem::getFunctor requested a functor named '",
1245 name,
1246 "' that returns the type: '",
1247 libMesh::demangle(typeid(T).name()),
1248 "'. However, that functor already exists and returns a different type: '",
1249 functor_wrapper.returnType(),
1250 "'");
1251
1252 if (functor->template wrapsType<Moose::NullFunctor<T>>())
1253 // Store for future checking when the actual functor gets added
1254 functor_to_request_info.emplace(name,
1255 std::make_pair(requested_functor_is_ad, requestor_is_ad));
1256 else
1257 {
1258 // We already have the actual functor
1259 if (true_functor_is == SubProblem::TrueFunctorIs::UNSET)
1260 mooseError("We already have the functor; it should not be unset");
1261
1262 // Check for whether this is a valid request
1263 // We allow auxiliary variables and linear variables to be retrieved as non AD
1264 if (!requested_functor_is_ad && requestor_is_ad &&
1265 true_functor_is == SubProblem::TrueFunctorIs::AD &&
1267 mooseError("The AD object '",
1268 requestor_name,
1269 "' is requesting the functor '",
1270 name,
1271 "' as a non-AD functor even though it is truly an AD functor, which is not "
1272 "allowed, since this may unintentionally drop derivatives.");
1273 }
1274
1275 return *functor;
1276 }
1277
1278 // We don't have the functor yet but we could have it in the future. We'll create null functors
1279 // for now
1280 functor_to_request_info.emplace(name, std::make_pair(requested_functor_is_ad, requestor_is_ad));
1281 if constexpr (requested_functor_is_ad)
1282 {
1283 typedef typename MetaPhysicL::RawType<T>::value_type NonADType;
1284 typedef T ADType;
1285
1286 auto emplace_ret =
1287 functors.emplace("wraps_" + name,
1288 std::make_tuple(SubProblem::TrueFunctorIs::UNSET,
1289 std::make_unique<Moose::Functor<NonADType>>(
1290 std::make_unique<Moose::NullFunctor<NonADType>>()),
1291 std::make_unique<Moose::Functor<ADType>>(
1292 std::make_unique<Moose::NullFunctor<ADType>>())));
1293
1294 return cast_ref<Moose::Functor<T> &>(*(requested_functor_is_ad
1295 ? std::get<2>(emplace_ret->second)
1296 : std::get<1>(emplace_ret->second)));
1297 }
1298 else
1299 {
1300 typedef T NonADType;
1301 typedef typename Moose::ADType<T>::type ADType;
1302
1303 auto emplace_ret =
1304 functors.emplace("wraps_" + name,
1305 std::make_tuple(SubProblem::TrueFunctorIs::UNSET,
1306 std::make_unique<Moose::Functor<NonADType>>(
1307 std::make_unique<Moose::NullFunctor<NonADType>>()),
1308 std::make_unique<Moose::Functor<ADType>>(
1309 std::make_unique<Moose::NullFunctor<ADType>>())));
1310
1311 return cast_ref<Moose::Functor<T> &>(*(requested_functor_is_ad
1312 ? std::get<2>(emplace_ret->second)
1313 : std::get<1>(emplace_ret->second)));
1314 }
1315}
virtual bool hasLinearVariable(const std::string &var_name) const
Whether or not this problem has this linear variable.
Definition SubProblem.C:791
std::map< std::string, std::set< std::string > > _functor_to_requestors
The requestors of functors where the key is the prop name and the value is a set of names of requesto...
virtual bool hasAuxiliaryVariable(const std::string &var_name) const
Whether or not this problem has this auxiliary variable.
Definition SubProblem.C:800
std::string demangle(const char *name)

Referenced by FunctorInterface::getFunctorByName().

◆ getFVAdvectedInterpolationMethod()

const FVAdvectedInterpolationMethod & FEProblemBase::getFVAdvectedInterpolationMethod ( const InterpolationMethodName &  name,
const THREAD_ID  tid = 0 
) const
inherited

Retrieve an advected interpolation method.

Parameters
nameThe name of the method.
tidThe thread ID.

Definition at line 4918 of file FEProblemBase.C.

4920{
4921 const auto & method = getFVInterpolationMethod(name, tid);
4922 const auto * advected_method = dynamic_cast<const FVAdvectedInterpolationMethod *>(&method);
4923
4924 if (!advected_method)
4925 mooseError("FVInterpolationMethod '",
4926 name,
4927 "' (",
4928 method.type(),
4929 ") is not an advected interpolation method.");
4930
4931 return *advected_method;
4932}
const FVInterpolationMethod & getFVInterpolationMethod(const InterpolationMethodName &name, const THREAD_ID tid=0) const
Retrieve an FV interpolation method.
Interface for interpolation methods that provide matrix and RHS contributions for advected face value...

Referenced by FVInterpolationMethodInterface::getFVAdvectedInterpolationMethod().

◆ getFVFaceInterpolationMethod()

const FVFaceInterpolationMethod & FEProblemBase::getFVFaceInterpolationMethod ( const InterpolationMethodName &  name,
const THREAD_ID  tid = 0 
) const
inherited

Retrieve a scalar face interpolation method.

Parameters
nameThe name of the method.
tidThe thread ID.

Definition at line 4901 of file FEProblemBase.C.

4903{
4904 const auto & method = getFVInterpolationMethod(name, tid);
4905 const auto * face_method = dynamic_cast<const FVFaceInterpolationMethod *>(&method);
4906
4907 if (!face_method)
4908 mooseError("FVInterpolationMethod '",
4909 name,
4910 "' (",
4911 method.type(),
4912 ") is not a scalar face interpolation method.");
4913
4914 return *face_method;
4915}
Abstract base class for interpolation methods that produce a scalar face value from adjacent cell val...

Referenced by FVInterpolationMethodInterface::getFVFaceInterpolationMethod().

◆ getFVGradientMethod()

const FVGradientMethod & FEProblemBase::getFVGradientMethod ( const GradientMethodName &  name,
const THREAD_ID  tid = 0 
) const
inherited

Retrieve an FV gradient method.

Parameters
nameThe name of the method.
tidThe thread ID.

Definition at line 4843 of file FEProblemBase.C.

4844{
4845 std::vector<FVGradientMethod *> methods;
4846 theWarehouse()
4847 .query()
4848 .condition<AttribSystem>("FVGradientMethod")
4849 .condition<AttribThread>(tid)
4850 .condition<AttribName>(name)
4851 .queryInto(methods);
4852
4853 if (methods.empty())
4854 mooseError("Unable to find FVGradientMethod with name '", name, "'");
4855
4856 mooseAssert(methods.size() == 1, "Expected a single FVGradientMethod per thread");
4857 return *(methods[0]);
4858}

◆ getFVInitialConditionWarehouse()

const FVInitialConditionWarehouse & FEProblemBase::getFVInitialConditionWarehouse ( ) const
inlineinherited

◆ getFVInterpolationMethod()

const FVInterpolationMethod & FEProblemBase::getFVInterpolationMethod ( const InterpolationMethodName &  name,
const THREAD_ID  tid = 0 
) const
inherited

Retrieve an FV interpolation method.

Parameters
nameThe name of the method.
tidThe thread ID.

Definition at line 4874 of file FEProblemBase.C.

4876{
4877 std::vector<FVInterpolationMethod *> methods;
4878 theWarehouse()
4879 .query()
4880 .condition<AttribSystem>("FVInterpolationMethod")
4881 .condition<AttribThread>(tid)
4882 .condition<AttribName>(name)
4883 .queryInto(methods);
4884
4885 if (methods.empty())
4886 {
4887 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_interpolation_method"),
4888 "An FVInterpolationMethod getter was called before FVInterpolationMethods have "
4889 "been constructed. If you are attempting to access this object in the constructor "
4890 "of another object then make sure that the FVInterpolationMethod is constructed "
4891 "before the object using it.");
4892
4893 mooseError("Unable to find FVInterpolationMethod with name '", name, "'");
4894 }
4895
4896 mooseAssert(methods.size() == 1, "Expected a single FVInterpolationMethod per thread");
4897 return *(methods[0]);
4898}

Referenced by FEProblemBase::getFVAdvectedInterpolationMethod(), and FEProblemBase::getFVFaceInterpolationMethod().

◆ getFVMatsAndDependencies()

void FEProblemBase::getFVMatsAndDependencies ( SubdomainID  block_id,
std::vector< std::shared_ptr< MaterialBase > > &  face_materials,
std::vector< std::shared_ptr< MaterialBase > > &  neighbor_materials,
std::set< MooseVariableFieldBase * > &  variables,
const THREAD_ID  tid 
)
inherited

Get the materials and variables potentially needed for FV.

Parameters
block_idSubdomainID The subdomain id that we want to retrieve materials for
face_materialsThe face materials container that we will fill
neighbor_materialsThe neighbor materials container that we will fill
variablesThe variables container that we will fill that our materials depend on
tidThe thread id

Definition at line 10058 of file FEProblemBase.C.

10064{
10065 if (_materials[Moose::FACE_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
10066 {
10067 auto & this_face_mats =
10069 for (std::shared_ptr<MaterialBase> face_mat : this_face_mats)
10070 if (face_mat->ghostable())
10071 {
10072 face_materials.push_back(face_mat);
10073 auto & var_deps = face_mat->getMooseVariableDependencies();
10074 for (auto * var : var_deps)
10075 {
10076 if (!var->isFV())
10077 mooseError(
10078 "Ghostable materials should only have finite volume variables coupled into them.");
10079 else if (face_mat->hasStatefulProperties())
10080 mooseError("Finite volume materials do not currently support stateful properties.");
10081 variables.insert(var);
10082 }
10083 }
10084 }
10085
10086 if (_materials[Moose::NEIGHBOR_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
10087 {
10088 auto & this_neighbor_mats =
10090 for (std::shared_ptr<MaterialBase> neighbor_mat : this_neighbor_mats)
10091 if (neighbor_mat->ghostable())
10092 {
10093 neighbor_materials.push_back(neighbor_mat);
10094#ifndef NDEBUG
10095 auto & var_deps = neighbor_mat->getMooseVariableDependencies();
10096 for (auto * var : var_deps)
10097 {
10098 if (!var->isFV())
10099 mooseError(
10100 "Ghostable materials should only have finite volume variables coupled into them.");
10101 else if (neighbor_mat->hasStatefulProperties())
10102 mooseError("Finite volume materials do not currently support stateful properties.");
10103 auto pr = variables.insert(var);
10104 mooseAssert(!pr.second,
10105 "We should not have inserted any new variables dependencies from our "
10106 "neighbor materials that didn't exist for our face materials");
10107 }
10108#endif
10109 }
10110 }
10111}

◆ getHitNode() [1/2]

const hit::Node * MooseBase::getHitNode ( ) const
inlineinherited
Returns
The block-level hit node for this object, if any

Definition at line 136 of file MooseBase.h.

136{ return getHitNode(_pars); }

Referenced by MooseBase::callMooseError(), MooseBase::getHitNode(), and MooseBase::messagePrefix().

◆ getHitNode() [2/2]

const hit::Node * MooseBase::getHitNode ( const InputParameters &  params)
staticprivateinherited

Internal method for getting a hit node (if available) given a set of parameters.

Needs to be static so that we can call it externally from InputParameters for errors that do not have context of the MooseBase

Definition at line 167 of file MooseBase.C.

168{
169 if (const auto hit_node = params.getHitNode())
170 if (!hit_node->isRoot())
171 return hit_node;
172 return nullptr;
173}

◆ getIndicatorWarehouse()

const MooseObjectWarehouse< Indicator > & FEProblemBase::getIndicatorWarehouse ( )
inlineinherited

Return indicator/marker storage.

Definition at line 2141 of file FEProblemBase.h.

2141{ return _indicators; }

◆ getInitialConditionWarehouse()

const InitialConditionWarehouse & FEProblemBase::getInitialConditionWarehouse ( ) const
inlineinherited

◆ getInterfaceMaterialsWarehouse()

const MaterialWarehouse & FEProblemBase::getInterfaceMaterialsWarehouse ( ) const
inlineinherited

◆ getInternalSideIndicatorWarehouse()

const MooseObjectWarehouse< InternalSideIndicatorBase > & FEProblemBase::getInternalSideIndicatorWarehouse ( )
inlineinherited

Definition at line 2142 of file FEProblemBase.h.

2143 {
2145 }

◆ getKokkosBndMaterialPropertyStorage()

Moose::Kokkos::MaterialPropertyStorage & FEProblemBase::getKokkosBndMaterialPropertyStorage ( )
inlineinherited

Definition at line 2126 of file FEProblemBase.h.

2127 {
2129 }
Moose::Kokkos::MaterialPropertyStorage & _kokkos_bnd_material_props

◆ getKokkosFESystem() [1/2]

Moose::Kokkos::FESystem & FEProblemBase::getKokkosFESystem ( const unsigned int  sys_num)
inherited

Get the Kokkos FESystem of a specified number.

Parameters
sys_numThe system number
Returns
The Kokkos FESystem

◆ getKokkosFESystem() [2/2]

const Moose::Kokkos::FESystem & FEProblemBase::getKokkosFESystem ( const unsigned int  sys_num) const
inherited

◆ getKokkosFESystems() [1/2]

Moose::Kokkos::Array< Moose::Kokkos::FESystem > & FEProblemBase::getKokkosFESystems ( )
inlineinherited

Get the Kokkos FESystem array (populated only when FE Kokkos objects exist)

Returns
The array of Kokkos FESystem objects

Definition at line 904 of file FEProblemBase.h.

905 {
906 return _kokkos_fe_systems;
907 }
Moose::Kokkos::Array< Moose::Kokkos::FESystem > _kokkos_fe_systems
FESystem array - sparsely populated (only slots for systems needing a Kokkos::FESystem)

◆ getKokkosFESystems() [2/2]

const Moose::Kokkos::Array< Moose::Kokkos::FESystem > & FEProblemBase::getKokkosFESystems ( ) const
inlineinherited

Definition at line 908 of file FEProblemBase.h.

909 {
910 return _kokkos_fe_systems;
911 }

◆ getKokkosFunction() [1/2]

virtual Moose::Kokkos::Function FEProblemBase::getKokkosFunction ( const std::string &  name)
virtualinherited

Get a Kokkos function in an abstract type.

Parameters
nameThe Kokkos function name
Returns
The copy of the Kokkos function in the abstract type

◆ getKokkosFunction() [2/2]

template<typename T >
T & FEProblemBase::getKokkosFunction ( const std::string &  name)
inherited

Get a Kokkos function in a concrete type.

Template Parameters
TThe Kokkos function type
Parameters
nameThe Kokkos function name
Returns
The reference of the Kokkos function in the concrete type

Definition at line 3964 of file FEProblemBase.h.

3965{
3966 if (!hasKokkosFunction(name))
3967 {
3968 // If we didn't find a function, it might be a default function, attempt to construct one now
3969 std::istringstream ss(name);
3970 Real real_value;
3971
3972 // First see if it's just a constant. If it is, build a ConstantFunction
3973 if (ss >> real_value && ss.eof())
3974 {
3975 InputParameters params = _factory.getValidParams("KokkosConstantFunction");
3976 params.set<Real>("value") = real_value;
3977 addKokkosFunction("KokkosConstantFunction", ss.str(), params);
3978 }
3979
3980 // Try once more
3981 if (!hasKokkosFunction(name))
3982 mooseError("Unable to find Kokkos function '" + name, "'");
3983 }
3984
3985 auto * const ret = dynamic_cast<T *>(_kokkos_functions.getActiveObject(name).get());
3986 if (!ret)
3987 mooseError("No Kokkos function named '", name, "' of appropriate type");
3988
3989 return *ret;
3990}
virtual bool hasKokkosFunction(const std::string &name) const
Get whether a Kokkos function exists.
virtual void addKokkosFunction(const std::string &type, const std::string &name, InputParameters &parameters)
Add a Kokkos function to the problem.

◆ getKokkosMaterialData()

MaterialData & FEProblemBase::getKokkosMaterialData ( Moose::MaterialDataType  type,
const MooseObject *  object = nullptr 
) const
inherited
Returns
The Kokkos MaterialData for the type type for thread tid

Referenced by BlockRestrictable::initializeBlockRestrictable().

◆ getKokkosMaterialPropertyStorage()

Moose::Kokkos::MaterialPropertyStorage & FEProblemBase::getKokkosMaterialPropertyStorage ( )
inlineinherited

Definition at line 2122 of file FEProblemBase.h.

2123 {
2125 }
Moose::Kokkos::MaterialPropertyStorage & _kokkos_material_props

◆ getKokkosMaterialPropertyStorageConsumers()

const std::set< const MooseObject * > & FEProblemBase::getKokkosMaterialPropertyStorageConsumers ( Moose::MaterialDataType  type) const
inherited
Returns
The consumers of the Kokkos MaterialPropertyStorage for the type type

◆ getKokkosMaterialsWarehouse()

const MaterialWarehouse & FEProblemBase::getKokkosMaterialsWarehouse ( ) const
inlineinherited

Definition at line 2378 of file FEProblemBase.h.

2378{ return _kokkos_materials; }
MaterialWarehouse _kokkos_materials

◆ getKokkosNeighborMaterialPropertyStorage()

Moose::Kokkos::MaterialPropertyStorage & FEProblemBase::getKokkosNeighborMaterialPropertyStorage ( )
inlineinherited

Definition at line 2130 of file FEProblemBase.h.

2131 {
2133 }
Moose::Kokkos::MaterialPropertyStorage & _kokkos_neighbor_material_props

◆ getKokkosSystem() [1/2]

Moose::Kokkos::System & FEProblemBase::getKokkosSystem ( const unsigned int  sys_num)
inherited

Get the Kokkos System of a specified number.

Parameters
sys_numThe system number
Returns
The Kokkos System

◆ getKokkosSystem() [2/2]

const Moose::Kokkos::System & FEProblemBase::getKokkosSystem ( const unsigned int  sys_num) const
inherited

◆ getKokkosSystems() [1/2]

Moose::Kokkos::Array< Moose::Kokkos::System > & FEProblemBase::getKokkosSystems ( )
inlineinherited

Get the Kokkos System array (always populated when any Kokkos object exists)

Returns
The array of Kokkos System objects

Definition at line 892 of file FEProblemBase.h.

892{ return _kokkos_systems; }
Moose::Kokkos::Array< Moose::Kokkos::System > _kokkos_systems
System array - sparsely populated (only slots for systems needing a Kokkos::System)

◆ getKokkosSystems() [2/2]

const Moose::Kokkos::Array< Moose::Kokkos::System > & FEProblemBase::getKokkosSystems ( ) const
inlineinherited

Definition at line 893 of file FEProblemBase.h.

894 {
895 return _kokkos_systems;
896 }

◆ getKokkosUserObject()

template<class T >
const T & FEProblemBase::getKokkosUserObject ( const std::string &  name) const
inlineinherited

Get the Kokkos user object by its name.

Parameters
nameThe name of the Kokkos user object being retrieved
Returns
const reference to the Kokkos user object

Definition at line 1461 of file FEProblemBase.h.

1462 {
1463 std::vector<T *> objs;
1464 theWarehouse()
1465 .query()
1466 .condition<AttribSystem>("KokkosUserObject")
1467 .condition<AttribName>(name)
1468 .queryInto(objs);
1469 if (objs.empty())
1470 mooseError("Unable to find Kokkos user object with name '" + name + "'");
1471 return *(objs[0]);
1472 }

Referenced by UserObjectInterface::getUserObjectFromFEProblem().

◆ getLinearConvergenceNames()

const std::vector< ConvergenceName > & FEProblemBase::getLinearConvergenceNames ( ) const
inherited

Gets the linear convergence object name(s).

Definition at line 10171 of file FEProblemBase.C.

10172{
10175 mooseError("The linear convergence name(s) have not been set.");
10176}
std::optional< std::vector< ConvergenceName > > _linear_convergence_names
Linear system(s) convergence name(s) (if any)

Referenced by Moose::PetscSupport::petscLinearConverged().

◆ getLinearSystem() [1/2]

LinearSystem & FEProblemBase::getLinearSystem ( unsigned int  sys_num)
inlineinherited

Get non-constant reference to a linear system.

Parameters
sys_numThe number of the linear system

Definition at line 3880 of file FEProblemBase.h.

3881{
3882 mooseAssert(sys_num < _linear_systems.size(),
3883 "System number greater than the number of linear systems");
3884 return *_linear_systems[sys_num];
3885}

Referenced by IterationAdaptiveDT::acceptStep(), Moose::compute_linear_system(), Moose::PetscSupport::petscSetDefaults(), and FEProblemSolve::solve().

◆ getLinearSystem() [2/2]

const LinearSystem & FEProblemBase::getLinearSystem ( unsigned int  sys_num) const
inlineinherited

Get a constant reference to a linear system.

Parameters
sys_numThe number of the linear system

Definition at line 3888 of file FEProblemBase.h.

3889{
3890 mooseAssert(sys_num < _linear_systems.size(),
3891 "System number greater than the number of linear systems");
3892 return *_linear_systems[sys_num];
3893}

◆ getLinearSystemNames()

const std::vector< LinearSystemName > & FEProblemBase::getLinearSystemNames ( ) const
inlineinherited
Returns
the linear system names in the problem

Definition at line 3043 of file FEProblemBase.h.

3043{ return _linear_sys_names; }

Referenced by PhysicsBase::initializePhysics(), and MultiSystemSolveObject::MultiSystemSolveObject().

◆ getLineSearch()

LineSearch * FEProblemBase::getLineSearch ( )
inlineoverridevirtualinherited

getter for the MOOSE line search

Implements SubProblem.

Definition at line 851 of file FEProblemBase.h.

851{ return _line_search.get(); }

Referenced by DisplacedProblem::getLineSearch().

◆ getMarkerWarehouse()

const MooseObjectWarehouse< Marker > & FEProblemBase::getMarkerWarehouse ( )
inlineinherited

Definition at line 2146 of file FEProblemBase.h.

2146{ return _markers; }

◆ getMaterial()

std::shared_ptr< MaterialBase > FEProblemBase::getMaterial ( std::string  name,
Moose::MaterialDataType  type,
const THREAD_ID  tid = 0,
bool  no_warn = false 
)
inherited

Return a pointer to a MaterialBase object.

If no_warn is true, suppress warning about retrieving a material reference potentially during the material's calculation.

This will return enabled or disabled objects, the main purpose is for iterative materials.

Definition at line 4039 of file FEProblemBase.C.

4043{
4044 switch (type)
4045 {
4047 name += "_neighbor";
4048 break;
4050 name += "_face";
4051 break;
4052 default:
4053 break;
4054 }
4055
4056 std::shared_ptr<MaterialBase> material = _all_materials[type].getActiveObject(name, tid);
4057 if (!no_warn && material->getParam<bool>("compute") && type == Moose::BLOCK_MATERIAL_DATA)
4058 mooseWarning("You are retrieving a Material object (",
4059 material->name(),
4060 "), but its compute flag is set to true. This indicates that MOOSE is "
4061 "computing this property which may not be desired and produce un-expected "
4062 "results.");
4063
4064 return material;
4065}
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
Definition MooseError.h:345
@ BLOCK_MATERIAL_DATA
Definition MooseTypes.h:747

Referenced by MaterialPropertyInterface::getMaterialByName().

◆ getMaterialData()

MaterialData & FEProblemBase::getMaterialData ( Moose::MaterialDataType  type,
const THREAD_ID  tid = 0,
const MooseObject *  object = nullptr 
) const
inherited
Returns
The MaterialData for the type type for thread tid

Definition at line 4068 of file FEProblemBase.C.

4071{
4072 switch (type)
4073 {
4075 if (object)
4077 return _material_props.getMaterialData(tid);
4079 if (object)
4085 if (object)
4088 }
4089
4090 mooseError("FEProblemBase::getMaterialData(): Invalid MaterialDataType ", type);
4091}
void addConsumer(Moose::MaterialDataType type, const MooseObject *object)
Add object as the consumer of storage of type type.
const MaterialData & getMaterialData(const THREAD_ID tid) const
@ BOUNDARY_MATERIAL_DATA
Definition MooseTypes.h:748
@ INTERFACE_MATERIAL_DATA
Definition MooseTypes.h:751

Referenced by BlockRestrictable::initializeBlockRestrictable(), and FEProblemBase::resizeMaterialData().

◆ getMaterialPropertyBlockNames()

std::vector< SubdomainName > SubProblem::getMaterialPropertyBlockNames ( const std::string &  prop_name)
virtualinherited

Get a vector of block id equivalences that the material property is defined on.

Definition at line 478 of file SubProblem.C.

479{
480 std::set<SubdomainID> blocks = getMaterialPropertyBlocks(prop_name);
481 std::vector<SubdomainName> block_names;
482 block_names.reserve(blocks.size());
483 for (const auto & block_id : blocks)
484 {
485 SubdomainName name;
486 name = mesh().getMesh().subdomain_name(block_id);
487 if (name.empty())
488 {
489 std::ostringstream oss;
490 oss << block_id;
491 name = oss.str();
492 }
493 block_names.push_back(name);
494 }
495
496 return block_names;
497}
virtual std::set< SubdomainID > getMaterialPropertyBlocks(const std::string &prop_name)
Get a vector containing the block ids the material property is defined on.
Definition SubProblem.C:462

Referenced by MaterialPropertyInterface::getMaterialPropertyBlockNames().

◆ getMaterialPropertyBlocks()

std::set< SubdomainID > SubProblem::getMaterialPropertyBlocks ( const std::string &  prop_name)
virtualinherited

Get a vector containing the block ids the material property is defined on.

Definition at line 462 of file SubProblem.C.

463{
464 std::set<SubdomainID> blocks;
465
466 for (const auto & it : _map_block_material_props)
467 {
468 const std::set<std::string> & prop_names = it.second;
469 std::set<std::string>::iterator name_it = prop_names.find(prop_name);
470 if (name_it != prop_names.end())
471 blocks.insert(it.first);
472 }
473
474 return blocks;
475}

Referenced by SubProblem::getMaterialPropertyBlockNames(), and MaterialPropertyInterface::getMaterialPropertyBlocks().

◆ getMaterialPropertyBoundaryIDs()

std::set< BoundaryID > SubProblem::getMaterialPropertyBoundaryIDs ( const std::string &  prop_name)
virtualinherited

Get a vector containing the block ids the material property is defined on.

Definition at line 514 of file SubProblem.C.

515{
516 std::set<BoundaryID> boundaries;
517
518 for (const auto & it : _map_boundary_material_props)
519 {
520 const std::set<std::string> & prop_names = it.second;
521 std::set<std::string>::iterator name_it = prop_names.find(prop_name);
522 if (name_it != prop_names.end())
523 boundaries.insert(it.first);
524 }
525
526 return boundaries;
527}

Referenced by MaterialPropertyInterface::getMaterialPropertyBoundaryIDs(), and SubProblem::getMaterialPropertyBoundaryNames().

◆ getMaterialPropertyBoundaryNames()

std::vector< BoundaryName > SubProblem::getMaterialPropertyBoundaryNames ( const std::string &  prop_name)
virtualinherited

Get a vector of block id equivalences that the material property is defined on.

Definition at line 530 of file SubProblem.C.

531{
532 std::set<BoundaryID> boundaries = getMaterialPropertyBoundaryIDs(prop_name);
533 std::vector<BoundaryName> boundary_names;
534 boundary_names.reserve(boundaries.size());
535 const BoundaryInfo & boundary_info = mesh().getMesh().get_boundary_info();
536
537 for (const auto & bnd_id : boundaries)
538 {
539 BoundaryName name;
540 if (bnd_id == Moose::ANY_BOUNDARY_ID)
541 name = "ANY_BOUNDARY_ID";
542 else
543 {
544 name = boundary_info.get_sideset_name(bnd_id);
545 if (name.empty())
546 {
547 std::ostringstream oss;
548 oss << bnd_id;
549 name = oss.str();
550 }
551 }
552 boundary_names.push_back(name);
553 }
554
555 return boundary_names;
556}
virtual std::set< BoundaryID > getMaterialPropertyBoundaryIDs(const std::string &prop_name)
Get a vector containing the block ids the material property is defined on.
Definition SubProblem.C:514

Referenced by MaterialPropertyInterface::getMaterialPropertyBoundaryNames().

◆ getMaterialPropertyRegistry()

const MaterialPropertyRegistry & FEProblemBase::getMaterialPropertyRegistry ( ) const
inlineinherited
Returns
A reference to the material property registry

Definition at line 2104 of file FEProblemBase.h.

2105 {
2107 }

Referenced by DiffusionCG::addFEKernels(), SideUserObject::checkNoInterfaceMaterialPropertyDependencies(), and MaterialBase::checkStatefulSanity().

◆ getMaterialPropertyStorage()

const MaterialPropertyStorage & FEProblemBase::getMaterialPropertyStorage ( )
inlineinherited

Return a reference to the material property storage.

Returns
A const reference to the material property storage

Definition at line 2114 of file FEProblemBase.h.

2114{ return _material_props; }

◆ getMaterialPropertyStorageConsumers()

const std::set< const MooseObject * > & FEProblemBase::getMaterialPropertyStorageConsumers ( Moose::MaterialDataType  type) const
inherited
Returns
The consumers of the MaterialPropertyStorage for the type type

Definition at line 4094 of file FEProblemBase.C.

4095{
4096 switch (type)
4097 {
4106 }
4107
4108 mooseError("FEProblemBase::getMaterialPropertyStorageConsumers(): Invalid MaterialDataType ",
4109 type);
4110}
const std::set< const MooseObject * > & getConsumers(Moose::MaterialDataType type) const

◆ getMaterialWarehouse()

const MaterialWarehouse & FEProblemBase::getMaterialWarehouse ( ) const
inlineinherited

◆ getMatrixTagID()

TagID SubProblem::getMatrixTagID ( const TagName &  tag_name) const
virtualinherited

Get a TagID from a TagName.

Reimplemented in DisplacedProblem.

Definition at line 331 of file SubProblem.C.

332{
333 auto tag_name_upper = MooseUtils::toUpper(tag_name);
334
335 if (!matrixTagExists(tag_name))
336 mooseError("Matrix tag: ",
337 tag_name,
338 " does not exist. ",
339 "If this is a TimeKernel then this may have happened because you didn't "
340 "specify a Transient Executioner.");
341
342 return _matrix_tag_name_to_tag_id.at(tag_name_upper);
343}
virtual bool matrixTagExists(const TagName &tag_name) const
Check to see if a particular Tag exists.
Definition SubProblem.C:317

Referenced by ScalarCoupleable::coupledMatrixTagScalarValue(), Coupleable::coupledMatrixTagValue(), Coupleable::coupledMatrixTagValues(), ExplicitTimeIntegrator::ExplicitTimeIntegrator(), DisplacedProblem::getMatrixTagID(), TaggingInterface::TaggingInterface(), and TaggingInterface::useMatrixTag().

◆ getMatrixTags()

virtual std::map< TagName, TagID > & SubProblem::getMatrixTags ( )
inlinevirtualinherited

◆ getMaxQps()

unsigned int FEProblemBase::getMaxQps ( ) const
inherited
Returns
The maximum number of quadrature points in use on any element in this problem.

Definition at line 1791 of file FEProblemBase.C.

1792{
1793 if (_max_qps == std::numeric_limits<unsigned int>::max())
1794 mooseError("Max QPS uninitialized");
1795 return _max_qps;
1796}
unsigned int _max_qps
Maximum number of quadrature points used in the problem.

Referenced by MaterialBase::getMaxQps(), MaterialPropertyInterface::getMaxQps(), FEProblemBase::reinitDirac(), Material::subdomainSetup(), and FEProblemBase::updateMaxQps().

◆ getMaxScalarOrder()

Order FEProblemBase::getMaxScalarOrder ( ) const
inherited
Returns
The maximum order for all scalar variables in this problem's systems.

Definition at line 1799 of file FEProblemBase.C.

1800{
1801 return _max_scalar_order;
1802}

Referenced by ScalarCoupleable::coupledScalarOrder(), ScalarCoupleable::getADDefaultValue(), and ScalarCoupleable::getDefaultValue().

◆ getMeshDivision()

MeshDivision & FEProblemBase::getMeshDivision ( const std::string &  name,
const THREAD_ID  tid = 0 
) const
inherited

Get a MeshDivision.

Definition at line 2866 of file FEProblemBase.C.

2867{
2868 auto * const ret = dynamic_cast<MeshDivision *>(_mesh_divisions.getActiveObject(name, tid).get());
2869 if (!ret)
2870 mooseError("No MeshDivision object named ", name, " of appropriate type");
2871 return *ret;
2872}

Referenced by NestedDivision::NestedDivision().

◆ getMooseApp()

MooseApp & MooseBase::getMooseApp ( ) const
inlineinherited

Get the MooseApp this class is associated with.

Definition at line 87 of file MooseBase.h.

87{ return _app; }

Referenced by ChainControlSetupAction::act(), AddDefaultConvergenceAction::addDefaultMultiAppFixedPointConvergence(), AddDefaultConvergenceAction::addDefaultNonlinearConvergence(), AddDefaultConvergenceAction::addDefaultSteadyStateConvergence(), FEProblemBase::advanceState(), ParsedChainControl::buildFunction(), ReporterTransferInterface::checkHasReporterValue(), LinearFVGradientManager::checkRestartedGradientHistory(), AddDefaultConvergenceAction::checkUnusedMultiAppFixedPointConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedNonlinearConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedSteadyStateConvergenceParameters(), Coupleable::checkWritableVar(), ComponentPhysicsInterface::ComponentPhysicsInterface(), Coupleable::Coupleable(), MortarInterfaceWarehouse::createMortarInterface(), EigenProblem::doFreeNonlinearPowerIterations(), Terminator::execute(), FEProblemSolve::FEProblemSolve(), SolutionInvalidInterface::flagInvalidSolutionInternal(), ChainControl::getChainControlDataSystem(), FEProblemBase::getDistribution(), FEProblemBase::getFunction(), FEProblemBase::getFVInterpolationMethod(), FEProblemBase::getMultiApp(), FEProblemBase::getSampler(), DefaultConvergenceBase::getSharedExecutionerParam(), FEProblemBase::getUserObjectBase(), FEProblemBase::getVectorPostprocessorObjectByName(), ChainControlDataPostprocessor::initialSetup(), MaterialPropertyInterface::MaterialPropertyInterface(), MooseVariableDataFV< OutputType >::MooseVariableDataFV(), ProgressOutput::output(), PetscOutputInterface::petscLinearOutput(), PetscOutputInterface::petscNonlinearOutput(), Moose::PetscSupport::PetscOptionsScope::PetscOptionsScope(), PetscOutputInterface::PetscOutputInterface(), PostprocessorInterface::postprocessorsAdded(), MultiApp::preTransfer(), AuxiliarySystem::registerFVGradient(), Reporter::Reporter(), ReporterInterface::reportersAdded(), MultiApp::restore(), and VectorPostprocessorInterface::vectorPostprocessorsAdded().

◆ getMortarInterface() [1/2]

AutomaticMortarGeneration & FEProblemBase::getMortarInterface ( const std::pair< BoundaryID, BoundaryID > &  primary_secondary_boundary_pair,
const std::pair< SubdomainID, SubdomainID > &  primary_secondary_subdomain_pair,
bool  on_displaced 
)
inherited

Definition at line 8788 of file FEProblemBase.C.

8792{
8793 return _mortar_data->getMortarInterface(
8794 primary_secondary_boundary_pair, primary_secondary_subdomain_pair, on_displaced);
8795}

◆ getMortarInterface() [2/2]

const AutomaticMortarGeneration & FEProblemBase::getMortarInterface ( const std::pair< BoundaryID, BoundaryID > &  primary_secondary_boundary_pair,
const std::pair< SubdomainID, SubdomainID > &  primary_secondary_subdomain_pair,
bool  on_displaced 
) const
inherited

Return the undisplaced or displaced mortar generation object associated with the provided boundaries and subdomains.

Definition at line 8778 of file FEProblemBase.C.

8782{
8783 return _mortar_data->getMortarInterface(
8784 primary_secondary_boundary_pair, primary_secondary_subdomain_pair, on_displaced);
8785}

◆ getMortarInterfaces()

const std::unordered_map< std::pair< BoundaryID, BoundaryID >, MortarInterfaceConfig > & FEProblemBase::getMortarInterfaces ( bool  on_displaced) const
inherited

Definition at line 10459 of file FEProblemBase.C.

10460{
10461 return _mortar_data->getMortarInterfaces(on_displaced);
10462}

Referenced by FEProblemBase::computeUserObjectsInternal(), MortarSegmentMeshReporter::execute(), and NonlinearSystemBase::initialSetup().

◆ getMortarUserObjects() [1/2]

std::vector< MortarUserObject * > FEProblemBase::getMortarUserObjects ( BoundaryID  primary_boundary_id,
BoundaryID  secondary_boundary_id,
bool  displaced 
)
privateinherited

Helper for getting mortar objects corresponding to primary boundary ID, secondary boundary ID, and displaced parameters from the entire active mortar user object set.

Definition at line 10284 of file FEProblemBase.C.

10287{
10288 std::vector<MortarUserObject *> mortar_uos;
10289 theWarehouse()
10290 .query()
10292 .queryInto(mortar_uos);
10293 return getMortarUserObjects(primary_boundary_id, secondary_boundary_id, displaced, mortar_uos);
10294}

◆ getMortarUserObjects() [2/2]

std::vector< MortarUserObject * > FEProblemBase::getMortarUserObjects ( BoundaryID  primary_boundary_id,
BoundaryID  secondary_boundary_id,
bool  displaced,
const std::vector< MortarUserObject * > &  mortar_uo_superset 
)
privateinherited

Helper for getting mortar objects corresponding to primary boundary ID, secondary boundary ID, and displaced parameters, given some initial set.

Definition at line 10267 of file FEProblemBase.C.

10271{
10272 std::vector<MortarUserObject *> mortar_uos;
10273 auto * const subproblem =
10274 displaced ? cast_ptr<SubProblem *>(_displaced_problem.get()) : cast_ptr<SubProblem *>(this);
10275 for (auto * const obj : mortar_uo_superset)
10276 if (obj->onInterface(primary_boundary_id, secondary_boundary_id) &&
10277 (&obj->getSubProblem() == subproblem))
10278 mortar_uos.push_back(obj);
10279
10280 return mortar_uos;
10281}

Referenced by FEProblemBase::computeUserObjectsInternal(), FEProblemBase::getMortarUserObjects(), and FEProblemBase::reinitMortarUserObjects().

◆ getMultiApp()

std::shared_ptr< MultiApp > FEProblemBase::getMultiApp ( const std::string &  multi_app_name) const
inherited

Get a MultiApp object by name.

Definition at line 5949 of file FEProblemBase.C.

5950{
5951 if (!hasMultiApp(multi_app_name))
5952 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_multi_app"),
5953 "A MultiApp getter was called before MultiApps have been constructed. "
5954 "If you are attempting to access this object in the constructor of another object "
5955 "then make sure that the MultiApp is constructed before the object using it.");
5956
5957 return _multi_apps.getObject(multi_app_name);
5958}
bool hasMultiApp(const std::string &name) const
std::shared_ptr< T > getObject(const std::string &name, THREAD_ID tid=0) const

Referenced by FEProblemBase::addTransfer(), FEProblemBase::execMultiAppTransfers(), MultiAppPositions::initialize(), and MultiAppTransfer::MultiAppTransfer().

◆ getMultiAppFixedPointConvergenceName()

const ConvergenceName & FEProblemBase::getMultiAppFixedPointConvergenceName ( ) const
inherited

Gets the MultiApp fixed point convergence object name.

Definition at line 10179 of file FEProblemBase.C.

10180{
10183 else
10184 mooseError("The fixed point convergence name has not been set.");
10185}
std::optional< ConvergenceName > _multiapp_fixed_point_convergence_name
MultiApp fixed point convergence name.

Referenced by FEProblemBase::addDefaultMultiAppFixedPointConvergence(), FixedPointSolve::examineFixedPointConvergence(), FixedPointIterationAdaptiveDT::init(), FixedPointSolve::initialSetup(), SteffensenSolve::initialSetup(), FixedPointSolve::solve(), and FixedPointSolve::solveStep().

◆ getMultiAppTransferWarehouse()

const ExecuteMooseObjectWarehouse< Transfer > & FEProblemBase::getMultiAppTransferWarehouse ( Transfer::DIRECTION  direction) const
inherited

Return the complete warehouse for MultiAppTransfer object for the given direction.

Definition at line 6095 of file FEProblemBase.C.

6096{
6097 if (direction == MultiAppTransfer::TO_MULTIAPP)
6099 else if (direction == MultiAppTransfer::FROM_MULTIAPP)
6101 else
6103}

◆ getMultiAppWarehouse()

ExecuteMooseObjectWarehouse< MultiApp > & FEProblemBase::getMultiAppWarehouse ( )
inlineinherited

◆ getNeighborMaterialPropertyStorage()

const MaterialPropertyStorage & FEProblemBase::getNeighborMaterialPropertyStorage ( )
inlineinherited

Definition at line 2116 of file FEProblemBase.h.

2117 {
2119 }

◆ getNonlinearConvergenceNames()

const std::vector< ConvergenceName > & FEProblemBase::getNonlinearConvergenceNames ( ) const
inherited

Gets the nonlinear system convergence object name(s).

Definition at line 10147 of file FEProblemBase.C.

10148{
10151 mooseError("The nonlinear system convergence name(s) have not been set.");
10152}
std::optional< std::vector< ConvergenceName > > _nonlinear_convergence_names
Nonlinear system(s) convergence name(s)

Referenced by FEProblemBase::addDefaultNonlinearConvergence(), ReferenceResidualProblem::addDefaultNonlinearConvergence(), and FEProblemSolve::convergenceSetup().

◆ getNonlinearEvaluableElementRange()

const ConstElemRange & FEProblemBase::getNonlinearEvaluableElementRange ( )
inherited

Definition at line 927 of file FEProblemBase.C.

928{
930 {
931 std::vector<const DofMap *> dof_maps(_nl.size());
932 for (const auto i : index_range(dof_maps))
933 dof_maps[i] = &_nl[i]->dofMap();
935 std::make_unique<ConstElemRange>(_mesh.getMesh().multi_evaluable_elements_begin(dof_maps),
936 _mesh.getMesh().multi_evaluable_elements_end(dof_maps));
937 }
938
940}
std::unique_ptr< libMesh::ConstElemRange > _nl_evaluable_local_elem_range

Referenced by ElemSideNeighborLayersTester::execute().

◆ getNonlinearSystem()

NonlinearSystem & FEProblemBase::getNonlinearSystem ( const unsigned int  sys_num)
virtualinherited

Reimplemented in FEProblem.

Definition at line 2881 of file FEProblemBase.C.

2882{
2883 mooseDeprecated("FEProblemBase::getNonlinearSystem() is deprecated, please use "
2884 "FEProblemBase::getNonlinearSystemBase() \n");
2885
2886 mooseAssert(sys_num < _nl.size(), "System number greater than the number of nonlinear systems");
2887 auto nl_sys = std::dynamic_pointer_cast<NonlinearSystem>(_nl[sys_num]);
2888
2889 if (!nl_sys)
2890 mooseError("This is not a NonlinearSystem");
2891
2892 return *nl_sys;
2893}

Referenced by PNGOutput::calculateRescalingValues(), and PNGOutput::makeMeshFunc().

◆ getNonlinearSystemBase() [1/2]

NonlinearSystemBase & FEProblemBase::getNonlinearSystemBase ( const unsigned int  sys_num)
inlineinherited

◆ getNonlinearSystemBase() [2/2]

const NonlinearSystemBase & FEProblemBase::getNonlinearSystemBase ( const unsigned int  sys_num) const
inlineinherited

Definition at line 3843 of file FEProblemBase.h.

3844{
3845 mooseAssert(sys_num < _nl.size(), "System number greater than the number of nonlinear systems");
3846 return *_nl[sys_num];
3847}

◆ getNonlinearSystemNames()

const std::vector< NonlinearSystemName > & FEProblemBase::getNonlinearSystemNames ( ) const
inlineinherited

◆ getNumCyclesCompleted()

unsigned int FEProblemBase::getNumCyclesCompleted ( )
inlineinherited
Returns
The number of adaptivity cycles completed.

Definition at line 2182 of file FEProblemBase.h.

2182{ return _cycles_completed; }
unsigned int _cycles_completed

◆ getParam() [1/2]

template<typename T >
const T & MooseBase::getParam ( const std::string &  name) const
inherited

Retrieve a parameter for the object.

Parameters
nameThe name of the parameter
Returns
The value of the parameter

Definition at line 406 of file MooseBase.h.

407{
408 return InputParameters::getParamHelper<T>(name, _pars);
409}

Referenced by CommonOutputAction::act(), CreateDisplacedProblemAction::act(), DiffusionCG::addFEKernels(), DiffusionFV::addFVKernels(), CylinderComponent::addMeshGenerators(), FEProblemBase::addOutput(), ArrayParsedAux::ArrayParsedAux(), BicubicSplineFunction::BicubicSplineFunction(), SurfaceDelaunayGeneratorBase::checkBoundaryAndHolesParams(), Console::Console(), CutMeshByLevelSetGenerator::CutMeshByLevelSetGenerator(), DebugResidualAux::DebugResidualAux(), DerivativeParsedMaterialTempl< is_ad >::DerivativeParsedMaterialTempl(), DiffusionPhysicsBase::DiffusionPhysicsBase(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), EigenKernel::EigenKernel(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), MFEMEigenvaluesPostprocessor::execute(), FEProblemSolve::FEProblemSolve(), SurfaceDelaunayGeneratorBase::fillDelaunayOptions(), ParsedVectorReporter::finalize(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FixedPointSolve::FixedPointSolve(), ParsedSubdomainGeneratorBase::functionInitialize(), BlockDeletionGenerator::generate(), BoundaryLayerSubdomainGenerator::generate(), BreakMeshByBlockGenerator::generate(), CoarsenBlockGenerator::generate(), FileMeshGenerator::generate(), MeshExtruderGenerator::generate(), RefineBlockGenerator::generate(), RefineSidesetGenerator::generate(), SubdomainsFromPartitionerGenerator::generate(), GenericConstantRankTwoTensorTempl< is_ad >::GenericConstantRankTwoTensorTempl(), GenericConstantSymmetricRankTwoTensorTempl< is_ad >::GenericConstantSymmetricRankTwoTensorTempl(), GeometricSearchInterface::GeometricSearchInterface(), MooseApp::getCheckpointDirectories(), DataFileInterface::getDataFileName(), ExecutorInterface::getExecutor(), DefaultConvergenceBase::getSharedExecutionerParam(), AddVariableAction::init(), AdvancedOutput::init(), FixedPointIterationAdaptiveDT::init(), TimeSequenceStepper::init(), AdvancedOutput::initAvailableLists(), AttribThread::initFrom(), AttribExecutionOrderGroup::initFrom(), AttribSysNum::initFrom(), AttribResidualObject::initFrom(), AttribDisplaced::initFrom(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), Console::initialSetup(), SampledOutput::initSample(), IterationAdaptiveDT::limitDTToPostprocessorValue(), MooseMesh::MooseMesh(), MooseVariableBase::MooseVariableBase(), MoveNodesByParsedExpressionModifier::MoveNodesByParsedExpressionModifier(), MultiPostprocessorConvergence::MultiPostprocessorConvergence(), PerfGraphOutput::output(), Console::outputSystemInformation(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedElementDeletionGenerator::ParsedElementDeletionGenerator(), ParsedGenerateNodeset::ParsedGenerateNodeset(), ParsedGenerateSideset::ParsedGenerateSideset(), ParsedMaterialTempl< is_ad >::ParsedMaterialTempl(), ParsedNodeTransformGenerator::ParsedNodeTransformGenerator(), ParsedODEKernel::ParsedODEKernel(), ParsedPostprocessor::ParsedPostprocessor(), ParsedReporterBase::ParsedReporterBase(), ParsedVectorReporter::ParsedVectorReporter(), ProjectSideSetOntoLevelSetGenerator::ProjectSideSetOntoLevelSetGenerator(), ReferenceResidualInterface::ReferenceResidualInterface(), Moose::FV::setInterpolationMethod(), SetupMeshAction::setupMesh(), MooseApp::setupOptions(), Output::setWallTimeIntervalFromCommandLineParam(), PetscOutput::solveSetup(), TimePeriod::TimePeriod(), UniqueExtraIDMeshGenerator::UniqueExtraIDMeshGenerator(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), VectorOfPostprocessors::VectorOfPostprocessors(), and XYQuadrilateralMeshFromBoundaryCurve::XYQuadrilateralMeshFromBoundaryCurve().

◆ getParam() [2/2]

template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > MooseBase::getParam ( const std::string &  param1,
const std::string &  param2 
) const
inherited

Retrieve two parameters and provide pair of parameters for the object.

Parameters
param1The name of first parameter
param2The name of second parameter
Returns
Vector of pairs of first and second parameters

Definition at line 443 of file MooseBase.h.

444{
445 return _pars.get<T1, T2>(param1, param2);
446}

◆ getPetscOptions()

Moose::PetscSupport::PetscOptions & FEProblemBase::getPetscOptions ( )
inlineinherited

◆ getPositionsObject()

const Positions & FEProblemBase::getPositionsObject ( const std::string &  name) const
inherited

Get the Positions object by its name.

Parameters
nameThe name of the Positions object being retrieved
Returns
Const reference to the Positions object

Definition at line 4815 of file FEProblemBase.C.

4816{
4817 std::vector<Positions *> objs;
4818 theWarehouse()
4819 .query()
4820 .condition<AttribSystem>("UserObject")
4821 .condition<AttribName>(name)
4822 .queryInto(objs);
4823 if (objs.empty())
4824 mooseError("Unable to find Positions object with name '" + name + "'");
4825 mooseAssert(objs.size() == 1, "Should only find one Positions");
4826 return *(objs[0]);
4827}

Referenced by DistributedPositions::DistributedPositions(), MultiApp::fillPositions(), ParsedDownSelectionPositions::initialize(), Positions::initialized(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), and TransformedPositions::TransformedPositions().

◆ getPostprocessorObjectByName()

const Postprocessor & FEProblemBase::getPostprocessorObjectByName ( const PostprocessorName &  object_name,
const THREAD_ID  tid = 0 
) const
inherited

Return the Postprocessor object registered under the supplied object name.

Parameters
object_nameThe name of the Postprocessor object
tidThe thread identifier for thread-local object lookup

Definition at line 4954 of file FEProblemBase.C.

4956{
4957 std::vector<Postprocessor *> objs;
4958 theWarehouse()
4959 .query()
4961 .condition<AttribThread>(tid)
4962 .condition<AttribName>(object_name)
4963 .queryInto(objs);
4964
4965 if (objs.empty())
4966 mooseError("Unable to find Postprocessor with name '", object_name, "'");
4967 mooseAssert(objs.size() == 1,
4968 "We shouldn't find more than one postprocessor object for a given name");
4969 return *(objs[0]);
4970}

◆ getPostprocessorValueByName()

const PostprocessorValue & FEProblemBase::getPostprocessorValueByName ( const PostprocessorName &  name,
std::size_t  t_index = 0 
) const
inherited

Get a read-only reference to the value associated with a Postprocessor that exists.

Parameters
nameThe name of the post-processor
t_indexFlag for getting current (0), old (1), or older (2) values
Returns
The reference to the value at the given time index

Note: This method is only for retrieving values that already exist, the Postprocessor and PostprocessorInterface objects should be used rather than this method for creating and getting values within objects.

Definition at line 4973 of file FEProblemBase.C.

4975{
4977 t_index);
4978}
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
A ReporterName that represents a Postprocessor.
const T & getReporterValue(const ReporterName &reporter_name, const MooseObject &consumer, const ReporterMode &mode, const std::size_t time_index=0) const
Method for returning read only references to Reporter values.

Referenced by MFEMProblem::addPostprocessor(), MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), MultiApp::appPostprocessorValue(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppPostprocessorTransfer::execute(), EigenProblem::formNorm(), MooseParsedFunctionWrapper::initialize(), ParsedConvergence::initializePostprocessorSymbol(), EigenExecutionerBase::inversePowerIteration(), Exodus::outputPostprocessors(), Nemesis::outputPostprocessors(), TableOutput::outputPostprocessorsRow(), EigenProblem::postScaleEigenVector(), and TableOutput::shouldOutputPostprocessorsRow().

◆ getRegularMaterialsWarehouse()

const MaterialWarehouse & FEProblemBase::getRegularMaterialsWarehouse ( ) const
inlineinherited

◆ getRenamedParam()

template<typename T >
const T & MooseBase::getRenamedParam ( const std::string &  old_name,
const std::string &  new_name 
) const
inherited

Retrieve a renamed parameter for the object.

This helper makes sure we check both names before erroring, and that only one parameter is passed to avoid silent errors

Parameters
old_namethe old name for the parameter
new_namethe new name for the parameter

Definition at line 420 of file MooseBase.h.

421{
422 // Most important: accept new parameter
423 if (isParamSetByUser(new_name) && !isParamValid(old_name))
424 return getParam<T>(new_name);
425 // Second most: accept old parameter
426 if (isParamValid(old_name) && !isParamSetByUser(new_name))
427 return getParam<T>(old_name);
428 // Third most: accept default for new parameter
429 if (isParamValid(new_name) && !isParamValid(old_name))
430 return getParam<T>(new_name);
431 // Refuse: no default, no value passed
432 if (!isParamValid(old_name) && !isParamValid(new_name))
433 mooseError("parameter '" + new_name +
434 "' is being retrieved without being set.\nDid you misspell it?");
435 // Refuse: both old and new parameters set by user
436 else
437 mooseError("Parameter '" + new_name + "' may not be provided alongside former parameter '" +
438 old_name + "'");
439}
bool isParamSetByUser(const std::string &name) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
Definition MooseBase.h:205
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
Definition MooseBase.h:199

◆ getReporterData() [1/2]

const ReporterData & FEProblemBase::getReporterData ( ) const
inlineinherited

Provides const access the ReporterData object.

NOTE: There is a private non-const version of this function that uses a key object only constructable by the correct interfaces. This was done by design to encourage the use of the Reporter and ReporterInterface classes.

Definition at line 1402 of file FEProblemBase.h.

1402{ return _reporter_data; }

Referenced by ReporterTransferInterface::addReporterTransferMode(), ReporterTransferInterface::checkHasReporterValue(), ReporterTransferInterface::clearVectorReporter(), ConstantPostprocessor::ConstantPostprocessor(), AccumulateReporter::declareAccumulateHelper(), ReporterTransferInterface::declareClone(), ReporterTransferInterface::declareClone(), AccumulateReporter::declareLateValues(), VectorPostprocessor::declareVector(), ReporterTransferInterface::declareVectorClone(), ReporterTransferInterface::declareVectorClone(), FEProblemBase::execute(), PostprocessorInterface::getPostprocessorValueByNameInternal(), VectorPostprocessorInterface::getVectorPostprocessorByNameHelper(), VectorPostprocessorInterface::getVectorPostprocessorContextByNameHelper(), PostprocessorInterface::hasPostprocessorByName(), VectorPostprocessorInterface::hasVectorPostprocessorByName(), MooseParsedFunctionWrapper::initialize(), ReporterPositions::initialize(), ReporterTimes::initialize(), ParsedConvergence::initializeSymbols(), JSONOutput::initialSetup(), PostprocessorInterface::isDefaultPostprocessorValueByName(), ReporterDebugOutput::output(), Receiver::Receiver(), ReporterTransferInterface::resizeReporter(), ReporterTransferInterface::sumVectorReporter(), ReporterTransferInterface::transferFromVectorReporter(), ReporterTransferInterface::transferReporter(), and ReporterTransferInterface::transferToVectorReporter().

◆ getReporterData() [2/2]

ReporterData & FEProblemBase::getReporterData ( ReporterData::WriteKey  )
inlineinherited

Provides non-const access the ReporterData object that is used to store reporter values.

see ReporterData.h

Definition at line 1409 of file FEProblemBase.h.

1409{ return _reporter_data; }

◆ getRestartableData()

template<typename T , typename... Args>
const T & Restartable::getRestartableData ( const std::string &  data_name) const
protectedinherited

Declare a piece of data as "restartable" and initialize it Similar to declareRestartableData but returns a const reference to the object.

Forwarded arguments are not allowed in this case because we assume that the object is restarted and we won't need different constructors to initialize it.

NOTE: This returns a const reference! Make sure you store it in a const reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)

Definition at line 294 of file Restartable.h.

295{
296 return declareRestartableDataHelper<T>(data_name, nullptr).get();
297}

◆ getRestartableEquationSystems()

const RestartableEquationSystems & FEProblemBase::getRestartableEquationSystems ( ) const
inherited

Get the RestartableEquationSystems object.

Definition at line 6626 of file FEProblemBase.C.

6627{
6628 return _req.get();
6629}
const T & get() const
Get the restartable value.
Definition Restartable.h:58

Referenced by LinearFVGradientManager::checkRestartedGradientHistory().

◆ getSampler()

Sampler & FEProblemBase::getSampler ( const std::string &  name,
const THREAD_ID  tid = 0 
)
virtualinherited

Definition at line 2947 of file FEProblemBase.C.

2948{
2949 std::vector<Sampler *> objs;
2950 theWarehouse()
2951 .query()
2952 .condition<AttribSystem>("Sampler")
2953 .condition<AttribThread>(tid)
2954 .condition<AttribName>(name)
2955 .queryInto(objs);
2956 if (objs.empty())
2957 {
2958 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_sampler"),
2959 "A Sampler getter was called before Samplers have been constructed. "
2960 "If you are attempting to access this object in the constructor of another object "
2961 "then make sure that the Sampler is constructed before the object using it.");
2962
2963 mooseError(
2964 "Unable to find Sampler with name '" + name +
2965 "', if you are attempting to access this object in the constructor of another object then "
2966 "make sure that the Sampler is constructed before the object using it.");
2967 }
2968 return *(objs[0]);
2969}

Referenced by SamplerInterface::getSampler(), and SamplerInterface::getSamplerByName().

◆ getScalarVariable()

MooseVariableScalar & FEProblemBase::getScalarVariable ( const THREAD_ID  tid,
const std::string &  var_name 
)
overridevirtualinherited

Returns the scalar variable reference from whichever system contains it.

Implements SubProblem.

Definition at line 6602 of file FEProblemBase.C.

6603{
6604 for (auto & sys : _solver_systems)
6605 if (sys->hasScalarVariable(var_name))
6606 return sys->getScalarVariable(tid, var_name);
6607 if (_aux->hasScalarVariable(var_name))
6608 return _aux->getScalarVariable(tid, var_name);
6609
6610 mooseError("Unknown variable " + var_name);
6611}

Referenced by FEProblemBase::addInitialCondition(), EigenProblem::adjustEigenVector(), MultiAppScalarToAuxScalarTransfer::execute(), MooseParsedFunctionWrapper::initialize(), ChainControlParsedFunctionWrapper::initializeFunctionInputs(), Exodus::outputScalarVariables(), Nemesis::outputScalarVariables(), and TableOutput::outputScalarVariables().

◆ getSharedPtr() [1/2]

std::shared_ptr< MooseObject > MooseObject::getSharedPtr ( )
inherited

Get another shared pointer to this object that has the same ownership group.

Wrapper around shared_from_this().

Definition at line 70 of file MooseObject.C.

71{
72 try
73 {
74 return shared_from_this();
75 }
76 catch (std::bad_weak_ptr &)
77 {
78 mooseError(not_shared_error);
79 }
80}

Referenced by MFEMProblem::addImagComponentToBC(), MFEMProblem::addImagComponentToKernel(), MFEMProblem::addRealComponentToBC(), MFEMProblem::addRealComponentToKernel(), and WebServerControl::addServerAction().

◆ getSharedPtr() [2/2]

std::shared_ptr< const MooseObject > MooseObject::getSharedPtr ( ) const
inherited

Definition at line 83 of file MooseObject.C.

84{
85 try
86 {
87 return shared_from_this();
88 }
89 catch (std::bad_weak_ptr &)
90 {
91 mooseError(not_shared_error);
92 }
93}

◆ getSolverSystem() [1/2]

SolverSystem & FEProblemBase::getSolverSystem ( unsigned int  sys_num)
inlineinherited

◆ getSolverSystem() [2/2]

const SolverSystem & FEProblemBase::getSolverSystem ( unsigned int  sys_num) const
inlineinherited

Get a constant reference to a solver system.

Parameters
sys_numThe number of the solver system

Definition at line 3858 of file FEProblemBase.h.

3859{
3860 mooseAssert(sys_num < _solver_systems.size(),
3861 "System number greater than the number of solver systems");
3862 return *_solver_systems[sys_num];
3863}

◆ getSolverSystemNames()

const std::vector< SolverSystemName > & FEProblemBase::getSolverSystemNames ( ) const
inlineinherited
Returns
the solver system names in the problem

Definition at line 3047 of file FEProblemBase.h.

3047{ return _solver_sys_names; }
std::vector< SolverSystemName > _solver_sys_names
The union of nonlinear and linear system names.

Referenced by ConsoleUtils::outputExecutionInformation().

◆ getStandardVariable()

MooseVariable & FEProblemBase::getStandardVariable ( const THREAD_ID  tid,
const std::string &  var_name 
)
overridevirtualinherited

Returns the variable reference for requested MooseVariable which may be in any system.

Implements SubProblem.

Definition at line 6542 of file FEProblemBase.C.

6543{
6544 for (auto & sys : _solver_systems)
6545 if (sys->hasVariable(var_name))
6546 return sys->getFieldVariable<Real>(tid, var_name);
6547 if (_aux->hasVariable(var_name))
6548 return _aux->getFieldVariable<Real>(tid, var_name);
6549
6550 mooseError("Unknown variable " + var_name);
6551}

Referenced by CoupleableMooseVariableDependencyIntermediateInterface::coupledValueByName(), FEProblemBase::projectFunctionOnCustomRange(), LinearFVKernel::requestVariableCellGradient(), and ElementSubdomainModifierBase::storeOverriddenDofValues().

◆ getSteadyStateConvergenceName()

const ConvergenceName & FEProblemBase::getSteadyStateConvergenceName ( ) const
inherited

Gets the steady-state detection convergence object name.

Definition at line 10188 of file FEProblemBase.C.

10189{
10191 return _steady_state_convergence_name.value();
10192 else
10193 mooseError("The steady convergence name has not been set.");
10194}
std::optional< ConvergenceName > _steady_state_convergence_name
Steady-state detection convergence name.

Referenced by FEProblemBase::addDefaultSteadyStateConvergence(), TransientBase::convergedToSteadyState(), and TransientBase::init().

◆ getSystem()

System & FEProblemBase::getSystem ( const std::string &  var_name)
overridevirtualinherited

Returns the equation system containing the variable provided.

Implements SubProblem.

Definition at line 6614 of file FEProblemBase.C.

6615{
6616 const auto [var_in_sys, sys_num] = determineSolverSystem(var_name);
6617 if (var_in_sys)
6618 return _solver_systems[sys_num]->system();
6619 else if (_aux->hasVariable(var_name) || _aux->hasScalarVariable(var_name))
6620 return _aux->system();
6621 else
6622 mooseError("Unable to find a system containing the variable " + var_name);
6623}

Referenced by FEProblemBase::addObjectParamsHelper(), MultiApp::appTransferVector(), FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl(), ElementSubdomainModifierBase::gatherPatchElements(), and ElementSubdomainModifierBase::storeOverriddenDofValues().

◆ getSystemBase() [1/3]

SystemBase & FEProblemBase::getSystemBase ( const std::string &  sys_name)
inherited

Get non-constant reference to a system in this problem.

Parameters
sys_nameThe name of the system

Definition at line 9906 of file FEProblemBase.C.

9907{
9908 if (std::find(_solver_sys_names.begin(), _solver_sys_names.end(), sys_name) !=
9909 _solver_sys_names.end())
9910 return getSystemBase(solverSysNum(sys_name));
9911 else if (sys_name == "aux0")
9912 return *_aux;
9913 else
9914 mooseError("System '" + sys_name + "' was requested from problem but does not exist.");
9915}

◆ getSystemBase() [2/3]

SystemBase & FEProblemBase::getSystemBase ( const unsigned int  sys_num)
virtualinherited

Get non-constant reference to a system in this problem.

Parameters
sys_numThe number of the system

Definition at line 9918 of file FEProblemBase.C.

9919{
9920 if (sys_num < _solver_systems.size())
9921 return *_solver_systems[sys_num];
9922
9923 return *_aux;
9924}

◆ getSystemBase() [3/3]

const SystemBase & FEProblemBase::getSystemBase ( const unsigned int  sys_num) const
virtualinherited

Get constant reference to a system in this problem.

Parameters
sys_numThe number of the system

Definition at line 9897 of file FEProblemBase.C.

9898{
9899 if (sys_num < _solver_systems.size())
9900 return *_solver_systems[sys_num];
9901
9902 return *_aux;
9903}

Referenced by FEProblemBase::addObjectParamsHelper(), PhysicsBase::copyVariablesFromMesh(), FEProblemBase::getSystemBase(), FEProblemBase::projectFunctionOnCustomRange(), and ElementSubdomainModifierBase::restoreOverriddenDofValues().

◆ getTimeFromStateArg()

Real FEProblemBase::getTimeFromStateArg ( const Moose::StateArg &  state) const
inherited

Returns the time associated with the requested state.

Definition at line 7627 of file FEProblemBase.C.

7628{
7630 // If we are any iteration type other than time (e.g. nonlinear), then temporally we are still
7631 // in the present time
7632 return time();
7633
7634 switch (state.state)
7635 {
7636 case 0:
7637 return time();
7638
7639 case 1:
7640 return timeOld();
7641
7642 case 2:
7643 return timeOlder();
7644
7645 default:
7646 mooseError("Unhandled state ", state.state, " in FEProblemBase::getTimeFromStateArg");
7647 }
7648}
virtual Real & timeOld() const
virtual Real & time() const
virtual Real & timeOlder() const
The time two steps back.
SolutionIterationType iteration_type
The solution iteration type, e.g. time or nonlinear.
unsigned int state
The state.

Referenced by Function::evaluate(), Function::evaluateDotHelper(), Function::evaluateGradientHelper(), Function::evaluateHelper(), and ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl().

◆ getTransfers() [1/2]

std::vector< std::shared_ptr< Transfer > > FEProblemBase::getTransfers ( ExecFlagType  type,
Transfer::DIRECTION  direction 
) const
inherited

Get Transfers by ExecFlagType and direction.

Definition at line 6073 of file FEProblemBase.C.

6074{
6075 if (direction == MultiAppTransfer::TO_MULTIAPP)
6077 else if (direction == MultiAppTransfer::FROM_MULTIAPP)
6079 else
6081}

◆ getTransfers() [2/2]

std::vector< std::shared_ptr< Transfer > > FEProblemBase::getTransfers ( Transfer::DIRECTION  direction) const
inherited

Definition at line 6084 of file FEProblemBase.C.

6085{
6086 if (direction == MultiAppTransfer::TO_MULTIAPP)
6088 else if (direction == MultiAppTransfer::FROM_MULTIAPP)
6090 else
6092}

◆ getUOExecutionGroups()

void FEProblemBase::getUOExecutionGroups ( TheWarehouse::Query &  query,
std::set< int > &  execution_groups 
) const
privateinherited

Definition at line 5380 of file FEProblemBase.C.

5382{
5383 std::vector<UserObjectBase *> uos;
5384 query.queryIntoUnsorted(uos);
5385 for (const auto & uo : uos)
5386 execution_groups.insert(uo->getParam<int>("execution_order_group"));
5387}

Referenced by FEProblemBase::computeUserObjectByName(), and FEProblemBase::computeUserObjects().

◆ getUOQuery()

TheWarehouse::Query FEProblemBase::getUOQuery ( const std::string &  system,
const ExecFlagType &  type,
const Moose::AuxGroup &  group 
) const
privateinherited

Definition at line 5362 of file FEProblemBase.C.

5365{
5367 theWarehouse().query().condition<AttribSystem>(system).condition<AttribExecOns>(type);
5368
5369 if (group == Moose::PRE_IC)
5370 query.condition<AttribPreIC>(true);
5371 else if (group == Moose::PRE_AUX)
5372 query.condition<AttribPreAux>(type);
5373 else if (group == Moose::POST_AUX)
5374 query.condition<AttribPostAux>(type);
5375
5376 return query;
5377}
TODO: delete this later - it is a temporary hack for dealing with inter-system dependencies.
Definition Attributes.h:346
TODO: delete this later - it is a temporary hack for dealing with inter-system dependencies.
Definition Attributes.h:315
TODO: delete this later - it is a temporary hack for dealing with inter-system dependencies.
Definition Attributes.h:296

Referenced by FEProblemBase::computeUserObjectByName(), and FEProblemBase::computeUserObjects().

◆ getUserObject()

template<class T >
T & FEProblemBase::getUserObject ( const std::string &  name,
unsigned int  tid = 0 
) const
inlineinherited

Get the user object by its name.

Parameters
nameThe name of the user object being retrieved
Returns
Reference to the user object

Definition at line 1421 of file FEProblemBase.h.

1422 {
1423 std::vector<T *> objs;
1424 theWarehouse()
1425 .query()
1426 .condition<AttribSystem>("UserObject")
1427 .condition<AttribThread>(tid)
1428 .condition<AttribName>(name)
1429 .queryInto(objs);
1430 if (objs.empty())
1431 mooseError("Unable to find user object with name '" + name + "'");
1432 return *(objs[0]);
1433 }

Referenced by ChangeOverFixedPointPostprocessor::ChangeOverFixedPointPostprocessor(), ChangeOverTimePostprocessor::ChangeOverTimePostprocessor(), MultiAppTransfer::checkParentAppUserObjectExecuteOn(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), ReporterTransferInterface::hideVariableHelper(), EigenExecutionerBase::init(), EigenProblemSolve::initialSetup(), IntegralPreservingFunctionIC::initialSetup(), ElementSubdomainModifierBase::initialSetup(), EigenExecutionerBase::inversePowerIteration(), and NEML2FEInterpolation::syncWithMainThread().

◆ getUserObjectBase()

const UserObject & FEProblemBase::getUserObjectBase ( const std::string &  name,
const THREAD_ID  tid = 0 
) const
inherited

Get the user object by its name.

Parameters
nameThe name of the user object being retrieved
tidThe thread of the user object (defaults to 0)
Returns
Const reference to the user object

Definition at line 4792 of file FEProblemBase.C.

4793{
4794 std::vector<UserObject *> objs;
4795 theWarehouse()
4796 .query()
4797 .condition<AttribSystem>("UserObject")
4798 .condition<AttribThread>(tid)
4799 .condition<AttribName>(name)
4800 .queryInto(objs);
4801 if (objs.empty())
4802 {
4803 mooseAssert(getMooseApp().actionWarehouse().isTaskComplete("add_user_object"),
4804 "A UserObject getter was called before UserObjects have been constructed. The "
4805 "requested UserObject '" +
4806 name + "' may exist in the input file, but UserObjects are not available yet.");
4807
4808 mooseError("Unable to find user object with name '" + name + "'");
4809 }
4810 mooseAssert(objs.size() == 1, "Should only find one UO");
4811 return *(objs[0]);
4812}

Referenced by MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), MultiApp::appUserObjectBase(), EigenProblem::checkProblemIntegrity(), FEProblemBase::checkUserObjectNameCollision(), UserObjectInterface::getUserObjectFromFEProblem(), MultiAppCloneReporterTransfer::initialSetup(), MultiAppConservativeTransfer::initialSetup(), and Terminator::initialSetup().

◆ getUserObjectJacobianVariables()

const std::vector< const MooseVariableFEBase * > & FEProblemBase::getUserObjectJacobianVariables ( const THREAD_ID  tid) const
inlineinherited

Definition at line 356 of file FEProblemBase.h.

357 {
358 return _uo_jacobian_moose_vars[tid];
359 }

Referenced by ComputeUserObjectsThread::onBoundary(), and ComputeUserObjectsThread::onElement().

◆ getVariable() [1/3]

virtual MooseVariableFieldBase & SubProblem::getVariable ( const THREAD_ID  tid,
const std::string &  var_name,
Moose::VarKindType  expected_var_type = Moose::VarKindType::VAR_ANY,
Moose::VarFieldType  expected_var_field_type = Moose::VarFieldType::VAR_FIELD_ANY 
)
inlinevirtualinherited

Reimplemented from SubProblem.

Definition at line 279 of file SubProblem.h.

283 {
284 return const_cast<MooseVariableFieldBase &>(const_cast<const SubProblem *>(this)->getVariable(
285 tid, var_name, expected_var_type, expected_var_field_type));
286 }

◆ getVariable() [2/3]

const MooseVariableFieldBase & FEProblemBase::getVariable ( const THREAD_ID  tid,
const std::string &  var_name,
Moose::VarKindType  expected_var_type = Moose::VarKindType::VAR_ANY,
Moose::VarFieldType  expected_var_field_type = Moose::VarFieldType::VAR_FIELD_ANY 
) const
overridevirtualinherited

Returns the variable reference for requested variable which must be of the expected_var_type (Nonlinear vs.

Auxiliary) and expected_var_field_type (standard, scalar, vector). The default values of VAR_ANY and VAR_FIELD_ANY should be used when "any" type of variable is acceptable. Throws an error if the variable in question is not in the expected System or of the expected type.

Implements SubProblem.

Definition at line 6532 of file FEProblemBase.C.

6536{
6537 return getVariableHelper(
6538 tid, var_name, expected_var_type, expected_var_field_type, _solver_systems, *_aux);
6539}
MooseVariableFieldBase & getVariableHelper(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type, Moose::VarFieldType expected_var_field_type, const std::vector< T > &nls, const SystemBase &aux) const
Helper function called by getVariable that handles the logic for checking whether Variables of the re...

Referenced by FEProblemBase::addFVInitialCondition(), FEProblemBase::addInitialCondition(), EigenProblem::adjustEigenVector(), MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), MultiAppGeneralFieldNearestLocationTransfer::buildKDTrees(), MultiAppGeneralFieldShapeEvaluationTransfer::buildMeshFunctions(), CoupleableMooseVariableDependencyIntermediateInterface::coupledArrayValueByName(), CoupleableMooseVariableDependencyIntermediateInterface::coupledValueByName(), MultiAppGeometricInterpolationTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppUserObjectTransfer::execute(), NodalNormalsCorner::execute(), NodalNormalsEvaluator::execute(), NodalNormalsPreprocessor::execute(), FunctorNodalCorrector::FunctorNodalCorrector(), NEML2FEInterpolation::getMOOSEVariable(), LazyCoupleable::init(), AdvancedOutput::initAvailableLists(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), MultiAppProjectionTransfer::initialSetup(), AdvancedOutput::initShowHideLists(), MultiApplibMeshToMFEMShapeEvaluationTransfer::interpolatelibMeshVariable(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), MultiAppProjectionTransfer::projectSolution(), MultiAppDofCopyTransfer::transfer(), MultiAppShapeEvaluationTransfer::transferVariable(), and MultiAppMFEMTolibMeshShapeEvaluationTransfer::transferVariables().

◆ getVariable() [3/3]

virtual const MooseVariableFieldBase & SubProblem::getVariable ( const THREAD_ID  tid,
const std::string &  var_name,
Moose::VarKindType  expected_var_type = Moose::VarKindType::VAR_ANY,
Moose::VarFieldType  expected_var_field_type = Moose::VarFieldType::VAR_FIELD_ANY 
) const
virtualinherited

Returns the variable reference for requested variable which must be of the expected_var_type (Nonlinear vs.

Auxiliary) and expected_var_field_type (standard, scalar, vector). The default values of VAR_ANY and VAR_FIELD_ANY should be used when "any" type of variable is acceptable. Throws an error if the variable in question is not in the expected System or of the expected type.

Implements SubProblem.

◆ getVariableHelper() [1/2]

template<typename T >
MooseVariableFieldBase & SubProblem::getVariableHelper ( const THREAD_ID  tid,
const std::string &  var_name,
Moose::VarKindType  expected_var_type,
Moose::VarFieldType  expected_var_field_type,
const std::vector< T > &  nls,
const SystemBase &  aux 
) const
protectedinherited

Helper function called by getVariable that handles the logic for checking whether Variables of the requested type are available.

Referenced by DisplacedProblem::getVariable(), and FEProblemBase::getVariable().

◆ getVariableHelper() [2/2]

template<typename T >
MooseVariableFEBase & SubProblem::getVariableHelper ( const THREAD_ID  tid,
const std::string &  var_name,
Moose::VarKindType  expected_var_type,
Moose::VarFieldType  expected_var_field_type,
const std::vector< T > &  systems,
const SystemBase &  aux 
) const
inherited

Definition at line 807 of file SubProblem.C.

813{
814 // Eventual return value
815 MooseVariableFEBase * var = nullptr;
816
817 const auto [var_in_sys, sys_num] = determineSolverSystem(var_name);
818
819 // First check that the variable is found on the expected system.
820 if (expected_var_type == Moose::VarKindType::VAR_ANY)
821 {
822 if (var_in_sys)
823 var = &(systems[sys_num]->getVariable(tid, var_name));
824 else if (aux.hasVariable(var_name))
825 var = &(aux.getVariable(tid, var_name));
826 else
827 mooseError("Unknown variable " + var_name);
828 }
829 else if (expected_var_type == Moose::VarKindType::VAR_SOLVER && var_in_sys &&
830 systems[sys_num]->hasVariable(var_name))
831 var = &(systems[sys_num]->getVariable(tid, var_name));
832 else if (expected_var_type == Moose::VarKindType::VAR_AUXILIARY && aux.hasVariable(var_name))
833 var = &(aux.getVariable(tid, var_name));
834 else
835 {
836 std::string expected_var_type_string =
837 (expected_var_type == Moose::VarKindType::VAR_SOLVER ? "nonlinear" : "auxiliary");
838 mooseError("No ",
839 expected_var_type_string,
840 " variable named ",
841 var_name,
842 " found. "
843 "Did you specify an auxiliary variable when you meant to specify a nonlinear "
844 "variable (or vice-versa)?");
845 }
846
847 // Now make sure the var found has the expected field type.
848 if ((expected_var_field_type == Moose::VarFieldType::VAR_FIELD_ANY) ||
849 (expected_var_field_type == var->fieldType()))
850 return *var;
851 else
852 {
853 std::string expected_var_field_type_string =
854 MooseUtils::toLower(Moose::stringify(expected_var_field_type));
855 std::string var_field_type_string = MooseUtils::toLower(Moose::stringify(var->fieldType()));
856
857 mooseError("No ",
858 expected_var_field_type_string,
859 " variable named ",
860 var_name,
861 " found. "
862 "Did you specify a ",
863 var_field_type_string,
864 " variable when you meant to specify a ",
865 expected_var_field_type_string,
866 " variable?");
867 }
868}
virtual Moose::VarFieldType fieldType() const =0
Field type of this variable.
virtual std::pair< bool, unsigned int > determineSolverSystem(const std::string &var_name, bool error_if_not_found=false) const =0
virtual bool hasVariable(const std::string &var_name) const =0
Whether or not this problem has the variable.
std::string toLower(std::string name)
Convert supplied string to lower case.

◆ getVariableNames()

std::vector< VariableName > FEProblemBase::getVariableNames ( )
virtualinherited

Returns a list of all the variables in the problem (both from the NL and Aux systems.

Definition at line 9606 of file FEProblemBase.C.

9607{
9608 std::vector<VariableName> names;
9609
9610 for (auto & sys : _solver_systems)
9611 {
9612 const std::vector<VariableName> & var_names = sys->getVariableNames();
9613 names.insert(names.end(), var_names.begin(), var_names.end());
9614 }
9615
9616 const std::vector<VariableName> & aux_var_names = _aux->getVariableNames();
9617 names.insert(names.end(), aux_var_names.begin(), aux_var_names.end());
9618
9619 return names;
9620}

Referenced by EigenProblem::adjustEigenVector(), AdvancedOutput::initAvailableLists(), and ElementSubdomainModifierBase::initialSetup().

◆ getVectorPostprocessorObjectByName()

const VectorPostprocessor & FEProblemBase::getVectorPostprocessorObjectByName ( const std::string &  object_name,
const THREAD_ID  tid = 0 
) const
inherited

Return the VPP object given the name.

Parameters
object_nameThe name of the VPP object
Returns
Desired VPP object

This is used by various output objects as well as the scatter value handling.

See also
CSV.C, XMLOutput.C, VectorPostprocessorInterface.C

Definition at line 5017 of file FEProblemBase.C.

5019{
5020 std::vector<VectorPostprocessor *> objs;
5021 theWarehouse()
5022 .query()
5024 .condition<AttribThread>(tid)
5025 .condition<AttribName>(object_name)
5026 .queryInto(objs);
5027
5028 if (objs.empty())
5029 {
5030 mooseAssert(
5031 getMooseApp().actionWarehouse().isTaskComplete("add_vector_postprocessor"),
5032 "A VectorPostprocessor getter was called before VectorPostprocessors have been "
5033 "constructed. The requested VectorPostprocessor '" +
5034 object_name +
5035 "' may exist in the input file, but VectorPostprocessors are not available yet.");
5036
5037 mooseError("Unable to find VectorPostprocessor with name '", object_name, "'");
5038 }
5039 mooseAssert(objs.size() == 1,
5040 "We shouldn't find more than one vector postprocessor object for a given name");
5041 return *(objs[0]);
5042}
@ VectorPostprocessor

Referenced by CombinedVectorPostprocessor::CombinedVectorPostprocessor(), VectorPostprocessorInterface::isVectorPostprocessorDistributedByName(), CSV::output(), and XMLOutput::outputVectorPostprocessors().

◆ getVectorPostprocessorValueByName()

const VectorPostprocessorValue & FEProblemBase::getVectorPostprocessorValueByName ( const std::string &  object_name,
const std::string &  vector_name,
std::size_t  t_index = 0 
) const
inherited

Get a read-only reference to the vector value associated with the VectorPostprocessor.

Parameters
object_nameThe name of the VPP object.
vector_nameThe namve of the decalred vector within the object.
Returns
Referent to the vector of data.

Note: This method is only for retrieving values that already exist, the VectorPostprocessor and VectorPostprocessorInterface objects should be used rather than this method for creating and getting values within objects.

Definition at line 4998 of file FEProblemBase.C.

5001{
5003 VectorPostprocessorReporterName(object_name, vector_name), t_index);
5004}
std::vector< Real > VectorPostprocessorValue
Definition MooseTypes.h:231
A ReporterName that represents a VectorPostprocessor.

Referenced by HistogramVectorPostprocessor::execute().

◆ getVectorTag()

const VectorTag & SubProblem::getVectorTag ( const TagID  tag_id) const
virtualinherited

◆ getVectorTagID()

TagID SubProblem::getVectorTagID ( const TagName &  tag_name) const
virtualinherited

Get a TagID from a TagName.

Reimplemented in DisplacedProblem.

Definition at line 192 of file SubProblem.C.

193{
194 mooseAssert(verifyVectorTags(), "Vector tag storage invalid");
195
196 const auto tag_name_upper = MooseUtils::toUpper(tag_name);
197 const auto search = _vector_tags_name_map.find(tag_name_upper);
198 if (search != _vector_tags_name_map.end())
199 return search->second;
200
201 std::string message =
202 tag_name_upper == "TIME"
203 ? ".\n\nThis may occur if "
204 "you have a TimeKernel in your problem but did not specify a transient executioner."
205 : "";
206 mooseError("Vector tag '", tag_name_upper, "' does not exist", message);
207}

Referenced by Coupleable::coupledVectorTagArrayGradient(), Coupleable::coupledVectorTagArrayGradients(), Coupleable::coupledVectorTagArrayValues(), Coupleable::coupledVectorTagDofValues(), Coupleable::coupledVectorTagGradient(), Coupleable::coupledVectorTagGradients(), ScalarCoupleable::coupledVectorTagScalarValue(), Coupleable::coupledVectorTagValues(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), DisplacedProblem::getVectorTagID(), MooseVariableDataBase< OutputType >::MooseVariableDataBase(), ReferenceResidualConvergence::ReferenceResidualConvergence(), SolverSystem::setSolution(), TaggingInterface::TaggingInterface(), TagVectorAux::TagVectorAux(), MultiAppDofCopyTransfer::transfer(), TaggingInterface::useVectorTag(), Coupleable::vectorTagDofValueHelper(), and Coupleable::vectorTagValueHelper().

◆ getVectorTags() [1/2]

const std::vector< VectorTag > & SubProblem::getVectorTags ( const Moose::VectorTagType  type = Moose::VECTOR_TAG_ANY) const
virtualinherited

Return all vector tags, where a tag is represented by a map from name to ID.

Can optionally be limited to a vector tag type.

Reimplemented in DisplacedProblem.

Definition at line 173 of file SubProblem.C.

174{
175 mooseAssert(verifyVectorTags(), "Vector tag storage invalid");
176
178 return _vector_tags;
179 else
180 return _typed_vector_tags[type];
181}

◆ getVectorTags() [2/2]

std::vector< VectorTag > SubProblem::getVectorTags ( const std::set< TagID > &  tag_ids) const
inherited

◆ getVectorVariable()

VectorMooseVariable & FEProblemBase::getVectorVariable ( const THREAD_ID  tid,
const std::string &  var_name 
)
overridevirtualinherited

Returns the variable reference for requested VectorMooseVariable which may be in any system.

Implements SubProblem.

Definition at line 6566 of file FEProblemBase.C.

6567{
6568 for (auto & sys : _solver_systems)
6569 if (sys->hasVariable(var_name))
6570 return sys->getFieldVariable<RealVectorValue>(tid, var_name);
6571 if (_aux->hasVariable(var_name))
6572 return _aux->getFieldVariable<RealVectorValue>(tid, var_name);
6573
6574 mooseError("Unknown variable " + var_name);
6575}
VectorValue< Real > RealVectorValue
Definition SubProblem.h:34

◆ getXFEM()

std::shared_ptr< XFEMInterface > FEProblemBase::getXFEM ( )
inlineinherited

Get a pointer to the XFEM controller object.

Definition at line 2199 of file FEProblemBase.h.

2199{ return _xfem; }
std::shared_ptr< XFEMInterface > _xfem
Pointer to XFEM controller.

◆ ghostedElems()

virtual std::set< dof_id_type > & SubProblem::ghostedElems ( )
inlinevirtualinherited

Return the list of elements that should have their DoFs ghosted to this processor.

Returns
The list

Reimplemented in DisplacedProblem.

Definition at line 680 of file SubProblem.h.

680{ return _ghosted_elems; }

Referenced by SystemBase::augmentSendList(), NearestNodeLocator::findNodes(), DisplacedProblem::ghostedElems(), and NearestNodeLocator::updatePatch().

◆ ghostGhostedBoundaries()

void FEProblemBase::ghostGhostedBoundaries ( )
overridevirtualinherited

Causes the boundaries added using addGhostedBoundary to actually be ghosted.

Implements SubProblem.

Definition at line 2324 of file FEProblemBase.C.

2325{
2326 TIME_SECTION("ghostGhostedBoundaries", 3, "Ghosting Ghosted Boundaries");
2327
2329
2332}
void ghostGhostedBoundaries()
Actually do the ghosting of boundaries that need to be ghosted to this processor.
Definition MooseMesh.C:3378

Referenced by DisplacedProblem::ghostGhostedBoundaries(), FEProblemBase::init(), and FEProblemBase::meshChanged().

◆ handleException()

void FEProblemBase::handleException ( const std::string &  calling_method)
privateinherited

Handle exceptions.

Note that the result of this call will be a thrown MooseException. The caller of this method must determine how to handle the thrown exception

Definition at line 8022 of file FEProblemBase.C.

8023{
8024 auto create_exception_message =
8025 [&calling_method](const std::string & exception_type, const auto & exception)
8026 {
8027 return std::string("A " + exception_type + " was raised during FEProblemBase::" +
8028 calling_method + "\n" + std::string(exception.what()));
8029 };
8030
8031 try
8032 {
8033 throw;
8034 }
8035 catch (const MooseException & e)
8036 {
8037 setException(create_exception_message("MooseException", e));
8038 }
8039 catch (const MetaPhysicL::LogicError & e)
8040 {
8042 }
8043 catch (const libMesh::PetscSolverException & e)
8044 {
8045 // One PETSc solver exception that we cannot currently recover from are new nonzero errors. In
8046 // particular I have observed the following scenario in a parallel test:
8047 // - Both processes throw because of a new nonzero during MOOSE's computeJacobianTags
8048 // - We potentially handle the exceptions nicely here
8049 // - When the matrix is closed in libMesh's libmesh_petsc_snes_solver, there is a new nonzero
8050 // throw which we do not catch here in MOOSE and the simulation terminates. This only appears
8051 // in parallel (and not all the time; a test I was examining threw with distributed mesh, but
8052 // not with replicated). In serial there are no new throws from libmesh_petsc_snes_solver.
8053 // So for uniformity of behavior across serial/parallel, we will choose to abort here and always
8054 // produce a non-zero exit code
8055 mooseError(create_exception_message("libMesh::PetscSolverException", e));
8056 }
8057 catch (const std::exception & e)
8058 {
8059 // This might be libMesh detecting a degenerate Jacobian or matrix
8060 if (strstr(e.what(), "Jacobian") || strstr(e.what(), "singular") ||
8061 strstr(e.what(), "det != 0"))
8062 setException(create_exception_message("libMesh DegenerateMap", e));
8063 else
8064 {
8065 const auto message = create_exception_message("std::exception", e);
8067 mooseError(message);
8068 else
8069 setException(message);
8070 }
8071 }
8072
8074}
virtual void setException(const std::string &message)
Set an exception, which is stored at this point by toggling a member variable in this class,...
const bool _regard_general_exceptions_as_errors
If we catch an exception during residual/Jacobian evaluaton for which we don't have specific handling...
void translateMetaPhysicLError(const MetaPhysicL::LogicError &)
emit a relatively clear error message when we catch a MetaPhysicL logic error
Definition MooseError.C:153

Referenced by FEProblemBase::computeBounds(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and FEProblemBase::computeUserObjectsInternal().

◆ hasActiveElementalMooseVariables()

bool SubProblem::hasActiveElementalMooseVariables ( const THREAD_ID  tid) const
virtualinherited

Whether or not a list of active elemental moose variables has been set.

Returns
True if there has been a list of active elemental moose variables set, False otherwise

Definition at line 449 of file SubProblem.C.

450{
452}
std::vector< unsigned int > _has_active_elemental_moose_variables
Whether or not there is currently a list of active elemental moose variables.

Referenced by SystemBase::prepare(), SystemBase::prepareFace(), and SystemBase::reinitElem().

◆ hasActiveMaterialProperties()

bool FEProblemBase::hasActiveMaterialProperties ( const THREAD_ID  tid) const
inherited

Method to check whether or not a list of active material roperties has been set.

This method is called by reinitMaterials to determine whether Material computeProperties methods need to be called. If the return is False, this check prevents unnecessary material property computation

Parameters
tidThe thread id
Returns
True if there has been a list of active material properties set, False otherwise

Definition at line 6740 of file FEProblemBase.C.

6741{
6743}

Referenced by ComputeMarkerThread::onElement(), FEProblemBase::reinitMaterials(), FEProblemBase::reinitMaterialsBoundary(), FEProblemBase::reinitMaterialsFace(), FEProblemBase::reinitMaterialsFaceOnBoundary(), FEProblemBase::reinitMaterialsInterface(), FEProblemBase::reinitMaterialsNeighbor(), and FEProblemBase::reinitMaterialsNeighborOnBoundary().

◆ hasAuxiliaryVariable()

bool SubProblem::hasAuxiliaryVariable ( const std::string &  var_name) const
virtualinherited

◆ hasBase()

bool MooseBase::hasBase ( ) const
inlineinherited
Returns
Whether or not this object has a registered base (set via InputParameters::registerBase())

Definition at line 142 of file MooseBase.h.

142{ return _pars.hasBase(); }
bool hasBase() const

◆ hasBlockMaterialProperty()

bool SubProblem::hasBlockMaterialProperty ( SubdomainID  block_id,
const std::string &  prop_name 
)
virtualinherited

Check if a material property is defined on a block.

Definition at line 500 of file SubProblem.C.

501{
502 auto it = _map_block_material_props.find(bid);
503 if (it == _map_block_material_props.end())
504 return false;
505
506 if (it->second.count(prop_name) > 0)
507 return true;
508 else
509 return false;
510}

◆ hasBoundaryMaterialProperty()

bool SubProblem::hasBoundaryMaterialProperty ( BoundaryID  boundary_id,
const std::string &  prop_name 
)
virtualinherited

Check if a material property is defined on a block.

Definition at line 559 of file SubProblem.C.

560{
561 auto it = _map_boundary_material_props.find(bid);
562 if (it == _map_boundary_material_props.end())
563 return false;
564
565 if (it->second.count(prop_name) > 0)
566 return true;
567 else
568 return false;
569}

◆ hasConvergence()

bool FEProblemBase::hasConvergence ( const std::string &  name,
const THREAD_ID  tid = 0 
) const
virtualinherited

Returns true if the problem has a Convergence object of the given name.

Definition at line 2829 of file FEProblemBase.C.

2830{
2831 return _convergences.hasActiveObject(name, tid);
2832}
bool hasActiveObject(const std::string &name, THREAD_ID tid=0) const
Convenience functions for checking/getting specific objects.

Referenced by ParsedConvergence::initializeSymbols().

◆ hasDampers()

bool FEProblemBase::hasDampers ( )
inlineinherited

Whether or not this system has dampers.

Definition at line 1669 of file FEProblemBase.h.

1669{ return _has_dampers; }

Referenced by NonlinearSystemBase::preInit(), and NonlinearSystem::solve().

◆ hasDistribution()

bool FEProblemBase::hasDistribution ( const std::string &  name) const
virtualinherited

Definition at line 2905 of file FEProblemBase.C.

2906{
2907 std::vector<Distribution *> objs;
2908 theWarehouse()
2909 .query()
2910 .condition<AttribSystem>("Distribution")
2911 .condition<AttribName>(name)
2912 .queryInto(objs);
2913 return !objs.empty();
2914}

◆ hasException()

virtual bool FEProblemBase::hasException ( )
inlinevirtualinherited

Whether or not an exception has occurred.

Definition at line 535 of file FEProblemBase.h.

535{ return _has_exception; }

Referenced by NonlinearSystem::converged(), ThreadedNodeLoop< RangeType, IteratorType >::keepGoing(), and ThreadedElementLoop< RangeType >::keepGoing().

◆ hasFunction()

bool FEProblemBase::hasFunction ( const std::string &  name,
const THREAD_ID  tid = 0 
)
virtualinherited

◆ hasFunctor()

bool SubProblem::hasFunctor ( const std::string &  name,
const THREAD_ID  tid 
) const
inherited

checks whether we have a functor corresponding to name on the thread id tid

Definition at line 1279 of file SubProblem.C.

1280{
1281 mooseAssert(tid < _functors.size(), "Too large a thread ID");
1282 auto & functors = _functors[tid];
1283 return (functors.find("wraps_" + name) != functors.end());
1284}

Referenced by DiffusionCG::addFEKernels(), and FunctorInterface::isFunctor().

◆ hasFunctorWithType()

template<typename T >
bool SubProblem::hasFunctorWithType ( const std::string &  name,
const THREAD_ID  tid 
) const
inherited

checks whether we have a functor of type T corresponding to name on the thread id tid

Definition at line 1319 of file SubProblem.h.

1320{
1321 mooseAssert(tid < _functors.size(), "Too large a thread ID");
1322 auto & functors = _functors[tid];
1323
1324 const auto & it = functors.find("wraps_" + name);
1325 constexpr bool requested_functor_is_ad =
1326 !std::is_same<T, typename MetaPhysicL::RawType<T>::value_type>::value;
1327
1328 if (it == functors.end())
1329 return false;
1330 else
1331 return dynamic_cast<Moose::Functor<T> *>(
1332 requested_functor_is_ad ? std::get<2>(it->second).get() : std::get<1>(it->second).get());
1333}

◆ hasFVGradientMethod()

bool FEProblemBase::hasFVGradientMethod ( const GradientMethodName &  name) const
inherited

Check if an FV gradient method with a given name exists.

Definition at line 4861 of file FEProblemBase.C.

4862{
4863 std::vector<FVGradientMethod *> methods;
4864 theWarehouse()
4865 .query()
4866 .condition<AttribSystem>("FVGradientMethod")
4867 .condition<AttribThread>(0)
4868 .condition<AttribName>(name)
4869 .queryInto(methods);
4870 return !methods.empty();
4871}

◆ hasFVInterpolationMethod()

bool FEProblemBase::hasFVInterpolationMethod ( const InterpolationMethodName &  name) const
inherited

Check if an FV interpolation method with a given name exists.

Definition at line 4935 of file FEProblemBase.C.

4936{
4937 std::vector<FVInterpolationMethod *> methods;
4938 theWarehouse()
4939 .query()
4940 .condition<AttribSystem>("FVInterpolationMethod")
4941 .condition<AttribThread>(0)
4942 .condition<AttribName>(name)
4943 .queryInto(methods);
4944 return !methods.empty();
4945}

Referenced by FVInterpolationMethodInterface::hasFVInterpolationMethod().

◆ hasInitialAdaptivity() [1/2]

bool FEProblemBase::hasInitialAdaptivity ( ) const
inlineinherited

Return a Boolean indicating whether initial AMR is turned on.

Definition at line 2187 of file FEProblemBase.h.

2187{ return _adaptivity.getInitialSteps() > 0; }
unsigned int getInitialSteps() const
Pull out the number of initial steps previously set by calling init()
Definition Adaptivity.h:112

◆ hasInitialAdaptivity() [2/2]

bool FEProblemBase::hasInitialAdaptivity ( ) const
inlineinherited

Return a Boolean indicating whether initial AMR is turned on.

Definition at line 2192 of file FEProblemBase.h.

2192{ return false; }

◆ hasJacobian()

bool FEProblemBase::hasJacobian ( ) const
inherited

Returns _has_jacobian.

Definition at line 9821 of file FEProblemBase.C.

9822{
9823 return _has_jacobian;
9824}

Referenced by DisplacedProblem::prepare().

◆ hasKokkosFunction()

virtual bool FEProblemBase::hasKokkosFunction ( const std::string &  name) const
virtualinherited

Get whether a Kokkos function exists.

Parameters
nameThe Kokkos function name
Returns
Whether a Kokkos function exists

Referenced by FEProblemBase::getKokkosFunction().

◆ hasKokkosObjects()

bool FEProblemBase::hasKokkosObjects ( ) const
inlineinherited
Returns
whether any Kokkos object was added in the problem

Definition at line 3071 of file FEProblemBase.h.

3071{ return _has_kokkos_objects; }
bool _has_kokkos_objects
Whether we have any Kokkos objects.

Referenced by MooseMesh::update().

◆ hasKokkosResidualObjects()

bool FEProblemBase::hasKokkosResidualObjects ( ) const
inlineinherited

◆ hasKokkosUserObject()

bool FEProblemBase::hasKokkosUserObject ( const std::string &  name) const
inherited

Check if there if a Kokkos user object of given name.

Parameters
nameThe name of the Kokkos user object being checked for
Returns
true if the Kokkos user object exists, false otherwise

Referenced by FEProblemBase::checkUserObjectNameCollision(), UserObjectInterface::getUserObjectFromFEProblem(), and UserObjectInterface::hasUserObjectByName().

◆ hasLinearConvergenceObjects()

bool FEProblemBase::hasLinearConvergenceObjects ( ) const
inherited

Whether we have linear convergence objects.

Definition at line 10155 of file FEProblemBase.C.

10156{
10157 // If false,this means we have not set one, not that we are querying this too early
10158 // TODO: once there is a default linear CV object, error on the 'not set' case
10159 return _linear_convergence_names.has_value();
10160}

Referenced by Moose::PetscSupport::petscSetDefaults().

◆ hasLinearVariable()

bool SubProblem::hasLinearVariable ( const std::string &  var_name) const
virtualinherited

Whether or not this problem has this linear variable.

Definition at line 791 of file SubProblem.C.

792{
793 for (const auto i : make_range(numLinearSystems()))
794 if (systemBaseLinear(i).hasVariable(var_name))
795 return true;
796 return false;
797}
virtual std::size_t numLinearSystems() const =0
virtual const SystemBase & systemBaseLinear(const unsigned int sys_num) const =0
Return the linear system object as a base class reference given the system number.

Referenced by SubProblem::getFunctor().

◆ hasMortarCoupling()

virtual bool FEProblemBase::hasMortarCoupling ( ) const
inlinevirtualinherited

Whether the simulation has mortar coupling.

Definition at line 2760 of file FEProblemBase.h.

2760{ return _has_mortar; }

◆ hasMultiApp()

bool FEProblemBase::hasMultiApp ( const std::string &  name) const
inherited

Definition at line 5943 of file FEProblemBase.C.

5944{
5945 return _multi_apps.hasActiveObject(multi_app_name);
5946}

Referenced by FEProblemBase::getMultiApp().

◆ hasMultiApps() [1/2]

bool FEProblemBase::hasMultiApps ( ) const
inlineinherited

◆ hasMultiApps() [2/2]

bool FEProblemBase::hasMultiApps ( ExecFlagType  type) const
inherited

Definition at line 5937 of file FEProblemBase.C.

5938{
5940}

◆ hasNeighborCoupling()

virtual bool FEProblemBase::hasNeighborCoupling ( ) const
inlinevirtualinherited

Whether the simulation has neighbor coupling.

Definition at line 2755 of file FEProblemBase.h.

◆ hasNonlocalCoupling()

virtual bool FEProblemBase::hasNonlocalCoupling ( ) const
inlineoverridevirtualinherited

Whether the simulation has active nonlocal coupling which should be accounted for in the Jacobian.

For this to return true, there must be at least one active nonlocal kernel or boundary condition

Implements SubProblem.

Definition at line 3026 of file FEProblemBase.h.

3026{ return _has_nonlocal_coupling; }

Referenced by DisplacedProblem::hasNonlocalCoupling().

◆ hasPostprocessor()

bool FEProblemBase::hasPostprocessor ( const std::string &  name) const
inherited

Deprecated.

Use hasPostprocessorValueByName

Definition at line 4990 of file FEProblemBase.C.

4991{
4992 mooseDeprecated("FEProblemBase::hasPostprocssor is being removed; use "
4993 "hasPostprocessorValueByName instead.");
4995}
bool hasPostprocessorValueByName(const PostprocessorName &name) const
Whether or not a Postprocessor value exists by a given name.

Referenced by GenericFunctorTimeDerivativeMaterialTempl< is_ad >::GenericFunctorTimeDerivativeMaterialTempl().

◆ hasPostprocessorValueByName()

bool FEProblemBase::hasPostprocessorValueByName ( const PostprocessorName &  name) const
inherited

Whether or not a Postprocessor value exists by a given name.

Parameters
nameThe name of the Postprocessor
Returns
True if a Postprocessor value exists

Note: You should prioritize the use of PostprocessorInterface::hasPostprocessor and PostprocessorInterface::hasPostprocessorByName over this method when possible.

Definition at line 4948 of file FEProblemBase.C.

4949{
4951}
bool hasReporterValue(const ReporterName &reporter_name) const
Return True if a Reporter value with the given type and name have been created.

Referenced by DiffusionCG::addFEBCs(), DiffusionCG::addFEKernels(), DiffusionFV::addFVKernels(), FunctorExtremaPositions::FunctorExtremaPositions(), FEProblemBase::hasPostprocessor(), MooseParsedFunction::initialSetup(), and FunctorIC::value().

◆ hasScalarVariable()

bool FEProblemBase::hasScalarVariable ( const std::string &  var_name) const
overridevirtualinherited

Returns a Boolean indicating whether any system contains a variable with the name provided.

Implements SubProblem.

Definition at line 6590 of file FEProblemBase.C.

6591{
6592 for (auto & sys : _solver_systems)
6593 if (sys->hasScalarVariable(var_name))
6594 return true;
6595 if (_aux->hasScalarVariable(var_name))
6596 return true;
6597
6598 return false;
6599}

Referenced by FEProblemBase::addInitialCondition(), FEProblemBase::addObjectParamsHelper(), EigenProblem::adjustEigenVector(), FEProblemBase::checkDuplicatePostprocessorVariableNames(), AdvancedOutput::initAvailableLists(), MooseParsedFunctionWrapper::initialize(), ChainControlParsedFunctionWrapper::initializeFunctionInputs(), MooseParsedFunction::initialSetup(), AdvancedOutput::initShowHideLists(), and Split::setup().

◆ hasScalingVector()

void SubProblem::hasScalingVector ( const unsigned int  nl_sys_num)
inherited

Tells this problem that the assembly associated with the given nonlinear system number involves a scaling vector.

Definition at line 1175 of file SubProblem.C.

1176{
1177 for (const THREAD_ID tid : make_range(libMesh::n_threads()))
1178 assembly(tid, nl_sys_num).hasScalingVector();
1179}
void hasScalingVector(const unsigned int nl_sys_num)
Tells this problem that the assembly associated with the given nonlinear system number involves a sca...
virtual Assembly & assembly(const THREAD_ID tid, const unsigned int sys_num)=0

Referenced by SystemBase::addScalingVector().

◆ hasSetMultiAppFixedPointConvergenceName()

bool FEProblemBase::hasSetMultiAppFixedPointConvergenceName ( ) const
inlineinherited

Returns true if the problem has set the fixed point convergence name.

Definition at line 793 of file FEProblemBase.h.

794 {
796 }

◆ hasSetSteadyStateConvergenceName()

bool FEProblemBase::hasSetSteadyStateConvergenceName ( ) const
inlineinherited

Returns true if the problem has set the steady-state detection convergence name.

Definition at line 798 of file FEProblemBase.h.

799 {
800 return _steady_state_convergence_name.has_value();
801 }

◆ hasSolutionState()

bool FEProblemBase::hasSolutionState ( unsigned int  state,
Moose::SolutionIterationType  iteration_type 
) const
inherited

Whether we need up to old (1) or older (2) solution states for a given type of iteration.

Parameters
oldest_neededoldest solution state needed
iteration_typethe type of iteration for which old/older states are needed

Definition at line 793 of file FEProblemBase.C.

795{
796 bool has_solution_state = false;
797 for (auto & sys : _solver_systems)
798 has_solution_state |= sys->hasSolutionState(state, iteration_type);
799 has_solution_state |= _aux->hasSolutionState(state, iteration_type);
800 return has_solution_state;
801}
bool hasSolutionState(unsigned int state, Moose::SolutionIterationType iteration_type) const
Whether we need up to old (1) or older (2) solution states for a given type of iteration.

◆ hasSolverVariable()

bool FEProblemBase::hasSolverVariable ( const std::string &  var_name) const
inherited

Definition at line 6522 of file FEProblemBase.C.

6523{
6524 for (auto & sys : _solver_systems)
6525 if (sys->hasVariable(var_name))
6526 return true;
6527
6528 return false;
6529}

Referenced by FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl().

◆ hasTimeIntegrator()

bool FEProblemBase::hasTimeIntegrator ( ) const
inlineinherited

Returns whether or not this Problem has a TimeIntegrator.

Definition at line 2484 of file FEProblemBase.h.

2484{ return _has_time_integrator; }

Referenced by TransientBase::setupTimeIntegrator().

◆ hasUOAuxStateCheck()

bool FEProblemBase::hasUOAuxStateCheck ( ) const
inlineinherited

Whether or not MOOSE will perform a user object/auxiliary kernel state check.

Definition at line 221 of file FEProblemBase.h.

221{ return _uo_aux_state_check; }
const bool _uo_aux_state_check
Whether or not checking the state of uo/aux evaluation.

◆ hasUserObject()

bool FEProblemBase::hasUserObject ( const std::string &  name) const
inherited

Check if there if a user object of given name.

Parameters
nameThe name of the user object being checked for
Returns
true if the user object exists, false otherwise

Definition at line 4830 of file FEProblemBase.C.

4831{
4832 std::vector<UserObject *> objs;
4833 theWarehouse()
4834 .query()
4835 .condition<AttribSystem>("UserObject")
4836 .condition<AttribThread>(0)
4837 .condition<AttribName>(name)
4838 .queryInto(objs);
4839 return !objs.empty();
4840}

Referenced by FEProblemBase::checkUserObjectNameCollision(), DistributedPositions::DistributedPositions(), MultiAppGeneralFieldFunctorTransfer::execute(), UserObjectInterface::getUserObjectFromFEProblem(), UserObjectInterface::hasUserObjectByName(), ReporterTransferInterface::hideVariableHelper(), ParsedDownSelectionPositions::initialize(), and TransformedPositions::TransformedPositions().

◆ hasVariable()

bool FEProblemBase::hasVariable ( const std::string &  var_name) const
overridevirtualinherited

◆ haveADObjects() [1/3]

bool SubProblem::haveADObjects ( ) const
inlineinherited

Method for reading wehther we have any ad objects.

Definition at line 779 of file SubProblem.h.

779{ return _have_ad_objects; }
bool _have_ad_objects
AD flag indicating whether any AD objects have been added.

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), and FEProblemBase::init().

◆ haveADObjects() [2/3]

virtual void SubProblem::haveADObjects ( bool  have_ad_objects)
inlinevirtualinherited

Method for setting whether we have any ad objects.

Reimplemented from SubProblem.

Definition at line 775 of file SubProblem.h.

775{ _have_ad_objects = have_ad_objects; }

◆ haveADObjects() [3/3]

void FEProblemBase::haveADObjects ( bool  have_ad_objects)
overridevirtualinherited

Method for setting whether we have any ad objects.

Reimplemented from SubProblem.

Definition at line 9889 of file FEProblemBase.C.

9890{
9891 _have_ad_objects = have_ad_objects;
9893 _displaced_problem->SubProblem::haveADObjects(have_ad_objects);
9894}

◆ haveDisplaced()

bool FEProblemBase::haveDisplaced ( ) const
inlinefinaloverridevirtualinherited

Whether we have a displaced problem in our simulation.

Implements SubProblem.

Definition at line 2860 of file FEProblemBase.h.

2860{ return _displaced_problem.get(); }

◆ haveFV()

virtual bool FEProblemBase::haveFV ( ) const
inlineoverridevirtualinherited

◆ haveXFEM()

bool FEProblemBase::haveXFEM ( )
inlineinherited

Find out whether the current analysis is using XFEM.

Definition at line 2202 of file FEProblemBase.h.

2202{ return _xfem != nullptr; }

Referenced by FixedPointSolve::solveStep(), TransientBase::takeStep(), and FEProblemBase::updateMeshXFEM().

◆ identifyVariableGroupsInNL()

bool FEProblemBase::identifyVariableGroupsInNL ( ) const
inlineinherited

Whether to identify variable groups in nonlinear systems.

This affects dof ordering

Definition at line 3031 of file FEProblemBase.h.

const bool _identify_variable_groups_in_nl
Whether to identify variable groups in nonlinear systems. This affects dof ordering.

Referenced by NonlinearSystemBase::NonlinearSystemBase().

◆ ignoreZerosInJacobian()

bool FEProblemBase::ignoreZerosInJacobian ( ) const
inlineinherited

Will return true if zeros in the Jacobian are to be dropped from the sparsity pattern.

Note that this can make preserving the matrix sparsity pattern impossible.

Definition at line 2456 of file FEProblemBase.h.

2456{ return _ignore_zeros_in_jacobian; }
bool _ignore_zeros_in_jacobian
Whether to ignore zeros in the Jacobian, thereby leading to a reduced sparsity pattern.

Referenced by NonlinearSystemBase::computeJacobianInternal(), NonlinearSystemBase::computeResidualAndJacobianInternal(), and NonlinearSystemBase::constraintJacobians().

◆ immediatelyPrintInvalidSolution()

bool FEProblemBase::immediatelyPrintInvalidSolution ( ) const
inlineinherited

Whether or not the solution invalid warnings are printed out immediately.

Definition at line 2481 of file FEProblemBase.h.

const bool & _immediately_print_invalid_solution

Referenced by SolutionInvalidInterface::flagInvalidSolutionInternal().

◆ incrementMultiAppTStep()

void FEProblemBase::incrementMultiAppTStep ( ExecFlagType  type)
inherited

Advance the MultiApps t_step (incrementStepOrReject) associated with the ExecFlagType.

Definition at line 6341 of file FEProblemBase.C.

6342{
6343 const auto & multi_apps = _multi_apps[type].getActiveObjects();
6344
6345 if (multi_apps.size())
6346 for (const auto & multi_app : multi_apps)
6347 multi_app->incrementTStep(_time);
6348}

Referenced by TransientBase::incrementStepOrReject().

◆ init()

void FEProblemBase::init ( )
overridevirtualinherited

Implements Problem.

Reimplemented in EigenProblem, and FEProblem.

Definition at line 7020 of file FEProblemBase.C.

7021{
7022 if (_initialized)
7023 return;
7024
7025 TIME_SECTION("init", 2, "Initializing");
7026
7027 // call executioner's preProblemInit so that it can do some setups before problem init
7029
7030 // If we have AD and we are doing global AD indexing, then we should by default set the matrix
7031 // coupling to full. If the user has told us to trust their coupling matrix, then this call will
7032 // not do anything
7035
7036 for (const auto i : index_range(_nl))
7037 {
7038 auto & nl = _nl[i];
7039 auto & cm = _cm[i];
7040
7041 unsigned int n_vars = nl->nVariables();
7042 {
7043 TIME_SECTION("fillCouplingMatrix", 3, "Filling Coupling Matrix");
7044
7045 switch (_coupling)
7046 {
7048 cm = std::make_unique<CouplingMatrix>(n_vars);
7049 for (unsigned int i = 0; i < n_vars; i++)
7050 (*cm)(i, i) = 1;
7051 break;
7052
7053 // for full jacobian
7055 cm = std::make_unique<CouplingMatrix>(n_vars);
7056 for (unsigned int i = 0; i < n_vars; i++)
7057 for (unsigned int j = 0; j < n_vars; j++)
7058 (*cm)(i, j) = 1;
7059 break;
7060
7062 // do nothing, _cm was already set through couplingMatrix() call
7063 break;
7064 }
7065 }
7066
7067 nl->dofMap()._dof_coupling = cm.get();
7068
7069 // If there are no variables, make sure to pass a nullptr coupling
7070 // matrix, to avoid warnings about non-nullptr yet empty
7071 // CouplingMatrices.
7072 if (n_vars == 0)
7073 nl->dofMap()._dof_coupling = nullptr;
7074
7075 nl->dofMap().attach_extra_sparsity_function(&extraSparsity, nl.get());
7076 nl->dofMap().attach_extra_send_list_function(&extraSendList, nl.get());
7077 _aux->dofMap().attach_extra_send_list_function(&extraSendList, _aux.get());
7078
7079 if (!_skip_nl_system_check && _solve && n_vars == 0)
7080 mooseError("No variables specified in nonlinear system '", nl->name(), "'.");
7081 }
7082
7083 ghostGhostedBoundaries(); // We do this again right here in case new boundaries have been added
7084
7085 // We may have added element/nodes to the mesh in ghostGhostedBoundaries so we need to update
7086 // all of our mesh information. We need to make sure that mesh information is up-to-date before
7087 // EquationSystems::init because that will call through to updateGeomSearch (for sparsity
7088 // augmentation) and if we haven't added back boundary node information before that latter call,
7089 // then we're screwed. We'll get things like "Unable to find closest node!"
7093
7094 if (_mesh.doingPRefinement())
7095 {
7098 _displaced_problem->preparePRefinement();
7099 }
7100
7101 // do not assemble system matrix for JFNK solve
7102 for (auto & nl : _nl)
7103 if (solverParams(nl->number())._type == Moose::ST_JFNK)
7104 nl->turnOffJacobian();
7105
7106 for (auto & sys : _solver_systems)
7107 sys->preInit();
7108 _aux->preInit();
7109
7110 // Build the mortar segment meshes, if they haven't been already, for a couple reasons:
7111 // 1) Get the ghosting correct for both static and dynamic meshes
7112 // 2) Make sure the mortar mesh is built for mortar constraints that live on the static mesh
7113 //
7114 // It is worth-while to note that mortar meshes that live on a dynamic mesh will be built
7115 // during residual and Jacobian evaluation because when displacements are solution variables
7116 // the mortar mesh will move and change during the course of a non-linear solve. We DO NOT
7117 // redo ghosting during non-linear solve, so for purpose 1) the below call has to be made
7118 if (!_mortar_data->initialized())
7120
7121 {
7122 TIME_SECTION("EquationSystems::Init", 2, "Initializing Equation Systems");
7123 es().init();
7124 }
7125
7126 for (auto & sys : _solver_systems)
7127 sys->postInit();
7128 _aux->postInit();
7129
7130 // Now that the equation system and the dof distribution is done, we can generate the
7131 // finite volume-related parts if needed.
7132 if (haveFV())
7134
7135 for (auto & sys : _solver_systems)
7136 sys->update();
7137 _aux->update();
7138
7139 for (THREAD_ID tid = 0; tid < libMesh::n_threads(); ++tid)
7140 for (const auto i : index_range(_nl))
7141 {
7142 mooseAssert(
7143 _cm[i],
7144 "Coupling matrix not set for system "
7145 << i
7146 << ". This should only happen if a preconditioner was not setup for this system");
7147 _assembly[tid][i]->init(_cm[i].get());
7148 }
7149
7151 _displaced_problem->init();
7152
7153#ifdef MOOSE_KOKKOS_ENABLED
7155 initKokkos();
7156#endif
7157
7158 _initialized = true;
7159}
void extraSendList(std::vector< dof_id_type > &send_list, void *context)
///< Type of coordinate system
Definition SystemBase.C:38
void extraSparsity(libMesh::SparsityPattern::Graph &sparsity, std::vector< dof_id_type > &n_nz, std::vector< dof_id_type > &n_oz, void *context)
Free function used for a libMesh callback.
Definition SystemBase.C:46
unsigned int n_vars
virtual void preProblemInit()
Perform initializations during executing actions right before init_problem task.
Definition Executioner.h:57
virtual bool haveFV() const override
returns true if this problem includes/needs finite volume functionality.
void setCoupling(Moose::CouplingType type)
Set the coupling between variables TODO: allow user-defined coupling.
SolverParams & solverParams(unsigned int solver_sys_num=0)
Get the solver parameters.
void initKokkos()
Construct Kokkos assembly and systems and allocate Kokkos material property storages.
virtual void ghostGhostedBoundaries() override
Causes the boundaries added using addGhostedBoundary to actually be ghosted.
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
Definition MooseApp.C:2020
const std::string & _type
The type of this class.
Definition MooseBase.h:378
void setupFiniteVolumeMeshData() const
Sets up the additional data needed for finite volume computations.
Definition MooseMesh.C:4156
void meshChanged()
Declares that the MooseMesh has changed, invalidates cached data and rebuilds caches.
Definition MooseMesh.C:894
void preparePRefinement()
Prepare DofMap and Assembly classes with our p-refinement information.
@ ST_JFNK
Jacobian-Free Newton Krylov.
Definition MooseTypes.h:899
@ COUPLING_FULL
Definition MooseTypes.h:787
@ COUPLING_DIAG
Definition MooseTypes.h:786
@ COUPLING_CUSTOM
Definition MooseTypes.h:788
bool globalADIndexing()
Whether we are using global AD indexing.
Definition ADUtils.h:28

Referenced by EigenProblem::init(), and FEProblem::init().

◆ initElementStatefulProps()

void FEProblemBase::initElementStatefulProps ( const libMesh::ConstElemRange &  elem_range,
const bool  threaded 
)
inherited

Initialize stateful properties for elements in a specific elem_range This is needed when elements/boundary nodes are added to a specific subdomain at an intermediate step.

Definition at line 9200 of file FEProblemBase.C.

9201{
9204 if (threaded)
9205 Threads::parallel_reduce(elem_range, cmt);
9206 else
9207 cmt(elem_range, true);
9208
9209#ifdef MOOSE_KOKKOS_ENABLED
9212#endif
9213}
void initKokkosStatefulProps()

Referenced by ActivateElementsUserObjectBase::finalize(), and ElementSubdomainModifierBase::initElementStatefulProps().

◆ initialAdaptMesh()

void FEProblemBase::initialAdaptMesh ( )
virtualinherited

Definition at line 8860 of file FEProblemBase.C.

8861{
8862 unsigned int n = adaptivity().getInitialSteps();
8864 if (n)
8865 {
8866 if (!_mesh.interiorLowerDBlocks().empty() || !_mesh.boundaryLowerDBlocks().empty())
8867 mooseError("HFEM does not support mesh adaptivity currently.");
8868
8869 TIME_SECTION("initialAdaptMesh", 2, "Performing Initial Adaptivity");
8870
8871 for (unsigned int i = 0; i < n; i++)
8872 {
8875
8877 {
8879 /*intermediate_change=*/false, /*contract_mesh=*/true, /*clean_refinement_flags=*/true);
8880
8881 // reproject the initial condition
8883
8885 }
8886 else
8887 {
8888 _console << "Mesh unchanged, skipping remaining steps..." << std::endl;
8889 return;
8890 }
8891 }
8892 }
8893}
bool initialAdaptMesh()
Used during initial adaptivity.
Definition Adaptivity.C:295
Adaptivity & adaptivity()
virtual void meshChanged()
Deprecated.
const std::set< SubdomainID > & interiorLowerDBlocks() const
Definition MooseMesh.h:1550
const std::set< SubdomainID > & boundaryLowerDBlocks() const
Definition MooseMesh.h:1554

◆ initialized()

bool FEProblemBase::initialized ( ) const
inlineinherited
Returns
Whether the problem was initialized, i.e. whether init() has executed

Definition at line 169 of file FEProblemBase.h.

169{ return _initialized; }

Referenced by MooseMesh::update().

◆ initialSetup()

void DumpObjectsProblem::initialSetup ( )
overridevirtual

Reimplemented from SubProblem.

Definition at line 274 of file DumpObjectsProblem.C.

275{
276 TIME_SECTION("initializingFunctions", 5, "Initializing Functions");
277 mooseAssert(libMesh::n_threads() == 1, "We should only use one thread for dumping objects");
278
279 // Call the initialSetup methods for functions
280 // We need to do that at least for the parsed functions that can be used as parameters
281 // in the input file
282 // Note that we are not planning to use the functions, which is why we are not re-initing scalar
283 // variables
285}
virtual void initialSetup(THREAD_ID tid=0) const
Convenience methods for calling object setup methods.

◆ initKokkos()

void FEProblemBase::initKokkos ( )
inherited

Construct Kokkos assembly and systems and allocate Kokkos material property storages.

Referenced by FEProblemBase::init().

◆ initKokkosStatefulProps()

void FEProblemBase::initKokkosStatefulProps ( )
inherited

◆ initNullSpaceVectors()

void FEProblemBase::initNullSpaceVectors ( const InputParameters &  parameters,
std::vector< std::shared_ptr< NonlinearSystemBase > > &  nl 
)
virtualinherited

Definition at line 818 of file FEProblemBase.C.

820{
821 TIME_SECTION("initNullSpaceVectors", 5, "Initializing Null Space Vectors");
822
823 unsigned int dimNullSpace = parameters.get<unsigned int>("null_space_dimension");
824 unsigned int dimTransposeNullSpace =
825 parameters.get<unsigned int>("transpose_null_space_dimension");
826 unsigned int dimNearNullSpace = parameters.get<unsigned int>("near_null_space_dimension");
827 for (unsigned int i = 0; i < dimNullSpace; ++i)
828 {
829 std::ostringstream oss;
830 oss << "_" << i;
831 // do not project, since this will be recomputed, but make it ghosted, since the near nullspace
832 // builder might march over all nodes
833 for (auto & nl : nls)
834 nl->addVector("NullSpace" + oss.str(), false, libMesh::GHOSTED);
835 }
836 _subspace_dim["NullSpace"] = dimNullSpace;
837 for (unsigned int i = 0; i < dimTransposeNullSpace; ++i)
838 {
839 std::ostringstream oss;
840 oss << "_" << i;
841 // do not project, since this will be recomputed, but make it ghosted, since the near nullspace
842 // builder might march over all nodes
843 for (auto & nl : nls)
844 nl->addVector("TransposeNullSpace" + oss.str(), false, libMesh::GHOSTED);
845 }
846 _subspace_dim["TransposeNullSpace"] = dimTransposeNullSpace;
847 for (unsigned int i = 0; i < dimNearNullSpace; ++i)
848 {
849 std::ostringstream oss;
850 oss << "_" << i;
851 // do not project, since this will be recomputed, but make it ghosted, since the near-nullspace
852 // builder might march over all semilocal nodes
853 for (auto & nl : nls)
854 nl->addVector("NearNullSpace" + oss.str(), false, libMesh::GHOSTED);
855 }
856 _subspace_dim["NearNullSpace"] = dimNearNullSpace;
857}
std::map< std::string, unsigned int > _subspace_dim
Dimension of the subspace spanned by the vectors with a given prefix.

Referenced by EigenProblem::EigenProblem(), and FEProblem::FEProblem().

◆ initPetscOutputAndSomeSolverSettings()

void FEProblemBase::initPetscOutputAndSomeSolverSettings ( )
virtualinherited

Reinitialize PETSc output for proper linear/nonlinear iteration display.

This also may be used for some PETSc-related solver settings

Reimplemented in EigenProblem.

Definition at line 7606 of file FEProblemBase.C.

7607{
7610}
void solveSetup()
Calls the timestepSetup function for each of the output objects.
void petscSetDefaults(FEProblemBase &problem)
Sets the default options for PETSc.

Referenced by FEProblemBase::possiblyRebuildGeomSearchPatches(), AStableDirk4::solve(), ExplicitRK2::solve(), ExplicitTVDRK2::solve(), ImplicitMidpoint::solve(), LStableDirk2::solve(), LStableDirk3::solve(), LStableDirk4::solve(), and FEProblemBase::solve().

◆ initXFEM()

void FEProblemBase::initXFEM ( std::shared_ptr< XFEMInterface >  xfem)
inherited

Create XFEM controller object.

Definition at line 8958 of file FEProblemBase.C.

8959{
8960 _xfem = xfem;
8961 _xfem->setMesh(&_mesh);
8962 if (_displaced_mesh)
8963 _xfem->setDisplacedMesh(_displaced_mesh);
8964
8965 auto fill_data = [](auto & storage)
8966 {
8967 std::vector<MaterialData *> data(libMesh::n_threads());
8968 for (const auto tid : make_range(libMesh::n_threads()))
8969 data[tid] = &storage.getMaterialData(tid);
8970 return data;
8971 };
8972 _xfem->setMaterialData(fill_data(_material_props));
8973 _xfem->setBoundaryMaterialData(fill_data(_bnd_material_props));
8974
8975 unsigned int n_threads = libMesh::n_threads();
8976 for (unsigned int i = 0; i < n_threads; ++i)
8977 for (const auto nl_sys_num : index_range(_nl))
8978 {
8979 _assembly[i][nl_sys_num]->setXFEM(_xfem);
8981 _displaced_problem->assembly(i, nl_sys_num).setXFEM(_xfem);
8982 }
8983}
MaterialData & getMaterialData(Moose::MaterialDataType type, const THREAD_ID tid=0, const MooseObject *object=nullptr) const
void fill_data(std::map< processor_id_type, std::vector< std::set< unsigned int > > > &data, int M)

◆ isKokkosObject()

bool MooseObject::isKokkosObject ( ) const
inlineinherited

Get whether this object is a Kokkos functor The parameter MooseBase::kokkos_object_param is set by the Kokkos base classes.

Definition at line 63 of file MooseObject.h.

63{ return parameters().isKokkosObject(); }

Referenced by AttribKokkos::initFrom(), BlockRestrictable::initializeBlockRestrictable(), and BoundaryRestrictable::initializeBoundaryRestrictable().

◆ isMatPropRequested()

bool SubProblem::isMatPropRequested ( const std::string &  prop_name) const
virtualinherited

Find out if a material property has been requested by any object.

Definition at line 719 of file SubProblem.C.

720{
721 return _material_property_requested.find(prop_name) != _material_property_requested.end();
722}
std::set< std::string > _material_property_requested
set containing all material property names that have been requested by getMaterialProperty*

◆ isParamSetByUser()

bool MooseBase::isParamSetByUser ( const std::string &  name) const
inlineinherited

Test if the supplied parameter is set by a user, as opposed to not set or set to default.

Parameters
nameThe name of the parameter to test

Definition at line 205 of file MooseBase.h.

206 {
208 }

Referenced by DiffusionCG::addFEBCs(), DiffusionCG::addFEKernels(), DiffusionPhysicsBase::addInitialConditions(), CylinderComponent::addMeshGenerators(), AdvancedExtruderGenerator::AdvancedExtruderGenerator(), MFEMMesh::buildMesh(), MFEMBoundarySubMesh::buildSubMesh(), MFEMDomainSubMesh::buildSubMesh(), SurfaceDelaunayGeneratorBase::checkBoundaryAndHolesParams(), LibtorchNeuralNetControl::conditionalParameterError(), ConservativeAdvectionBCTempl< is_ad >::ConservativeAdvectionBCTempl(), MFEMNewtonNonlinearSolver::ConstructSolver(), MooseApp::copyInputs(), DiffusionPhysicsBase::DiffusionPhysicsBase(), MooseApp::errorCheck(), FileMesh::FileMesh(), FullSolveMultiApp::FullSolveMultiApp(), MeshDiagnosticsGenerator::generate(), OrientSurfaceMeshGenerator::generate(), SurfaceSubdomainsFromAllNormalsGenerator::generate(), MFEMVectorFESpace::getFECName(), MooseBase::getRenamedParam(), MFEMEigenproblem::getRHSCoefficient(), DefaultConvergenceBase::getSharedExecutionerParam(), AddVariableAction::init(), MFEMMesh::init(), PhysicsBase::initializePhysics(), ElementSubdomainModifierBase::initialSetup(), MatrixSymmetryCheck::MatrixSymmetryCheck(), MeshDiagnosticsGenerator::MeshDiagnosticsGenerator(), MFEMEigenproblem::MFEMEigenproblem(), MFEMGeneratedMeshGenerator::MFEMGeneratedMeshGenerator(), MFEMVariable::MFEMVariable(), MortarConstraintBase::MortarConstraintBase(), MoveNodesByParsedExpressionModifier::moveNodes(), MultiAppGeneralFieldFunctorTransfer::MultiAppGeneralFieldFunctorTransfer(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), OrientSurfaceMeshGenerator::OrientSurfaceMeshGenerator(), SolutionInvalidityOutput::output(), Output::Output(), MultiAppGeneralFieldTransfer::outputValueConflicts(), PetscExternalPartitioner::partition(), PolyLineMeshFollowingNodeSetGenerator::PolyLineMeshFollowingNodeSetGenerator(), MooseMesh::prepare(), SolutionUserObjectBase::readXda(), ReferenceResidualConvergence::ReferenceResidualConvergence(), PhysicsBase::reportPotentiallyMissedParameters(), MooseApp::run(), MooseApp::runInputFile(), MooseApp::runInputs(), Moose::MFEM::LinearSolverBase::SetPreconditioner(), MFEMHypreBoomerAMG::SetSolverParameters(), SetupMeshAction::setupMesh(), MooseApp::setupOptions(), SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(), SmoothMeshGenerator::SmoothMeshGenerator(), SurfaceSubdomainsDelaunayRemesher::SurfaceSubdomainsDelaunayRemesher(), SurfaceSubdomainsFromAllNormalsGenerator::SurfaceSubdomainsFromAllNormalsGenerator(), TagVectorAux::TagVectorAux(), TimedSubdomainModifier::TimedSubdomainModifier(), TimeIntegratedPostprocessor::TimeIntegratedPostprocessor(), TriToQuadConverter::TriToQuadConverter(), XYFrontalDelaunayGenerator::XYFrontalDelaunayGenerator(), and XYZDelaunayGenerator::XYZDelaunayGenerator().

◆ isParamValid()

bool MooseBase::isParamValid ( const std::string &  name) const
inlineinherited

Test if the supplied parameter is valid.

Parameters
nameThe name of the parameter to test

Definition at line 199 of file MooseBase.h.

199{ return _pars.isParamValid(name); }

Referenced by GridPartitioner::_do_partition(), HierarchicalGridPartitioner::_do_partition(), AddVariableAction::act(), AutoCheckpointAction::act(), CommonOutputAction::act(), ComposeTimeStepperAction::act(), CopyNodalVarsAction::act(), CreateDisplacedProblemAction::act(), SetAdaptivityOptionsAction::act(), SetupDebugAction::act(), SetupMeshCompleteAction::act(), DiffusionCG::addFEKernels(), DiffusionFV::addFVBCs(), DiffusionFV::addFVKernels(), DiffusionPhysicsBase::addInitialConditions(), ComponentJunction::addMeshGenerators(), CylinderComponent::addMeshGenerators(), DiffusionPhysicsBase::addPostprocessors(), AdvancedExtruderGenerator::AdvancedExtruderGenerator(), AdvectiveFluxAux::AdvectiveFluxAux(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), ArrayVarReductionAux::ArrayVarReductionAux(), BicubicSplineFunction::BicubicSplineFunction(), BlockDeletionGenerator::BlockDeletionGenerator(), BSplineCurveGenerator::BSplineCurveGenerator(), TimedSubdomainModifier::buildFromFile(), ParsedChainControl::buildFunction(), GeneratedMesh::buildMesh(), MooseMesh::buildTypedMesh(), CartesianGridDivision::CartesianGridDivision(), CartesianMeshGenerator::CartesianMeshGenerator(), SurfaceDelaunayGeneratorBase::checkBoundaryAndHolesParams(), MultiAppTransfer::checkParentAppUserObjectExecuteOn(), LibmeshPartitioner::clone(), SampledOutput::cloneMesh(), CombinedVectorPostprocessor::CombinedVectorPostprocessor(), CombinerGenerator::CombinerGenerator(), ComponentJunction::ComponentJunction(), ConservativeAdvectionBCTempl< is_ad >::ConservativeAdvectionBCTempl(), ConservativeAdvectionTempl< is_ad >::ConservativeAdvectionTempl(), FEProblemSolve::convergenceSetup(), CopyMeshPartitioner::CopyMeshPartitioner(), CSVReaderVectorPostprocessor::CSVReaderVectorPostprocessor(), CutMeshByLevelSetGeneratorBase::CutMeshByLevelSetGeneratorBase(), ConstantReporter::declareConstantReporterValue(), ConstantReporter::declareConstantReporterValues(), DGKernelBase::DGKernelBase(), DiffusionFluxAux::DiffusionFluxAux(), DiffusionPhysicsBase::DiffusionPhysicsBase(), DomainUserObject::DomainUserObject(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), EigenProblemSolve::EigenProblemSolve(), ElementGenerator::ElementGenerator(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), PIDTransientControl::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppUserObjectTransfer::execute(), Exodus::Exodus(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), FEProblemBase::FEProblemBase(), FEProblemSolve::FEProblemSolve(), FileOutput::FileOutput(), SurfaceDelaunayGeneratorBase::fillDelaunayOptions(), SpatialUserObjectVectorPostprocessor::fillPoints(), CombinerGenerator::fillPositions(), MultiApp::fillPositions(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FixedPointSolve::FixedPointSolve(), FunctionDT::FunctionDT(), FunctionValuePostprocessor::FunctionValuePostprocessor(), FVInterfaceKernel::FVInterfaceKernel(), FVMassMatrix::FVMassMatrix(), SurfaceSubdomainsDelaunayRemesher::General2DDelaunay(), AddMetaDataGenerator::generate(), BlockDeletionGenerator::generate(), BreakBoundaryOnSubdomainGenerator::generate(), BSplineCurveGenerator::generate(), ConcentricCircleMeshGenerator::generate(), DistributedRectilinearMeshGenerator::generate(), ElementGenerator::generate(), ExtraNodesetGenerator::generate(), FileMeshGenerator::generate(), GeneratedMeshGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), ManifoldSubdomainGenerator::generate(), MeshExtruderGenerator::generate(), OrientSurfaceMeshGenerator::generate(), ParsedExtraElementIDGenerator::generate(), ParsedSubdomainGeneratorBase::generate(), RenumberBySubdomainGenerator::generate(), SideSetsFromNodeSetsGenerator::generate(), SphereMeshGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), SubdomainPerElementGenerator::generate(), XYDelaunayGenerator::generate(), XYMeshLineCutter::generate(), XYZDelaunayGenerator::generate(), PropertyReadFile::getFileNames(), MultiAppNearestNodeTransfer::getLocalEntitiesAndComponents(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), MooseBase::getRenamedParam(), MultiAppNearestNodeTransfer::getTargetLocalNodes(), AddPeriodicBCAction::getVariables(), Terminator::handleMessage(), HFEMDirichletBC::HFEMDirichletBC(), EigenExecutionerBase::init(), IterationAdaptiveDT::init(), AdvancedOutput::initAvailableLists(), AdvancedOutput::initExecutionTypes(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), SolutionAux::initialSetup(), SolutionScalarAux::initialSetup(), PIDTransientControl::initialSetup(), ParsedConvergence::initialSetup(), EigenProblemSolve::initialSetup(), MooseParsedFunction::initialSetup(), MooseParsedGradFunction::initialSetup(), MooseParsedVectorFunction::initialSetup(), PiecewiseTabularBase::initialSetup(), SolutionIC::initialSetup(), Console::initialSetup(), MultiAppCloneReporterTransfer::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), MultiAppVariableValueSampleTransfer::initialSetup(), SampledOutput::initSample(), IterationAdaptiveDT::IterationAdaptiveDT(), LeastSquaresFit::LeastSquaresFit(), LibmeshPartitioner::LibmeshPartitioner(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), PNGOutput::makePNG(), MassMatrix::MassMatrix(), MatCoupledForce::MatCoupledForce(), MeshGeneratorComponent::MeshGeneratorComponent(), MFEMProblemSolve::MFEMProblemSolve(), MooseMesh::MooseMesh(), MoosePreconditioner::MoosePreconditioner(), MooseStaticCondensationPreconditioner::MooseStaticCondensationPreconditioner(), MooseVariableBase::MooseVariableBase(), MooseVariableFV< RealEigenVector >::MooseVariableFV(), MortarConstraintBase::MortarConstraintBase(), MoveNodeGenerator::MoveNodeGenerator(), MultiApp::MultiApp(), MultiAppCloneReporterTransfer::MultiAppCloneReporterTransfer(), MultiAppGeneralFieldKDTreeTransferBase::MultiAppGeneralFieldKDTreeTransferBase(), MultiAppGeneralFieldShapeEvaluationTransfer::MultiAppGeneralFieldShapeEvaluationTransfer(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppPostprocessorInterpolationTransfer::MultiAppPostprocessorInterpolationTransfer(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), MultiAppReporterTransfer::MultiAppReporterTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), MultiAppVariableValueSampleTransfer::MultiAppVariableValueSampleTransfer(), MultiPostprocessorConvergence::MultiPostprocessorConvergence(), MultiSystemSolveObject::MultiSystemSolveObject(), NodeSetsGeneratorBase::NodeSetsGeneratorBase(), EigenExecutionerBase::normalizeSolution(), OrientSurfaceMeshGenerator::OrientSurfaceMeshGenerator(), Output::Output(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedSubdomainGeneratorBase::ParsedSubdomainGeneratorBase(), PetscOutput::PetscOutput(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), EqualValueBoundaryConstraint::pickPrimaryNode(), PIDTransientControl::PIDTransientControl(), PiecewiseTabularBase::PiecewiseTabularBase(), PlaneIDMeshGenerator::PlaneIDMeshGenerator(), EqualValueBoundaryConstraint::populateSecondaryNodes(), MooseMesh::prepare(), MultiApp::readCommandLineArguments(), SolutionUserObjectBase::readExodusIIOrNemesis(), ReferenceResidualInterface::ReferenceResidualInterface(), RenameBlockGenerator::RenameBlockGenerator(), ReporterPointSource::ReporterPointSource(), PhysicsBase::reportPotentiallyMissedParameters(), ParsedSubdomainMeshGenerator::setBlockName(), MooseMesh::setCoordSystem(), FileOutput::setFileBaseInternal(), SideSetsGeneratorBase::setup(), SurfaceMeshGeneratorBase::setup(), Split::setup(), SetupMeshAction::setupMesh(), MooseApp::setupOptions(), Output::setWallTimeIntervalFromCommandLineParam(), SideDiffusiveFluxIntegralTempl< is_ad, T >::SideDiffusiveFluxIntegralTempl(), SideSetsGeneratorBase::SideSetsGeneratorBase(), SolutionUserObjectBase::SolutionUserObjectBase(), Terminator::Terminator(), TimeIntervalTimes::TimeIntervalTimes(), TimePeriod::TimePeriod(), PIDTransientControl::timestepSetup(), MultiAppDofCopyTransfer::transfer(), TransformGenerator::TransformGenerator(), TransientBase::TransientBase(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl(), XYQuadrilateralMeshFromBoundaryCurve::XYQuadrilateralMeshFromBoundaryCurve(), and XYZDelaunayGenerator::XYZDelaunayGenerator().

◆ isSNESMFReuseBaseSetbyUser()

bool FEProblemBase::isSNESMFReuseBaseSetbyUser ( )
inlineinherited

Return a flag to indicate if _snesmf_reuse_base is set by users.

Definition at line 2681 of file FEProblemBase.h.

bool _snesmf_reuse_base_set_by_user
If or not _snesmf_reuse_base is set by user.

◆ isSolverSystemNonlinear()

bool FEProblemBase::isSolverSystemNonlinear ( const unsigned int  sys_num)
inlineinherited

◆ isSolveTerminationRequested()

virtual bool Problem::isSolveTerminationRequested ( ) const
inlinevirtualinherited

Check of termination has been requested.

This should be called by transient Executioners in the keepGoing() member.

Definition at line 43 of file Problem.h.

43{ return _termination_requested; };
bool _termination_requested
True if termination of the solve has been requested.
Definition Problem.h:58

Referenced by WebServerControl::execute(), and TransientBase::keepGoing().

◆ isTransient()

virtual bool FEProblemBase::isTransient ( ) const
inlineoverridevirtualinherited

◆ jacobianSetup()

void FEProblemBase::jacobianSetup ( )
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 10211 of file FEProblemBase.C.

10212{
10214 // We need to setup all the nonlinear systems other than our current one which actually called
10215 // this method (so we have to make sure we don't go in a circle)
10216 for (const auto i : make_range(numNonlinearSystems()))
10217 if (i != currentNlSysNum())
10218 _nl[i]->jacobianSetup();
10219 // We don't setup the aux sys because that's been done elsewhere
10221 _displaced_problem->jacobianSetup();
10222}
virtual unsigned int currentNlSysNum() const override
virtual void jacobianSetup()

Referenced by FEProblemBase::jacobianSetup(), and NonlinearSystemBase::jacobianSetup().

◆ joinAndFinalize()

void FEProblemBase::joinAndFinalize ( TheWarehouse::Query  query,
bool  isgen = false 
)
privateinherited

Definition at line 5306 of file FEProblemBase.C.

5307{
5308 std::vector<UserObject *> objs;
5309 query.queryInto(objs);
5310 if (!isgen)
5311 {
5312 // join all threaded user objects (i.e. not regular general user objects) to the primary
5313 // thread
5314 for (auto obj : objs)
5315 if (obj->primaryThreadCopy())
5316 obj->primaryThreadCopy()->threadJoin(*obj);
5317 }
5318
5319 query.condition<AttribThread>(0).queryInto(objs);
5320
5321 // finalize objects and retrieve/store any postprocessor values
5322 for (auto obj : objs)
5323 {
5324 if (isgen && dynamic_cast<ThreadedGeneralUserObject *>(obj))
5325 continue;
5326 if (isgen)
5327 {
5328 // general user objects are not run in their own threaded loop object - so run them here
5329 if (shouldPrintExecution(0))
5330 _console << "[DBG] Initializing, executing & finalizing general UO '" << obj->name()
5331 << "' on " << _current_execute_on_flag.name() << std::endl;
5332 obj->initialize();
5333 obj->execute();
5334 }
5335
5336 obj->finalize();
5337
5338 // These have to be stored piecemeal (with every call to this function) because general
5339 // postprocessors (which run last after other userobjects have been completed) might depend on
5340 // them being stored. This wouldn't be a problem if all userobjects satisfied the dependency
5341 // resolver interface and could be sorted appropriately with the general userobjects, but they
5342 // don't.
5343 auto pp = dynamic_cast<const Postprocessor *>(obj);
5344 if (pp)
5345 {
5346 _reporter_data.finalize(obj->name());
5347 setPostprocessorValueByName(obj->name(), pp->getValue());
5348 }
5349
5350 auto vpp = dynamic_cast<VectorPostprocessor *>(obj);
5351 if (vpp)
5352 _reporter_data.finalize(obj->name());
5353
5354 // Update Reporter data
5355 auto reporter = dynamic_cast<Reporter *>(obj);
5356 if (reporter)
5357 _reporter_data.finalize(obj->name());
5358 }
5359}
void setPostprocessorValueByName(const PostprocessorName &name, const PostprocessorValue &value, std::size_t t_index=0)
Set the value of a PostprocessorValue.
bool shouldPrintExecution(const THREAD_ID tid) const
Check whether the problem should output execution orders at this time.
const std::string & name() const
Base class for all Postprocessors.
void finalize(const std::string &object_name)
Helper function for performing post calculation actions via the ReporterContext objects.
Reporter objects allow for the declaration of arbitrary data types that are aggregate values for a si...
Definition Reporter.h:48
An instance of this object type has one copy per thread that runs on each thread.
Base class for Postprocessors that produce a vector of values.

Referenced by FEProblemBase::computeUserObjectsInternal().

◆ kokkosAssembly() [1/2]

Moose::Kokkos::Assembly & FEProblemBase::kokkosAssembly ( )
inlineinherited

Definition at line 365 of file FEProblemBase.h.

365{ return _kokkos_assembly; }
Moose::Kokkos::Assembly _kokkos_assembly

◆ kokkosAssembly() [2/2]

const Moose::Kokkos::Assembly & FEProblemBase::kokkosAssembly ( ) const
inlineinherited

Definition at line 366 of file FEProblemBase.h.

366{ return _kokkos_assembly; }

◆ kokkosJoinAndFinalize()

void FEProblemBase::kokkosJoinAndFinalize ( const std::vector< Moose::Kokkos::UserObject * > &  userobjs)
privateinherited

◆ linearSysNum()

unsigned int FEProblemBase::linearSysNum ( const LinearSystemName &  linear_sys_name) const
overridevirtualinherited
Returns
the linear system number corresponding to the provided linear_sys_name

Implements SubProblem.

Definition at line 7173 of file FEProblemBase.C.

7174{
7175 std::istringstream ss(linear_sys_name);
7176 unsigned int linear_sys_num;
7177 if (!(ss >> linear_sys_num) || !ss.eof())
7178 linear_sys_num = libmesh_map_find(_linear_sys_name_to_num, linear_sys_name);
7179
7180 return linear_sys_num;
7181}
std::map< LinearSystemName, unsigned int > _linear_sys_name_to_num
Map from linear system name to number.

Referenced by Moose::compute_linear_system(), FEProblemBase::computeLinearSystemSys(), LinearSystem::computeLinearSystemTags(), and DisplacedProblem::linearSysNum().

◆ lineSearch()

void FEProblemBase::lineSearch ( )
virtualinherited

execute MOOSE line search

Definition at line 2875 of file FEProblemBase.C.

2876{
2877 _line_search->lineSearch();
2878}

Referenced by ComputeLineSearchObjectWrapper::linesearch().

◆ logAdd()

void FEProblemBase::logAdd ( const std::string &  system,
const std::string &  name,
const std::string &  type,
const InputParameters &  params 
) const
inherited

◆ makeLinearSolverParams()

SolverParams FEProblemBase::makeLinearSolverParams ( )
staticprivateinherited

Make basic solver params for linear solves.

Definition at line 10438 of file FEProblemBase.C.

10439{
10440 SolverParams solver_params;
10441 solver_params._type = Moose::SolveType::ST_LINEAR;
10443 return solver_params;
10444}
Moose::LineSearchType _line_search
Moose::SolveType _type
@ ST_LINEAR
Solving a linear problem.
Definition MooseTypes.h:902
@ LS_NONE
Definition MooseTypes.h:983

Referenced by FEProblemBase::FEProblemBase().

◆ markMatPropRequested()

void SubProblem::markMatPropRequested ( const std::string &  prop_name)
virtualinherited

Helper method for adding a material property name to the _material_property_requested set.

Definition at line 713 of file SubProblem.C.

714{
715 _material_property_requested.insert(prop_name);
716}

Referenced by MaterialPropertyInterface::markMatPropRequested(), and MaterialBase::markMatPropRequested().

◆ matrixTagExists() [1/2]

bool SubProblem::matrixTagExists ( const TagName &  tag_name) const
virtualinherited

◆ matrixTagExists() [2/2]

bool SubProblem::matrixTagExists ( TagID  tag_id) const
virtualinherited

Check to see if a particular Tag exists.

Reimplemented in DisplacedProblem.

Definition at line 325 of file SubProblem.C.

326{
327 return _matrix_tag_id_to_tag_name.find(tag_id) != _matrix_tag_id_to_tag_name.end();
328}

◆ matrixTagName()

TagName SubProblem::matrixTagName ( TagID  tag)
virtualinherited

Retrieve the name associated with a TagID.

Reimplemented in DisplacedProblem.

Definition at line 346 of file SubProblem.C.

347{
348 return _matrix_tag_id_to_tag_name[tag];
349}

Referenced by SystemBase::addMatrix(), DisplacedProblem::matrixTagName(), and SystemBase::removeMatrix().

◆ mesh() [1/4]

virtual const MooseMesh & FEProblemBase::mesh ( ) const
inlineoverridevirtualinherited

Implements SubProblem.

Reimplemented in MFEMProblem.

Definition at line 183 of file FEProblemBase.h.

183{ return _mesh; }

◆ mesh() [2/4]

virtual MooseMesh & FEProblemBase::mesh ( )
inlineoverridevirtualinherited

Implements SubProblem.

Reimplemented in MFEMProblem.

Definition at line 182 of file FEProblemBase.h.

182{ return _mesh; }

Referenced by Adaptivity::adaptMesh(), FEProblemBase::addAnyRedistributers(), MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), PhysicsBasedPreconditioner::apply(), MultiAppGeneralFieldFunctorTransfer::buildKDTrees(), MultiAppGeneralFieldNearestLocationTransfer::buildKDTrees(), MultiAppVariableValueSamplePostprocessorTransfer::cacheElemToPostprocessorData(), SampledOutput::cloneMesh(), NonlinearSystemBase::computeJacobianInternal(), LinearSystem::computeLinearSystemInternal(), ComputeFullJacobianThread::computeOnInternalFace(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), FEProblemBase::coordTransform(), MultiApp::createApp(), DMMooseGetEmbedding_Private(), ElementsAlongLine::ElementsAlongLine(), ElementsAlongPlane::ElementsAlongPlane(), MultiAppUserObjectTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), ElementsAlongLine::execute(), ElementsAlongPlane::execute(), IntersectionPointsAlongLine::execute(), WorkBalance::execute(), MultiAppMFEMTolibMeshShapeEvaluationTransfer::extractlibMeshNodePositions(), CentroidMultiApp::fillPositions(), QuadraturePointMultiApp::fillPositions(), MultiAppGeometricInterpolationTransfer::fillSourceInterpolationPoints(), FunctionPeriodicBoundary::FunctionPeriodicBoundary(), MultiApp::getBoundingBox(), EqualValueBoundaryConstraint::ghostPrimary(), Exodus::handleExodusIOMeshRenumbering(), FunctorPositions::initialize(), ParsedDownSelectionPositions::initialize(), FunctorTimes::initialize(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), ImageFunction::initialSetup(), PiecewiseConstantFromCSV::initialSetup(), MultiAppDofCopyTransfer::initialSetup(), SolutionUserObjectBase::initialSetup(), MultiAppGeometricInterpolationTransfer::interpolateTargetPoints(), IntersectionPointsAlongLine::IntersectionPointsAlongLine(), Moose::Mortar::loopOverMortarSegments(), ReporterPointMarker::markerSetup(), FEProblemBase::mesh(), FEProblemBase::mesh(), MultiAppGeometricInterpolationTransfer::MultiAppGeometricInterpolationTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), BoundaryNodeIntegrityCheckThread::onNode(), ComputeNodalUserObjectsThread::onNode(), BoundaryElemIntegrityCheckThread::operator()(), ComputeLinearFVGreenGaussGradientVolumeThread::operator()(), ComputeLinearFVLimitedGradientThread::operator()(), ComputeInitialConditionThread::operator()(), Checkpoint::output(), Output::Output(), Exodus::outputEmptyTimestep(), ConsoleUtils::outputMeshInformation(), Exodus::outputNodalVariables(), Exodus::outputSetup(), Nemesis::outputSetup(), PiecewiseConstantFromCSV::PiecewiseConstantFromCSV(), MeshInfo::possiblyAddDomainInfo(), ComputeLinearFVElementalThread::printBlockExecutionInformation(), ComputeLinearFVFaceThread::printBlockExecutionInformation(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), BlockRestrictionDebugOutput::printBoundaryRestrictionGroups(), MaterialPropertyDebugOutput::printMaterialMap(), TopResidualDebugOutput::printTopResiduals(), MultiAppMFEMTolibMeshShapeEvaluationTransfer::projectlibMeshNodalValues(), SolutionUserObjectBase::readExodusIIOrNemesis(), MooseApp::restore(), TransientMultiApp::setupApp(), Moose::PeriodicBCHelper::setupManualPeriodicBoundaries(), Moose::PeriodicBCHelper::setupPeriodicBoundaries(), SolutionUserObjectBase::SolutionUserObjectBase(), FixedPointSolve::solve(), TransientMultiApp::solveStep(), Moose::PetscSupport::storePetscOptions(), MultiAppDofCopyTransfer::transfer(), MultiAppMFEMTolibMeshShapeEvaluationTransfer::transferVariables(), Checkpoint::updateCheckpointFiles(), and SampledOutput::updateSample().

◆ mesh() [3/4]

MooseMesh & FEProblemBase::mesh ( bool  use_displaced)
inherited

Definition at line 712 of file FEProblemBase.C.

713{
714 if (use_displaced && !_displaced_problem)
715 mooseWarning("Displaced mesh was requested but the displaced problem does not exist. "
716 "Regular mesh will be returned");
717 return ((use_displaced && _displaced_problem) ? _displaced_problem->mesh() : mesh());
718}

◆ mesh() [4/4]

const MooseMesh & FEProblemBase::mesh ( bool  use_displaced) const
overridevirtualinherited

Implements SubProblem.

Definition at line 703 of file FEProblemBase.C.

704{
705 if (use_displaced && !_displaced_problem)
706 mooseWarning("Displaced mesh was requested but the displaced problem does not exist. "
707 "Regular mesh will be returned");
708 return ((use_displaced && _displaced_problem) ? _displaced_problem->mesh() : mesh());
709}

◆ meshChanged() [1/2]

virtual void FEProblemBase::meshChanged ( )
inlineprotectedvirtualinherited

Deprecated.

Users should switch to overriding the meshChanged which takes arguments

Definition at line 3090 of file FEProblemBase.h.

3090{}

Referenced by FEProblemBase::adaptMesh(), FEProblemBase::initialAdaptMesh(), FEProblemBase::meshChanged(), FEProblemBase::timestepSetup(), FEProblemBase::uniformRefine(), and FEProblemBase::updateMeshXFEM().

◆ meshChanged() [2/2]

void FEProblemBase::meshChanged ( bool  intermediate_change,
bool  contract_mesh,
bool  clean_refinement_flags 
)
virtualinherited

Update data after a mesh change.

Iff intermediate_change is true, only perform updates as necessary to prepare for another mesh change immediately-subsequent. An example of data that is not updated during an intermediate change is libMesh System matrix data. An example of data that \emph is updated during an intermediate change is libMesh System vectors. These vectors are projected or restricted based off of adaptive mesh refinement or the changing of element subdomain IDs. The flags contract_mesh and clean_refinement_flags should generally only be set to true when the mesh has changed due to mesh refinement. contract_mesh deletes children of coarsened elements and renumbers nodes and elements. clean_refinement_flags resets refinement flags such that any subsequent calls to System::restrict_vectors or System::prolong_vectors before another AMR step do not mistakenly attempt to re-do the restriction/prolongation which occurred in this method. The value of contract_mesh is ignored when FEProblemBase::allowMeshContractionAfterMeshChanged is set to false.

Definition at line 9016 of file FEProblemBase.C.

9019{
9020 TIME_SECTION("meshChanged", 3, "Handling Mesh Changes");
9021
9022 const bool should_contract = contract_mesh && allowMeshContractionAfterMeshChanged();
9023
9025
9028 _mesh.cacheChangedLists(); // Currently only used with adaptivity and stateful material
9029 // properties
9030
9031 // Clear these out because they corresponded to the old mesh
9032 _ghosted_elems.clear();
9034
9035 // The mesh changed. We notify the MooseMesh first, because
9036 // callbacks (e.g. for sparsity calculations) triggered by the
9037 // EquationSystems reinit may require up-to-date MooseMesh caches.
9039
9040 // If we're just going to alter the mesh again, all we need to
9041 // handle here is AMR and projections, not full system reinit
9042 if (intermediate_change)
9043 es().reinit_solutions();
9044 else
9045 es().reinit();
9046
9047 if (should_contract)
9048 // Once vectors are restricted, we can delete children of coarsened elements
9049 _mesh.getMesh().contract();
9050 if (clean_refinement_flags)
9051 {
9052 // Finally clear refinement flags so that if someone tries to project vectors again without
9053 // an intervening mesh refinement to clear flags they won't run into trouble
9055 refinement.clean_refinement_flags();
9056 }
9057
9058 if (!intermediate_change)
9059 {
9060 // Since the mesh has changed, we need to make sure that we update any of our
9061 // MOOSE-system specific data.
9062 for (auto & sys : _solver_systems)
9063 sys->reinit();
9064 _aux->reinit();
9065 }
9066
9067 // Updating MooseMesh first breaks other adaptivity code, unless we
9068 // then *again* update the MooseMesh caches. E.g. the definition of
9069 // "active" and "local" may have been *changed* by refinement and
9070 // repartitioning done in EquationSystems::reinit().
9072
9073 // If we have finite volume variables, we will need to recompute additional elemental/face
9074 // quantities
9077
9078 // Let the meshChangedInterface notify the mesh changed event before we update the active
9079 // semilocal nodes, because the set of ghosted elements may potentially be updated during a mesh
9080 // changed event.
9081 for (const auto & mci : _notify_when_mesh_changes)
9082 mci->meshChanged();
9083
9084 // Since the Mesh changed, update the PointLocator object used by DiracKernels.
9086
9087 // Need to redo ghosting
9089
9091 {
9092 // Mesh contraction is necessary when a displaced problem is used.
9094 mooseError("Disabling mesh contraction is not implemented when a displaced problem is used. "
9095 "Please contact a "
9096 "developer of this application to discuss the combination of these features.");
9097
9098 _displaced_problem->meshChanged(should_contract, clean_refinement_flags);
9100 }
9101
9103
9106
9107 // Just like we reinitialized our geometric search objects, we also need to reinitialize our
9108 // mortar meshes. Note that this needs to happen after DisplacedProblem::meshChanged because the
9109 // mortar mesh discretization will depend necessarily on the displaced mesh being re-displaced
9110 _mortar_data->meshChanged();
9111
9112 // Nonlinear systems hold the mortar mesh functors. The domains of definition of the mortar
9113 // functors might have changed when the mesh changed.
9114 for (auto & nl_sys : _nl)
9115 nl_sys->reinitMortarFunctors();
9116
9117 reinitBecauseOfGhostingOrNewGeomObjects(/*mortar_changed=*/true);
9118
9119 // We need to create new storage for newly active elements, and copy
9120 // stateful properties from the old elements.
9123 {
9124 if (doingPRefinement())
9126
9127 // Prolong properties onto newly refined elements' children
9128 {
9130 /* refine = */ true, *this, _material_props, _bnd_material_props, _assembly);
9131 const auto & range = *_mesh.refinedElementRange();
9132 Threads::parallel_reduce(range, pmp);
9133
9134 // Concurrent erasure from the shared hash map is not safe while we are reading from it in
9135 // ProjectMaterialProperties, so we handle erasure here. Moreover, erasure based on key is
9136 // not thread safe in and of itself because it is a read-write operation. Note that we do not
9137 // do the erasure for p-refinement because the coarse level element is the same as our active
9138 // refined level element
9139 if (!doingPRefinement())
9140 for (const auto & elem : range)
9141 {
9145 }
9146 }
9147
9148 // Restrict properties onto newly coarsened elements
9149 {
9151 /* refine = */ false, *this, _material_props, _bnd_material_props, _assembly);
9152 const auto & range = *_mesh.coarsenedElementRange();
9153 Threads::parallel_reduce(range, pmp);
9154 // Note that we do not do the erasure for p-refinement because the coarse level element is the
9155 // same as our active refined level element
9156 if (!doingPRefinement())
9157 for (const auto & elem : range)
9158 {
9159 auto && coarsened_children = _mesh.coarsenedElementChildren(elem);
9160 for (auto && child : coarsened_children)
9161 {
9165 }
9166 }
9167 }
9168 }
9169
9172
9173 _has_jacobian = false; // we have to recompute jacobian when mesh changed
9174
9175 // Now for backwards compatibility with user code that overrode the old no-arg meshChanged we must
9176 // call it here
9177 meshChanged();
9178}
void updatePointLocator(const MooseMesh &mesh)
Called during FEProblemBase::meshChanged() to update the PointLocator object used by the DiracKernels...
virtual bool allowMeshContractionAfterMeshChanged() const
Whether meshChanged() should allow the mesh to be contracted (deletes children of coarsened elements ...
void reinitBecauseOfGhostingOrNewGeomObjects(bool mortar_changed=false)
Call when it is possible that the needs for ghosted elements has changed.
void setVariableAllDoFMap(const std::vector< const MooseVariableFEBase * > &moose_vars)
std::vector< MeshChangedInterface * > _notify_when_mesh_changes
Objects to be notified when the mesh changes.
bool _has_initialized_stateful
Whether nor not stateful materials have been initialized.
void reinit()
Completely redo all geometric search objects.
void eraseProperty(const Elem *elem)
Remove the property storage and element pointer from internal data structures Use this when elements ...
void markMeshChangedForBackup()
Mark this app as requiring mesh topology data in its next Backup object.
Definition MooseApp.h:755
const std::vector< const Elem * > & coarsenedElementChildren(const Elem *elem) const
Get the newly removed children element ids for an element that was just coarsened.
Definition MooseMesh.C:954
ConstElemPointerRange * refinedElementRange() const
Return a range that is suitable for threaded execution over elements that were just refined.
Definition MooseMesh.C:942
void updateActiveSemiLocalNodeRange(std::set< dof_id_type > &ghosted_elems)
Clears the "semi-local" node list and rebuilds it.
Definition MooseMesh.C:962
bool isFiniteVolumeInfoDirty() const
Definition MooseMesh.h:1459
void cacheChangedLists()
Cache information about what elements were refined and coarsened in the previous step.
Definition MooseMesh.C:924
ConstElemPointerRange * coarsenedElementRange() const
Return a range that is suitable for threaded execution over elements that were just coarsened.
Definition MooseMesh.C:948
void buildPRefinementAndCoarseningMaps(Assembly *assembly)
Definition MooseMesh.C:2382
bool doingPRefinement() const

Referenced by MoveNodesByParsedExpressionModifier::execute(), ActivateElementsUserObjectBase::finalize(), SidesetAroundSubdomainUpdater::finalize(), Exodus::handleExodusIOMeshRenumbering(), ElementSubdomainModifierBase::modify(), MooseApp::restore(), TransientMultiApp::setupApp(), and Adaptivity::uniformRefineWithProjection().

◆ meshDisplaced()

void FEProblemBase::meshDisplaced ( )
protectedvirtualinherited

Update data after a mesh displaced.

Definition at line 9193 of file FEProblemBase.C.

9194{
9195 for (const auto & mdi : _notify_when_mesh_displaces)
9196 mdi->meshDisplaced();
9197}
std::vector< MeshDisplacedInterface * > _notify_when_mesh_displaces
Objects to be notified when the mesh displaces.
virtual void meshDisplaced()
Update data after a mesh displaced.

Referenced by DisplacedProblem::updateMesh(), and DisplacedProblem::updateMesh().

◆ messagePrefix() [1/2]

std::string MooseBase::messagePrefix ( const bool  hit_prefix = true) const
inlineinherited
Returns
A prefix to be used in messages that contain the input file location associated with this object (if any) and the name and type of the object.

Definition at line 256 of file MooseBase.h.

257 {
258 return messagePrefix(_pars, hit_prefix);
259 }

Referenced by MooseBase::callMooseError(), MooseBase::errorPrefix(), MooseBase::messagePrefix(), MooseBase::mooseDeprecated(), MooseBase::mooseDeprecatedNoTrace(), MooseBase::mooseInfo(), and MooseBase::mooseWarning().

◆ messagePrefix() [2/2]

std::string MooseBase::messagePrefix ( const InputParameters &  params,
const bool  hit_prefix 
)
staticprivateinherited

Internal method for getting the message prefix for an object (object type, name, etc).

Needs to be static so that we can call it externally from InputParameters for errors that do not have context of the MooseBase

Definition at line 140 of file MooseBase.C.

141{
142 std::string prefix = "";
143
144 if (hit_prefix)
145 if (const auto node = MooseBase::getHitNode(params))
146 prefix += Moose::hitMessagePrefix(*node);
147
148 // Don't have context without type and name
149 if (!params.isMooseBaseObject())
150 return prefix;
151
152 const auto & name = params.getObjectName();
153 const std::string base = params.hasBase() ? params.getBase() : "object";
154 const bool is_main_app = base == "Application" && name == AppFactory::main_app_name;
155 prefix += "The following occurred in the ";
156 if (is_main_app)
157 prefix += "main " + base;
158 else
159 prefix += base;
160 if (base != params.getObjectName() && name.size() && !is_main_app)
161 prefix += " '" + name + "'";
162 prefix += " of type " + params.getObjectType() + ".";
163 return prefix + "\n\n";
164}
static const std::string main_app_name
The name for the "main" moose application.
Definition AppFactory.h:68
bool isMooseBaseObject() const
const std::string & getObjectType() const
std::string hitMessagePrefix(const hit::Node &node)
Get the prefix to be associated with a hit node for a message.
Definition Moose.C:898

◆ mooseDeprecated() [1/2]

template<typename... Args>
void MooseBase::mooseDeprecated ( Args &&...  args) const
inlineinherited

Emits a deprecation warning prefixed with the object name and type, and a stack trace.

Definition at line 317 of file MooseBase.h.

318 {
320 _console, false, true, true, messagePrefix(true), std::forward<Args>(args)...);
321 }
void mooseDeprecatedStream(S &oss, const bool expired, const bool print_title, const bool show_trace, Args &&... args)
Definition MooseError.h:252

Referenced by MooseApp::addCapability(), DataFileInterface::getDataFileName(), DataFileInterface::getDataFileNameByName(), MooseApp::getRecoverFileBase(), MooseApp::hasRecoverFileBase(), and MooseApp::setupOptions().

◆ mooseDeprecated() [2/2]

template<typename... Args>
void SolutionInvalidInterface::mooseDeprecated ( Args &&...  args) const
inlineinherited

◆ mooseDeprecatedNoTrace()

template<typename... Args>
void MooseBase::mooseDeprecatedNoTrace ( Args &&...  args) const
inlineinherited

Emits a deprecation warning prefixed with the object name and type, and no stack trace.

Definition at line 327 of file MooseBase.h.

328 {
330 _console, false, true, false, messagePrefix(true), std::forward<Args>(args)...);
331 }

◆ mooseDocumentedError()

template<typename... Args>
void MooseBase::mooseDocumentedError ( const std::string &  repo_name,
const unsigned int  issue_num,
Args &&...  args 
) const
inlineinherited

Definition at line 277 of file MooseBase.h.

280 {
282 repo_name, issue_num, argumentsToString(std::forward<Args>(args)...)),
283 /* with_prefix = */ true);
284 }
std::string formatMooseDocumentedError(const std::string &repo_name, const unsigned int issue_num, const std::string &msg)
Formats a documented error.
Definition MooseError.C:140

Referenced by ManifoldSubdomainGenerator::ManifoldSubdomainGenerator().

◆ mooseError()

template<typename... Args>
void MooseBase::mooseError ( Args &&...  args) const
inlineinherited

Emits an error prefixed with object name and type and optionally a file path to the top-level block parameter if available.

Definition at line 271 of file MooseBase.h.

272 {
273 callMooseError(argumentsToString(std::forward<Args>(args)...), /* with_prefix = */ true);
274 }

Referenced by CopyMeshPartitioner::_do_partition(), GridPartitioner::_do_partition(), HierarchicalGridPartitioner::_do_partition(), PetscExternalPartitioner::_do_partition(), AdaptivityAction::act(), AddBoundsVectorsAction::act(), AddFVICAction::act(), AddICAction::act(), AddMeshGeneratorAction::act(), AddPeriodicBCAction::act(), AddTimeStepperAction::act(), AddVectorPostprocessorAction::act(), ChainControlSetupAction::act(), CheckFVBCAction::act(), CheckIntegrityAction::act(), CombineComponentsMeshes::act(), CommonOutputAction::act(), CreateDisplacedProblemAction::act(), CreateExecutionerAction::act(), CreateProblemAction::act(), CreateProblemDefaultAction::act(), CSGOnlyAction::act(), DeprecatedBlockAction::act(), InitProblemAction::act(), MaterialDerivativeTestAction::act(), MaterialOutputAction::act(), SetAdaptivityOptionsAction::act(), SetupDebugAction::act(), SetupMeshAction::act(), SetupMeshCompleteAction::act(), SetupPredictorAction::act(), SetupTimeStepperAction::act(), SplitMeshAction::act(), Action::Action(), AddActionComponentAction::AddActionComponentAction(), PhysicsComponentInterface::addBoundaryConditionsFromComponents(), MooseApp::addCapabilityInternal(), DistributedRectilinearMeshGenerator::addElement(), MooseApp::addExecutor(), SubProblem::addFunctor(), PhysicsComponentInterface::addInitialConditionsFromComponents(), ComponentJunction::addMeshGenerators(), MeshGenerator::addMeshSubgenerator(), SubProblem::addPiecewiseByBlockLambdaFunctor(), DistributedRectilinearMeshGenerator::addPoint(), DiracKernelBase::addPointWithValidId(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), MooseMesh::addQuadratureNode(), AddActionComponentAction::addRelationshipManagers(), WebServerControl::addServerAction(), AddVariableAction::addVariable(), SubProblem::addVectorTag(), MooseVariableScalar::adUDot(), Output::advancedExecuteOn(), MooseVariableBase::allDofIndices(), MooseApp::appNameToLibName(), MultiApp::appPostprocessorValue(), MultiApp::appProblem(), MultiApp::appProblemBase(), MultiApp::appUserObjectBase(), MooseApp::attachRelationshipManagers(), MooseApp::attachRelationshipManagers(), Function::average(), BatchMeshGeneratorAction::BatchMeshGeneratorAction(), MooseMesh::buildCoarseningMap(), MultiApp::buildComm(), DistributedRectilinearMeshGenerator::buildCube(), PiecewiseTabularInterface::buildFromFile(), PiecewiseTabularInterface::buildFromJSON(), PiecewiseTabularInterface::buildFromXY(), MooseMesh::buildLowerDMesh(), GeneratedMesh::buildMesh(), MeshGeneratorMesh::buildMesh(), SpiralAnnularMesh::buildMesh(), TiledMesh::buildMesh(), MooseMesh::buildRefinementMap(), MaterialBase::buildRequiredMaterials(), MooseMesh::buildTypedMesh(), MooseMesh::cacheFaceInfoVariableOwnership(), CartesianGridDivision::CartesianGridDivision(), CartesianMeshGenerator::CartesianMeshGenerator(), EigenExecutionerBase::chebyshev(), SubProblem::checkBlockMatProps(), PhysicsBase::checkBlockRestrictionIdentical(), ComponentBoundaryConditionInterface::checkBoundaryConditionsAllRequested(), SubProblem::checkBoundaryMatProps(), PhysicsBase::checkComponentType(), IterationCountConvergence::checkConvergence(), MooseMesh::checkCoordinateSystems(), DiffusionLHDGAssemblyHelper::checkCoupling(), DefaultConvergenceBase::checkDuplicateSetSharedExecutionerParams(), MooseMesh::checkDuplicateSubdomainNames(), MaterialBase::checkExecutionStage(), FVFluxBC::checkFaceIntegrity(), FVInterfaceKernel::checkFaceIntegrity(), MeshGenerator::checkGetMesh(), ReporterTransferInterface::checkHasReporterValue(), EigenExecutionerBase::checkIntegrity(), Eigenvalue::checkIntegrity(), ExplicitTimeIntegrator::checkLinearConvergence(), MooseApp::checkMetaDataIntegrity(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), MeshDiagnosticsGenerator::checkNonMatchingEdges(), PostprocessorInterface::checkParam(), Moose::PeriodicBCHelper::checkPeriodicParams(), Sampler::checkReinitStatus(), MultiAppTransfer::checkSiblingsTransferSupported(), MaterialBase::checkStatefulSanity(), AddDefaultConvergenceAction::checkUnusedMultiAppFixedPointConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedNonlinearConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedSteadyStateConvergenceParameters(), Moose::PetscSupport::checkUserProvidedPetscOption(), MultiAppTransfer::checkVariable(), MeshDiagnosticsGenerator::checkWatertightNodesets(), MeshDiagnosticsGenerator::checkWatertightSidesets(), MooseMesh::clone(), LibmeshPartitioner::clone(), CombinerGenerator::CombinerGenerator(), MooseVariableFieldBase::componentName(), VariableCondensationPreconditioner::computeDInverseDiag(), CompositionDT::computeDT(), MooseVariableFieldBase::computeFaceValues(), TimeStepper::computeFailedDT(), IterationAdaptiveDT::computeFailedDT(), MooseMesh::computeFiniteVolumeCoords(), Moose::Kokkos::ResidualObject::computeOffDiagJacobian(), MaterialBase::computeProperties(), ResidualObject::computeResidualAndJacobian(), TimeStepper::computeStep(), AStableDirk4::computeTimeDerivatives(), BDF2::computeTimeDerivatives(), CrankNicolson::computeTimeDerivatives(), ExplicitEuler::computeTimeDerivatives(), ExplicitRK2::computeTimeDerivatives(), ExplicitTVDRK2::computeTimeDerivatives(), ImplicitEuler::computeTimeDerivatives(), ImplicitMidpoint::computeTimeDerivatives(), LStableDirk2::computeTimeDerivatives(), LStableDirk3::computeTimeDerivatives(), LStableDirk4::computeTimeDerivatives(), NewmarkBeta::computeTimeDerivatives(), ConcentricCircleMesh::ConcentricCircleMesh(), ConditionalEnableControl::ConditionalEnableControl(), TimeStepper::constrainStep(), LibtorchNeuralNetControl::controlNeuralNet(), TransientBase::convergedToSteadyState(), ParsedConvergence::convertRealToBool(), MooseApp::copyInputs(), CopyMeshPartitioner::CopyMeshPartitioner(), MultiApp::createApp(), MooseApp::createExecutors(), AddVariableAction::createInitialConditionAction(), MooseApp::createRMFromTemplateAndInit(), Function::curl(), ReporterTransferInterface::declareClone(), Moose::Kokkos::MaterialBase::declareKokkosPropertyInternal(), MeshGenerator::declareMeshProperty(), ReporterTransferInterface::declareVectorClone(), FunctorRelationshipManager::delete_remote_elements(), MooseMesh::deleteRemoteElements(), MooseApp::determineLibtorchDeviceType(), MeshDiagnosticsGenerator::diagnosticsLog(), Function::div(), FunctorBinnedValuesDivision::divisionIndex(), FunctorRelationshipManager::dofmap_reinit(), MooseApp::dynamicAllRegistration(), MooseApp::dynamicAppRegistration(), DistributedRectilinearMeshGenerator::elemId(), MooseApp::errorCheck(), MooseMesh::errorIfDistributedMesh(), MultiAppTransfer::errorIfObjectExecutesOnTransferInSourceApp(), FixedPointSolve::examineFixedPointConvergence(), Eigenvalue::execute(), TransientBase::execute(), WebServerControl::execute(), MooseApp::executeExecutioner(), FVInterfaceKernel::faceArg1(), FVInterfaceKernel::faceArg2(), MultiApp::fillPositions(), MooseApp::finalizeRestore(), Transfer::find_sys(), DiracKernelInfo::findPoint(), FixedPointSolve::findTransformedSystem(), FixedPointSolve::FixedPointSolve(), FunctionDT::FunctionDT(), FunctionScalarAux::FunctionScalarAux(), FunctionScalarIC::FunctionScalarIC(), LinearFVBoundaryCondition::functorFaceArg(), FVInitialConditionTempl< T >::FVInitialConditionTempl(), FVScalarLagrangeMultiplierInterface::FVScalarLagrangeMultiplierInterface(), AdvancedExtruderGenerator::generate(), BoundingBoxNodeSetGenerator::generate(), CoarsenBlockGenerator::generate(), CombinerGenerator::generate(), CutMeshByLevelSetGeneratorBase::generate(), DistributedRectilinearMeshGenerator::generate(), ElementOrderConversionGenerator::generate(), ExtraNodesetGenerator::generate(), FileMeshGenerator::generate(), FlipSidesetGenerator::generate(), GeneratedMeshGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), MeshCollectionGenerator::generate(), MeshDiagnosticsGenerator::generate(), MeshExtruderGenerator::generate(), MeshRepairGenerator::generate(), MoveNodeGenerator::generate(), PlaneIDMeshGenerator::generate(), PolyLineMeshFollowingNodeSetGenerator::generate(), ProjectSideSetOntoLevelSetGenerator::generate(), RenameBlockGenerator::generate(), RenameBoundaryGenerator::generate(), RenumberBySubdomainGenerator::generate(), SmoothMeshGenerator::generate(), SpiralAnnularMeshGenerator::generate(), StackGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), SubdomainPerElementGenerator::generate(), TiledMeshGenerator::generate(), XYMeshLineCutter::generate(), XYZDelaunayGenerator::generate(), PatternedMeshGenerator::generate(), MeshGenerator::generateCSG(), MeshGenerator::generateData(), GeneratedMesh::GeneratedMesh(), GeneratedMeshGenerator::GeneratedMeshGenerator(), MeshGenerator::generateInternal(), MeshGenerator::generateInternalCSG(), CircularBoundaryCorrectionGenerator::generateRadialCorrectionFactor(), MooseMesh::getAxisymmetricRadialCoord(), MooseMesh::getBlockConnectedBlocks(), MooseMesh::getBoundaryID(), MultiApp::getBoundingBox(), ChainControl::getChainControlDataByName(), WebServerControl::getClientInfo(), MooseMesh::getCoarseningMap(), MultiApp::getCommandLineArgs(), MooseVariableBase::getContinuity(), Control::getControllableParameterByName(), MooseMesh::getCoordSystem(), PhysicsBase::getCoupledPhysics(), PhysicsBase::getCoupledPhysics(), DataFileInterface::getDataFilePath(), TransfiniteMeshGenerator::getDiscreteEdge(), MooseVariableBase::getDofIndices(), VariableCondensationPreconditioner::getDofToCondense(), TransfiniteMeshGenerator::getEdge(), EigenExecutionerBase::getEigenSystemConvergence(), MooseMesh::getElementIDIndex(), Material::getElementIDNeighbor(), Material::getElementIDNeighborByName(), MooseMesh::getElemIDMapping(), MooseMesh::getElemIDsOnBlocks(), WebServerControl::Response::getError(), MultiApp::getExecutioner(), MooseApp::getExecutor(), MultiAppTransfer::getFromMultiApp(), MultiAppTransfer::getFromMultiAppInfo(), SubProblem::getFunctor(), MooseMesh::getGeneralAxisymmetricCoordAxis(), MaterialPropertyInterface::getGenericMaterialPropertyByName(), DistributedRectilinearMeshGenerator::getGhostNeighbors(), DistributedRectilinearMeshGenerator::getIndices(), MaterialPropertyInterface::getKokkosBlockMaterialProperty(), FunctionInterface::getKokkosFunctionByName(), MaterialPropertyInterface::getKokkosMaterialPropertyByName(), Material::getMaterialByName(), SubProblem::getMatrixTagID(), AnnularMesh::getMaxInDimension(), GeneratedMesh::getMaxInDimension(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), AnnularMesh::getMinInDimension(), GeneratedMesh::getMinInDimension(), MultiAppTransfer::getMultiApp(), DistributedRectilinearMeshGenerator::getNeighbors(), MooseMesh::getNodeBlockIds(), MooseMesh::getNodeList(), MooseMesh::getPairedBoundaryMapping(), MaterialOutputAction::getParams(), PlaneIDMeshGenerator::getPlaneID(), PostprocessorInterface::getPostprocessorValueByNameInternal(), ComponentMaterialPropertyInterface::getPropertyValue(), MooseMesh::getRefinementMap(), MooseBase::getRenamedParam(), ReporterInterface::getReporterContextBaseByName(), ReporterInterface::getReporterName(), Reporter::getReporterValueName(), MooseApp::getRestartableDataMap(), MooseApp::getRestartableDataMapName(), MooseApp::getRestartableMetaData(), MooseApp::getRMClone(), MooseObject::getSharedPtr(), MooseObject::getSharedPtr(), PhysicsBase::getSolverSystem(), MooseMesh::getSubdomainBoundaryIds(), TransientBase::getTimeIntegratorNames(), MultiAppTransfer::getToMultiApp(), MultiAppTransfer::getToMultiAppInfo(), MooseMesh::getUniqueCoordSystem(), UserObjectInterface::getUserObjectBaseByName(), UserObjectInterface::getUserObjectName(), SubProblem::getVariableHelper(), AddPeriodicBCAction::getVariables(), VectorPostprocessorInterface::getVectorPostprocessorName(), SubProblem::getVectorTag(), SubProblem::getVectorTagID(), MultiApp::globalAppToLocal(), Function::gradient(), MooseVariableBase::hasDoFsOnNodes(), PostprocessorInterface::hasPostprocessor(), PostprocessorInterface::hasPostprocessorByName(), ReporterInterface::hasReporterValue(), ReporterInterface::hasReporterValueByName(), VectorPostprocessorInterface::hasVectorPostprocessor(), VectorPostprocessorInterface::hasVectorPostprocessor(), VectorPostprocessorInterface::hasVectorPostprocessorByName(), VectorPostprocessorInterface::hasVectorPostprocessorByName(), TransientBase::incrementStepOrReject(), NEML2Action::inferMOOSEIOType(), AddVariableAction::init(), MooseMesh::init(), Sampler::init(), EigenExecutionerBase::init(), TransientBase::init(), MFEMMesh::init(), CrankNicolson::init(), ExplicitTimeIntegrator::init(), FixedPointIterationAdaptiveDT::init(), IterationAdaptiveDT::init(), MultiApp::init(), NestedDivision::initialize(), ParsedConvergence::initializeConstantSymbol(), PhysicsBase::initializePhysics(), SubProblem::initialSetup(), AuxKernelBase::initialSetup(), SolutionScalarAux::initialSetup(), FullSolveMultiApp::initialSetup(), ExplicitTimeIntegrator::initialSetup(), Function::integral(), InternalSideIndicatorBase::InternalSideIndicatorBase(), EigenExecutionerBase::inversePowerIteration(), Sampler::isAdaptiveSamplingCompleted(), MooseMesh::isBoundaryFullyExternalToSubdomains(), MooseVariableBase::isNodal(), IterationAdaptiveDT::IterationAdaptiveDT(), IterationCountConvergence::IterationCountConvergence(), LibmeshPartitioner::LibmeshPartitioner(), MooseApp::libNameToAppName(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), LineSearch::lineSearch(), MooseApp::loadLibraryAndDependencies(), ReporterPointMarker::markerSetup(), Material::Material(), Distribution::median(), FunctorRelationshipManager::mesh_reinit(), MeshDiagnosticsGenerator::MeshDiagnosticsGenerator(), MeshExtruderGenerator::MeshExtruderGenerator(), MeshRepairGenerator::MeshRepairGenerator(), SetupMeshAction::modifyParamsForUseSplit(), MeshMetaDataInterface::mooseErrorInternal(), MooseMesh::MooseMesh(), MooseObject::MooseObject(), UserObjectInterface::mooseObjectError(), MooseVariableBase::MooseVariableBase(), MoveNodeGenerator::MoveNodeGenerator(), MultiApp::MultiApp(), MultiAppTransfer::MultiAppTransfer(), NewmarkBeta::NewmarkBeta(), DistributedRectilinearMeshGenerator::nodeId(), DistributedRectilinearMeshGenerator::numNeighbors(), Output::onInterval(), FunctorRelationshipManager::operator()(), RelationshipManager::operator==(), ActionComponent::outerSurfaceArea(), ActionComponent::outerSurfaceBoundaries(), MortarNodalGeometryOutput::output(), Output::Output(), MooseApp::outputMachineReadableData(), DistributedRectilinearMeshGenerator::paritionSquarely(), ParsedConvergence::ParsedConvergence(), ParsedCurveGenerator::ParsedCurveGenerator(), ExplicitTimeIntegrator::performExplicitSolve(), PetscExternalPartitioner::PetscExternalPartitioner(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), PIDTransientControl::PIDTransientControl(), PiecewiseTabularInterface::PiecewiseTabularInterface(), CutMeshByLevelSetGeneratorBase::pointPairLevelSetInterception(), ProjectSideSetOntoLevelSetGenerator::pointPairLevelSetInterception(), ReporterInterface::possiblyCheckHasReporter(), VectorPostprocessorInterface::possiblyCheckHasVectorPostprocessorByName(), AStableDirk4::postResidual(), ExplicitRK2::postResidual(), ExplicitTVDRK2::postResidual(), ImplicitMidpoint::postResidual(), LStableDirk2::postResidual(), LStableDirk3::postResidual(), LStableDirk4::postResidual(), VariableCondensationPreconditioner::preallocateCondensedJacobian(), Predictor::Predictor(), TransientBase::preExecute(), MooseMesh::prepare(), MooseMesh::prepared(), FixedPointSolve::printFixedPointConvergenceReason(), MFEMFunctorMaterial::processLiterals(), MultiApp::readCommandLineArguments(), CoarsenBlockGenerator::recursiveCoarsen(), MooseApp::recursivelyCreateExecutors(), FunctorRelationshipManager::redistribute(), MooseApp::registerRestartableData(), MooseApp::registerRestartableNameWithFilter(), Sampler::reinit(), MooseApp::removeRelationshipManager(), PhysicsBase::reportPotentiallyMissedParameters(), MooseApp::restore(), RinglebMesh::RinglebMesh(), RinglebMeshGenerator::RinglebMeshGenerator(), MooseApp::run(), MooseApp::runInputs(), ScalarComponentIC::ScalarComponentIC(), DistributedRectilinearMeshGenerator::scaleNodalPositions(), FunctorRelationshipManager::set_mesh(), MooseVariableBase::setActiveTags(), DistributedRectilinearMeshGenerator::setBoundaryNames(), MooseMesh::setCoordSystem(), MooseMesh::setGeneralAxisymmetricCoordAxes(), MeshGenerator::setMeshProperty(), MooseApp::setMFEMDevice(), Sampler::setNumberOfCols(), Sampler::setNumberOfRandomSeeds(), Sampler::setNumberOfRows(), Moose::MFEM::LinearSolverBase::SetPreconditioner(), Split::setup(), TransientMultiApp::setupApp(), Moose::PeriodicBCHelper::setupAutoPeriodicBoundaries(), Moose::PeriodicBCHelper::setupManualPeriodicBoundaries(), SetupMeshAction::setupMesh(), MooseApp::setupOptions(), TimeSequenceStepperBase::setupSequence(), TransientBase::setupTimeIntegrator(), PhysicsBase::shouldCreateIC(), PhysicsBase::shouldCreateTimeDerivative(), PhysicsBase::shouldCreateVariable(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), MooseVariableBase::sizeMatrixTagData(), SmoothMeshGenerator::SmoothMeshGenerator(), SolutionTimeAdaptiveDT::SolutionTimeAdaptiveDT(), Moose::MFEM::LinearSolverBase::Solve(), TimeIntegrator::solve(), ExplicitRK2::solve(), ExplicitTVDRK2::solve(), FullSolveMultiApp::solveStep(), UserObject::spatialPoints(), UserObject::spatialValue(), SpiralAnnularMesh::SpiralAnnularMesh(), SpiralAnnularMeshGenerator::SpiralAnnularMeshGenerator(), MeshRepairGenerator::splitNonConvexPolygons(), WebServerControl::startServer(), StitchedMesh::StitchedMesh(), MaterialBase::subdomainSetup(), CutMeshByLevelSetGeneratorBase::tet4ElemCutter(), Action::timedAct(), Function::timeDerivative(), Function::timeIntegral(), ParsedCurveGenerator::tSectionSpaceDefiner(), MooseVariableScalar::uDot(), MooseVariableScalar::uDotDot(), MooseVariableScalar::uDotDotOld(), MooseVariableScalar::uDotOld(), MooseBase::uniqueName(), AuxScalarKernel::uOld(), ScalarKernelBase::uOld(), Function::value(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), PhysicsBase::variableExists(), MultiAppTransfer::variableIntegrityCheck(), AddVariableAction::variableType(), SubProblem::vectorTagName(), SubProblem::vectorTagType(), Function::vectorValue(), SubProblem::verifyVectorTags(), ActionComponent::volume(), WebServerControl::WebServerControl(), WebServerControl::writePortFile(), MFEMMesh::writeRecoveryFiles(), and MooseApp::writeRestartableMetaData().

◆ mooseErrorNonPrefixed()

template<typename... Args>
void MooseBase::mooseErrorNonPrefixed ( Args &&...  args) const
inlineinherited

Emits an error without the prefixing included in mooseError().

Definition at line 290 of file MooseBase.h.

291 {
292 callMooseError(argumentsToString(std::forward<Args>(args)...), /* with_prefix = */ false);
293 }

◆ mooseInfo()

template<typename... Args>
void MooseBase::mooseInfo ( Args &&...  args) const
inlineinherited

◆ mooseWarning() [1/2]

template<typename... Args>
void MooseBase::mooseWarning ( Args &&...  args) const
inlineinherited

Emits a warning prefixed with object name and type.

Definition at line 299 of file MooseBase.h.

300 {
301 moose::internal::mooseWarningStream(_console, messagePrefix(true), std::forward<Args>(args)...);
302 }
void mooseWarningStream(S &oss, Args &&... args)
Definition MooseError.h:197

Referenced by DiracKernelInfo::findPoint(), DataFileInterface::getDataFilePath(), MooseApp::loadLibraryAndDependencies(), and MooseBase::paramWarning().

◆ mooseWarning() [2/2]

template<typename... Args>
void SolutionInvalidInterface::mooseWarning ( Args &&...  args) const
inlineinherited

Definition at line 73 of file SolutionInvalidInterface.h.

74 {
75 _si_moose_base.MooseBase::mooseWarning(std::forward<Args>(args)...);
76 flagSolutionWarningMultipleRegistration(_si_moose_base.name() + ": warning");
77 }

Referenced by CopyMeshPartitioner::_do_partition(), AddFunctionAction::act(), AddKernelAction::act(), CommonOutputAction::act(), MaterialOutputAction::act(), MeshOnlyAction::act(), MooseMesh::addPeriodicVariable(), BoundaryMarker::BoundaryMarker(), DistributedRectilinearMeshGenerator::buildCube(), CartesianMeshGenerator::CartesianMeshGenerator(), CheckOutputAction::checkConsoleOutput(), MultiAppTransfer::checkMultiAppExecuteOn(), MeshDiagnosticsGenerator::checkNonMatchingEdges(), MeshDiagnosticsGenerator::checkPolygons(), ActionComponent::checkRequiredTasks(), PhysicsBase::checkRequiredTasks(), MultiApp::createApp(), MeshDiagnosticsGenerator::diagnosticsLog(), CartesianGridDivision::divisionIndex(), CylindricalGridDivision::divisionIndex(), SphericalGridDivision::divisionIndex(), Postprocessor::evaluateDotWarning(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FixedPointSolve::FixedPointSolve(), BSplineCurveGenerator::generate(), RenumberBySubdomainGenerator::generate(), SubdomainPerElementGenerator::generate(), SurfaceMeshGeneratorBase::get2DElemNormal(), MultiAppTransfer::getAppInfo(), FunctorBinnedValuesDivision::getBinIndex(), IndicatorMarker::IndicatorMarker(), CartesianGridDivision::initialize(), CylindricalGridDivision::initialize(), SphericalGridDivision::initialize(), MaterialBase::initStatefulProperties(), IterationAdaptiveDT::limitDTToPostprocessorValue(), MFEMRefinementMarker::MFEMRefinementMarker(), NewmarkBeta::NewmarkBeta(), Output::Output(), MaterialOutputAction::outputHelper(), Executioner::problem(), TestSourceStepper::rejectStep(), PhysicsBase::reportPotentiallyMissedParameters(), MaterialBase::resetQpProperties(), MooseMesh::setCoordSystem(), TransientMultiApp::solveStep(), MeshRepairGenerator::splitNonConvexPolygons(), and VariableCondensationPreconditioner::VariableCondensationPreconditioner().

◆ mooseWarningNonPrefixed() [1/2]

template<typename... Args>
void MooseBase::mooseWarningNonPrefixed ( Args &&...  args) const
inlineinherited

Emits a warning without the prefixing included in mooseWarning().

Definition at line 308 of file MooseBase.h.

309 {
310 moose::internal::mooseWarningStream(_console, std::forward<Args>(args)...);
311 }

◆ mooseWarningNonPrefixed() [2/2]

template<typename... Args>
void SolutionInvalidInterface::mooseWarningNonPrefixed ( Args &&...  args) const
inlineinherited

Definition at line 80 of file SolutionInvalidInterface.h.

81 {
82 _si_moose_base.MooseBase::mooseWarningNonPrefixed(std::forward<Args>(args)...);
83 flagSolutionWarningMultipleRegistration(_si_moose_base.name() + ": warning");
84 }

◆ mortarData() [1/2]

MortarInterfaceWarehouse & FEProblemBase::mortarData ( )
inlineinherited

Definition at line 2750 of file FEProblemBase.h.

2750{ return *_mortar_data; }

◆ mortarData() [2/2]

const MortarInterfaceWarehouse & FEProblemBase::mortarData ( ) const
inlineinherited

Returns the mortar data object.

Definition at line 2749 of file FEProblemBase.h.

2749{ return *_mortar_data; }

◆ name()

const std::string & MooseBase::name ( ) const
inlineinherited

Get the name of the class.

Returns
The name of the class

Definition at line 103 of file MooseBase.h.

104 {
105 mooseAssert(_name.size(), "Empty name");
106 return _name;
107 }
const std::string & _name
The name of this class.
Definition MooseBase.h:381

Referenced by AdaptivityAction::act(), AddActionComponentAction::act(), AddElementalFieldAction::act(), AddPeriodicBCAction::act(), AddTimeStepperAction::act(), CommonOutputAction::act(), CopyNodalVarsAction::act(), CSGOnlyAction::act(), DeprecatedBlockAction::act(), DisplayGhostingAction::act(), MaterialOutputAction::act(), SetupResidualDebugAction::act(), SetupTimeIntegratorAction::act(), FEProblemBase::addAnyRedistributers(), Executioner::addAttributeReporter(), FEProblemBase::addAuxKernel(), MFEMProblem::addAuxKernel(), FEProblemBase::addAuxScalarKernel(), DisplacedProblem::addAuxVariable(), FEProblemBase::addBoundaryCondition(), MFEMProblem::addBoundaryCondition(), PhysicsComponentInterface::addComponent(), FEProblemBase::addConstraint(), FEProblemBase::addConvergence(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addDistribution(), MooseApp::addExecutor(), MooseApp::addExecutorParams(), MFEMProblem::addFESpace(), MFEMProblem::addFESpaceHierarchy(), FEProblemBase::addFunction(), MFEMProblem::addFunction(), SubProblem::addFunctor(), FEProblemBase::addFunctorMaterial(), MFEMProblem::addFunctorMaterial(), FunctorMaterial::addFunctorProperty(), FunctorMaterial::addFunctorPropertyByBlocks(), FEProblemBase::addFVBC(), FEProblemBase::addFVGradientMethod(), FEProblemBase::addFVInitialCondition(), FEProblemBase::addFVInterfaceKernel(), FEProblemBase::addFVInterpolationMethod(), FEProblemBase::addFVKernel(), ADDGKernel::ADDGKernel(), FEProblemBase::addHDGKernel(), MFEMProblem::addImagComponentToBC(), MFEMProblem::addImagComponentToKernel(), FEProblemBase::addIndicator(), MFEMProblem::addIndicator(), FEProblemBase::addInitialCondition(), MFEMProblem::addInitialCondition(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addInterfaceMaterial(), ElementAndTraceScalarHDGAssemblyHelper::additionalROVariables(), BoundaryIntegralValueConstraint::additionalROVariables(), DiffusionLHDGKernel::additionalROVariables(), ADKernelScalarBase::additionalROVariables(), FEProblemBase::addKernel(), MFEMProblem::addKernel(), FEProblemBase::addLinearFVBC(), FEProblemBase::addLinearFVKernel(), FEProblemBase::addMarker(), MFEMProblem::addMarker(), FEProblemBase::addMaterial(), FEProblemBase::addMaterialHelper(), ComponentMaterialPropertyInterface::addMaterials(), FEProblemBase::addMeshDivision(), MooseApp::addMeshGenerator(), ComponentJunction::addMeshGenerators(), ComponentMeshTransformHelper::addMeshGenerators(), CylinderComponent::addMeshGenerators(), MeshGenerator::addMeshSubgenerator(), MeshGenerator::addMeshSubgenerator(), MFEMProblem::addMFEMProblemComposer(), MFEMProblem::addMFEMSolver(), FEProblemBase::addMultiApp(), FEProblemBase::addNodalKernel(), FEProblemBase::addObject(), InitialConditionWarehouse::addObject(), ComponentPhysicsInterface::addPhysics(), SubProblem::addPiecewiseByBlockLambdaFunctor(), FEProblemBase::addPostprocessor(), MFEMProblem::addPostprocessor(), UserObjectBase::addPostprocessorDependencyHelper(), AuxKernelBase::addPostprocessorDependencyHelper(), InitialConditionBase::addPostprocessorDependencyHelper(), FEProblemBase::addPredictor(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), MFEMProblem::addRealComponentToBC(), MFEMProblem::addRealComponentToKernel(), AddActionComponentAction::addRelationshipManagers(), FEProblemBase::addReporter(), FEProblemBase::addSampler(), FEProblemBase::addScalarKernel(), WebServerControl::addServerActionsInternal(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), MFEMProblem::addTransfer(), PhysicsBase::addUserObject(), FEProblemBase::addUserObject(), UserObjectBase::addUserObjectDependencyHelper(), AuxKernelBase::addUserObjectDependencyHelper(), InitialConditionBase::addUserObjectDependencyHelper(), DisplacedProblem::addVariable(), FEProblemBase::addVectorPostprocessor(), MFEMProblem::addVectorPostprocessor(), UserObjectBase::addVectorPostprocessorDependencyHelper(), AuxKernelBase::addVectorPostprocessorDependencyHelper(), MooseLinearVariableFV< OutputType >::adError(), Output::advancedExecuteOn(), AdvancedExtruderGenerator::AdvancedExtruderGenerator(), NEML2ModelExecutor::advanceState(), MooseVariableBase::allDofIndices(), MooseApp::appBinaryName(), MooseApp::appendMeshGenerator(), MultiApp::appPostprocessorValue(), MultiApp::appProblem(), MultiApp::appProblemBase(), MultiApp::appUserObjectBase(), ArrayDGKernel::ArrayDGKernel(), ArrayParsedAux::ArrayParsedAux(), PhysicsBase::assignBlocks(), AStableDirk4::AStableDirk4(), Function::average(), MultiApp::backup(), CoarsenedPiecewiseLinear::buildCoarsenedGrid(), PiecewiseTabularInterface::buildFromFile(), PiecewiseTabularInterface::buildFromXY(), MFEMGeometricMultigridSolver::BuildMultigrid(), MooseMesh::buildNodeListFromSideList(), MultiAppVariableValueSamplePostprocessorTransfer::cacheElemToPostprocessorData(), MooseBase::callMooseError(), ChangeOverFixedPointPostprocessor::ChangeOverFixedPointPostprocessor(), ChangeOverTimePostprocessor::ChangeOverTimePostprocessor(), PhysicsBase::checkBlockRestrictionIdentical(), PhysicsBase::checkComponentType(), DefaultNonlinearConvergence::checkConvergence(), ParsedConvergence::checkConvergence(), checkCoupledScalarVariableBlocks(), FEProblemBase::checkDependMaterialsHelper(), FVFluxBC::checkFaceIntegrity(), FVInterfaceKernel::checkFaceIntegrity(), TaggingInterface::checkForNans(), SamplerBase::checkForStandardFieldVariableType(), MeshGenerator::checkGetMesh(), ReporterTransferInterface::checkHasReporterValue(), FEProblemBase::checkICRestartError(), NonlinearSystemBase::checkKernelCoverage(), Moose::Kokkos::Material::checkMaterialProperty(), Material::checkMaterialProperty(), MooseApp::checkMetaDataIntegrity(), Damper::checkMinDamping(), SideUserObject::checkNoInterfaceMaterialPropertyDependencies(), MultiAppTransfer::checkParentAppUserObjectExecuteOn(), Checkpoint::checkpointInfo(), LinearFVGradientManager::checkRestartedGradientHistory(), FEProblemBase::checkUserObjectNameCollision(), BlockRestrictable::checkVariable(), DomainUserObject::checkVariable(), Coupleable::checkWritableVar(), CoarsenSurfaceMeshAlongSidesetGenerator::coarsenAlongSidesets(), MooseVariableFieldBase::componentName(), CompositeFunction::CompositeFunction(), MaterialBase::computeProperties(), FEProblemBase::computeUserObjectByName(), VectorPostprocessorVisualizationAux::computeValue(), MooseBase::connectControllableParams(), ConstantPostprocessor::ConstantPostprocessor(), Coupleable::coupledName(), CommonOutputAction::create(), MultiApp::createApp(), MooseApp::createExecutors(), MeshGeneratorSystem::createMeshGeneratorOrder(), MooseApp::createRecoverablePerfGraph(), MoveBoundaryNodesToCurveGenerator::curveGenerator(), CutMeshByPlaneGenerator::CutMeshByPlaneGenerator(), DebugResidualAux::DebugResidualAux(), MaterialBase::declareADProperty(), MFEMComplexVariable::declareCoefficients(), MFEMVariable::declareCoefficients(), MeshInfo::declareHelper(), Moose::Kokkos::MaterialBase::declareKokkosOnDemandProperty(), Moose::Kokkos::MaterialBase::declareKokkosProperty(), MeshGenerator::declareMeshesForSubByName(), MeshGenerator::declareNullMeshName(), MaterialBase::declareProperty(), MFEMCoordinateTransformations::declareRZCoefficients(), DOFMapOutput::demangle(), DerivativeSumMaterialTempl< is_ad >::DerivativeSumMaterialTempl(), MooseMesh::detectPairedSidesets(), DGKernel::DGKernel(), DGKernelBase::DGKernelBase(), DomainUserObject::DomainUserObject(), dumpObjectHelper(), ElementDamper::ElementDamper(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), ElementMaterialSampler::ElementMaterialSampler(), ElementValueSampler::ElementValueSampler(), EigenKernel::enabled(), MooseMesh::errorIfDistributedMesh(), SolutionUserObjectBase::evalMeshFunction(), SolutionUserObjectBase::evalMeshFunctionGradient(), SolutionUserObjectBase::evalMultiValuedMeshFunction(), SolutionUserObjectBase::evalMultiValuedMeshFunctionGradient(), GreaterThanLessThanPostprocessor::execute(), PointValue::execute(), RestartableDataReporter::execute(), MultiAppGeneralFieldTransfer::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppUserObjectTransfer::execute(), SideValueSampler::execute(), WebServerControl::execute(), ActionWarehouse::executeActionsWithAction(), Exodus::Exodus(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), FVInterfaceKernel::faceArg1(), FVInterfaceKernel::faceArg2(), FEProblemBase::FEProblemBase(), NEML2ModelExecutor::fillInputs(), MultiApp::fillPositions(), MultiAppGeometricInterpolationTransfer::fillSourceInterpolationPoints(), PointSamplerBase::finalize(), ChainControl::fullControlDataName(), FunctionArrayAux::FunctionArrayAux(), FunctionDT::FunctionDT(), FVFunctionIC::functionName(), FunctionIC::functionName(), FunctorPositions::FunctorPositions(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), FVInitialConditionTempl< T >::FVInitialConditionTempl(), FVOneVarDiffusionInterface::FVOneVarDiffusionInterface(), GapValueAux::GapValueAux(), BoundaryDeletionGenerator::generate(), BreakMeshByBlockGenerator::generate(), CoarsenSurfaceMeshAlongSidesetGenerator::generate(), GeneratedMeshGenerator::generate(), ManifoldSubdomainGenerator::generate(), ParsedExtraElementIDGenerator::generate(), ParsedSubdomainGeneratorBase::generate(), RenameBlockGenerator::generate(), RenameBoundaryGenerator::generate(), RenumberBySubdomainGenerator::generate(), SideSetsFromNodeSetsGenerator::generate(), StitchBoundaryMeshGenerator::generate(), StitchMeshGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), SubdomainsFromPartitionerGenerator::generate(), UniqueExtraIDMeshGenerator::generate(), MeshGenerator::generateInternal(), MeshGenerator::generateInternalCSG(), InterfaceMaterial::getADMaterialProperty(), Material::getADMaterialProperty(), MultiAppTransfer::getAppInfo(), MooseMesh::getBoundaryString(), MultiApp::getBoundingBox(), MooseBase::getCheckedPointerParam(), MooseApp::getCheckpointDirectories(), MFEMProblem::getComplexGridFunction(), Control::getControllableParameterByName(), Control::getControllableValue(), Control::getControllableValueByName(), FEProblemBase::getConvergence(), MeshGenerator::getCSGBase(), MeshGenerator::getCSGBasesByName(), UserObjectBase::getDependObjects(), FEProblemBase::getDistribution(), DistributionInterface::getDistribution(), DistributionInterface::getDistributionByName(), ElementUOProvider::getElementalValueLong(), ElementUOProvider::getElementalValueReal(), MultiApp::getExecutioner(), FEProblemBase::getExecutor(), MooseApp::getExecutor(), OutputWarehouse::getFileNumbers(), FEProblemBase::getFunction(), SubProblem::getFunctor(), FEProblemBase::getFVAdvectedInterpolationMethod(), FEProblemBase::getFVFaceInterpolationMethod(), FEProblemBase::getFVGradientMethod(), FEProblemBase::getFVInterpolationMethod(), AuxKernelTempl< ComputeValueType >::getGenericMaterialProperty(), NodalPatchRecovery::getGenericMaterialProperty(), InterfaceMaterial::getGenericMaterialProperty(), Material::getGenericMaterialProperty(), InterfaceMaterial::getGenericNeighborMaterialProperty(), InterfaceMaterial::getGenericNeighborMaterialPropertyByName(), Material::getGenericOptionalMaterialProperty(), MaterialBase::getGenericZeroMaterialProperty(), MFEMProblem::getGridFunction(), FEProblemBase::getKokkosFunction(), FEProblemBase::getKokkosUserObject(), SolutionUserObjectBase::getLocalVarIndex(), Marker::getMarkerValue(), Material::getMaterial(), FEProblemBase::getMaterial(), Material::getMaterialByName(), AuxKernelTempl< ComputeValueType >::getMaterialProperty(), NodalPatchRecovery::getMaterialProperty(), InterfaceMaterial::getMaterialProperty(), Material::getMaterialProperty(), SubProblem::getMaterialPropertyBlockNames(), SubProblem::getMaterialPropertyBoundaryNames(), AuxKernelTempl< ComputeValueType >::getMaterialPropertyOld(), NodalPatchRecovery::getMaterialPropertyOld(), InterfaceMaterial::getMaterialPropertyOld(), Material::getMaterialPropertyOld(), AuxKernelTempl< ComputeValueType >::getMaterialPropertyOlder(), NodalPatchRecovery::getMaterialPropertyOlder(), InterfaceMaterial::getMaterialPropertyOlder(), Material::getMaterialPropertyOlder(), MFEMObject::getMatrixCoefficient(), MFEMObject::getMatrixCoefficientByName(), MeshGenerator::getMesh(), FEProblemBase::getMeshDivision(), MeshGenerator::getMeshesByName(), MooseApp::getMeshGenerator(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), MFEMProblem::getMFEMObject(), ActionWarehouse::getMooseAppName(), NEML2FEInterpolation::getMOOSEVariable(), MultiAppTransfer::getMultiApp(), InterfaceMaterial::getNeighborADMaterialProperty(), InterfaceMaterial::getNeighborMaterialProperty(), InterfaceMaterial::getNeighborMaterialPropertyOld(), InterfaceMaterial::getNeighborMaterialPropertyOlder(), Material::getOptionalADMaterialProperty(), Material::getOptionalMaterialProperty(), Material::getOptionalMaterialPropertyOld(), Material::getOptionalMaterialPropertyOlder(), MooseBase::getParam(), FEProblemBase::getPositionsObject(), FEProblemBase::getPostprocessorValueByName(), ComponentMaterialPropertyInterface::getPropertyValue(), ReporterData::getReporterInfo(), MFEMExecutedObject::getRequestedItems(), MooseApp::getRestartableDataMap(), MooseApp::getRestartableDataMapName(), MooseApp::getRestartableMetaData(), FEProblemBase::getSampler(), MFEMObject::getScalarCoefficient(), MFEMObject::getScalarCoefficientByName(), TimedSubdomainModifier::getSubdomainIDAndCheck(), MFEMExecutedObject::getSuppliedItems(), TransientBase::getTimeStepperName(), ProjectedStatefulMaterialStorageAction::getTypeEnum(), FEProblemBase::getUserObject(), FEProblemBase::getUserObjectBase(), MFEMObject::getVectorCoefficient(), MFEMObject::getVectorCoefficientByName(), LinearFVGradientManager::gradientStateVectorName(), Terminator::handleMessage(), Control::hasControllableParameterByName(), FEProblemBase::hasConvergence(), FEProblemBase::hasDistribution(), FEProblemBase::hasFunction(), SubProblem::hasFunctor(), SubProblem::hasFunctorWithType(), FEProblemBase::hasFVGradientMethod(), FEProblemBase::hasFVInterpolationMethod(), MeshInfo::hasItem(), MooseApp::hasMeshGenerator(), MFEMProblem::hasMFEMObject(), AdvancedOutput::hasOutputHelper(), FEProblemBase::hasPostprocessor(), FEProblemBase::hasPostprocessorValueByName(), MooseApp::hasRelationshipManager(), MooseApp::hasRestartableDataMap(), MooseApp::hasRestartableMetaData(), FEProblemBase::hasUserObject(), NEML2Action::inferMOOSEIOType(), AddVariableAction::init(), AdvancedOutput::init(), IterationAdaptiveDT::init(), AdvancedOutput::initAvailableLists(), MeshInfo::initCombinedInfos(), AdvancedOutput::initExecutionTypes(), AttribName::initFrom(), NestedDivision::initialize(), TransformedPositions::initialize(), BoundaryRestrictable::initializeBoundaryRestrictable(), AuxKernelBase::initialSetup(), SolutionScalarAux::initialSetup(), MFEMScalarQuadratureFunction::initialSetup(), MFEMVectorQuadratureFunction::initialSetup(), Console::initialSetup(), JSONOutput::initialSetup(), BoundaryLinearFVFluxIntegral::initialSetup(), NodalVariableValue::initialSetup(), SideFVFluxBCIntegral::initialSetup(), MultiAppGeneralFieldFunctorTransfer::initialSetup(), MultiAppProjectionTransfer::initialSetup(), BoundaryMeshBuilder::initialSetup(), SolutionUserObjectBase::initialSetup(), AdvancedOutput::initOutputList(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), MaterialBase::initStatefulProperties(), Function::integral(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), MultiAppGeometricInterpolationTransfer::interpolateTargetPoints(), MeshGenerator::isChildMeshGenerator(), DerivativeMaterialInterface< T >::isNotObjectVariable(), MeshGenerator::isNullMeshName(), MooseBase::isParamSetByUser(), MooseBase::isParamValid(), MeshGenerator::isParentMeshGenerator(), LinearCombinationFunction::LinearCombinationFunction(), FEProblemBase::logAdd(), MooseLinearVariableFV< OutputType >::lowerDError(), Marker::Marker(), MaterialBase::markMatPropRequested(), Material::Material(), Distribution::median(), MemoryUsageReporter::MemoryUsageReporter(), NEML2ModelExecutor::meshChanged(), MeshGenerator::meshPropertyPrefix(), MooseBase::messagePrefix(), MFEMGeometricMultigridSolver::MFEMGeometricMultigridSolver(), MFEMScalarQuadratureFunction::MFEMScalarQuadratureFunction(), MFEMTransient::MFEMTransient(), MFEMVectorQuadratureFunction::MFEMVectorQuadratureFunction(), OutputWarehouse::mooseConsole(), SolutionInvalidInterface::mooseDeprecated(), MooseVariableBase::MooseVariableBase(), MooseVariableInterface< T >::MooseVariableInterface(), SolutionInvalidInterface::mooseWarning(), SolutionInvalidInterface::mooseWarningNonPrefixed(), MoveNodesByParsedExpressionModifier::MoveNodesByParsedExpressionModifier(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), NEML2PreKernel::NEML2PreKernel(), NodalDamper::NodalDamper(), MooseLinearVariableFV< OutputType >::nodalError(), NodalPatchRecoveryAuxBase::NodalPatchRecoveryAuxBase(), NodalValueSampler::NodalValueSampler(), MeshGenerator::Comparator::operator()(), DOFMapOutput::output(), ProgressOutput::output(), Output::Output(), AdvancedOutput::outputElementalVariables(), ConsoleUtils::outputExecutionInformation(), MaterialOutputAction::outputHelper(), AdvancedOutput::outputInput(), AdvancedOutput::outputNodalVariables(), AdvancedOutput::outputPostprocessors(), Exodus::outputPostprocessors(), Nemesis::outputPostprocessors(), TableOutput::outputReporter(), AdvancedOutput::outputReporters(), AdvancedOutput::outputScalarVariables(), AdvancedOutput::outputSystemInformation(), AdvancedOutput::outputVectorPostprocessors(), SolutionInvalidInterface::paramWarning(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedODEKernel::ParsedODEKernel(), ComponentPhysicsInterface::physicsExists(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseByBlockFunctorMaterialTempl< T >::PiecewiseByBlockFunctorMaterialTempl(), PiecewiseFunction::PiecewiseFunction(), PointInUnionCheckUO::PointInUnionCheckUO(), MooseApp::possiblyLoadRestartableMetaData(), MFEMExecutedObject::postprocessorDependencyKey(), PhysicsBase::prefix(), MooseMesh::prepare(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), PerfGraphLivePrint::printStats(), FEProblemBase::projectInitialConditionOnCustomRange(), MooseBase::queryParam(), MultiApp::readCommandLineArguments(), Receiver::Receiver(), Executor::Result::record(), FEProblemBase::registerRandomInterface(), MooseApp::registerRestartableDataMapName(), MooseApp::registerRestartableNameWithFilter(), MaterialBase::resetQpProperties(), MultiApp::restore(), ScalarComponentIC::ScalarComponentIC(), MultiApp::setAppOutputFileBase(), FEProblemBase::setAuxKernelParamsAndLog(), MooseMesh::setBoundaryName(), Control::setControllableValue(), Control::setControllableValueByName(), OutputWarehouse::setFileNumbers(), FEProblemBase::setPostprocessorValueByName(), FEProblemBase::setResidualObjectParamsAndLog(), MooseMesh::setSubdomainName(), MooseMesh::setSubdomainName(), NodeSetsGeneratorBase::setup(), SideSetsGeneratorBase::setup(), SurfaceMeshGeneratorBase::setup(), Split::setup(), TransientMultiApp::setupApp(), MoveNodesByParsedExpressionModifier::setupNodalOutputVariables(), NEML2Action::setupOutputMappings(), SideSetExtruderGenerator::SideSetExtruderGenerator(), TransientMultiApp::solveStep(), UserObject::spatialValue(), LinearFVGradientReader::stateComponents(), StitchedMesh::StitchedMesh(), SubProblem::storeBoundaryDelayedCheckMatProp(), SubProblem::storeBoundaryMatPropName(), MaterialBase::storeBoundaryZeroMatProp(), SubProblem::storeBoundaryZeroMatProp(), SubProblem::storeSubdomainDelayedCheckMatProp(), SubProblem::storeSubdomainMatPropName(), MaterialBase::storeSubdomainZeroMatProp(), SubProblem::storeSubdomainZeroMatProp(), ConstraintWarehouse::subdomainsCovered(), MaterialBase::subdomainSetup(), SumPostprocessor::SumPostprocessor(), MFEMPostprocessor::suppliedPostprocessorName(), MFEMVectorPostprocessor::suppliedVectorPostprocessorName(), BoundaryMeshBuilder::surfaceElementSet(), NEML2FEInterpolation::syncWithMainThread(), TaggingInterface::TaggingInterface(), MooseLinearVariableFV< OutputType >::timeIntegratorError(), VectorPostprocessorVisualizationAux::timestepSetup(), ElementSubdomainModifierBase::timestepSetup(), to_json(), MultiAppDofCopyTransfer::transfer(), MultiAppShapeEvaluationTransfer::transferVariable(), MultiAppMFEMCopyTransfer::transferVariables(), MultiAppMFEMShapeEvaluationTransfer::transferVariables(), TransientMultiApp::TransientMultiApp(), MooseBase::typeAndName(), MooseBase::uniqueParameterName(), FVQpFluxBC::uOnGhost(), FVQpFluxBC::uOnUSub(), UserObjectBase::UserObjectBase(), UserObjectInterface::userObjectName(), ParsedAux::validateGenericVectorNames(), MeshInfo::validParams(), MFEMExecutedObject::variableDependencyKey(), PhysicsBase::variableExists(), MultiAppTransfer::variableIntegrityCheck(), VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl(), MFEMExecutedObject::vectorPostprocessorDependencyKey(), Convergence::verboseOutput(), AdvancedOutput::wantOutput(), Coupleable::writableCoupledValue(), Coupleable::writableVariable(), Console::write(), MooseApp::writeRestartableMetaData(), and XYQuadrilateralMeshFromBoundaryCurve::XYQuadrilateralMeshFromBoundaryCurve().

◆ needBoundaryMaterialOnSide()

bool FEProblemBase::needBoundaryMaterialOnSide ( BoundaryID  bnd_id,
const THREAD_ID  tid 
)
inherited

These methods are used to determine whether stateful material properties need to be stored on internal sides.

There are five situations where this may be the case: 1) DGKernels 2) IntegratedBCs 3)InternalSideUserObjects 4)ElementalAuxBCs 5)InterfaceUserObjects

Method 1:

Parameters
bnd_idthe boundary id for which to see if stateful material properties need to be stored
tidthe THREAD_ID of the caller
Returns
Boolean indicating whether material properties need to be stored

Method 2:

Parameters
subdomain_idthe subdomain id for which to see if stateful material properties need to be stored
tidthe THREAD_ID of the caller
Returns
Boolean indicating whether material properties need to be stored

Definition at line 9648 of file FEProblemBase.C.

9649{
9650 if (_bnd_mat_side_cache[tid].find(bnd_id) == _bnd_mat_side_cache[tid].end())
9651 {
9652 auto & bnd_mat_side_cache = _bnd_mat_side_cache[tid][bnd_id];
9653 bnd_mat_side_cache = false;
9654
9655 // Check systems
9656 if (_aux->needMaterialOnSide(bnd_id))
9657 {
9658 bnd_mat_side_cache = true;
9659 return true;
9660 }
9661 for (auto & nl : _nl)
9662 if (nl->needBoundaryMaterialOnSide(bnd_id, tid))
9663 {
9664 bnd_mat_side_cache = true;
9665 return true;
9666 }
9667
9668 // TODO: these objects should be checked for whether they actually consume materials
9669 // NOTE: InterfaceUO can use use boundary properties too
9670 if (theWarehouse()
9671 .query()
9672 .condition<AttribThread>(tid)
9673 .condition<AttribInterfaces>(Interfaces::SideUserObject | Interfaces::DomainUserObject |
9675 .condition<AttribBoundaries>(bnd_id)
9676 .count() > 0)
9677 {
9678 bnd_mat_side_cache = true;
9679 return true;
9680 }
9681 }
9682
9683 return _bnd_mat_side_cache[tid][bnd_id];
9684}
std::vector< std::unordered_map< BoundaryID, bool > > _bnd_mat_side_cache
Cache for calculating materials on side.
bool needBoundaryMaterialOnSide(BoundaryID bnd_id, const THREAD_ID tid)
These methods are used to determine whether stateful material properties need to be stored on interna...
KOKKOS_INLINE_FUNCTION const T * find(const T &target, const T *const begin, const T *const end)
Find a value in an array.
Definition KokkosUtils.h:40

Referenced by ComputeMaterialsObjectThread::onBoundary(), ProjectMaterialProperties::onBoundary(), FEProblemBase::reinitMaterialsBoundary(), FEProblemBase::reinitMaterialsFaceOnBoundary(), and FEProblemBase::reinitMaterialsNeighborOnBoundary().

◆ needFV()

virtual void FEProblemBase::needFV ( )
inlineoverridevirtualinherited

marks this problem as including/needing finite volume functionality.

Implements SubProblem.

Definition at line 3023 of file FEProblemBase.h.

3023{ _have_fv = true; }

Referenced by DiffusionFV::initializePhysicsAdditional(), and DisplacedProblem::needFV().

◆ needInterfaceMaterialOnSide()

bool FEProblemBase::needInterfaceMaterialOnSide ( BoundaryID  bnd_id,
const THREAD_ID  tid 
)
inherited

Definition at line 9687 of file FEProblemBase.C.

9688{
9689 if (_interface_mat_side_cache[tid].find(bnd_id) == _interface_mat_side_cache[tid].end())
9690 {
9691 auto & interface_mat_side_cache = _interface_mat_side_cache[tid][bnd_id];
9692 interface_mat_side_cache = false;
9693
9694 // Aux-system has not needed interface materials so far
9695 for (auto & nl : _nl)
9696 if (nl->needInterfaceMaterialOnSide(bnd_id, tid))
9697 {
9698 interface_mat_side_cache = true;
9699 return true;
9700 }
9701
9702 // TODO: these objects should be checked for whether they actually consume materials
9703 if (theWarehouse()
9704 .query()
9705 .condition<AttribThread>(tid)
9706 .condition<AttribInterfaces>(Interfaces::InterfaceUserObject |
9708 .condition<AttribBoundaries>(bnd_id)
9709 .count() > 0)
9710 {
9711 interface_mat_side_cache = true;
9712 return true;
9713 }
9714 else if (_interface_materials.hasActiveBoundaryObjects(bnd_id, tid))
9715 {
9716 interface_mat_side_cache = true;
9717 return true;
9718 }
9719 }
9720 return _interface_mat_side_cache[tid][bnd_id];
9721}
bool needInterfaceMaterialOnSide(BoundaryID bnd_id, const THREAD_ID tid)
std::vector< std::unordered_map< BoundaryID, bool > > _interface_mat_side_cache
Cache for calculating materials on interface.
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const

Referenced by ComputeMaterialsObjectThread::onInterface(), FEProblemBase::reinitMaterialsFaceOnBoundary(), FEProblemBase::reinitMaterialsInterface(), and FEProblemBase::reinitMaterialsNeighborOnBoundary().

◆ needInternalNeighborSideMaterial()

bool FEProblemBase::needInternalNeighborSideMaterial ( SubdomainID  subdomain_id,
const THREAD_ID  tid 
)
inherited

Definition at line 9724 of file FEProblemBase.C.

9725{
9726 if (_block_mat_side_cache[tid].find(subdomain_id) == _block_mat_side_cache[tid].end())
9727 {
9728 _block_mat_side_cache[tid][subdomain_id] = false;
9729
9730 for (auto & nl : _nl)
9731 if (nl->needInternalNeighborSideMaterial(subdomain_id, tid))
9732 {
9733 _block_mat_side_cache[tid][subdomain_id] = true;
9734 return true;
9735 }
9736
9737 // TODO: these objects should be checked for whether they actually consume materials
9738 if (theWarehouse()
9739 .query()
9740 .condition<AttribThread>(tid)
9741 .condition<AttribInterfaces>(Interfaces::InternalSideUserObject |
9743 .condition<AttribSubdomains>(subdomain_id)
9744 .count() > 0)
9745 {
9746 _block_mat_side_cache[tid][subdomain_id] = true;
9747 return true;
9748 }
9749 }
9750
9751 return _block_mat_side_cache[tid][subdomain_id];
9752}
std::vector< std::unordered_map< SubdomainID, bool > > _block_mat_side_cache
Cache for calculating materials on side.
bool needInternalNeighborSideMaterial(SubdomainID subdomain_id, const THREAD_ID tid)

Referenced by FEProblemBase::reinitMaterialsFaceOnBoundary(), FEProblemBase::reinitMaterialsNeighborOnBoundary(), ComputeMaterialsObjectThread::subdomainChanged(), and ProjectMaterialProperties::subdomainChanged().

◆ needSolutionState()

void FEProblemBase::needSolutionState ( unsigned int  oldest_needed,
Moose::SolutionIterationType  iteration_type 
)
inherited

Declare that we need up to old (1) or older (2) solution states for a given type of iteration.

Parameters
oldest_neededoldest solution state needed
iteration_typethe type of iteration for which old/older states are needed

Definition at line 785 of file FEProblemBase.C.

786{
787 for (auto & sys : _solver_systems)
788 sys->needSolutionState(state, iteration_type);
789 _aux->needSolutionState(state, iteration_type);
790}

Referenced by FEProblemBase::createTagSolutions().

◆ needsPreviousMultiAppFixedPointIterationAuxiliary() [1/2]

bool FEProblemBase::needsPreviousMultiAppFixedPointIterationAuxiliary ( ) const
inherited

Check to see whether we need to compute the variable values of the previous multiapp fixed point iteration for the auxiliary system.

Returns
true if the user required values of the previous multiapp fixed point iteration from the auxiliary system

Definition at line 9789 of file FEProblemBase.C.

9790{
9792}
bool _previous_multiapp_fp_aux_solution_required
Indicates we need to save the previous multiapp fixed-point iteration auxiliary variable values.

◆ needsPreviousMultiAppFixedPointIterationAuxiliary() [2/2]

void FEProblemBase::needsPreviousMultiAppFixedPointIterationAuxiliary ( bool  state)
inherited

Set a flag that indicated that user required values for the previous multiapp fixed point iterate for the auxiliary system.

Definition at line 9783 of file FEProblemBase.C.

Referenced by FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl(), and FixedPointSolve::initialSetup().

◆ needsPreviousMultiAppFixedPointIterationSolution() [1/2]

void FEProblemBase::needsPreviousMultiAppFixedPointIterationSolution ( bool  needed,
const unsigned int  solver_sys_num 
)
inherited

Set a flag that indicated that user required values for the previous multiapp fixed point iterate for the solver systems (not auxiliary)

Parameters
neededthe value that should be set to the flag
solver_sys_numthe index of the solver system for which the previous iteration is needed

Definition at line 9769 of file FEProblemBase.C.

9771{
9772 _previous_multiapp_fp_nl_solution_required[solver_sys_num] = needed;
9773}
std::vector< bool > _previous_multiapp_fp_nl_solution_required
Indicates we need to save the previous multiapp fixed-point iteration solver variable values.

Referenced by FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl(), and FixedPointSolve::initialSetup().

◆ needsPreviousMultiAppFixedPointIterationSolution() [2/2]

bool FEProblemBase::needsPreviousMultiAppFixedPointIterationSolution ( const unsigned int  solver_sys_num) const
inherited

Check to see whether we need to compute the variable values of the previous multiapp fixed point iteration for the solver systems (not auxiliary)

Parameters
solver_sys_numthe index of the solver system for which the previous iteration is needed
Returns
true if the user required values of the previous multiapp fixed point iteration

Definition at line 9776 of file FEProblemBase.C.

9778{
9779 return _previous_multiapp_fp_nl_solution_required[solver_sys_num];
9780}

◆ needsPreviousMultiSystemFixedPointIterationAuxiliary() [1/2]

bool FEProblemBase::needsPreviousMultiSystemFixedPointIterationAuxiliary ( ) const
inherited

Check to see whether we need to compute the variable values of the previous multi-system fixed point iteration for the auxiliary system.

Returns
true if the user required values of the previous multi-system fixed point iteration from the auxiliary system

Definition at line 9815 of file FEProblemBase.C.

9816{
9818}
bool _previous_multisystem_fp_aux_solution_required
Indicates we need to save the previous multi-system fixed-point iteration auxiliary variable values.

◆ needsPreviousMultiSystemFixedPointIterationAuxiliary() [2/2]

void FEProblemBase::needsPreviousMultiSystemFixedPointIterationAuxiliary ( bool  state)
inherited

Set a flag that indicates that user requires values for the previous multi-system fixed point iterate for the auxiliary system.

Definition at line 9809 of file FEProblemBase.C.

Referenced by FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl(), and FEProblemSolve::initialSetup().

◆ needsPreviousMultiSystemFixedPointIterationSolution() [1/2]

void FEProblemBase::needsPreviousMultiSystemFixedPointIterationSolution ( bool  needed,
const unsigned int  solver_sys_num 
)
inherited

Set a flag that indicates that user requires values for the previous multi-system fixed point iterate for the solver systems (not auxiliary)

Parameters
neededthe value that should be set to the flag
solver_sys_numthe index of the solver system for which the previous iteration is needed

Definition at line 9795 of file FEProblemBase.C.

9797{
9798 _previous_multisystem_fp_nl_solution_required[solver_sys_num] = needed;
9799}
std::vector< bool > _previous_multisystem_fp_nl_solution_required
Indicates we need to save the previous multi-system fixed-point iteration solver variable values.

Referenced by FunctorChangeFunctorMaterialTempl< is_ad >::FunctorChangeFunctorMaterialTempl(), and FEProblemSolve::initialSetup().

◆ needsPreviousMultiSystemFixedPointIterationSolution() [2/2]

bool FEProblemBase::needsPreviousMultiSystemFixedPointIterationSolution ( const unsigned int  solver_sys_num) const
inherited

Check to see whether we need to compute the variable values of the previous multi-system fixed point iteration for the solver systems (not auxiliary)

Parameters
solver_sys_numthe index of the solver system for which the previous iteration is needed
Returns
true if the user required values of the previous multi-system fixed point iteration

Definition at line 9802 of file FEProblemBase.C.

9804{
9805 return _previous_multisystem_fp_nl_solution_required[solver_sys_num];
9806}

◆ needsPreviousNewtonIteration() [1/2]

bool FEProblemBase::needsPreviousNewtonIteration ( ) const
inherited

Check to see whether we need to compute the variable values of the previous Newton iterate.

Returns
true if the user required values of the previous Newton iterate

Definition at line 9755 of file FEProblemBase.C.

◆ needsPreviousNewtonIteration() [2/2]

void FEProblemBase::needsPreviousNewtonIteration ( bool  state)
inherited

Set a flag that indicated that user required values for the previous Newton iterate.

Definition at line 9761 of file FEProblemBase.C.

9762{
9764 mooseError("Previous nonlinear solution is required but not added through "
9765 "Problem/previous_nl_solution_required=true");
9766}

Referenced by Coupleable::coupledGradientPreviousNL(), Coupleable::coupledNodalValuePreviousNL(), Coupleable::coupledSecondPreviousNL(), Coupleable::coupledValuePreviousNL(), and NonlinearSystem::solve().

◆ needToAddDefaultMultiAppFixedPointConvergence()

bool FEProblemBase::needToAddDefaultMultiAppFixedPointConvergence ( ) const
inlineinherited

Returns true if the problem needs to add the default fixed point convergence.

Definition at line 768 of file FEProblemBase.h.

769 {
771 }
bool _need_to_add_default_multiapp_fixed_point_convergence
Flag that the problem needs to add the default fixed point convergence.

◆ needToAddDefaultNonlinearConvergence()

bool FEProblemBase::needToAddDefaultNonlinearConvergence ( ) const
inlineinherited

Returns true if the problem needs to add the default nonlinear convergence.

Definition at line 763 of file FEProblemBase.h.

764 {
766 }
bool _need_to_add_default_nonlinear_convergence
Flag that the problem needs to add the default nonlinear convergence.

◆ needToAddDefaultSteadyStateConvergence()

bool FEProblemBase::needToAddDefaultSteadyStateConvergence ( ) const
inlineinherited

Returns true if the problem needs to add the default steady-state detection convergence.

Definition at line 773 of file FEProblemBase.h.

774 {
776 }
bool _need_to_add_default_steady_state_convergence
Flag that the problem needs to add the default steady convergence.

◆ neighborSubdomainSetup()

void FEProblemBase::neighborSubdomainSetup ( SubdomainID  subdomain,
const THREAD_ID  tid 
)
virtualinherited

Definition at line 2691 of file FEProblemBase.C.

2692{
2693 _all_materials.neighborSubdomainSetup(subdomain, tid);
2694}
virtual void neighborSubdomainSetup(THREAD_ID tid=0) const

Referenced by ThreadedFaceLoop< RangeType >::neighborSubdomainChanged().

◆ newAssemblyArray()

void FEProblemBase::newAssemblyArray ( std::vector< std::shared_ptr< SolverSystem > > &  solver_systems)
virtualinherited

Definition at line 804 of file FEProblemBase.C.

805{
806 unsigned int n_threads = libMesh::n_threads();
807
808 _assembly.resize(n_threads);
809 for (const auto i : make_range(n_threads))
810 {
811 _assembly[i].resize(solver_systems.size());
812 for (const auto j : index_range(solver_systems))
813 _assembly[i][j] = std::make_unique<Assembly>(*solver_systems[j], i);
814 }
815}
Keeps track of stuff related to assembling.
Definition Assembly.h:101

Referenced by DumpObjectsProblem(), EigenProblem::EigenProblem(), ExternalProblem::ExternalProblem(), and FEProblem::FEProblem().

◆ nlConverged()

bool SubProblem::nlConverged ( const unsigned int  nl_sys_num)
virtualinherited
Returns
whether the given nonlinear system nl_sys_num is converged.

Definition at line 705 of file SubProblem.C.

706{
707 mooseAssert(nl_sys_num < numNonlinearSystems(),
708 "The nonlinear system number is higher than the number of systems we have!");
709 return solverSystemConverged(nl_sys_num);
710}

◆ nLinearIterations()

unsigned int FEProblemBase::nLinearIterations ( const unsigned int  nl_sys_num) const
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 7431 of file FEProblemBase.C.

7432{
7433 return _nl[nl_sys_num]->nLinearIterations();
7434}

Referenced by PiecewiseLinearFromVectorPostprocessor::valueInternal().

◆ nlSysNum()

unsigned int FEProblemBase::nlSysNum ( const NonlinearSystemName &  nl_sys_name) const
overridevirtualinherited
Returns
the nonlinear system number corresponding to the provided nl_sys_name

Implements SubProblem.

Definition at line 7162 of file FEProblemBase.C.

7163{
7164 std::istringstream ss(nl_sys_name);
7165 unsigned int nl_sys_num;
7166 if (!(ss >> nl_sys_num) || !ss.eof())
7167 nl_sys_num = libmesh_map_find(_nl_sys_name_to_num, nl_sys_name);
7168
7169 return nl_sys_num;
7170}
std::map< NonlinearSystemName, unsigned int > _nl_sys_name_to_num
Map from nonlinear system name to number.

Referenced by DisplacedProblem::nlSysNum().

◆ nNonlinearIterations()

unsigned int FEProblemBase::nNonlinearIterations ( const unsigned int  nl_sys_num) const
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 7425 of file FEProblemBase.C.

7426{
7427 return _nl[nl_sys_num]->nNonlinearIterations();
7428}

Referenced by PiecewiseLinearFromVectorPostprocessor::valueInternal().

◆ nonlocalCouplingEntries()

std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & FEProblemBase::nonlocalCouplingEntries ( const THREAD_ID  tid,
const unsigned int  nl_sys_num 
)
inherited

Definition at line 7008 of file FEProblemBase.C.

7009{
7010 return _assembly[tid][nl_sys]->nonlocalCouplingEntries();
7011}

Referenced by ComputeFullJacobianThread::computeOnBoundary(), and ComputeFullJacobianThread::computeOnElement().

◆ nonlocalCouplingMatrix()

const libMesh::CouplingMatrix & FEProblemBase::nonlocalCouplingMatrix ( const unsigned  i) const
overridevirtualinherited
Returns
the nonlocal coupling matrix for the i'th nonlinear system

Implements SubProblem.

Definition at line 10447 of file FEProblemBase.C.

10448{
10449 return _nonlocal_cm[i];
10450}

Referenced by DisplacedProblem::nonlocalCouplingMatrix().

◆ notifyWhenMeshChanges()

void FEProblemBase::notifyWhenMeshChanges ( MeshChangedInterface *  mci)
inherited

Register an object that derives from MeshChangedInterface to be notified when the mesh changes.

Definition at line 9181 of file FEProblemBase.C.

9182{
9183 _notify_when_mesh_changes.push_back(mci);
9184}

Referenced by MeshChangedInterface::MeshChangedInterface().

◆ notifyWhenMeshDisplaces()

void FEProblemBase::notifyWhenMeshDisplaces ( MeshDisplacedInterface *  mdi)
inherited

Register an object that derives from MeshDisplacedInterface to be notified when the displaced mesh gets updated.

Definition at line 9187 of file FEProblemBase.C.

9188{
9189 _notify_when_mesh_displaces.push_back(mdi);
9190}

Referenced by MeshDisplacedInterface::MeshDisplacedInterface().

◆ numConcurrentMultiApps()

unsigned int FEProblemBase::numConcurrentMultiApps ( ) const
inlineinherited
Returns
the number set for concurrent multiapp execution; greater than 1 enables running the multiapps of an 'execution_order_group' concurrently, each on its own subset of ranks

Definition at line 1725 of file FEProblemBase.h.

1725{ return _num_concurrent_multiapps; }

◆ numGridSteps()

void FEProblemBase::numGridSteps ( unsigned int  num_grid_steps)
inlineinherited

Set the number of steps in a grid sequences.

Definition at line 2771 of file FEProblemBase.h.

2771{ _num_grid_steps = num_grid_steps; }

Referenced by FEProblemSolve::FEProblemSolve().

◆ numLinearSystems()

virtual std::size_t FEProblemBase::numLinearSystems ( ) const
inlineoverridevirtualinherited

◆ numMatrixTags()

virtual unsigned int SubProblem::numMatrixTags ( ) const
inlinevirtualinherited

◆ numNonlinearSystems()

virtual std::size_t FEProblemBase::numNonlinearSystems ( ) const
inlineoverridevirtualinherited

◆ numSolverSystems()

virtual std::size_t FEProblemBase::numSolverSystems ( ) const
inlineoverridevirtualinherited

◆ numVectorTags()

unsigned int SubProblem::numVectorTags ( const Moose::VectorTagType  type = Moose::VECTOR_TAG_ANY) const
virtualinherited

◆ objectExecuteHelper()

template<typename T >
void FEProblemBase::objectExecuteHelper ( const std::vector< T * > &  objects)
staticinherited

Definition at line 3803 of file FEProblemBase.h.

3804{
3805 for (T * obj_ptr : objects)
3806 obj_ptr->execute();
3807}

◆ objectSetupHelper()

template<typename T >
void FEProblemBase::objectSetupHelper ( const std::vector< T * > &  objects,
const ExecFlagType &  exec_flag 
)
staticinherited

Helpers for calling the necessary setup/execute functions for the supplied objects.

Definition at line 3769 of file FEProblemBase.h.

3770{
3771 if (exec_flag == EXEC_INITIAL)
3772 {
3773 for (T * obj_ptr : objects)
3774 obj_ptr->initialSetup();
3775 }
3776
3777 else if (exec_flag == EXEC_TIMESTEP_BEGIN)
3778 {
3779 for (const auto obj_ptr : objects)
3780 obj_ptr->timestepSetup();
3781 }
3782 else if (exec_flag == EXEC_SUBDOMAIN)
3783 {
3784 for (const auto obj_ptr : objects)
3785 obj_ptr->subdomainSetup();
3786 }
3787
3788 else if (exec_flag == EXEC_NONLINEAR)
3789 {
3790 for (const auto obj_ptr : objects)
3791 obj_ptr->jacobianSetup();
3792 }
3793
3794 else if (exec_flag == EXEC_LINEAR)
3795 {
3796 for (const auto obj_ptr : objects)
3797 obj_ptr->residualSetup();
3798 }
3799}
const ExecFlagType EXEC_SUBDOMAIN
Definition Moose.C:53
const ExecFlagType EXEC_TIMESTEP_BEGIN
Definition Moose.C:38
void timestepSetup() override
virtual void subdomainSetup(SubdomainID subdomain, const THREAD_ID tid)
void initialSetup() override

◆ onlyAllowDefaultNonlinearConvergence()

virtual bool FEProblemBase::onlyAllowDefaultNonlinearConvergence ( ) const
inlinevirtualinherited

Returns true if an error will result if the user supplies 'nonlinear_convergence'.

Some problems are strongly tied to their convergence, and it does not make sense to use any convergence other than their default and additionally would be error-prone.

Reimplemented in ReferenceResidualProblem.

Definition at line 817 of file FEProblemBase.h.

817{ return false; }

Referenced by FEProblemSolve::FEProblemSolve().

◆ onTimestepBegin()

void FEProblemBase::onTimestepBegin ( )
overridevirtualinherited

Implements SubProblem.

Definition at line 7613 of file FEProblemBase.C.

7614{
7615 TIME_SECTION("onTimestepBegin", 2);
7616
7617 for (auto & nl : _nl)
7618 nl->onTimestepBegin();
7619}
virtual void onTimestepBegin() override

Referenced by TransientBase::takeStep(), and MFEMTransient::takeStep().

◆ onTimestepEnd()

virtual void DumpObjectsProblem::onTimestepEnd ( )
inlineoverridevirtual

Reimplemented from FEProblemBase.

Definition at line 67 of file DumpObjectsProblem.h.

67{}

◆ outputStep()

virtual void DumpObjectsProblem::outputStep ( ExecFlagType  type)
inlineoverridevirtual

Output the current step.

Will ensure that everything is in the proper state to be outputted. Then tell the OutputWarehouse to do its thing

Parameters
typeThe type execution flag (see Moose.h)

Reimplemented from FEProblemBase.

Definition at line 65 of file DumpObjectsProblem.h.

65{}

◆ paramError()

template<typename... Args>
void MooseBase::paramError ( const std::string &  param,
Args...  args 
) const
inherited

Emits an error prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseError - only printing a message using the given args.

Definition at line 457 of file MooseBase.h.

458{
459 _pars.paramError(param, std::forward<Args>(args)...);
460}
void paramError(const std::string &param, Args... args) const
Emits a parameter error prefixed with the parameter location and object information if available.

Referenced by HierarchicalGridPartitioner::_do_partition(), AutoCheckpointAction::act(), CommonOutputAction::act(), SetupDebugAction::act(), DiffusionCG::addFEKernels(), DiffusionFV::addFVKernels(), NEML2ModelExecutor::addGatheredParameter(), NEML2ModelExecutor::addGatheredVariable(), ADDGKernel::ADDGKernel(), ComponentJunction::addMeshGenerators(), CylinderComponent::addMeshGenerators(), ReporterPointSource::addPoints(), DiffusionPhysicsBase::addPostprocessors(), ADIntegratedBCTempl< T >::ADIntegratedBCTempl(), ADKernelTempl< T >::ADKernelTempl(), ADPenaltyPeriodicSegmentalConstraint::ADPenaltyPeriodicSegmentalConstraint(), ADPeriodicSegmentalConstraint::ADPeriodicSegmentalConstraint(), AdvancedExtruderGenerator::AdvancedExtruderGenerator(), AdvectiveFluxAux::AdvectiveFluxAux(), AnnularMesh::AnnularMesh(), AnnularMeshGenerator::AnnularMeshGenerator(), ArrayBodyForce::ArrayBodyForce(), ArrayCoupledForce::ArrayCoupledForce(), ArrayDGKernel::ArrayDGKernel(), ArrayDGLowerDKernel::ArrayDGLowerDKernel(), ArrayDirichletBC::ArrayDirichletBC(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), ArrayIntegratedBC::ArrayIntegratedBC(), ArrayKernel::ArrayKernel(), ArrayLowerDIntegratedBC::ArrayLowerDIntegratedBC(), ArrayParsedAux::ArrayParsedAux(), ArrayPenaltyDirichletBC::ArrayPenaltyDirichletBC(), ArrayReactionNodalKernelTempl< is_ad >::ArrayReactionNodalKernelTempl(), ArrayVacuumBC::ArrayVacuumBC(), ArrayVarReductionAux::ArrayVarReductionAux(), ParsedSubdomainIDsGenerator::assignElemSubdomainID(), AuxKernelBase::AuxKernelBase(), BatchMeshGeneratorAction::BatchMeshGeneratorAction(), BlockDeletionGenerator::BlockDeletionGenerator(), BlockWeightedPartitioner::BlockWeightedPartitioner(), BoundaryIntegralValueConstraint::BoundaryIntegralValueConstraint(), BoundaryLinearFVFluxIntegral::BoundaryLinearFVFluxIntegral(), BoundsBase::BoundsBase(), BreakMeshByBlockGenerator::BreakMeshByBlockGenerator(), BSplineCurveGenerator::BSplineCurveGenerator(), BuildArrayVariableAux::BuildArrayVariableAux(), MFEMFESpaceHierarchy::buildHierarchy(), MFEMMesh::buildMesh(), MFEMGeometricMultigridSolver::BuildMultigrid(), TimeSequenceStepperBase::buildSequence(), CartesianGridDivision::CartesianGridDivision(), CartesianMeshGenerator::CartesianMeshGenerator(), SurfaceDelaunayGeneratorBase::checkBoundaryAndHolesParams(), checkComponent(), Moose::Kokkos::ParsedObjectBase::checkDuplicateSymbols(), SamplerBase::checkForStandardFieldVariableType(), MeshGenerator::checkGetMesh(), ComponentInitialConditionInterface::checkInitialConditionsAllRequested(), BatchMeshGeneratorAction::checkInputParameterType(), PhysicsBase::checkIntegrityEarly(), SurfaceDelaunayGeneratorBase::checkInteriorPoints(), SideUserObject::checkNoInterfaceMaterialPropertyDependencies(), PostprocessorInterface::checkParam(), FEProblemBase::checkProblemIntegrity(), MultiAppReporterTransfer::checkSiblingsTransferSupported(), MFEMMultiAppTransfer::checkValidTransferProblemTypes(), Coupleable::checkVar(), MultiAppTransfer::checkVariable(), CircularBoundaryCorrectionGenerator::CircularBoundaryCorrectionGenerator(), CircularBoundaryCorrectionGenerator::circularCenterCalculator(), MultiAppGeneralFieldTransfer::closestToPosition(), CoarsenBlockGenerator::CoarsenBlockGenerator(), CombinedVectorPostprocessor::CombinedVectorPostprocessor(), CombinerGenerator::CombinerGenerator(), ComponentInitialConditionInterface::ComponentInitialConditionInterface(), ComponentJunction::ComponentJunction(), ComponentMaterialPropertyInterface::ComponentMaterialPropertyInterface(), CompositionDT::CompositionDT(), ConcentricCircleMeshGenerator::ConcentricCircleMeshGenerator(), LibtorchNeuralNetControl::conditionalParameterError(), ConservativeAdvectionBCTempl< is_ad >::ConservativeAdvectionBCTempl(), ConservativeAdvectionTempl< is_ad >::ConservativeAdvectionTempl(), ConstantVectorPostprocessor::ConstantVectorPostprocessor(), MFEMNewtonNonlinearSolver::ConstructSolver(), ContainsPointAux::ContainsPointAux(), CopyValueAux::CopyValueAux(), MultiAppGeneralFieldTransfer::correctSolutionVectorValues(), Coupleable::Coupleable(), CoupledForceTempl< is_ad >::CoupledForceTempl(), CoupledValueFunctionMaterialTempl< is_ad >::CoupledValueFunctionMaterialTempl(), MultiApp::createApp(), MeshGeneratorSystem::createMeshGenerator(), MoveBoundaryNodesToCurveGenerator::curveGenerator(), CylindricalGridDivision::CylindricalGridDivision(), DebugResidualAux::DebugResidualAux(), ConstantReporter::declareConstantReporterValue(), ConstantReporter::declareConstantReporterValues(), AccumulateReporter::declareLateValues(), DefaultMultiAppFixedPointConvergence::DefaultMultiAppFixedPointConvergence(), DGKernel::DGKernel(), DGKernelBase::DGKernelBase(), DGLowerDKernel::DGLowerDKernel(), DiffusionFluxAux::DiffusionFluxAux(), DomainUserObject::DomainUserObject(), EigenProblem::EigenProblem(), EigenProblemSolve::EigenProblemSolve(), ElementAdaptivityLevelAux::ElementAdaptivityLevelAux(), ElementGenerator::ElementGenerator(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), ElementLengthAux::ElementLengthAux(), ElementLpNormAux::ElementLpNormAux(), ElementNormalAux::ElementNormalAux(), ExtraIDIntegralVectorPostprocessor::elementValue(), ElementValueSampler::ElementValueSampler(), ElementVectorL2Error::ElementVectorL2Error(), EqualValueEmbeddedConstraintTempl< is_ad >::EqualValueEmbeddedConstraintTempl(), ReporterPointSource::errorCheck(), StitchMeshGeneratorBase::errorMissingBoundary(), ExamplePatchMeshGenerator::ExamplePatchMeshGenerator(), FunctorNodalCorrector::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppUserObjectTransfer::execute(), ExtraElementIDAux::ExtraElementIDAux(), ExtraElementIntegerDivision::ExtraElementIntegerDivision(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), FEProblemBase::FEProblemBase(), FEProblemSolve::FEProblemSolve(), FileMeshGenerator::FileMeshGenerator(), FillBetweenCurvesGenerator::FillBetweenCurvesGenerator(), FillBetweenSidesetsGenerator::FillBetweenSidesetsGenerator(), SpatialUserObjectVectorPostprocessor::fillPoints(), CombinerGenerator::fillPositions(), MultiApp::fillPositions(), InternalSideIndicatorBase::finalize(), MeshTriangulationUtils::finalizeTriangulation(), FixedPointSolve::findTransformedSystem(), FixedPointSolve::FixedPointSolve(), ForcingFunctionAux::ForcingFunctionAux(), FullSolveMultiApp::FullSolveMultiApp(), FunctionArrayAux::FunctionArrayAux(), FunctionValuePostprocessor::FunctionValuePostprocessor(), FunctorADConverterTempl< T >::FunctorADConverterTempl(), FunctorAux::FunctorAux(), FunctorBinnedValuesDivision::FunctorBinnedValuesDivision(), FunctorCoordinatesFunctionAux::FunctorCoordinatesFunctionAux(), FunctorElementalGradientAuxTempl< is_ad >::FunctorElementalGradientAuxTempl(), FunctorExtremaPositions::FunctorExtremaPositions(), FunctorIC::FunctorIC(), FunctorNodalCorrector::FunctorNodalCorrector(), FunctorPositions::FunctorPositions(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), FunctorVectorElementalAuxTempl< is_ad >::FunctorVectorElementalAuxTempl(), FVAdvection::FVAdvection(), FVFluxBC::FVFluxBC(), FVInterfaceKernel::FVInterfaceKernel(), FVOneVarDiffusionInterface::FVOneVarDiffusionInterface(), FVTwoVarContinuityConstraint::FVTwoVarContinuityConstraint(), Boundary2DDelaunayGenerator::General2DDelaunay(), SurfaceSubdomainsDelaunayRemesher::General2DDelaunay(), AddMetaDataGenerator::generate(), AdvancedExtruderGenerator::generate(), BlockDeletionGenerator::generate(), BlockToMeshConverterGenerator::generate(), Boundary2DDelaunayGenerator::generate(), BoundaryDeletionGenerator::generate(), BoundaryElementConversionGenerator::generate(), BreakBoundaryOnSubdomainGenerator::generate(), BreakMeshByBlockGenerator::generate(), BreakMeshByElementGenerator::generate(), CircularBoundaryCorrectionGenerator::generate(), CoarsenBlockGenerator::generate(), CoarsenSurfaceMeshAlongSidesetGenerator::generate(), CombinerGenerator::generate(), CutMeshByLevelSetGeneratorBase::generate(), ElementsToTetrahedronsConverter::generate(), ExtraNodesetGenerator::generate(), FillBetweenCurvesGenerator::generate(), FillBetweenSidesetsGenerator::generate(), FlipSidesetGenerator::generate(), GeneratedMeshGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), ManifoldSubdomainGenerator::generate(), MeshCollectionGenerator::generate(), MeshExtruderGenerator::generate(), MoveBoundaryNodesToCurveGenerator::generate(), ParsedCurveGenerator::generate(), ParsedExtraElementIDGenerator::generate(), ParsedSubdomainGeneratorBase::generate(), PlaneIDMeshGenerator::generate(), PolyLineMeshFollowingNodeSetGenerator::generate(), ProjectSideSetOntoLevelSetGenerator::generate(), RefineBlockGenerator::generate(), RefineSidesetGenerator::generate(), RenameBlockGenerator::generate(), RenameBoundaryGenerator::generate(), RenumberBySubdomainGenerator::generate(), SideSetsFromNodeSetsGenerator::generate(), StackGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), SubdomainsFromPartitionerGenerator::generate(), SurfaceSubdomainsDelaunayRemesher::generate(), TriToQuadConverter::generate(), UniqueExtraIDMeshGenerator::generate(), XYFrontalDelaunayGenerator::generate(), XYMeshLineCutter::generate(), XYZDelaunayGenerator::generate(), PatternedMeshGenerator::generate(), GeneratedMeshGenerator::GeneratedMeshGenerator(), BoundaryLayerUtils::generateOffsetPolyline(), GenericConstantStdVectorMaterialTempl< is_ad >::GenericConstantStdVectorMaterialTempl(), GenericFunctorGradientMaterialTempl< is_ad >::GenericFunctorGradientMaterialTempl(), GenericFunctorMaterialTempl< is_ad >::GenericFunctorMaterialTempl(), GenericFunctorTimeDerivativeMaterialTempl< is_ad >::GenericFunctorTimeDerivativeMaterialTempl(), GenericVectorFunctorMaterialTempl< is_ad >::GenericVectorFunctorMaterialTempl(), PropertyReadFile::getBlockData(), ComponentBoundaryConditionInterface::getBoundaryCondition(), MultiApp::getCommandLineArgs(), PropertyReadFile::getData(), PropertyReadFile::getFileNames(), Sampler::getGlobalSamples(), ComponentInitialConditionInterface::getInitialCondition(), NEML2Action::getInputParameterMapping(), MultiAppNearestNodeTransfer::getLocalEntitiesAndComponents(), Sampler::getLocalSamples(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), FEProblemSolve::getParamFromNonlinearSystemVectorParam(), PostprocessorInterface::getPostprocessorNameInternal(), PostprocessorInterface::getPostprocessorValueInternal(), Sampler::getSampleRow(), MultiAppNearestNodeTransfer::getTargetLocalNodes(), UserObjectInterface::getUserObjectBase(), UserObjectInterface::getUserObjectName(), AddPeriodicBCAction::getVariables(), HFEMDirichletBC::HFEMDirichletBC(), AddVariableAction::init(), MFEMTransient::init(), MultiApp::init(), DistributedPositions::initialize(), BlockWeightedPartitioner::initialize(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), PhysicsBase::initializePhysics(), ReferenceResidualConvergence::initialSetup(), Axisymmetric2D3DSolutionFunction::initialSetup(), PiecewiseConstantFromCSV::initialSetup(), SolutionIC::initialSetup(), LibtorchControlValuePostprocessor::initialSetup(), ElementSubdomainModifierBase::initialSetup(), MFEMScalarCoefficientPointValueSampler::initialSetup(), FullSolveMultiApp::initialSetup(), JSONOutput::initialSetup(), BoundaryLinearFVFluxIntegral::initialSetup(), SideFVFluxBCIntegral::initialSetup(), MultiAppCloneReporterTransfer::initialSetup(), MultiAppDofCopyTransfer::initialSetup(), MultiAppGeneralFieldKDTreeTransferBase::initialSetup(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), MultiAppVariableValueSamplePostprocessorTransfer::initialSetup(), PointInPolyhedronCheckUO::initialSetup(), HistogramVectorPostprocessor::initialSetup(), SampledOutput::initSample(), AddMetaDataGenerator::inputChecker(), IntegratedBC::IntegratedBC(), InterfaceDiffusiveFluxIntegralTempl< is_ad >::InterfaceDiffusiveFluxIntegralTempl(), InterfaceValueUserObjectAux::InterfaceValueUserObjectAux(), InternalSideIndicatorBase::InternalSideIndicatorBase(), InterpolatedStatefulMaterialTempl< T >::InterpolatedStatefulMaterialTempl(), InversePowerMethod::InversePowerMethod(), IterationAdaptiveDT::IterationAdaptiveDT(), MultiApp::keepSolutionDuringRestore(), Kernel::Kernel(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), LinearCombinationFunction::LinearCombinationFunction(), LinearFVAdvectionDiffusionFunctorRobinBC::LinearFVAdvectionDiffusionFunctorRobinBC(), LowerDIntegratedBC::LowerDIntegratedBC(), PNGOutput::makeMeshFunc(), MatCoupledForce::MatCoupledForce(), MaterialADConverterTempl< T >::MaterialADConverterTempl(), MaterialFunctorConverterTempl< T >::MaterialFunctorConverterTempl(), MatReactionTempl< is_ad >::MatReactionTempl(), MatrixSymmetryCheck::MatrixSymmetryCheck(), PatternedMeshGenerator::mergeSubdomainNameMaps(), MeshCollectionGenerator::MeshCollectionGenerator(), MeshDiagnosticsGenerator::MeshDiagnosticsGenerator(), MeshDivisionAux::MeshDivisionAux(), MeshGenerator::MeshGenerator(), MeshGeneratorComponent::MeshGeneratorComponent(), MeshInfo::MeshInfo(), MFEMComplexSumAux::MFEMComplexSumAux(), MFEMEigenproblem::MFEMEigenproblem(), MFEMFunctorMaterial::MFEMFunctorMaterial(), MFEMGeneratedMeshGenerator::MFEMGeneratedMeshGenerator(), MFEMGenericFunctorMaterial::MFEMGenericFunctorMaterial(), MFEMGenericFunctorMatrixMaterial::MFEMGenericFunctorMatrixMaterial(), MFEMGenericFunctorVectorMaterial::MFEMGenericFunctorVectorMaterial(), MFEMGeometricMultigridSolver::MFEMGeometricMultigridSolver(), MFEMHypreBoomerAMG::MFEMHypreBoomerAMG(), MFEMMultiAppTransfer::MFEMMultiAppTransfer(), MFEMNDtoRTAux::MFEMNDtoRTAux(), MFEMSumAux::MFEMSumAux(), MFEMVariable::MFEMVariable(), MooseLinearVariableFV< OutputType >::MooseLinearVariableFV(), UserObjectInterface::mooseObjectError(), MoosePreconditioner::MoosePreconditioner(), MooseStaticCondensationPreconditioner::MooseStaticCondensationPreconditioner(), MooseVariableBase::MooseVariableBase(), MortarConstraintBase::MortarConstraintBase(), MortarNodalAuxKernelTempl< ComputeValueType >::MortarNodalAuxKernelTempl(), MultiApp::moveApp(), MoveBoundaryNodesToCurveGenerator::MoveBoundaryNodesToCurveGenerator(), MoveNodeGenerator::MoveNodeGenerator(), MoveNodesByParsedExpressionModifier::MoveNodesByParsedExpressionModifier(), TriToQuadConverter::moveSurvivingTriangles(), MultiApp::MultiApp(), MultiAppCloneReporterTransfer::MultiAppCloneReporterTransfer(), MultiAppGeneralFieldFunctorTransfer::MultiAppGeneralFieldFunctorTransfer(), MultiAppGeneralFieldKDTreeTransferBase::MultiAppGeneralFieldKDTreeTransferBase(), MultiAppGeneralFieldShapeEvaluationTransfer::MultiAppGeneralFieldShapeEvaluationTransfer(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppGeometricInterpolationTransfer::MultiAppGeometricInterpolationTransfer(), MultiAppNearestNodeTransfer::MultiAppNearestNodeTransfer(), MultiAppPostprocessorInterpolationTransfer::MultiAppPostprocessorInterpolationTransfer(), MultiAppPostprocessorToAuxScalarTransfer::MultiAppPostprocessorToAuxScalarTransfer(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), MultiAppProjectionTransfer::MultiAppProjectionTransfer(), MultiAppReporterTransfer::MultiAppReporterTransfer(), MultiAppScalarToAuxScalarTransfer::MultiAppScalarToAuxScalarTransfer(), MultiAppShapeEvaluationTransfer::MultiAppShapeEvaluationTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), MultiAppVariableValueSampleTransfer::MultiAppVariableValueSampleTransfer(), MultiAppVectorPostprocessorTransfer::MultiAppVectorPostprocessorTransfer(), MultiSystemSolveObject::MultiSystemSolveObject(), NearestNodeValueAux::NearestNodeValueAux(), NEML2Action::NEML2Action(), NEML2PreKernel::NEML2PreKernel(), NestedDivision::NestedDivision(), NodalBC::NodalBC(), NodalEqualValueConstraint::NodalEqualValueConstraint(), NodalKernel::NodalKernel(), NodalPatchRecoveryAux::NodalPatchRecoveryAux(), NodalValueSampler::NodalValueSampler(), NumDOFs::NumDOFs(), OrientSurfaceMeshGenerator::OrientSurfaceMeshGenerator(), MeshTriangulationUtils::outerBoundaryIds(), Output::Output(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl(), ParsedPostprocessor::ParsedPostprocessor(), ParsedReporterBase::ParsedReporterBase(), ParsedScalarReporter::ParsedScalarReporter(), ParsedSubdomainGeneratorBase::ParsedSubdomainGeneratorBase(), ParsedVectorRealReductionReporter::ParsedVectorRealReductionReporter(), ParsedVectorReporter::ParsedVectorReporter(), ParsedVectorVectorRealReductionReporter::ParsedVectorVectorRealReductionReporter(), PatternedMeshGenerator::PatternedMeshGenerator(), PenaltyPeriodicSegmentalConstraint::PenaltyPeriodicSegmentalConstraint(), PeriodicSegmentalConstraint::PeriodicSegmentalConstraint(), PIDTransientControl::PIDTransientControl(), PlaneDeletionGenerator::PlaneDeletionGenerator(), PlaneIDMeshGenerator::PlaneIDMeshGenerator(), PointInPolyhedronBaseUO::PointInPolyhedronBaseUO(), PointInSignedFunctionCheckUO::PointInSignedFunctionCheckUO(), PointInUnionCheckUO::PointInUnionCheckUO(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), PolyLineMeshFollowingNodeSetGenerator::PolyLineMeshFollowingNodeSetGenerator(), EqualValueBoundaryConstraint::populateSecondaryNodes(), ReporterInterface::possiblyCheckHasReporter(), VectorPostprocessorInterface::possiblyCheckHasVectorPostprocessor(), LibmeshPartitioner::prepareBlocksForSubdomainPartitioner(), ProjectedMaterialPropertyNodalPatchRecoveryAux::ProjectedMaterialPropertyNodalPatchRecoveryAux(), ProjectSideSetOntoLevelSetGenerator::ProjectSideSetOntoLevelSetGenerator(), PropertyReadFile::PropertyReadFile(), RandomIC::RandomIC(), RankTwoTensorFromComponentProperties::RankTwoTensorFromComponentProperties(), MultiApp::readCommandLineArguments(), PropertyReadFile::readData(), SolutionUserObjectBase::readExodusIIOrNemesis(), SolutionUserObjectBase::readXda(), ReferenceResidualConvergence::ReferenceResidualConvergence(), RefineBlockGenerator::RefineBlockGenerator(), RefineSidesetGenerator::RefineSidesetGenerator(), RenameBlockGenerator::RenameBlockGenerator(), RenameBoundaryGenerator::RenameBoundaryGenerator(), ReporterPointSource::ReporterPointSource(), FEProblemBase::restoreSolutions(), SecondTimeDerivativeAux::SecondTimeDerivativeAux(), FEProblemBase::setLinearConvergenceNames(), FEProblemBase::setNonlinearConvergenceNames(), MooseMesh::setPartitioner(), NodeSetsGeneratorBase::setup(), SideSetsGeneratorBase::setup(), SurfaceMeshGeneratorBase::setup(), CylinderComponent::setupComponent(), NEML2Action::setupDerivativeMappings(), NEML2Action::setupInputMappings(), MultiSystemSolveObject::setupMultiSystemFixedPointRelaxationFactors(), MoveNodesByParsedExpressionModifier::setupNodalOutputVariables(), NEML2Action::setupParameterDerivativeMappings(), NEML2Action::setupParameterMappings(), SetupQuadratureAction::SetupQuadratureAction(), SidesetAroundSubdomainUpdater::SidesetAroundSubdomainUpdater(), SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(), SideValueSampler::SideValueSampler(), SingleRankPartitioner::SingleRankPartitioner(), SphericalGridDivision::SphericalGridDivision(), StitchBoundaryMeshGenerator::StitchBoundaryMeshGenerator(), StitchMeshGenerator::StitchMeshGenerator(), SurfaceSubdomainsDelaunayRemesher::SurfaceSubdomainsDelaunayRemesher(), SymmetryTransformGenerator::SymmetryTransformGenerator(), TagVectorAux::TagVectorAux(), XYFrontalDelaunayGenerator::targetArea(), Terminator::Terminator(), TimeDerivativeAux::TimeDerivativeAux(), Transfer::Transfer(), TransformGenerator::TransformGenerator(), TransientMultiApp::TransientMultiApp(), CylinderComponent::translation(), MeshTriangulationUtils::triangulateWithDelaunay(), TriToQuadConverter::TriToQuadConverter(), ParsedCurveGenerator::tSectionSpaceDefiner(), UniqueExtraIDMeshGenerator::UniqueExtraIDMeshGenerator(), UserObjectBase::UserObjectBase(), Checkpoint::validateExecuteOn(), ParsedAux::validateGenericVectorNames(), SolutionAux::validateVariable(), MFEMProblem::validateVariableNumericType(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), VectorBodyForce::VectorBodyForce(), VectorFunctionDirichletBC::VectorFunctionDirichletBC(), VectorFunctionIC::VectorFunctionIC(), VolumeAux::VolumeAux(), WebServerControl::WebServerControl(), XYDelaunayGenerator::XYDelaunayGenerator(), XYFrontalDelaunayGenerator::XYFrontalDelaunayGenerator(), XYMeshLineCutter::XYMeshLineCutter(), XYQuadrilateralMeshFromBoundaryCurve::XYQuadrilateralMeshFromBoundaryCurve(), and XYZDelaunayGenerator::XYZDelaunayGenerator().

◆ parameters()

const InputParameters & MooseBase::parameters ( ) const
inlineinherited

Get the parameters of the object.

Returns
The parameters of the object

Definition at line 131 of file MooseBase.h.

131{ return _pars; }

Referenced by AddActionComponentAction::act(), CommonOutputAction::act(), CSGOnlyAction::act(), MeshOnlyAction::act(), SetupDebugAction::act(), SplitMeshAction::act(), Action::Action(), FEProblemBase::addAnyRedistributers(), FEProblemBase::addAuxKernel(), MFEMProblem::addAuxKernel(), FEProblemBase::addAuxScalarKernel(), DisplacedProblem::addAuxVariable(), MFEMProblem::addAuxVariable(), FEProblemBase::addBoundaryCondition(), MFEMProblem::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addConvergence(), FEProblemBase::addDamper(), AddDefaultConvergenceAction::addDefaultMultiAppFixedPointConvergence(), FEProblemBase::addDefaultMultiAppFixedPointConvergence(), AddDefaultConvergenceAction::addDefaultNonlinearConvergence(), FEProblemBase::addDefaultNonlinearConvergence(), ReferenceResidualProblem::addDefaultNonlinearConvergence(), AddDefaultConvergenceAction::addDefaultSteadyStateConvergence(), FEProblemBase::addDefaultSteadyStateConvergence(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addDistribution(), MFEMProblem::addFESpace(), MFEMProblem::addFESpaceHierarchy(), FEProblemBase::addFunction(), MFEMProblem::addFunction(), FEProblemBase::addFunctorMaterial(), MFEMProblem::addFunctorMaterial(), FEProblemBase::addFVBC(), FEProblemBase::addFVGradientMethod(), FEProblemBase::addFVInitialCondition(), FEProblemBase::addFVInterfaceKernel(), FEProblemBase::addFVInterpolationMethod(), FEProblemBase::addFVKernel(), MFEMProblem::addGridFunction(), FEProblemBase::addHDGKernel(), MFEMProblem::addImagComponentToBC(), MFEMProblem::addImagComponentToKernel(), FEProblemBase::addIndicator(), MFEMProblem::addIndicator(), FEProblemBase::addInitialCondition(), MFEMProblem::addInitialCondition(), DiffusionPhysicsBase::addInitialConditions(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addInterfaceMaterial(), FEProblemBase::addKernel(), MFEMProblem::addKernel(), FEProblemBase::addLinearFVBC(), FEProblemBase::addLinearFVKernel(), FEProblem::addLineSearch(), FEProblemBase::addMarker(), MFEMProblem::addMarker(), FEProblemBase::addMaterial(), FEProblemBase::addMaterialHelper(), FEProblemBase::addMeshDivision(), MFEMProblem::addMFEMFESpaceFromMOOSEVariable(), MFEMProblem::addMFEMProblemComposer(), MFEMProblem::addMFEMSolver(), FEProblemBase::addMultiApp(), FEProblemBase::addNodalKernel(), FEProblemBase::addObject(), FEProblemBase::addObjectParamsHelper(), FEProblemBase::addOutput(), FEProblemBase::addPostprocessor(), MFEMProblem::addPostprocessor(), FEProblemBase::addPredictor(), MFEMProblem::addRealComponentToBC(), MFEMProblem::addRealComponentToKernel(), FEProblemBase::addReporter(), FEProblemBase::addSampler(), FEProblemBase::addScalarKernel(), MFEMProblem::addSubMesh(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), MFEMProblem::addTransfer(), FEProblemBase::addUserObject(), DisplacedProblem::addVariable(), MFEMEigenproblem::addVariable(), MFEMProblem::addVariable(), FEProblemBase::addVectorPostprocessor(), MFEMProblem::addVectorPostprocessor(), ADPiecewiseLinearInterpolationMaterial::ADPiecewiseLinearInterpolationMaterial(), AdvancedOutput::AdvancedOutput(), AnnularMesh::AnnularMesh(), AnnularMeshGenerator::AnnularMeshGenerator(), assemble_l2(), Moose::assemble_matrix(), Action::associateWithParameter(), AuxKernelBase::AuxKernelBase(), AuxScalarKernel::AuxScalarKernel(), BoundsBase::BoundsBase(), MooseMesh::buildTypedMesh(), MeshGenerator::checkGetMesh(), PostprocessorInterface::checkParam(), AddDefaultConvergenceAction::checkUnusedMultiAppFixedPointConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedNonlinearConvergenceParameters(), AddDefaultConvergenceAction::checkUnusedSteadyStateConvergenceParameters(), SampledOutput::cloneMesh(), Moose::compute_bounds(), Moose::compute_jacobian(), Moose::compute_nearnullspace(), Moose::compute_nullspace(), Moose::compute_postcheck(), Moose::compute_transpose_nullspace(), LibtorchNeuralNetControl::conditionalParameterError(), Console::Console(), MooseMeshUtils::copyIntoMesh(), CommonOutputAction::create(), MultiApp::createApp(), Postprocessor::declareValue(), deduceNecessaryParameters(), DefaultMultiAppFixedPointConvergence::DefaultMultiAppFixedPointConvergence(), dumpObjectHelper(), DumpObjectsProblem(), EigenProblem::EigenProblem(), EigenProblemSolve::EigenProblemSolve(), ElementMaterialSampler::ElementMaterialSampler(), ExamplePatchMeshGenerator::ExamplePatchMeshGenerator(), Executor::Executor(), Exodus::Exodus(), ElementSubdomainModifierBase::extrapolatePolynomial(), FEProblem::FEProblem(), FixedPointSolve::FixedPointSolve(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), GapValueAux::GapValueAux(), ParsedSubdomainGeneratorBase::generate(), ActionWarehouse::getCurrentActionName(), ExecutorInterface::getExecutor(), Material::getMaterial(), Moose::PeriodicBCHelper::getParams(), ReporterInterface::getReporterName(), Reporter::getReporterValueName(), UserObjectInterface::getUserObjectName(), AuxKernelBase::getVariableHelper(), VectorPostprocessorInterface::getVectorPostprocessorName(), GhostingUserObject::GhostingUserObject(), MeshGeneratorSystem::hasDataDrivenAllowed(), AttribSystem::initFrom(), AttribDisplaced::initFrom(), BlockRestrictable::initializeBlockRestrictable(), FullSolveMultiApp::initialSetup(), FEProblemBase::initNullSpaceVectors(), InterfaceDiffusiveFluxIntegralTempl< is_ad >::InterfaceDiffusiveFluxIntegralTempl(), InterfaceIntegralVariableValuePostprocessor::InterfaceIntegralVariableValuePostprocessor(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), MooseObject::isKokkosObject(), isValid(), IterationAdaptiveDT::IterationAdaptiveDT(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), MooseObject::MooseObject(), UserObjectInterface::mooseObjectError(), MooseVariableInterface< T >::MooseVariableInterface(), MultiApp::MultiApp(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), NodeFaceConstraint::NodeFaceConstraint(), ConsoleUtils::outputLegacyInformation(), OverlayMeshGenerator::OverlayMeshGenerator(), ParsedReporterBase::ParsedReporterBase(), ParsedScalarReporter::ParsedScalarReporter(), PenetrationAux::PenetrationAux(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), NEML2Action::printSummary(), ProjectedStatefulMaterialStorageAction::processProperty(), PropertyReadFile::PropertyReadFile(), PseudoTimestep::PseudoTimestep(), RandomIC::RandomIC(), ReferenceResidualConvergence::ReferenceResidualConvergence(), InputParameterWarehouse::removeInputParameters(), FEProblemBase::setAuxKernelParamsAndLog(), FEProblemBase::setInputParametersFEProblem(), FEProblem::setInputParametersFEProblem(), FEProblemBase::setResidualObjectParamsAndLog(), SideSetsGeneratorBase::setup(), NonlinearSystemBase::shouldEvaluatePreSMOResidual(), SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(), Moose::PetscSupport::storePetscOptions(), stringifyParameters(), TaggingInterface::TaggingInterface(), Transfer::Transfer(), TransientBase::TransientBase(), VectorBodyForce::VectorBodyForce(), VectorFunctionDirichletBC::VectorFunctionDirichletBC(), VectorFunctionIC::VectorFunctionIC(), and VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl().

◆ paramInfo()

template<typename... Args>
void MooseBase::paramInfo ( const std::string &  param,
Args...  args 
) const
inherited

Emits an informational message prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseInfo - only printing a message using the given args.

Definition at line 471 of file MooseBase.h.

472{
473 mooseInfo(_pars.paramMessage(param, std::forward<Args>(args)...));
474}
std::string paramMessage(const std::string &param, Args... args) const

Referenced by GridPartitioner::_do_partition(), ComboMarker::ComboMarker(), Control::Control(), FEProblemBase::execMultiApps(), FunctorIC::FunctorIC(), and TransientMultiApp::TransientMultiApp().

◆ paramWarning() [1/2]

template<typename... Args>
void MooseBase::paramWarning ( const std::string &  param,
Args...  args 
) const
inherited

Emits a warning prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseWarning - only printing a message using the given args.

Definition at line 464 of file MooseBase.h.

465{
466 mooseWarning(_pars.paramMessage(param, std::forward<Args>(args)...));
467}

◆ paramWarning() [2/2]

template<typename... Args>
void SolutionInvalidInterface::paramWarning ( const std::string &  param,
Args...  args 
) const
inlineinherited

◆ parentOutputPositionChanged()

void FEProblemBase::parentOutputPositionChanged ( )
inherited

Calls parentOutputPositionChanged() on all sub apps.

Definition at line 5045 of file FEProblemBase.C.

5046{
5047 for (const auto & it : _multi_apps)
5048 {
5049 const auto & objects = it.second.getActiveObjects();
5050 for (const auto & obj : objects)
5052 }
5053}
void parentOutputPositionChanged()
Calls parentOutputPositionChanged() on all sub apps.

Referenced by TransientBase::parentOutputPositionChanged().

◆ partitionConcurrentMultiApps()

void FEProblemBase::partitionConcurrentMultiApps ( )
inherited

Assign each multiapp that shares an 'execution_order_group' with others a disjoint subset of the ranks so that they can be solved concurrently (at most one child app per rank at a time).

Note that each MultiApp may have multiple child applications, and each child app may use more than one rank.

  • Only does anything when 'num_concurrent_multiapps' > 1.
  • Must be called before the sub-apps are created.

Definition at line 6106 of file FEProblemBase.C.

6107{
6109 return;
6110
6111 // Group the multiapps by execution order group. Only position-based multiapps are partitioned
6112 // here; sampler-style (non-positions) multiapps assign their own rank configuration.
6113 std::map<unsigned int, std::vector<std::shared_ptr<MultiApp>>> groups;
6114 for (const auto & multi_app : _multi_apps.getActiveObjects())
6115 if (multi_app->usingPositions())
6116 groups[multi_app->getParam<unsigned int>("execution_order_group")].push_back(multi_app);
6117
6118 // For the MultiApps that are using samplers, their partitioning is already handled there
6119 // so we just skipped them. But if they were to share an execution_order_group, we would crash
6120 // if using concurrent multiapps. So let's error.
6121 // For any other MultiApps that are not using positions, we would just need them to know
6122 // numGlobalApps() to benefit from this concurrent partitioning. We can allow them here in the
6123 // future.
6124 std::map<unsigned int, std::vector<std::shared_ptr<MultiApp>>> check_groups;
6125 for (const auto & multi_app : _multi_apps.getActiveObjects())
6126 check_groups[multi_app->getParam<unsigned int>("execution_order_group")].push_back(multi_app);
6127 for (const auto & [group_id, group] : check_groups)
6128 for (const auto & multi_app : group)
6129 if (group.size() > 1 && !multi_app->usingPositions())
6130 multi_app->paramError(
6131 "execution_order_group",
6132 "This MultiApp must be placed in its own execution order group as concurrent execution "
6133 "has not been implemented for this type of app at this time");
6134
6135 const auto n_procs = n_processors();
6136 const auto my_rank = processor_id();
6137
6138 for (const auto & [group_id, group] : groups)
6139 {
6140 // Nothing to run concurrently unless the group has more than one multiapp
6141 if (group.size() < 2)
6142 continue;
6143
6144 // Number of ranks handed to each multiapp. Start each at its per-app minimum (at least one
6145 // rank), then distribute the rest; caps prevent giving a multiapp more ranks than it could
6146 // spread its apps over at 'max_procs_per_app'. With the defaults (min 1, max unbounded) this
6147 // is just an even split.
6148 std::vector<processor_id_type> count(group.size());
6149 std::vector<processor_id_type> caps(group.size());
6150 std::vector<processor_id_type> mins(group.size());
6151 std::vector<processor_id_type> maxs(group.size());
6152 processor_id_type min_total = 0;
6153 for (const auto m : index_range(group))
6154 {
6155 // Each multiapp needs at least one rank, so a 'min_procs_per_app' of 0 is treated as 1
6156 mins[m] = group[m]->getParam<processor_id_type>("min_procs_per_app");
6157 maxs[m] = group[m]->getParam<processor_id_type>("max_procs_per_app");
6158 const auto n_apps_m = cast_int<processor_id_type>(group[m]->numGlobalApps());
6159 caps[m] = (maxs[m] >= n_procs) ? n_procs : std::min(n_procs, n_apps_m * maxs[m]);
6160 count[m] = mins[m];
6161 min_total += mins[m];
6162 }
6163
6164 if (min_total > n_procs)
6165 mooseError("Not enough MPI ranks to run the ",
6166 group.size(),
6167 " multiapps of 'execution_order_group' ",
6168 group_id,
6169 " concurrently: they need at least ",
6170 min_total,
6171 " ranks (from 'min_procs_per_app') but only ",
6172 n_procs,
6173 " are available. Reduce the number of concurrent multiapps, lower "
6174 "'min_procs_per_app', or run with more processors.");
6175
6176 // Hand out the remaining ranks round-robin to multiapps still below their cap
6177 processor_id_type remaining = n_procs - min_total;
6178 bool progress = true;
6179 while (remaining > 0 && progress)
6180 {
6181 progress = false;
6182 for (const auto m : index_range(group))
6183 if (remaining > 0 && count[m] < caps[m])
6184 {
6185 count[m]++;
6186 remaining--;
6187 progress = true;
6188 }
6189 }
6190 // Any leftover ranks (all multiapps already at their cap) simply run no app in this group.
6191
6192 // Assign each multiapp a contiguous, disjoint rank range and (re)initialize it on that range.
6193 // This is collective: every rank calls init() (hence buildComm's split) for every multiapp.
6194 processor_id_type offset = 0;
6195 for (const auto m : index_range(group))
6196 {
6197 LocalRankConfig cfg{0, 0, 0, 0, false, 0};
6198 if (my_rank >= offset && my_rank < offset + count[m])
6199 cfg = rankConfig(
6200 my_rank - offset, count[m], group[m]->numGlobalApps(), mins[m], maxs[m], false);
6201 group[m]->init(group[m]->numGlobalApps(), cfg);
6202 offset += count[m];
6203 }
6204 }
6205}
LocalRankConfig rankConfig(processor_id_type rank, processor_id_type nprocs, dof_id_type napps, processor_id_type min_app_procs, processor_id_type max_app_procs, bool batch_mode=false)
Returns app partitioning information relevant to the given rank for a multiapp scenario with the give...
Definition MultiApp.C:1388
processor_id_type n_processors() const
uint8_t processor_id_type
Holds app partitioning information relevant to the a particular rank for a multiapp scenario.
Definition MultiApp.h:47

◆ perfGraph()

PerfGraph & PerfGraphInterface::perfGraph ( )
inherited

Get the PerfGraph.

Definition at line 86 of file PerfGraphInterface.C.

87{
88 return _pg_moose_app.perfGraph();
89}
PerfGraph & perfGraph()
Get the PerfGraph for this app.
Definition MooseApp.h:179
MooseApp & _pg_moose_app
The MooseApp that owns the PerfGraph.

Referenced by CommonOutputAction::act(), PerfGraphData::finalize(), PerfGraphReporter::finalize(), and PerfGraphOutput::output().

◆ petscOptionsDatabase()

PetscOptions & FEProblemBase::petscOptionsDatabase ( )
inlineinherited

◆ petscOptionsInserted()

bool & FEProblemBase::petscOptionsInserted ( )
inlineinherited

If PETSc options are already inserted.

Definition at line 2686 of file FEProblemBase.h.

bool _is_petsc_options_inserted
If or not PETSc options have been added to database.

Referenced by EigenProblemSolve::initialSetup().

◆ possiblyRebuildGeomSearchPatches()

void FEProblemBase::possiblyRebuildGeomSearchPatches ( )
virtualinherited

Definition at line 8798 of file FEProblemBase.C.

8799{
8800 if (_displaced_problem) // Only need to do this if things are moving...
8801 {
8802 TIME_SECTION("possiblyRebuildGeomSearchPatches", 5, "Rebuilding Geometric Search Patches");
8803
8804 switch (_mesh.getPatchUpdateStrategy())
8805 {
8806 case Moose::Never:
8807 break;
8808 case Moose::Iteration:
8809 // Update the list of ghosted elements at the start of the time step
8812
8813 _displaced_problem->geomSearchData().updateGhostedElems();
8815
8816 // The commands below ensure that the sparsity of the Jacobian matrix is
8817 // augmented at the start of the time step using neighbor nodes from the end
8818 // of the previous time step.
8819
8821
8822 // This is needed to reinitialize PETSc output
8824
8825 break;
8826
8827 case Moose::Auto:
8828 {
8829 Real max = _displaced_problem->geomSearchData().maxPatchPercentage();
8830 _communicator.max(max);
8831
8832 // If we haven't moved very far through the patch
8833 if (max < 0.4)
8834 break;
8835 }
8836 libmesh_fallthrough();
8837
8838 // Let this fall through if things do need to be updated...
8839 case Moose::Always:
8840 // Flush output here to see the message before the reinitialization, which could take a
8841 // while
8842 _console << "\n\nUpdating geometric search patches\n" << std::endl;
8843
8846
8847 _displaced_problem->geomSearchData().clearNearestNodeLocators();
8849
8851
8852 // This is needed to reinitialize PETSc output
8854 }
8855 }
8856}
virtual void initPetscOutputAndSomeSolverSettings()
Reinitialize PETSc output for proper linear/nonlinear iteration display.
void clearNearestNodeLocators()
Clear out the Penetration Locators so they will redo the search.
void updateGhostedElems()
Updates the list of ghosted elements at the start of each time step for the nonlinear iteration patch...
const Moose::PatchUpdateType & getPatchUpdateStrategy() const
Get the current patch update strategy.
Definition MooseMesh.C:3477
auto max(const L &left, const R &right)
@ Iteration

Referenced by FEProblemBase::solve().

◆ postExecute()

void FEProblemBase::postExecute ( )
virtualinherited

Method called at the end of the simulation.

Definition at line 6332 of file FEProblemBase.C.

6333{
6334 const auto & multi_apps = _multi_apps.getActiveObjects();
6335
6336 for (const auto & multi_app : multi_apps)
6337 multi_app->postExecute();
6338}
virtual void postExecute()
Method called at the end of the simulation.

Referenced by Eigenvalue::execute(), SteadyBase::execute(), TransientBase::execute(), and MFEMSteady::execute().

◆ predictorCleanup()

void FEProblemBase::predictorCleanup ( NumericVector< libMesh::Number > &  ghosted_solution)
virtualinherited

Perform cleanup tasks after application of predictor to solution vector.

Parameters
ghosted_solutionGhosted solution vector

Definition at line 8690 of file FEProblemBase.C.

8691{
8692}

Referenced by NonlinearSystemBase::setInitialSolution().

◆ prepare() [1/2]

void FEProblemBase::prepare ( const Elem *  elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 1894 of file FEProblemBase.C.

1895{
1896 for (const auto i : index_range(_solver_systems))
1897 {
1898 _assembly[tid][i]->reinit(elem);
1899 _solver_systems[i]->prepare(tid);
1900
1901 if (i < _num_nl_sys)
1902 {
1903 // This method is called outside of residual/Jacobian callbacks during initial condition
1904 // evaluation
1906 _assembly[tid][i]->prepareJacobianBlock();
1907 _assembly[tid][i]->prepareResidual();
1909 _assembly[tid][i]->prepareNonlocal();
1910 }
1911 }
1912 _aux->prepare(tid);
1913
1914 if (_displaced_problem &&
1915 // _reinit_displaced_neighbor applies to interface type objects which will do computations
1916 // based on both elem and neighbor. Consequently, despite what you might think by its name, we
1917 // must make sure we prepare the displaced elem
1919 {
1920 _displaced_problem->prepare(_displaced_mesh->elemPtr(elem->id()), tid);
1922 _displaced_problem->prepareNonlocal(tid);
1923 }
1924}
const bool & currentlyComputingJacobian() const
Returns true if the problem is in the process of computing the Jacobian.
Definition SubProblem.h:692

Referenced by NodalPatchRecovery::compute(), ComputeElemDampingThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMarkerThread::onElement(), ComputeMaterialsObjectThread::onElement(), ComputeUserObjectsThread::onElement(), and ComputeInitialConditionThread::operator()().

◆ prepare() [2/2]

void FEProblemBase::prepare ( const Elem *  elem,
unsigned int  ivar,
unsigned int  jvar,
const std::vector< dof_id_type > &  dof_indices,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 1938 of file FEProblemBase.C.

1943{
1944 for (const auto i : index_range(_nl))
1945 {
1946 _assembly[tid][i]->reinit(elem);
1947 _nl[i]->prepare(tid);
1948 }
1949
1950 _aux->prepare(tid);
1951 const auto current_nl_sys_num = _current_nl_sys->number();
1952 _assembly[tid][current_nl_sys_num]->prepareBlock(ivar, jvar, dof_indices);
1954 if (_nonlocal_cm[current_nl_sys_num](ivar, jvar) != 0)
1955 {
1957 _assembly[tid][current_nl_sys_num]->prepareBlockNonlocal(
1958 ivar, jvar, dof_indices, jv.allDofIndices());
1959 }
1960
1962 {
1963 _displaced_problem->prepare(_displaced_mesh->elemPtr(elem->id()), ivar, jvar, dof_indices, tid);
1965 if (_nonlocal_cm[current_nl_sys_num](ivar, jvar) != 0)
1966 {
1968 _displaced_problem->prepareBlockNonlocal(ivar, jvar, dof_indices, jv.allDofIndices(), tid);
1969 }
1970 }
1971}
virtual void prepare()=0
Prepare the elemental degrees of freedom.

◆ prepareAssembly()

void FEProblemBase::prepareAssembly ( const THREAD_ID  tid)
overridevirtualinherited

◆ prepareAssemblyNeighbor()

void FEProblemBase::prepareAssemblyNeighbor ( const THREAD_ID  tid)
virtualinherited

Begin a fresh neighbor accumulation phase by sizing and zeroing the neighbor blocks.

Definition at line 2029 of file FEProblemBase.C.

2030{
2031 _assembly[tid][_current_nl_sys->number()]->prepareNeighbor();
2032
2034 _displaced_problem->prepareAssemblyNeighbor(tid);
2035}

Referenced by NonlinearSystemBase::constraintJacobians().

◆ prepareFace()

void FEProblemBase::prepareFace ( const Elem *  elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 1927 of file FEProblemBase.C.

1928{
1929 for (auto & nl : _nl)
1930 nl->prepareFace(tid, true);
1931 _aux->prepareFace(tid, false);
1932
1934 _displaced_problem->prepareFace(_displaced_mesh->elemPtr(elem->id()), tid);
1935}
virtual void prepareFace(const Elem *elem, const THREAD_ID tid) override

Referenced by ComputeUserObjectsThread::onInterface(), and ComputeUserObjectsThread::onInternalSide().

◆ prepareFaceShapes()

void FEProblemBase::prepareFaceShapes ( unsigned int  var,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2297 of file FEProblemBase.C.

2298{
2299 _assembly[tid][_current_nl_sys->number()]->copyFaceShapes(var);
2300}

Referenced by ComputeUserObjectsThread::onBoundary().

◆ prepareKokkosMaterials()

void FEProblemBase::prepareKokkosMaterials ( const std::unordered_set< unsigned int > &  consumer_needed_mat_props)
inherited

◆ prepareMaterials()

void FEProblemBase::prepareMaterials ( const std::unordered_set< unsigned int > &  consumer_needed_mat_props,
const SubdomainID  blk_id,
const THREAD_ID  tid 
)
inherited

Add the MooseVariables and the material properties that the current materials depend on to the dependency list.

Parameters
consumer_needed_mat_propsThe material properties needed by consumer objects (other than the materials themselves)
blk_idThe subdomain ID for which we are preparing our list of needed vars and props
tidThe thread ID we are preparing the requirements for

This MUST be done after the moose variable dependency list has been set for all the other objects using the setActiveElementalMooseVariables API!

Definition at line 4296 of file FEProblemBase.C.

4299{
4300 std::set<MooseVariableFEBase *> needed_moose_vars;
4301 std::unordered_set<unsigned int> needed_mat_props;
4302
4303 if (_all_materials.hasActiveBlockObjects(blk_id, tid))
4304 {
4305 _all_materials.updateVariableDependency(needed_moose_vars, tid);
4306 _all_materials.updateBlockMatPropDependency(blk_id, needed_mat_props, tid);
4307 }
4308
4309 const auto & ids = _mesh.getSubdomainBoundaryIds(blk_id);
4310 for (const auto id : ids)
4311 {
4312 _materials.updateBoundaryVariableDependency(id, needed_moose_vars, tid);
4313 _materials.updateBoundaryMatPropDependency(id, needed_mat_props, tid);
4314 }
4315
4316 const auto & current_active_elemental_moose_variables = getActiveElementalMooseVariables(tid);
4317 needed_moose_vars.insert(current_active_elemental_moose_variables.begin(),
4318 current_active_elemental_moose_variables.end());
4319
4320 needed_mat_props.insert(consumer_needed_mat_props.begin(), consumer_needed_mat_props.end());
4321
4322 setActiveElementalMooseVariables(needed_moose_vars, tid);
4323 setActiveMaterialProperties(needed_mat_props, tid);
4324}
void setActiveMaterialProperties(const std::unordered_set< unsigned int > &mat_prop_ids, const THREAD_ID tid)
Record and set the material properties required by the current computing thread.
virtual void setActiveElementalMooseVariables(const std::set< MooseVariableFEBase * > &moose_vars, const THREAD_ID tid) override
Set the MOOSE variables to be reinited on each element.
const std::set< BoundaryID > & getSubdomainBoundaryIds(const SubdomainID subdomain_id) const
Get the list of boundary ids associated with the given subdomain id.
Definition MooseMesh.C:3561
void updateVariableDependency(std::set< MooseVariableFieldBase * > &needed_moose_vars, THREAD_ID tid=0) const
Update variable dependency vector.
void updateBlockMatPropDependency(SubdomainID id, std::unordered_set< unsigned int > &needed_mat_props, THREAD_ID tid=0, const bool producer_only=false) const
void updateBoundaryVariableDependency(std::set< MooseVariableFieldBase * > &needed_moose_vars, THREAD_ID tid=0) const
bool hasActiveBlockObjects(THREAD_ID tid=0) const
void updateBoundaryMatPropDependency(std::unordered_set< unsigned int > &needed_mat_props, THREAD_ID tid=0, const bool producer_only=false) const
virtual const std::set< MooseVariableFieldBase * > & getActiveElementalMooseVariables(const THREAD_ID tid) const
Get the MOOSE variables to be reinited on each element.
Definition SubProblem.C:443

Referenced by ComputeIndicatorThread::subdomainChanged(), ComputeMarkerThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().

◆ prepareNeighborShapes()

void FEProblemBase::prepareNeighborShapes ( unsigned int  var,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2303 of file FEProblemBase.C.

2304{
2305 _assembly[tid][_current_nl_sys->number()]->copyNeighborShapes(var);
2306}

◆ preparePRefinement()

void SubProblem::preparePRefinement ( )
inherited

Prepare DofMap and Assembly classes with our p-refinement information.

Definition at line 1341 of file SubProblem.C.

1342{
1343 for (const auto tid : make_range(libMesh::n_threads()))
1344 for (const auto s : make_range(numNonlinearSystems()))
1345 assembly(tid, s).preparePRefinement();
1346}

Referenced by FEProblemBase::init().

◆ prepareShapes()

void FEProblemBase::prepareShapes ( unsigned int  var,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2291 of file FEProblemBase.C.

2292{
2293 _assembly[tid][_current_nl_sys->number()]->copyShapes(var);
2294}

Referenced by ComputeUserObjectsThread::onElement().

◆ preserveMatrixSparsityPattern()

bool FEProblemBase::preserveMatrixSparsityPattern ( ) const
inlineinherited

Will return True if the executioner in use requires preserving the sparsity pattern of the matrices being formed during the solve.

This is usually the Jacobian.

Definition at line 2445 of file FEProblemBase.h.

bool _preserve_matrix_sparsity_pattern
Whether to preserve the system matrix / Jacobian sparsity pattern, using 0-valued entries usually.

◆ printObjects()

void DumpObjectsProblem::printObjects ( )

Definition at line 184 of file DumpObjectsProblem.C.

185{
186 const auto path = getParam<std::string>("dump_path");
187 if (path != "all")
189 else
191}
void dumpAllGeneratedSyntax() const
output input blocks for all paths
void dumpGeneratedSyntax(const std::string path)
output input blocks for a given action path

◆ projectFunctionOnCustomRange()

void FEProblemBase::projectFunctionOnCustomRange ( ConstElemRange &  elem_range,
Number(*)(const Point &, const libMesh::Parameters &, const std::string &, const std::string &)  func,
Gradient(*)(const Point &, const libMesh::Parameters &, const std::string &, const std::string &)  func_grad,
const libMesh::Parameters &  params,
const std::vector< VariableName > &  target_vars 
)
inherited

Project a function onto a range of elements for a given variable.

Parameters
elem_rangeElement range to project on
funcFunction to project
func_gradGradient of the function
paramsParameters to pass to the function
target_varsvariable names to project

Definition at line 4006 of file FEProblemBase.C.

4017{
4018 mooseAssert(!Threads::in_threads,
4019 "We're performing a projection based on data from just the thread 0 variable, so any "
4020 "modifications to the variable solution must have been thread joined already");
4021
4022 std::unordered_map<unsigned int, std::vector<unsigned int>> sys_to_var_nums;
4023
4024 for (const auto & target_var : target_vars)
4025 {
4026 const auto sn = systemNumForVariable(target_var);
4027 const auto & var = getStandardVariable(0, target_var);
4028 sys_to_var_nums[sn].push_back(var.number());
4029 }
4030
4031 for (const auto & [sys_num, var_nums] : sys_to_var_nums)
4032 {
4033 System & libmesh_sys = getSystemBase(sys_num).system();
4034 libmesh_sys.project_solution(func, func_grad, params, elem_range, var_nums);
4035 }
4036}
virtual MooseVariable & getStandardVariable(const THREAD_ID tid, const std::string &var_name) override
Returns the variable reference for requested MooseVariable which may be in any system.
unsigned int systemNumForVariable(const VariableName &variable_name) const
void project_solution(FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr, std::optional< ConstElemRange > active_local_range=std::nullopt, std::optional< std::vector< unsigned int > > variable_numbers=std::nullopt) const

Referenced by ElementSubdomainModifierBase::extrapolatePolynomial().

◆ projectInitialConditionOnCustomRange()

void FEProblemBase::projectInitialConditionOnCustomRange ( libMesh::ConstElemRange &  elem_range,
ConstBndNodeRange &  bnd_node_range,
const std::optional< std::set< VariableName > > &  target_vars = std::nullopt 
)
inherited

Project initial conditions for custom elem_range and bnd_node_range This is needed when elements/boundary nodes are added to a specific subdomain at an intermediate step.

Parameters
elem_rangeElement range to project on
bnd_node_rangeBoundary node range to project on
target_varsSet of variable names to project ICs

Definition at line 3931 of file FEProblemBase.C.

3935{
3936 if (target_vars)
3937 {
3938 ComputeInitialConditionThread cic(*this, &(*target_vars));
3939 Threads::parallel_reduce(elem_range, cic);
3940 }
3941 else
3942 {
3944 Threads::parallel_reduce(elem_range, cic);
3945 }
3946
3947 // Need to close the solution vector here so that boundary ICs take precendence
3948 for (auto & nl : _nl)
3949 nl->solution().close();
3950 _aux->solution().close();
3951
3952 if (target_vars)
3953 {
3954 ComputeBoundaryInitialConditionThread cbic(*this, &(*target_vars));
3955 Threads::parallel_reduce(bnd_nodes, cbic);
3956 }
3957 else
3958 {
3960 Threads::parallel_reduce(bnd_nodes, cbic);
3961 }
3962
3963 for (auto & nl : _nl)
3964 nl->solution().close();
3965 _aux->solution().close();
3966
3967 // Also, load values into the SCALAR dofs
3968 // Note: We assume that all SCALAR dofs are on the
3969 // processor with highest ID
3971 {
3972 const auto & ics = _scalar_ics.getActiveObjects();
3973 for (const auto & ic : ics)
3974 {
3975 MooseVariableScalar & var = ic->variable();
3976
3977 if (target_vars && !target_vars->count(var.name()))
3978 continue;
3979
3980 var.reinit();
3981
3982 DenseVector<Number> vals(var.order());
3983 ic->compute(vals);
3984
3985 const unsigned int n_scalar_dofs = var.dofIndices().size();
3986 for (unsigned int i = 0; i < n_scalar_dofs; i++)
3987 {
3988 const auto global_index = var.dofIndices()[i];
3989 var.sys().solution().set(global_index, vals(i));
3990 var.setValue(i, vals(i));
3991 }
3992 }
3993 }
3994
3995 for (auto & nl : _nl)
3996 {
3997 nl->solution().close();
3998 nl->solution().localize(*nl->system().current_local_solution, nl->dofMap().get_send_list());
3999 }
4000
4001 _aux->solution().close();
4002 _aux->solution().localize(*_aux->sys().current_local_solution, _aux->dofMap().get_send_list());
4003}
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
void setValue(unsigned int i, Number value)
Set the nodal value for this variable (to keep everything up to date.
void reinit(bool reinit_for_derivative_reordering=false)
Fill out the VariableValue arrays from the system solution vector.
NumericVector< Number > & solution()
Definition SystemBase.h:212
virtual void set(const numeric_index_type i, const T value)=0

Referenced by ElementSubdomainModifierBase::applyIC(), and ActivateElementsUserObjectBase::initSolutions().

◆ projectSolution()

void FEProblemBase::projectSolution ( )
inherited

Definition at line 3865 of file FEProblemBase.C.

3866{
3867 TIME_SECTION("projectSolution", 2, "Projecting Initial Solutions")
3868
3870
3872 Threads::parallel_reduce(getCurrentAlgebraicElementRange(), cic);
3873
3874 if (haveFV())
3875 {
3876 using ElemInfoRange = StoredRange<MooseMesh::const_elem_info_iterator, const ElemInfo *>;
3877 ElemInfoRange elem_info_range(_mesh.ownedElemInfoBegin(), _mesh.ownedElemInfoEnd());
3878
3880 Threads::parallel_reduce(elem_info_range, cfvic);
3881 }
3882
3883 // Need to close the solution vector here so that boundary ICs take precendence
3884 for (auto & nl : _nl)
3885 nl->solution().close();
3886 _aux->solution().close();
3887
3888 // now run boundary-restricted initial conditions
3891
3892 for (auto & nl : _nl)
3893 nl->solution().close();
3894 _aux->solution().close();
3895
3896 // Also, load values into the SCALAR dofs
3897 // Note: We assume that all SCALAR dofs are on the
3898 // processor with highest ID
3900 {
3901 const auto & ics = _scalar_ics.getActiveObjects();
3902 for (const auto & ic : ics)
3903 {
3904 MooseVariableScalar & var = ic->variable();
3905 var.reinit();
3906
3907 DenseVector<Number> vals(var.order());
3908 ic->compute(vals);
3909
3910 const unsigned int n_scalar_dofs = var.dofIndices().size();
3911 for (unsigned int i = 0; i < n_scalar_dofs; i++)
3912 {
3913 const auto global_index = var.dofIndices()[i];
3914 var.sys().solution().set(global_index, vals(i));
3915 var.setValue(i, vals(i));
3916 }
3917 }
3918 }
3919
3920 for (auto & sys : _solver_systems)
3921 {
3922 sys->solution().close();
3923 sys->solution().localize(*sys->system().current_local_solution, sys->dofMap().get_send_list());
3924 }
3925
3926 _aux->solution().close();
3927 _aux->solution().localize(*_aux->sys().current_local_solution, _aux->dofMap().get_send_list());
3928}
const ConstBndNodeRange & getCurrentAlgebraicBndNodeRange()
Scope guard for starting and stopping Floating Point Exception Trapping.
elem_info_iterator ownedElemInfoEnd()
Definition MooseMesh.C:1484
elem_info_iterator ownedElemInfoBegin()
Iterators to owned faceInfo objects.
Definition MooseMesh.C:1476

Referenced by FEProblemBase::initialAdaptMesh().

◆ queryParam()

template<typename T >
const T * MooseBase::queryParam ( const std::string &  name) const
inherited

Query a parameter for the object.

If a parameter of the given name and type does not exist or if the parameter is not valid, nullptr will be returned

Parameters
nameThe name of the parameter
Returns
A pointer to the parameter value, if it exists

Definition at line 413 of file MooseBase.h.

414{
415 return _pars.queryParam<T>(name);
416}
const T * queryParam(const std::string &name) const
Query a parameter.

Referenced by MFEMExecutedObject::getRequestedItems(), and MFEMGeometricMultigridSolver::MFEMGeometricMultigridSolver().

◆ registerInvalidSolutionInternal()

InvalidSolutionID SolutionInvalidInterface::registerInvalidSolutionInternal ( const std::string &  message,
const bool  warning 
) const
protectedinherited

Definition at line 55 of file SolutionInvalidInterface.C.

57{
59 _si_moose_base.type(), message, warning);
60}
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.

◆ registerRandomInterface()

void FEProblemBase::registerRandomInterface ( RandomInterface &  random_interface,
const std::string &  name 
)
inherited

Definition at line 9638 of file FEProblemBase.C.

9639{
9640 auto insert_pair = moose_try_emplace(
9641 _random_data_objects, name, std::make_unique<RandomData>(*this, random_interface));
9642
9643 auto random_data_ptr = insert_pair.first->second.get();
9644 random_interface.setRandomDataPointer(random_data_ptr);
9645}
std::pair< typename M::iterator, bool > moose_try_emplace(M &m, const typename M::key_type &k, Args &&... args)
Function to mirror the behavior of the C++17 std::map::try_emplace() method (no hint).
Definition Moose.h:103
void setRandomDataPointer(RandomData *random_data)

Referenced by RandomInterface::setRandomResetFrequency().

◆ registerRestartableDataOnApp()

RestartableDataValue & Restartable::registerRestartableDataOnApp ( std::unique_ptr< RestartableDataValue >  data,
THREAD_ID  tid 
) const
privateinherited

Helper function for actually registering the restartable data.

Definition at line 63 of file Restartable.C.

65{
67 std::move(data), tid, _restartable_read_only, _metaname);
68}
RestartableDataValue & registerRestartableData(std::unique_ptr< RestartableDataValue > data, THREAD_ID tid, bool read_only, const RestartableDataMapName &metaname="")
Definition MooseApp.C:2454
const RestartableDataMapName _metaname
Restartable metadata name.
const bool _restartable_read_only
Flag for toggling read only status (see ReporterData)
MooseApp & _restartable_app
Reference to the application.

Referenced by Restartable::declareRestartableDataHelper().

◆ registerRestartableNameWithFilterOnApp()

void Restartable::registerRestartableNameWithFilterOnApp ( const std::string &  name,
Moose::RESTARTABLE_FILTER  filter 
)
privateinherited

Helper function for actually registering the restartable data.

Definition at line 71 of file Restartable.C.

73{
75}
void registerRestartableNameWithFilter(const std::string &name, Moose::RESTARTABLE_FILTER filter)
NOTE: This is an internal function meant for MOOSE use only!
Definition MooseApp.C:1706

Referenced by Restartable::declareRecoverableData().

◆ registerTimedSection() [1/2]

PerfID PerfGraphInterface::registerTimedSection ( const std::string &  section_name,
const unsigned int  level 
) const
protectedinherited

Call to register a named section for timing.

Parameters
section_nameThe name of the code section to be timed
levelThe importance of the timer - lower is more important (0 will always come out)
Returns
The ID of the section - use when starting timing

Definition at line 61 of file PerfGraphInterface.C.

63{
64 const auto timed_section_name = timedSectionName(section_name);
65 if (!moose::internal::getPerfGraphRegistry().sectionExists(timed_section_name))
66 return moose::internal::getPerfGraphRegistry().registerSection(timed_section_name, level);
67 else
68 return moose::internal::getPerfGraphRegistry().sectionID(timed_section_name);
69}
std::string timedSectionName(const std::string &section_name) const
PerfID sectionID(const std::string &section_name) const
Given a name return the PerfID @section_name The name of the section.
PerfID registerSection(const std::string &section_name, const unsigned int level)
Call to register a named section for timing.
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.

◆ registerTimedSection() [2/2]

PerfID PerfGraphInterface::registerTimedSection ( const std::string &  section_name,
const unsigned int  level,
const std::string &  live_message,
const bool  print_dots = true 
) const
protectedinherited

Call to register a named section for timing.

Parameters
section_nameThe name of the code section to be timed
levelThe importance of the timer - lower is more important (0 will always come out)
live_messageThe message to be printed to the screen during execution
print_dotsWhether or not progress dots should be printed for this section
Returns
The ID of the section - use when starting timing

Definition at line 72 of file PerfGraphInterface.C.

76{
77 const auto timed_section_name = timedSectionName(section_name);
78 if (!moose::internal::getPerfGraphRegistry().sectionExists(timed_section_name))
80 timedSectionName(section_name), level, live_message, print_dots);
81 else
82 return moose::internal::getPerfGraphRegistry().sectionID(timed_section_name);
83}

◆ registerUnfilledFunctorRequest()

template<typename T >
void SubProblem::registerUnfilledFunctorRequest ( T *  functor_interface,
const std::string &  functor_name,
const THREAD_ID  tid 
)
inherited

Register an unfulfilled functor request.

◆ reinitBecauseOfGhostingOrNewGeomObjects()

void FEProblemBase::reinitBecauseOfGhostingOrNewGeomObjects ( bool  mortar_changed = false)
protectedinherited

Call when it is possible that the needs for ghosted elements has changed.

Parameters
mortar_changedWhether an update of mortar data has been requested since the last EquationSystems (re)initialization

Definition at line 5755 of file FEProblemBase.C.

5756{
5757 TIME_SECTION("reinitBecauseOfGhostingOrNewGeomObjects",
5758 3,
5759 "Reinitializing Because of Geometric Search Objects");
5760
5761 // Need to see if _any_ processor has ghosted elems or geometry objects.
5762 bool needs_reinit = !_ghosted_elems.empty();
5763 needs_reinit = needs_reinit || !_geometric_search_data._nearest_node_locators.empty() ||
5764 (_mortar_data->hasObjects() && mortar_changed);
5765 needs_reinit =
5766 needs_reinit || (_displaced_problem &&
5767 (!_displaced_problem->geomSearchData()._nearest_node_locators.empty() ||
5768 (_mortar_data->hasDisplacedObjects() && mortar_changed)));
5769 _communicator.max(needs_reinit);
5770
5771 if (needs_reinit)
5772 {
5773 // Call reinit to get the ghosted vectors correct now that some geometric search has been done
5774 es().reinit();
5775
5776 if (_displaced_mesh)
5777 _displaced_problem->es().reinit();
5778 }
5779}
std::map< std::pair< BoundaryID, BoundaryID >, NearestNodeLocator * > _nearest_node_locators

Referenced by FEProblemBase::meshChanged(), FEProblemBase::possiblyRebuildGeomSearchPatches(), and FEProblemBase::updateMortarMesh().

◆ reinitDirac()

bool FEProblemBase::reinitDirac ( const Elem *  elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Returns true if the Problem has Dirac kernels it needs to compute on elem.

The maximum number of qps can rise if several Dirac points are added to a single element. In that case we need to resize the zeros to compensate.

Implements SubProblem.

Definition at line 2342 of file FEProblemBase.C.

2343{
2344 std::vector<Point> & points = _dirac_kernel_info.getPoints()[elem].first;
2345
2346 unsigned int n_points = points.size();
2347
2348 if (n_points)
2349 {
2350 if (n_points > _max_qps)
2351 {
2352 _max_qps = n_points;
2353
2358 unsigned int max_qpts = getMaxQps();
2359 for (unsigned int tid = 0; tid < libMesh::n_threads(); ++tid)
2360 {
2361 // the highest available order in libMesh is 43
2362 _scalar_zero[tid].resize(libMesh::FORTYTHIRD, 0);
2363 _zero[tid].resize(max_qpts, 0);
2364 _grad_zero[tid].resize(max_qpts, RealGradient(0.));
2365 _second_zero[tid].resize(max_qpts, RealTensor(0.));
2366 _vector_zero[tid].resize(max_qpts, RealGradient(0.));
2367 _vector_curl_zero[tid].resize(max_qpts, RealGradient(0.));
2368 }
2369 }
2370
2371 for (const auto i : index_range(_nl))
2372 {
2373 _assembly[tid][i]->reinitAtPhysical(elem, points);
2374 _nl[i]->prepare(tid);
2375 }
2376 _aux->prepare(tid);
2377
2378 reinitElem(elem, tid);
2379 }
2380
2381 _assembly[tid][_current_nl_sys->number()]->prepare();
2383 _assembly[tid][_current_nl_sys->number()]->prepareNonlocal();
2384
2385 bool have_points = n_points > 0;
2387 {
2388 have_points |= _displaced_problem->reinitDirac(_displaced_mesh->elemPtr(elem->id()), tid);
2390 _displaced_problem->prepareNonlocal(tid);
2391 }
2392
2393 return have_points;
2394}
MultiPointMap & getPoints()
Returns a writeable reference to the _points container.
unsigned int getMaxQps() const
std::vector< VariableGradient > _grad_zero
std::vector< VariableSecond > _second_zero
virtual void reinitElem(const Elem *elem, const THREAD_ID tid) override
std::vector< VectorVariableValue > _vector_zero
std::vector< VariableValue > _scalar_zero
std::vector< VectorVariableCurl > _vector_curl_zero
std::vector< VariableValue > _zero
RealTensorValue RealTensor
RealVectorValue RealGradient

Referenced by ComputeDiracThread::onElement().

◆ reinitElem()

void FEProblemBase::reinitElem ( const Elem *  elem,
const THREAD_ID  tid 
)
overridevirtualinherited

◆ reinitElemFace() [1/2]

void FEProblemBase::reinitElemFace ( const Elem *  elem,
unsigned int  side,
BoundaryID  ,
const THREAD_ID  tid 
)
inherited

Definition at line 2429 of file FEProblemBase.C.

2433{
2435 "reinitElemFace with a BoundaryID argument is deprecated because the boundary id was never "
2436 "used. Please call reinitElemFace without the BoundaryID argument instead");
2437
2438 reinitElemFace(elem, side, tid);
2439}
void reinitElemFace(const Elem *elem, unsigned int side, BoundaryID, const THREAD_ID tid)

Referenced by ComputeMaterialsObjectThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMaterialsObjectThread::onInterface(), NonlinearThread::prepareFace(), and FEProblemBase::reinitElemFace().

◆ reinitElemFace() [2/2]

void FEProblemBase::reinitElemFace ( const Elem *  elem,
unsigned int  side,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2442 of file FEProblemBase.C.

2443{
2444 for (const auto i : index_range(_solver_systems))
2445 {
2446 _assembly[tid][i]->reinit(elem, side);
2447 _solver_systems[i]->reinitElemFace(elem, side, tid);
2448 }
2449 _aux->reinitElemFace(elem, side, tid);
2450
2452 _displaced_problem->reinitElemFace(_displaced_mesh->elemPtr(elem->id()), side, tid);
2453}

◆ reinitElemFaceRef()

void FEProblemBase::reinitElemFaceRef ( const Elem *  elem,
unsigned int  side,
Real  tolerance,
const std::vector< Point > *const  pts,
const std::vector< Real > *const  weights = nullptr,
const THREAD_ID  tid = 0 
)
overridevirtualinherited

reinitialize FE objects on a given element on a given side at a given set of reference points and then compute variable data.

Note that this method makes no assumptions about what's been called beforehand, e.g. you don't have to call some prepare method before this one. This is an all-in-one reinit

Reimplemented from SubProblem.

Definition at line 10028 of file FEProblemBase.C.

10034{
10035 SubProblem::reinitElemFaceRef(elem, side, tolerance, pts, weights, tid);
10036
10038 _displaced_problem->reinitElemFaceRef(
10039 _displaced_mesh->elemPtr(elem->id()), side, tolerance, pts, weights, tid);
10040}
virtual void reinitElemFaceRef(const Elem *elem, unsigned int side, Real tolerance, const std::vector< Point > *const pts, const std::vector< Real > *const weights=nullptr, const THREAD_ID tid=0)
reinitialize FE objects on a given element on a given side at a given set of reference points and the...
Definition SubProblem.C:871

Referenced by Moose::Mortar::loopOverMortarSegments().

◆ reinitElemNeighborAndLowerD()

void FEProblemBase::reinitElemNeighborAndLowerD ( const Elem *  elem,
unsigned int  side,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2561 of file FEProblemBase.C.

2564{
2565 reinitNeighbor(elem, side, tid);
2566
2567 const Elem * lower_d_elem = _mesh.getLowerDElem(elem, side);
2568 if (lower_d_elem && _mesh.interiorLowerDBlocks().count(lower_d_elem->subdomain_id()) > 0)
2569 reinitLowerDElem(lower_d_elem, tid);
2570 else
2571 {
2572 // with mesh refinement, lower-dimensional element might be defined on neighbor side
2573 auto & neighbor = _assembly[tid][0]->neighbor();
2574 auto & neighbor_side = _assembly[tid][0]->neighborSide();
2575 const Elem * lower_d_elem_neighbor = _mesh.getLowerDElem(neighbor, neighbor_side);
2576 if (lower_d_elem_neighbor &&
2577 _mesh.interiorLowerDBlocks().count(lower_d_elem_neighbor->subdomain_id()) > 0)
2578 {
2579 auto qps = _assembly[tid][0]->qPointsFaceNeighbor().stdVector();
2580 std::vector<Point> reference_points;
2581 FEMap::inverse_map(
2582 lower_d_elem_neighbor->dim(), lower_d_elem_neighbor, qps, reference_points);
2583 reinitLowerDElem(lower_d_elem_neighbor, tid, &reference_points);
2584 }
2585 }
2586
2588 _displaced_problem->reinitElemNeighborAndLowerD(
2589 _displaced_mesh->elemPtr(elem->id()), side, tid);
2590}
virtual void reinitLowerDElem(const Elem *lower_d_elem, const THREAD_ID tid, const std::vector< Point > *const pts=nullptr, const std::vector< Real > *const weights=nullptr) override
virtual void reinitNeighbor(const Elem *elem, unsigned int side, const THREAD_ID tid) override
const Elem * getLowerDElem(const Elem *, unsigned short int) const
Returns a const pointer to a lower dimensional element that corresponds to a side of a higher dimensi...
Definition MooseMesh.C:1648

Referenced by ComputeMaterialsObjectThread::onInternalSide(), and NonlinearThread::onInternalSide().

◆ reinitElemPhys()

void FEProblemBase::reinitElemPhys ( const Elem *  elem,
const std::vector< Point > &  phys_points_in_elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2408 of file FEProblemBase.C.

2411{
2412 mooseAssert(_mesh.queryElemPtr(elem->id()) == elem,
2413 "Are you calling this method with a displaced mesh element?");
2414
2415 for (const auto i : index_range(_solver_systems))
2416 {
2417 _assembly[tid][i]->reinitAtPhysical(elem, phys_points_in_elem);
2418 _solver_systems[i]->prepare(tid);
2419 _assembly[tid][i]->prepare();
2421 _assembly[tid][i]->prepareNonlocal();
2422 }
2423 _aux->prepare(tid);
2424
2425 reinitElem(elem, tid);
2426}
virtual Elem * queryElemPtr(const dof_id_type i)
Definition MooseMesh.C:3189

Referenced by MultiAppVariableValueSamplePostprocessorTransfer::execute().

◆ reinitFVFace()

void SubProblem::reinitFVFace ( const THREAD_ID  tid,
const FaceInfo &  fi 
)
inherited

reinitialize the finite volume assembly data for the provided face and thread

Definition at line 1293 of file SubProblem.C.

1294{
1295 for (const auto nl : make_range(numNonlinearSystems()))
1296 assembly(tid, nl).reinitFVFace(fi);
1297}
void reinitFVFace(const THREAD_ID tid, const FaceInfo &fi)
reinitialize the finite volume assembly data for the provided face and thread

◆ reinitGeomSearch()

void SubProblem::reinitGeomSearch ( )
inherited

reinitialize this object's geometric search data, e.g.

do things like clear and re-add quadrature nodes

Definition at line 1377 of file SubProblem.C.

1378{
1380}
virtual GeometricSearchData & geomSearchData()=0

◆ reinitKokkosMaterials()

void FEProblemBase::reinitKokkosMaterials ( )
inherited

◆ reinitLowerDElem()

void FEProblemBase::reinitLowerDElem ( const Elem *  lower_d_elem,
const THREAD_ID  tid,
const std::vector< Point > *const  pts = nullptr,
const std::vector< Real > *const  weights = nullptr 
)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 2456 of file FEProblemBase.C.

2460{
2461 SubProblem::reinitLowerDElem(lower_d_elem, tid, pts, weights);
2462
2464 _displaced_problem->reinitLowerDElem(
2465 _displaced_mesh->elemPtr(lower_d_elem->id()), tid, pts, weights);
2466}
virtual void reinitLowerDElem(const Elem *lower_d_elem, const THREAD_ID tid, const std::vector< Point > *const pts=nullptr, const std::vector< Real > *const weights=nullptr)
Definition SubProblem.C:946

Referenced by ComputeUserObjectsThread::onBoundary(), NonlinearThread::prepareFace(), and FEProblemBase::reinitElemNeighborAndLowerD().

◆ reinitMaterials()

void FEProblemBase::reinitMaterials ( SubdomainID  blk_id,
const THREAD_ID  tid,
bool  swap_stateful = true 
)
inherited

Definition at line 4327 of file FEProblemBase.C.

4328{
4330 {
4331 auto && elem = _assembly[tid][0]->elem();
4332 unsigned int n_points = _assembly[tid][0]->qRule()->n_points();
4333
4334 auto & material_data = _material_props.getMaterialData(tid);
4335 material_data.resize(n_points);
4336
4337 // Only swap if requested
4338 if (swap_stateful)
4339 material_data.swap(*elem);
4340
4342 material_data.reset(_discrete_materials.getActiveBlockObjects(blk_id, tid));
4343
4344 if (_materials.hasActiveBlockObjects(blk_id, tid))
4345 material_data.reinit(_materials.getActiveBlockObjects(blk_id, tid));
4346 }
4347}
bool hasActiveMaterialProperties(const THREAD_ID tid) const
Method to check whether or not a list of active material roperties has been set.
void resize(unsigned int n_qpoints)
Resize the data to hold properties for n_qpoints quadrature points.

Referenced by NodalPatchRecovery::compute(), ComputeDiracThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMarkerThread::onElement(), and ComputeUserObjectsThread::onElement().

◆ reinitMaterialsBoundary()

void FEProblemBase::reinitMaterialsBoundary ( BoundaryID  boundary_id,
const THREAD_ID  tid,
bool  swap_stateful = true,
const std::deque< MaterialBase * > *  reinit_mats = nullptr 
)
inherited

reinit materials on a boundary

Parameters
boundary_idThe boundary on which to reinit corresponding materials
tidThe thread id
swap_statefulWhether to swap stateful material properties between MaterialData and MaterialPropertyStorage
execute_statefulWhether to execute material objects that have stateful properties. This should be false when for example executing material objects for mortar contexts in which stateful properties don't make sense
reinit_matsspecific list of materials to reinit. Used notably in the context of mortar with stateful elements

Definition at line 4472 of file FEProblemBase.C.

4476{
4477 if (hasActiveMaterialProperties(tid) && needBoundaryMaterialOnSide(boundary_id, tid))
4478 {
4479 auto && elem = _assembly[tid][0]->elem();
4480 unsigned int side = _assembly[tid][0]->side();
4481 unsigned int n_points = _assembly[tid][0]->qRuleFace()->n_points();
4482
4483 auto & bnd_material_data = _bnd_material_props.getMaterialData(tid);
4484 bnd_material_data.resize(n_points);
4485
4486 if (swap_stateful && !bnd_material_data.isSwapped())
4487 bnd_material_data.swap(*elem, side);
4488
4489 if (_discrete_materials.hasActiveBoundaryObjects(boundary_id, tid))
4490 bnd_material_data.reset(_discrete_materials.getActiveBoundaryObjects(boundary_id, tid));
4491
4492 if (reinit_mats)
4493 bnd_material_data.reinit(*reinit_mats);
4494 else if (_materials.hasActiveBoundaryObjects(boundary_id, tid))
4495 bnd_material_data.reinit(_materials.getActiveBoundaryObjects(boundary_id, tid));
4496 }
4497}
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const

Referenced by Moose::Mortar::loopOverMortarSegments(), ComputeUserObjectsThread::onBoundary(), ComputeUserObjectsThread::onInterface(), NonlinearThread::onInterface(), and NonlinearThread::prepareFace().

◆ reinitMaterialsFace()

void FEProblemBase::reinitMaterialsFace ( SubdomainID  blk_id,
const THREAD_ID  tid,
bool  swap_stateful = true,
const std::deque< MaterialBase * > *  reinit_mats = nullptr 
)
inherited

reinit materials on element faces

Parameters
blk_idThe subdomain on which the element owning the face lives
tidThe thread id
swap_statefulWhether to swap stateful material properties between MaterialData and MaterialPropertyStorage
reinit_matsspecific list of materials to reinit. Used notably in the context of mortar with stateful elements

Definition at line 4350 of file FEProblemBase.C.

4354{
4355 // we reinit more often than needed here because we dont have a way to check whether
4356 // we need to compute the face materials on a particular (possibly external) face
4358 {
4359 auto && elem = _assembly[tid][0]->elem();
4360 unsigned int side = _assembly[tid][0]->side();
4361 unsigned int n_points = _assembly[tid][0]->qRuleFace()->n_points();
4362
4363 auto & bnd_material_data = _bnd_material_props.getMaterialData(tid);
4364 bnd_material_data.resize(n_points);
4365
4366 if (swap_stateful && !bnd_material_data.isSwapped())
4367 bnd_material_data.swap(*elem, side);
4368
4369 if (_discrete_materials[Moose::FACE_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4370 bnd_material_data.reset(
4371 _discrete_materials[Moose::FACE_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4372
4373 if (reinit_mats)
4374 bnd_material_data.reinit(*reinit_mats);
4375 else if (_materials[Moose::FACE_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4376 bnd_material_data.reinit(
4377 _materials[Moose::FACE_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4378 }
4379}

Referenced by Moose::Mortar::loopOverMortarSegments(), ComputeIndicatorThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), NonlinearThread::onInternalSide(), and NonlinearThread::prepareFace().

◆ reinitMaterialsFaceOnBoundary()

void FEProblemBase::reinitMaterialsFaceOnBoundary ( const BoundaryID  boundary_id,
const SubdomainID  blk_id,
const THREAD_ID  tid,
const bool  swap_stateful = true,
const std::deque< MaterialBase * > *const  reinit_mats = nullptr 
)
inherited

reinit materials on element faces on a boundary (internal or external) This specific routine helps us not reinit when don't need to

Parameters
boundary_idThe boundary on which the face belongs
blk_idThe block id to which the element (who owns the face) belong
tidThe thread id
swap_statefulWhether to swap stateful material properties between MaterialData and MaterialPropertyStorage
reinit_matsspecific list of materials to reinit. Used notably in the context of mortar with stateful elements

Definition at line 4382 of file FEProblemBase.C.

4387{
4388 if (hasActiveMaterialProperties(tid) && (needBoundaryMaterialOnSide(boundary_id, tid) ||
4389 needInterfaceMaterialOnSide(boundary_id, tid) ||
4391 {
4392 const auto * const elem = _assembly[tid][0]->elem();
4393 unsigned int side = _assembly[tid][0]->side();
4394 unsigned int n_points = _assembly[tid][0]->qRuleFace()->n_points();
4395
4396 auto & bnd_material_data = _bnd_material_props.getMaterialData(tid);
4397 bnd_material_data.resize(n_points);
4398
4399 if (swap_stateful && !bnd_material_data.isSwapped())
4400 bnd_material_data.swap(*elem, side);
4401
4402 if (_discrete_materials[Moose::FACE_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4403 bnd_material_data.reset(
4404 _discrete_materials[Moose::FACE_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4405
4406 if (reinit_mats)
4407 bnd_material_data.reinit(*reinit_mats);
4408 else if (_materials[Moose::FACE_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4409 bnd_material_data.reinit(
4410 _materials[Moose::FACE_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4411 }
4412}

Referenced by ComputeUserObjectsThread::onBoundary(), ComputeUserObjectsThread::onInterface(), NonlinearThread::onInterface(), and NonlinearThread::prepareFace().

◆ reinitMaterialsInterface()

void FEProblemBase::reinitMaterialsInterface ( BoundaryID  boundary_id,
const THREAD_ID  tid,
bool  swap_stateful = true 
)
inherited

Definition at line 4500 of file FEProblemBase.C.

4503{
4504 if (hasActiveMaterialProperties(tid) && needInterfaceMaterialOnSide(boundary_id, tid))
4505 {
4506 const Elem * const & elem = _assembly[tid][0]->elem();
4507 unsigned int side = _assembly[tid][0]->side();
4508 unsigned int n_points = _assembly[tid][0]->qRuleFace()->n_points();
4509
4510 auto & bnd_material_data = _bnd_material_props.getMaterialData(tid);
4511 bnd_material_data.resize(n_points);
4512
4513 if (swap_stateful && !bnd_material_data.isSwapped())
4514 bnd_material_data.swap(*elem, side);
4515
4516 if (_interface_materials.hasActiveBoundaryObjects(boundary_id, tid))
4517 bnd_material_data.reinit(_interface_materials.getActiveBoundaryObjects(boundary_id, tid));
4518 }
4519}

Referenced by ComputeUserObjectsThread::onInterface(), and NonlinearThread::onInterface().

◆ reinitMaterialsNeighbor()

void FEProblemBase::reinitMaterialsNeighbor ( SubdomainID  blk_id,
const THREAD_ID  tid,
bool  swap_stateful = true,
const std::deque< MaterialBase * > *  reinit_mats = nullptr 
)
inherited

reinit materials on the neighboring element face

Parameters
blk_idThe subdomain on which the neighbor element lives
tidThe thread id
swap_statefulWhether to swap stateful material properties between MaterialData and MaterialPropertyStorage
reinit_matsspecific list of materials to reinit. Used notably in the context of mortar with stateful elements

Definition at line 4432 of file FEProblemBase.C.

4436{
4438 {
4439 // NOTE: this will not work with h-adaptivity
4440 // lindsayad: why not?
4441
4442 const Elem * neighbor = _assembly[tid][0]->neighbor();
4443 unsigned int neighbor_side = neighbor->which_neighbor_am_i(_assembly[tid][0]->elem());
4444
4445 mooseAssert(neighbor, "neighbor should be non-null");
4446 mooseAssert(blk_id == neighbor->subdomain_id(),
4447 "The provided blk_id " << blk_id << " and neighbor subdomain ID "
4448 << neighbor->subdomain_id() << " do not match.");
4449
4450 unsigned int n_points = _assembly[tid][0]->qRuleNeighbor()->n_points();
4451
4452 auto & neighbor_material_data = _neighbor_material_props.getMaterialData(tid);
4453 neighbor_material_data.resize(n_points);
4454
4455 // Only swap if requested
4456 if (swap_stateful)
4457 neighbor_material_data.swap(*neighbor, neighbor_side);
4458
4459 if (_discrete_materials[Moose::NEIGHBOR_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4460 neighbor_material_data.reset(
4461 _discrete_materials[Moose::NEIGHBOR_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4462
4463 if (reinit_mats)
4464 neighbor_material_data.reinit(*reinit_mats);
4465 else if (_materials[Moose::NEIGHBOR_MATERIAL_DATA].hasActiveBlockObjects(blk_id, tid))
4466 neighbor_material_data.reinit(
4467 _materials[Moose::NEIGHBOR_MATERIAL_DATA].getActiveBlockObjects(blk_id, tid));
4468 }
4469}

Referenced by Moose::Mortar::loopOverMortarSegments(), ComputeUserObjectsThread::onInterface(), ComputeIndicatorThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), NonlinearThread::onInternalSide(), FEProblemBase::reinitMaterialsNeighborOnBoundary(), and NonlinearSystemBase::reinitNodeFace().

◆ reinitMaterialsNeighborOnBoundary()

void FEProblemBase::reinitMaterialsNeighborOnBoundary ( const BoundaryID  boundary_id,
const SubdomainID  blk_id,
const THREAD_ID  tid,
const bool  swap_stateful = true,
const std::deque< MaterialBase * > *const  reinit_mats = nullptr 
)
inherited

reinit materials on neighbor element (usually faces) on a boundary (internal or external) This specific routine helps us not reinit when don't need to

Parameters
boundary_idThe boundary on which the face belongs
blk_idThe block id to which the element (who owns the face) belong
tidThe thread id
swap_statefulWhether to swap stateful material properties between MaterialData and MaterialPropertyStorage
reinit_matsspecific list of materials to reinit. Used notably in the context of mortar with stateful elements

Definition at line 4415 of file FEProblemBase.C.

4421{
4422 // Since objects don't declare whether they need the face or neighbor (side) material properties,
4423 // we use the same criteria for skipping material property computations as for face material
4424 // properties This could be a future optimization.
4425 if (hasActiveMaterialProperties(tid) && (needBoundaryMaterialOnSide(boundary_id, tid) ||
4426 needInterfaceMaterialOnSide(boundary_id, tid) ||
4428 reinitMaterialsNeighbor(blk_id, tid, swap_stateful, reinit_mats);
4429}
void reinitMaterialsNeighbor(SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on the neighboring element face

Referenced by NonlinearThread::onInterface().

◆ reinitMortarElem()

void SubProblem::reinitMortarElem ( const Elem *  elem,
const THREAD_ID  tid = 0 
)
inherited

Reinit a mortar element to obtain a valid JxW.

Definition at line 999 of file SubProblem.C.

1000{
1001 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
1002 assembly(tid, nl_sys_num).reinitMortarElem(elem);
1003}
void reinitMortarElem(const Elem *elem, const THREAD_ID tid=0)
Reinit a mortar element to obtain a valid JxW.
Definition SubProblem.C:999

Referenced by Moose::Mortar::loopOverMortarSegments().

◆ reinitMortarUserObjects()

void FEProblemBase::reinitMortarUserObjects ( BoundaryID  primary_boundary_id,
BoundaryID  secondary_boundary_id,
bool  displaced 
)
inherited

Call reinit on mortar user objects with matching primary boundary ID, secondary boundary ID, and displacement characteristics.

Definition at line 10297 of file FEProblemBase.C.

10300{
10301 const auto mortar_uos =
10302 getMortarUserObjects(primary_boundary_id, secondary_boundary_id, displaced);
10303 for (auto * const mortar_uo : mortar_uos)
10304 {
10305 mortar_uo->setNormals();
10306 mortar_uo->reinit();
10307 }
10308}

Referenced by Moose::Mortar::loopOverMortarSegments().

◆ reinitNeighbor()

void FEProblemBase::reinitNeighbor ( const Elem *  elem,
unsigned int  side,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2522 of file FEProblemBase.C.

2523{
2524 setNeighborSubdomainID(elem, side, tid);
2525
2526 const Elem * neighbor = elem->neighbor_ptr(side);
2527 unsigned int neighbor_side = neighbor->which_neighbor_am_i(elem);
2528
2529 for (const auto i : index_range(_nl))
2530 {
2531 _assembly[tid][i]->reinitElemAndNeighbor(elem, side, neighbor, neighbor_side);
2532 _nl[i]->prepareNeighbor(tid);
2533 // Called during stateful material property evaluation outside of solve
2534 _assembly[tid][i]->prepareNeighbor();
2535 }
2536 _aux->prepareNeighbor(tid);
2537
2538 for (auto & nl : _nl)
2539 {
2540 nl->reinitElemFace(elem, side, tid);
2541 nl->reinitNeighborFace(neighbor, neighbor_side, tid);
2542 }
2543 _aux->reinitElemFace(elem, side, tid);
2544 _aux->reinitNeighborFace(neighbor, neighbor_side, tid);
2545
2547 {
2548 // There are cases like for cohesive zone modeling without significant sliding where we cannot
2549 // use FEInterface::inverse_map in Assembly::reinitElemAndNeighbor in the displaced problem
2550 // because the physical points coming from the element don't actually lie on the neighbor.
2551 // Moreover, what's the point of doing another physical point inversion in other cases? We only
2552 // care about the reference points which we can just take from the undisplaced computation
2553 const auto & displaced_ref_pts = _assembly[tid][0]->qRuleNeighbor()->get_points();
2554
2555 _displaced_problem->reinitNeighbor(
2556 _displaced_mesh->elemPtr(elem->id()), side, tid, &displaced_ref_pts);
2557 }
2558}
virtual void setNeighborSubdomainID(const Elem *elem, unsigned int side, const THREAD_ID tid) override

Referenced by ComputeMaterialsObjectThread::onInterface(), ComputeUserObjectsThread::onInterface(), NonlinearThread::onInterface(), ComputeIndicatorThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), and FEProblemBase::reinitElemNeighborAndLowerD().

◆ reinitNeighborFaceRef()

void FEProblemBase::reinitNeighborFaceRef ( const Elem *  neighbor_elem,
unsigned int  neighbor_side,
Real  tolerance,
const std::vector< Point > *const  pts,
const std::vector< Real > *const  weights = nullptr,
const THREAD_ID  tid = 0 
)
overridevirtualinherited

reinitialize FE objects on a given neighbor element on a given side at a given set of reference points and then compute variable data.

Note that this method makes no assumptions about what's been called beforehand, e.g. you don't have to call some prepare method before this one. This is an all-in-one reinit

Reimplemented from SubProblem.

Definition at line 10043 of file FEProblemBase.C.

10049{
10050 SubProblem::reinitNeighborFaceRef(neighbor_elem, neighbor_side, tolerance, pts, weights, tid);
10051
10053 _displaced_problem->reinitNeighborFaceRef(
10054 _displaced_mesh->elemPtr(neighbor_elem->id()), neighbor_side, tolerance, pts, weights, tid);
10055}
virtual void reinitNeighborFaceRef(const Elem *neighbor_elem, unsigned int neighbor_side, Real tolerance, const std::vector< Point > *const pts, const std::vector< Real > *const weights=nullptr, const THREAD_ID tid=0)
reinitialize FE objects on a given neighbor element on a given side at a given set of reference point...
Definition SubProblem.C:910

Referenced by Moose::Mortar::loopOverMortarSegments().

◆ reinitNeighborLowerDElem()

void SubProblem::reinitNeighborLowerDElem ( const Elem *  elem,
const THREAD_ID  tid = 0 
)
inherited

reinitialize a neighboring lower dimensional element

Definition at line 992 of file SubProblem.C.

993{
994 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
995 assembly(tid, nl_sys_num).reinitNeighborLowerDElem(elem);
996}
void reinitNeighborLowerDElem(const Elem *elem, const THREAD_ID tid=0)
reinitialize a neighboring lower dimensional element
Definition SubProblem.C:992

Referenced by Moose::Mortar::loopOverMortarSegments().

◆ reinitNeighborPhys() [1/2]

void FEProblemBase::reinitNeighborPhys ( const Elem *  neighbor,
const std::vector< Point > &  physical_points,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2621 of file FEProblemBase.C.

2624{
2625 mooseAssert(_mesh.queryElemPtr(neighbor->id()) == neighbor,
2626 "Are you calling this method with a displaced mesh element?");
2627
2628 for (const auto i : index_range(_nl))
2629 {
2630 // Reinits shape the functions at the physical points
2631 _assembly[tid][i]->reinitNeighborAtPhysical(neighbor, physical_points);
2632
2633 // Sets the neighbor dof indices
2634 _nl[i]->prepareNeighbor(tid);
2635 }
2636 _aux->prepareNeighbor(tid);
2637
2638 // Resizes Re and Ke
2639 _assembly[tid][_current_nl_sys->number()]->prepareNeighbor();
2640
2641 // Compute the values of each variable at the points
2642 for (auto & nl : _nl)
2643 nl->reinitNeighbor(neighbor, tid);
2644 _aux->reinitNeighbor(neighbor, tid);
2645}

◆ reinitNeighborPhys() [2/2]

void FEProblemBase::reinitNeighborPhys ( const Elem *  neighbor,
unsigned int  neighbor_side,
const std::vector< Point > &  physical_points,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2593 of file FEProblemBase.C.

2597{
2598 mooseAssert(_mesh.queryElemPtr(neighbor->id()) == neighbor,
2599 "Are you calling this method with a displaced mesh element?");
2600
2601 for (const auto i : index_range(_nl))
2602 {
2603 // Reinits shape the functions at the physical points
2604 _assembly[tid][i]->reinitNeighborAtPhysical(neighbor, neighbor_side, physical_points);
2605
2606 // Sets the neighbor dof indices
2607 _nl[i]->prepareNeighbor(tid);
2608 }
2609 _aux->prepareNeighbor(tid);
2610
2611 // Resizes Re and Ke
2612 _assembly[tid][_current_nl_sys->number()]->prepareNeighbor();
2613
2614 // Compute the values of each variable at the points
2615 for (auto & nl : _nl)
2616 nl->reinitNeighborFace(neighbor, neighbor_side, tid);
2617 _aux->reinitNeighborFace(neighbor, neighbor_side, tid);
2618}

Referenced by NonlinearSystemBase::reinitNodeFace().

◆ reinitNode()

void FEProblemBase::reinitNode ( const Node *  node,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 2469 of file FEProblemBase.C.

2470{
2472 _displaced_problem->reinitNode(&_displaced_mesh->nodeRef(node->id()), tid);
2473
2474 for (const auto i : index_range(_nl))
2475 {
2476 _assembly[tid][i]->reinit(node);
2477 _nl[i]->reinitNode(node, tid);
2478 }
2479 _aux->reinitNode(node, tid);
2480}
virtual const Node & nodeRef(const dof_id_type i) const
Definition MooseMesh.C:846

Referenced by NodalPatchRecovery::compute(), NonlinearSystemBase::computeResidualInternal(), ComputeNodalDampingThread::onNode(), ComputeNodalKernelJacobiansThread::onNode(), ComputeNodalKernelsThread::onNode(), and ComputeNodalUserObjectsThread::onNode().

◆ reinitNodeFace()

void FEProblemBase::reinitNodeFace ( const Node *  node,
BoundaryID  bnd_id,
const THREAD_ID  tid 
)
overridevirtualinherited

◆ reinitNodes()

void SubProblem::reinitNodes ( const std::vector< dof_id_type > &  nodes,
const THREAD_ID  tid 
)
inherited

Definition at line 976 of file SubProblem.C.

977{
978 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
979 systemBaseNonlinear(nl_sys_num).reinitNodes(nodes, tid);
980 systemBaseAuxiliary().reinitNodes(nodes, tid);
981}
void reinitNodes(const std::vector< dof_id_type > &nodes, const THREAD_ID tid)
Definition SubProblem.C:976
virtual void reinitNodes(const std::vector< dof_id_type > &nodes, THREAD_ID tid)
Reinit variables at a set of nodes.
Definition SystemBase.C:421

Referenced by AuxNodalScalarKernel::compute(), NodalScalarKernel::reinit(), and NodalConstraint::reinitConstraintNodes().

◆ reinitNodesNeighbor()

void SubProblem::reinitNodesNeighbor ( const std::vector< dof_id_type > &  nodes,
const THREAD_ID  tid 
)
inherited

Definition at line 984 of file SubProblem.C.

985{
986 for (const auto nl_sys_num : make_range(numNonlinearSystems()))
987 systemBaseNonlinear(nl_sys_num).reinitNodesNeighbor(nodes, tid);
989}
void reinitNodesNeighbor(const std::vector< dof_id_type > &nodes, const THREAD_ID tid)
Definition SubProblem.C:984
virtual void reinitNodesNeighbor(const std::vector< dof_id_type > &nodes, THREAD_ID tid)
Reinit variables at a set of neighbor nodes.
Definition SystemBase.C:432

Referenced by NodalConstraint::reinitConstraintNodes().

◆ reinitOffDiagScalars()

void FEProblemBase::reinitOffDiagScalars ( const THREAD_ID  tid)
overridevirtualinherited

Implements SubProblem.

Definition at line 2514 of file FEProblemBase.C.

2515{
2516 _assembly[tid][_current_nl_sys->number()]->prepareOffDiagScalar();
2518 _displaced_problem->reinitOffDiagScalars(tid);
2519}

Referenced by NonlinearSystemBase::computeScalarKernelsJacobians(), NonlinearSystemBase::constraintJacobians(), and NonlinearThread::onElement().

◆ reinitScalars()

void FEProblemBase::reinitScalars ( const THREAD_ID  tid,
bool  reinit_for_derivative_reordering = false 
)
overridevirtualinherited

fills the VariableValue arrays for scalar variables from the solution vector

Parameters
tidThe thread id
reinit_for_derivative_reorderingA flag indicating whether we are reinitializing for the purpose of re-ordering derivative information for ADNodalBCs

Implements SubProblem.

Definition at line 2497 of file FEProblemBase.C.

2498{
2499 TIME_SECTION("reinitScalars", 3, "Reinitializing Scalar Variables");
2500
2502 _displaced_problem->reinitScalars(tid, reinit_for_derivative_reordering);
2503
2504 for (auto & nl : _nl)
2505 nl->reinitScalars(tid, reinit_for_derivative_reordering);
2506 _aux->reinitScalars(tid, reinit_for_derivative_reordering);
2507
2508 // This is called outside of residual/Jacobian call-backs
2509 for (auto & assembly : _assembly[tid])
2510 assembly->prepareScalar();
2511}
virtual Assembly & assembly(const THREAD_ID tid, const unsigned int sys_num) override

Referenced by NonlinearSystemBase::computeJacobianBlocks(), NonlinearSystemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTags(), NonlinearSystemBase::computeNodalBCsJacobian(), FEProblemBase::computeResidualAndJacobian(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), FEProblemBase::computeResidualTags(), NonlinearSystemBase::computeScalarKernelsJacobians(), and AuxiliarySystem::computeScalarVars().

◆ removeAlgebraicGhostingFunctor()

void SubProblem::removeAlgebraicGhostingFunctor ( libMesh::GhostingFunctor &  algebraic_gf)
inherited

Remove an algebraic ghosting functor from this problem's DofMaps.

Definition at line 1072 of file SubProblem.C.

1073{
1074 EquationSystems & eq = es();
1075 const auto n_sys = eq.n_systems();
1076 DofMap & nl_dof_map = eq.get_system(0).get_dof_map();
1077
1078 const bool found_in_root_sys =
1079 std::find(nl_dof_map.algebraic_ghosting_functors_begin(),
1080 nl_dof_map.algebraic_ghosting_functors_end(),
1081 &algebraic_gf) != nl_dof_map.algebraic_ghosting_functors_end();
1082
1083#ifndef NDEBUG
1084 const bool found_in_our_map =
1085 _root_alg_gf_to_sys_clones.find(&algebraic_gf) != _root_alg_gf_to_sys_clones.end();
1086 mooseAssert(found_in_root_sys == found_in_our_map,
1087 "If the ghosting functor exists in the root DofMap, then we need to have a key for "
1088 "it in our gf to clones map");
1089#endif
1090
1091 if (found_in_root_sys) // libMesh yells if we try to remove
1092 // something that's not there
1093 nl_dof_map.remove_algebraic_ghosting_functor(algebraic_gf);
1094
1095 auto it = _root_alg_gf_to_sys_clones.find(&algebraic_gf);
1096 if (it == _root_alg_gf_to_sys_clones.end())
1097 return;
1098
1099 auto & clones_vec = it->second;
1100 mooseAssert((n_sys - 1) == clones_vec.size(),
1101 "The size of the gf clones vector doesn't match the number of systems minus one");
1102 if (clones_vec.empty())
1103 {
1104 mooseAssert(n_sys == 1, "The clones vector should only be empty if there is only one system");
1105 return;
1106 }
1107
1108 for (const auto i : make_range(n_sys))
1109 eq.get_system(i + 1).get_dof_map().remove_algebraic_ghosting_functor(*clones_vec[i]);
1110
1111 _root_alg_gf_to_sys_clones.erase(it->first);
1112}

◆ removeCouplingGhostingFunctor()

void SubProblem::removeCouplingGhostingFunctor ( libMesh::GhostingFunctor &  coupling_gf)
inherited

Remove a coupling ghosting functor from this problem's DofMaps.

Definition at line 1115 of file SubProblem.C.

1116{
1117 EquationSystems & eq = es();
1118 const auto num_nl_sys = numNonlinearSystems();
1119 if (!num_nl_sys)
1120 return;
1121
1122 DofMap & nl_dof_map = eq.get_system(0).get_dof_map();
1123 const bool found_in_root_sys = std::find(nl_dof_map.coupling_functors_begin(),
1124 nl_dof_map.coupling_functors_end(),
1125 &coupling_gf) != nl_dof_map.coupling_functors_end();
1126
1127#ifndef NDEBUG
1128 const bool found_in_our_map =
1130 mooseAssert(found_in_root_sys == found_in_our_map,
1131 "If the ghosting functor exists in the root DofMap, then we need to have a key for "
1132 "it in our gf to clones map");
1133#endif
1134
1135 if (found_in_root_sys) // libMesh yells if we try to remove
1136 // something that's not there
1137 nl_dof_map.remove_coupling_functor(coupling_gf);
1138
1139 auto it = _root_coupling_gf_to_sys_clones.find(&coupling_gf);
1140 if (it == _root_coupling_gf_to_sys_clones.end())
1141 return;
1142
1143 auto & clones_vec = it->second;
1144 mooseAssert((num_nl_sys - 1) == clones_vec.size(),
1145 "The size of the gf clones vector doesn't match the number of systems minus one");
1146 if (clones_vec.empty())
1147 {
1148 mooseAssert(num_nl_sys == 1,
1149 "The clones vector should only be empty if there is only one nonlinear system");
1150 return;
1151 }
1152
1153 for (const auto i : make_range(num_nl_sys))
1154 eq.get_system(i + 1).get_dof_map().remove_coupling_functor(*clones_vec[i]);
1155
1156 _root_coupling_gf_to_sys_clones.erase(it->first);
1157}

◆ reportMooseObjectDependency()

void FEProblemBase::reportMooseObjectDependency ( MooseObject *  a,
MooseObject *  b 
)
inherited

Register a MOOSE object dependency so we can either order operations properly or report when we cannot.

a -> b (a depends on b)

Definition at line 5749 of file FEProblemBase.C.

5750{
5751 //<< "Object " << a->name() << " -> " << b->name() << std::endl;
5752}

◆ resetFailNextNonlinearConvergenceCheck()

void FEProblemBase::resetFailNextNonlinearConvergenceCheck ( )
inlineinherited

Tell the problem that the nonlinear convergence check(s) may proceed as normal.

Definition at line 2972 of file FEProblemBase.h.

void resetFailNextSystemConvergenceCheck()
Tell the problem that the system convergence check(s) may proceed as normal.

Referenced by Moose::PetscSupport::petscNonlinearConverged().

◆ resetFailNextSystemConvergenceCheck()

void FEProblemBase::resetFailNextSystemConvergenceCheck ( )
inlineinherited

Tell the problem that the system convergence check(s) may proceed as normal.

Definition at line 2974 of file FEProblemBase.h.

Referenced by Moose::PetscSupport::petscLinearConverged(), and FEProblemBase::resetFailNextNonlinearConvergenceCheck().

◆ resetState()

void FEProblemBase::resetState ( )
privatevirtualinherited

Reset state of this object in preparation for the next evaluation.

Definition at line 7351 of file FEProblemBase.C.

7352{
7353 // Our default state is to allow computing derivatives
7354 ADReal::do_derivatives = true;
7356
7357 // Clear the VectorTags and MatrixTags
7360
7363
7368 {
7369 _displaced_problem->setCurrentlyComputingResidual(false);
7370 _displaced_problem->setCurrentlyComputingJacobian(false);
7371 _displaced_problem->setCurrentlyComputingResidualAndJacobian(false);
7372 }
7373}
void clearCurrentJacobianMatrixTags()
Clear the current Jacobian matrix tag data structure ... if someone creates it.
void clearCurrentResidualVectorTags()
Clear the current residual vector tag data structure.

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), and FEProblemBase::computeResidualTags().

◆ residualSetup()

void FEProblemBase::residualSetup ( )
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 10197 of file FEProblemBase.C.

10198{
10200 // We need to setup all the nonlinear systems other than our current one which actually called
10201 // this method (so we have to make sure we don't go in a circle)
10202 for (const auto i : make_range(numNonlinearSystems()))
10203 if (i != currentNlSysNum())
10204 _nl[i]->residualSetup();
10205 // We don't setup the aux sys because that's been done elsewhere
10207 _displaced_problem->residualSetup();
10208}
virtual void residualSetup()

Referenced by FEProblemBase::residualSetup(), and NonlinearSystemBase::residualSetup().

◆ resizeMaterialData()

void FEProblemBase::resizeMaterialData ( Moose::MaterialDataType  data_type,
unsigned int  nqp,
const THREAD_ID  tid 
)
inherited

Resize material data.

Parameters
data_typeThe type of material data to resize
nqpThe number of quadrature points to resize for
tidThe thread ID

Definition at line 10114 of file FEProblemBase.C.

10117{
10118 getMaterialData(data_type, tid).resize(nqp);
10119}

◆ restartableName()

std::string Restartable::restartableName ( const std::string &  data_name) const
protectedinherited

Gets the name of a piece of restartable data given a data name, adding the system name and object name prefix.

This should only be used in this interface and in testing.

Definition at line 78 of file Restartable.C.

79{
80 return _restartable_system_name + "/" + _restartable_name + "/" + data_name;
81}
const std::string _restartable_system_name
The system name this object is in.

Referenced by Restartable::declareRecoverableData(), and Restartable::declareRestartableDataHelper().

◆ restoreGeometricSearchState()

void FEProblemBase::restoreGeometricSearchState ( )
inherited

Restore geometric search state captured by the most recent backupGeometricSearchState().

Called from TimeStepper::rejectStep(), which must call this before restoreSolutions() so that the geometric search re-projects from the restored, accepted-state seeds rather than from the discarded attempt's converged state.

Definition at line 7519 of file FEProblemBase.C.

7520{
7522
7524 _displaced_problem->geomSearchData().restore();
7525}
void restore()
Restore the PenetrationLocators' state captured by the most recent backup().

Referenced by TimeStepper::rejectStep().

◆ restoreMultiApps()

void FEProblemBase::restoreMultiApps ( ExecFlagType  type,
bool  force = false 
)
inherited

Restore the MultiApps associated with the ExecFlagType.

Parameters
forceForce restoration because something went wrong with the solve

Definition at line 6397 of file FEProblemBase.C.

6398{
6399 const auto & multi_apps = _multi_apps[type].getActiveObjects();
6400
6401 if (multi_apps.size())
6402 {
6404 {
6405 if (force)
6406 _console << COLOR_CYAN << "\nRestoring Multiapps on " << type.name()
6407 << " because of solve failure!" << COLOR_DEFAULT << std::endl;
6408 else
6409 _console << COLOR_CYAN << "\nRestoring MultiApps on " << type.name() << COLOR_DEFAULT
6410 << std::endl;
6411 }
6412
6413 for (const auto & multi_app : multi_apps)
6414 multi_app->restore(force);
6415
6417
6419 _console << COLOR_CYAN << "Finished Restoring MultiApps on " << type.name() << "\n"
6420 << COLOR_DEFAULT << std::endl;
6421 }
6422}

Referenced by TransientBase::incrementStepOrReject(), and FixedPointSolve::solve().

◆ restoreOldSolutions()

void FEProblemBase::restoreOldSolutions ( )
virtualinherited

Restore old solutions from the backup vectors and deallocate them.

Definition at line 7566 of file FEProblemBase.C.

7567{
7568 TIME_SECTION("restoreOldSolutions", 5, "Restoring Old Solutions");
7569
7570 for (auto & sys : _solver_systems)
7571 sys->restoreOldSolutions();
7572 _aux->restoreOldSolutions();
7573}
virtual void restoreOldSolutions()
Restore old solutions from the backup vectors and deallocate them.

Referenced by EigenExecutionerBase::inversePowerIteration().

◆ restoreOriginalNonzeroPattern()

bool FEProblemBase::restoreOriginalNonzeroPattern ( ) const
inlineinherited
Returns
Whether the original matrix nonzero pattern is restored before each Jacobian assembly

Definition at line 2425 of file FEProblemBase.h.

Referenced by NonlinearSystemBase::computeJacobianInternal().

◆ restoreSolutions()

void FEProblemBase::restoreSolutions ( )
virtualinherited

Definition at line 7528 of file FEProblemBase.C.

7529{
7530 TIME_SECTION("restoreSolutions", 5, "Restoring Solutions");
7531
7532 if (!_not_zeroed_tagged_vectors.empty())
7533 paramError("not_zeroed_tag_vectors",
7534 "There is currently no way to restore not-zeroed vectors.");
7535
7536 for (auto & sys : _solver_systems)
7537 {
7538 if (_verbose_restore)
7539 _console << "Restoring solutions on system " << sys->name() << "..." << std::endl;
7540 sys->restoreStateHistory();
7541 }
7542
7543 if (_verbose_restore)
7544 _console << "Restoring solutions on Auxiliary system..." << std::endl;
7545 _aux->restoreStateHistory();
7546
7547 if (_verbose_restore)
7548 _console << "Restoring postprocessor, vector-postprocessor, and reporter data..." << std::endl;
7550
7552 _displaced_problem->updateMesh();
7553}
bool _verbose_restore
Whether or not to be verbose on solution restoration post a failed time step.
void restoreState(bool verbose=false)
When a time step fails, this method is called to revert the current reporter values to their old stat...

Referenced by ActivateElementsUserObjectBase::initSolutions(), TimeStepper::rejectStep(), and FEProblemBase::updateMeshXFEM().

◆ restrictionBoundaryCheckName()

std::string SubProblem::restrictionBoundaryCheckName ( BoundaryID  check_id)
privateinherited

Definition at line 772 of file SubProblem.C.

773{
774 return mesh().getMesh().get_boundary_info().sideset_name(check_id);
775}

Referenced by SubProblem::checkBoundaryMatProps().

◆ restrictionSubdomainCheckName()

std::string SubProblem::restrictionSubdomainCheckName ( SubdomainID  check_id)
privateinherited

Helper functions for checking MaterialProperties.

Definition at line 761 of file SubProblem.C.

762{
763 // TODO: Put a better a interface in MOOSE
764 std::map<subdomain_id_type, std::string> & name_map = mesh().getMesh().set_subdomain_name_map();
765 std::map<subdomain_id_type, std::string>::const_iterator pos = name_map.find(check_id);
766 if (pos != name_map.end())
767 return pos->second;
768 return "";
769}

Referenced by SubProblem::checkBlockMatProps().

◆ safeAccessTaggedMatrices()

virtual bool SubProblem::safeAccessTaggedMatrices ( ) const
inlinevirtualinherited

Is it safe to access the tagged matrices.

Reimplemented in DisplacedProblem.

Definition at line 739 of file SubProblem.h.

Referenced by MooseVariableScalar::reinit(), and DisplacedProblem::safeAccessTaggedMatrices().

◆ safeAccessTaggedVectors()

virtual bool SubProblem::safeAccessTaggedVectors ( ) const
inlinevirtualinherited

Is it safe to access the tagged vectors.

Reimplemented in DisplacedProblem.

Definition at line 742 of file SubProblem.h.

Referenced by MooseVariableScalar::reinit(), and DisplacedProblem::safeAccessTaggedVectors().

◆ saveOldSolutions()

void FEProblemBase::saveOldSolutions ( )
virtualinherited

Allocate vectors and save old solutions into them.

Definition at line 7556 of file FEProblemBase.C.

7557{
7558 TIME_SECTION("saveOldSolutions", 5, "Saving Old Solutions");
7559
7560 for (auto & sys : _solver_systems)
7561 sys->saveOldSolutions();
7562 _aux->saveOldSolutions();
7563}
virtual void saveOldSolutions()
Allocate vectors and save old solutions into them.

Referenced by EigenExecutionerBase::inversePowerIteration().

◆ selectMatrixTagsFromSystem()

void SubProblem::selectMatrixTagsFromSystem ( const SystemBase &  system,
const std::map< TagName, TagID > &  input_matrix_tags,
std::set< TagID > &  selected_tags 
)
staticinherited

Select the matrix tags which belong to a specific system.

Parameters
systemReference to the system
input_matrix_tagsA map of matrix tags
selected_tagsA set which gets populated by the tag-ids that belong to the system

Definition at line 289 of file SubProblem.C.

292{
293 selected_tags.clear();
294 for (const auto & matrix_tag_pair : input_matrix_tags)
295 if (system.hasMatrix(matrix_tag_pair.second))
296 selected_tags.insert(matrix_tag_pair.second);
297}

Referenced by FEProblemBase::computeLinearSystemSys().

◆ selectVectorTagsFromSystem()

void SubProblem::selectVectorTagsFromSystem ( const SystemBase &  system,
const std::vector< VectorTag > &  input_vector_tags,
std::set< TagID > &  selected_tags 
)
staticinherited

Select the vector tags which belong to a specific system.

Parameters
systemReference to the system
input_vector_tagsA vector of vector tags
selected_tagsA set which gets populated by the tag-ids that belong to the system

Definition at line 278 of file SubProblem.C.

281{
282 selected_tags.clear();
283 for (const auto & vector_tag : input_vector_tags)
284 if (system.hasVector(vector_tag._id))
285 selected_tags.insert(vector_tag._id);
286}

Referenced by FEProblemBase::computeLinearSystemSys(), FEProblemBase::computeResidualAndJacobian(), and ComputeResidualAndJacobianThread::determineObjectWarehouses().

◆ setActiveElementalMooseVariables()

void FEProblemBase::setActiveElementalMooseVariables ( const std::set< MooseVariableFEBase * > &  moose_vars,
const THREAD_ID  tid 
)
overridevirtualinherited

Set the MOOSE variables to be reinited on each element.

Parameters
moose_varsA set of variables that need to be reinited each time reinit() is called.
tidThe thread id

Reimplemented from SubProblem.

Definition at line 6670 of file FEProblemBase.C.

6672{
6674
6676 _displaced_problem->setActiveElementalMooseVariables(moose_vars, tid);
6677}
virtual void setActiveElementalMooseVariables(const std::set< MooseVariableFieldBase * > &moose_vars, const THREAD_ID tid)
Set the MOOSE variables to be reinited on each element.
Definition SubProblem.C:432

Referenced by FEProblemBase::prepareMaterials(), ComputeDiracThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().

◆ setActiveFEVariableCoupleableMatrixTags()

void FEProblemBase::setActiveFEVariableCoupleableMatrixTags ( std::set< TagID > &  mtags,
const THREAD_ID  tid 
)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6632 of file FEProblemBase.C.

6633{
6635
6637 _displaced_problem->setActiveFEVariableCoupleableMatrixTags(mtags, tid);
6638}
virtual void setActiveFEVariableCoupleableMatrixTags(std::set< TagID > &mtags, const THREAD_ID tid)
Definition SubProblem.C:352

◆ setActiveFEVariableCoupleableVectorTags()

void FEProblemBase::setActiveFEVariableCoupleableVectorTags ( std::set< TagID > &  vtags,
const THREAD_ID  tid 
)
overridevirtualinherited

◆ setActiveMaterialProperties()

void FEProblemBase::setActiveMaterialProperties ( const std::unordered_set< unsigned int > &  mat_prop_ids,
const THREAD_ID  tid 
)
inherited

Record and set the material properties required by the current computing thread.

Parameters
mat_prop_idsThe set of material properties required by the current computing thread.
tidThe thread id

Definition at line 6725 of file FEProblemBase.C.

6727{
6728 // mark active properties in every material
6729 for (auto & mat : _all_materials.getObjects(tid))
6730 mat->setActiveProperties(mat_prop_ids);
6731 for (auto & mat : _all_materials[Moose::FACE_MATERIAL_DATA].getObjects(tid))
6732 mat->setActiveProperties(mat_prop_ids);
6733 for (auto & mat : _all_materials[Moose::NEIGHBOR_MATERIAL_DATA].getObjects(tid))
6734 mat->setActiveProperties(mat_prop_ids);
6735
6736 _has_active_material_properties[tid] = !mat_prop_ids.empty();
6737}

Referenced by Moose::Mortar::loopOverMortarSegments(), FEProblemBase::prepareMaterials(), NodalPatchRecovery::reinitPatch(), NonlinearSystemBase::setConstraintSecondaryValues(), and ComputeDiracThread::subdomainChanged().

◆ setActiveScalarVariableCoupleableMatrixTags()

void FEProblemBase::setActiveScalarVariableCoupleableMatrixTags ( std::set< TagID > &  mtags,
const THREAD_ID  tid 
)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6650 of file FEProblemBase.C.

6652{
6654
6656 _displaced_problem->setActiveScalarVariableCoupleableMatrixTags(mtags, tid);
6657}
virtual void setActiveScalarVariableCoupleableMatrixTags(std::set< TagID > &mtags, const THREAD_ID tid)
Definition SubProblem.C:391

Referenced by AuxiliarySystem::setScalarVariableCoupleableTags().

◆ setActiveScalarVariableCoupleableVectorTags()

void FEProblemBase::setActiveScalarVariableCoupleableVectorTags ( std::set< TagID > &  vtags,
const THREAD_ID  tid 
)
overridevirtualinherited

Reimplemented from SubProblem.

Definition at line 6660 of file FEProblemBase.C.

6662{
6664
6666 _displaced_problem->setActiveScalarVariableCoupleableVectorTags(vtags, tid);
6667}
virtual void setActiveScalarVariableCoupleableVectorTags(std::set< TagID > &vtags, const THREAD_ID tid)
Definition SubProblem.C:398

Referenced by AuxiliarySystem::setScalarVariableCoupleableTags().

◆ setAuxKernelParamsAndLog()

void FEProblemBase::setAuxKernelParamsAndLog ( const std::string &  ak_name,
const std::string &  name,
InputParameters &  parameters,
const std::string &  base_name 
)
privateinherited

Set the subproblem and system parameters for auxiliary kernels and log their addition.

Parameters
ak_nameThe type of the auxiliary kernel
nameThe name of the auxiliary kernel
parametersThe auxiliary kernel parameters
base_nameThe base type of the auxiliary kernel, i.e. AuxKernel or KokkosAuxKernel

Definition at line 3169 of file FEProblemBase.C.

3173{
3174 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3175 {
3176 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3177 parameters.set<SystemBase *>("_sys") = &_displaced_problem->auxSys();
3178 parameters.set<SystemBase *>("_nl_sys") = &_displaced_problem->solverSys(0);
3179 if (!parameters.get<std::vector<BoundaryName>>("boundary").empty())
3181 else
3183 }
3184 else
3185 {
3186 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3187 {
3188 // We allow AuxKernels to request that they use_displaced_mesh,
3189 // but then be overridden when no displacements variables are
3190 // provided in the Mesh block. If that happened, update the value
3191 // of use_displaced_mesh appropriately for this AuxKernel.
3192 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3193 parameters.set<bool>("use_displaced_mesh") = false;
3194 }
3195
3196 parameters.set<SubProblem *>("_subproblem") = this;
3197 parameters.set<SystemBase *>("_sys") = _aux.get();
3198 parameters.set<SystemBase *>("_nl_sys") = _solver_systems[0].get();
3199 }
3200
3201 logAdd(base_name, name, ak_name, parameters);
3202}

Referenced by FEProblemBase::addAuxKernel().

◆ setAxisymmetricCoordAxis()

void FEProblemBase::setAxisymmetricCoordAxis ( const MooseEnum &  rz_coord_axis)
inherited

Definition at line 903 of file FEProblemBase.C.

904{
905 _mesh.setAxisymmetricCoordAxis(rz_coord_axis);
906}
void setAxisymmetricCoordAxis(const MooseEnum &rz_coord_axis)
For axisymmetric simulations, set the symmetry coordinate axis.
Definition MooseMesh.C:4297

◆ setChainControlDataOutput()

void SubProblem::setChainControlDataOutput ( bool  set_output)
inlineinherited

Setter for debug chain control data output.

Definition at line 934 of file SubProblem.h.

934{ _show_chain_control_data = set_output; }
bool _show_chain_control_data
Whether to output a list of all the chain control data.

◆ setCheckResidualForNans()

void FEProblemBase::setCheckResidualForNans ( bool  check_residual_for_nans)
inlineinherited

Setter for residual NaN/Inf checking.

Definition at line 235 of file FEProblemBase.h.

236 {
237 _check_residual_for_nans = check_residual_for_nans;
238 }

◆ setConstJacobian()

void FEProblemBase::setConstJacobian ( bool  state)
inlineinherited

Set flag that Jacobian is constant (for optimization purposes)

Parameters
stateTrue if the Jacobian is constant, false otherwise

Definition at line 2268 of file FEProblemBase.h.

2268{ _const_jacobian = state; }

Referenced by ExplicitEuler::preSolve(), ExplicitRK2::preSolve(), and ExplicitTVDRK2::preSolve().

◆ setCoordSystem()

void FEProblemBase::setCoordSystem ( const std::vector< SubdomainName > &  blocks,
const MultiMooseEnum &  coord_sys 
)
inherited

Definition at line 895 of file FEProblemBase.C.

897{
898 TIME_SECTION("setCoordSystem", 5, "Setting Coordinate System");
899 _mesh.setCoordSystem(blocks, coord_sys);
900}
void setCoordSystem(const std::vector< SubdomainName > &blocks, const MultiMooseEnum &coord_sys)
Set the coordinate system for the provided blocks to coord_sys.
Definition MooseMesh.C:4165

◆ setCoupling()

void FEProblemBase::setCoupling ( Moose::CouplingType  type)
inherited

Set the coupling between variables TODO: allow user-defined coupling.

Parameters
typeType of coupling

Definition at line 6901 of file FEProblemBase.C.

6902{
6904 {
6906 mooseError("Someone told us (the FEProblemBase) to trust the user coupling matrix, but we "
6907 "haven't been provided a coupling matrix!");
6908
6909 // We've been told to trust the user coupling matrix, so we're going to leave things alone
6910 return;
6911 }
6912
6913 _coupling = type;
6914}
bool _trust_user_coupling_matrix
Whether to trust the user coupling matrix no matter what.

Referenced by FEProblemBase::init(), and Moose::SlepcSupport::setEigenProblemSolverParams().

◆ setCouplingMatrix() [1/2]

void FEProblemBase::setCouplingMatrix ( libMesh::CouplingMatrix *  cm,
const unsigned int  nl_sys_num 
)
inherited

◆ setCouplingMatrix() [2/2]

void FEProblemBase::setCouplingMatrix ( std::unique_ptr< libMesh::CouplingMatrix >  cm,
const unsigned int  nl_sys_num 
)
inherited

Set custom coupling matrix.

Parameters
cmcoupling matrix to be set
nl_sys_numwhich nonlinear system we are setting the coupling matrix for

Referenced by MoosePreconditioner::setCouplingMatrix().

◆ setCurrentAlgebraicBndNodeRange()

void FEProblemBase::setCurrentAlgebraicBndNodeRange ( ConstBndNodeRange *  range)
inherited

Definition at line 10414 of file FEProblemBase.C.

10415{
10416 if (!range)
10417 {
10419 return;
10420 }
10421
10422 _current_algebraic_bnd_node_range = std::make_unique<ConstBndNodeRange>(*range);
10423}

◆ setCurrentAlgebraicElementRange()

void FEProblemBase::setCurrentAlgebraicElementRange ( libMesh::ConstElemRange *  range)
inherited

These functions allow setting custom ranges for the algebraic elements, nodes, and boundary nodes that contribute to the jacobian and residual for this local processor.

setCurrentAlgebraicElementRange() sets the element range that contributes to the system. A nullptr will reset the range to use the mesh's range.

setCurrentAlgebraicNodeRange() sets the node range that contributes to the system. A nullptr will reset the range to use the mesh's range.

setCurrentAlgebraicBndNodeRange() sets the boundary node range that contributes to the system. A nullptr will reset the range to use the mesh's range.

Parameters
rangeA pointer to the const range object representing the algebraic elements, nodes, or boundary nodes.

Definition at line 10392 of file FEProblemBase.C.

10393{
10394 if (!range)
10395 {
10397 return;
10398 }
10399
10400 _current_algebraic_elem_range = std::make_unique<ConstElemRange>(*range);
10401}

◆ setCurrentAlgebraicNodeRange()

void FEProblemBase::setCurrentAlgebraicNodeRange ( libMesh::ConstNodeRange *  range)
inherited

Definition at line 10403 of file FEProblemBase.C.

10404{
10405 if (!range)
10406 {
10408 return;
10409 }
10410
10411 _current_algebraic_node_range = std::make_unique<ConstNodeRange>(*range);
10412}

◆ setCurrentBoundaryID()

void FEProblemBase::setCurrentBoundaryID ( BoundaryID  bid,
const THREAD_ID  tid 
)
overridevirtualinherited

sets the current boundary ID in assembly

Reimplemented from SubProblem.

Definition at line 10328 of file FEProblemBase.C.

10329{
10332 _displaced_problem->setCurrentBoundaryID(bid, tid);
10333}
virtual void setCurrentBoundaryID(BoundaryID bid, const THREAD_ID tid)
sets the current boundary ID in assembly
Definition SubProblem.C:778

◆ setCurrentExecuteOnFlag()

void FEProblemBase::setCurrentExecuteOnFlag ( const ExecFlagType &  flag)
inherited

◆ setCurrentLinearSystem()

void FEProblemBase::setCurrentLinearSystem ( unsigned int  sys_num)
inherited

Set the current linear system pointer.

Parameters
sys_numThe number of linear system

Definition at line 10345 of file FEProblemBase.C.

10346{
10347 mooseAssert(sys_num < _linear_systems.size(),
10348 "System number greater than the number of linear systems");
10349 _current_linear_sys = _linear_systems[sys_num].get();
10351}
SolverSystem * _current_solver_sys
The current solver system.

Referenced by FEProblemBase::computeLinearSystemSys(), LinearSystem::computeLinearSystemTags(), and FEProblemBase::solveLinearSystem().

◆ setCurrentLowerDElem()

void FEProblemBase::setCurrentLowerDElem ( const Elem *const  lower_d_elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Set the current lower dimensional element.

This can be null

Reimplemented from SubProblem.

Definition at line 10319 of file FEProblemBase.C.

10320{
10321 SubProblem::setCurrentLowerDElem(lower_d_elem, tid);
10323 _displaced_problem->setCurrentLowerDElem(
10324 lower_d_elem ? _displaced_mesh->elemPtr(lower_d_elem->id()) : nullptr, tid);
10325}
virtual void setCurrentLowerDElem(const Elem *const lower_d_elem, const THREAD_ID tid)
Set the current lower dimensional element.

◆ setCurrentlyComputingJacobian()

void SubProblem::setCurrentlyComputingJacobian ( const bool  currently_computing_jacobian)
inlineinherited

Set whether or not the problem is in the process of computing the Jacobian.

Definition at line 697 of file SubProblem.h.

698 {
699 _currently_computing_jacobian = currently_computing_jacobian;
700 }

Referenced by FEProblemBase::computeResidualAndJacobian(), and FEProblemBase::resetState().

◆ setCurrentlyComputingResidual()

void FEProblemBase::setCurrentlyComputingResidual ( bool  currently_computing_residual)
finalvirtualinherited

Set whether or not the problem is in the process of computing the residual.

Reimplemented from SubProblem.

Definition at line 9995 of file FEProblemBase.C.

9996{
9998 _displaced_problem->setCurrentlyComputingResidual(currently_computing_residual);
9999 _currently_computing_residual = currently_computing_residual;
10000}

Referenced by FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), NonlinearSystemBase::computeResidualTags(), and FEProblemBase::resetState().

◆ setCurrentlyComputingResidualAndJacobian()

void SubProblem::setCurrentlyComputingResidualAndJacobian ( bool  currently_computing_residual_and_jacobian)
inlineinherited

Set whether or not the problem is in the process of computing the Jacobian.

Definition at line 1492 of file SubProblem.h.

1494{
1495 _currently_computing_residual_and_jacobian = currently_computing_residual_and_jacobian;
1496}

Referenced by FEProblemBase::computeResidualAndJacobian(), and FEProblemBase::resetState().

◆ setCurrentNonlinearSystem()

void FEProblemBase::setCurrentNonlinearSystem ( const unsigned int  nl_sys_num)
inherited

◆ setCurrentResidualVectorTags()

void FEProblemBase::setCurrentResidualVectorTags ( const std::set< TagID > &  vector_tags)
inlineinherited

Set the current residual vector tag data structure based on the passed in tag IDs.

Definition at line 3950 of file FEProblemBase.h.

3951{
3953}

Referenced by FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and CrankNicolson::init().

◆ setCurrentSubdomainID()

void FEProblemBase::setCurrentSubdomainID ( const Elem *  elem,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 1974 of file FEProblemBase.C.

1975{
1976 SubdomainID did = elem->subdomain_id();
1977 for (const auto i : index_range(_solver_systems))
1978 {
1979 _assembly[tid][i]->setCurrentSubdomainID(did);
1980 if (_displaced_problem &&
1982 _displaced_problem->assembly(tid, i).setCurrentSubdomainID(did);
1983 }
1984}

Referenced by NonlinearSystemBase::constraintJacobians(), NonlinearSystemBase::constraintResiduals(), ElementalVariableValue::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), and ComputeInitialConditionThread::operator()().

◆ setErrorOnJacobianNonzeroReallocation()

void FEProblemBase::setErrorOnJacobianNonzeroReallocation ( bool  state)
inlineinherited

Definition at line 2436 of file FEProblemBase.h.

2437 {
2439 }

◆ setException()

void FEProblemBase::setException ( const std::string &  message)
virtualinherited

◆ setExecutionPrinting()

void FEProblemBase::setExecutionPrinting ( const ExecFlagEnum &  print_exec)
inlineinherited

Definition at line 2980 of file FEProblemBase.h.

2980{ _print_execution_on = print_exec; }
ExecFlagEnum _print_execution_on
When to print the execution of loops.

◆ setFailNextNonlinearConvergenceCheck()

void FEProblemBase::setFailNextNonlinearConvergenceCheck ( )
inlineinherited

Skip further residual evaluations and fail the next nonlinear convergence check(s)

Definition at line 2967 of file FEProblemBase.h.

void setFailNextSystemConvergenceCheck()
Tell the problem that the system(s) cannot be considered converged next time convergence is checked.

Referenced by Terminator::execute().

◆ setFailNextSystemConvergenceCheck()

void FEProblemBase::setFailNextSystemConvergenceCheck ( )
inlineinherited

Tell the problem that the system(s) cannot be considered converged next time convergence is checked.

Definition at line 2969 of file FEProblemBase.h.

Referenced by FEProblemBase::setFailNextNonlinearConvergenceCheck().

◆ setFunctorOutput()

void SubProblem::setFunctorOutput ( bool  set_output)
inlineinherited

Setter for debug functor output.

Definition at line 932 of file SubProblem.h.

932{ _show_functors = set_output; }
bool _show_functors
Whether to output a list of the functors used and requested (currently only at initialSetup)

◆ setIgnoreZerosInJacobian()

void FEProblemBase::setIgnoreZerosInJacobian ( bool  state)
inlineinherited

Set whether the zeros in the Jacobian should be dropped from the sparsity pattern.

Definition at line 2459 of file FEProblemBase.h.

2459{ _ignore_zeros_in_jacobian = state; }

◆ setInputParametersFEProblem()

virtual void FEProblemBase::setInputParametersFEProblem ( InputParameters &  parameters)
inlinevirtualinherited

Reimplemented in FEProblem.

Definition at line 1046 of file FEProblemBase.h.

1047 {
1048 parameters.set<FEProblemBase *>("_fe_problem_base") = this;
1049 }

Referenced by FEProblem::setInputParametersFEProblem().

◆ setKernelCoverageCheck() [1/2]

void FEProblemBase::setKernelCoverageCheck ( bool  flag)
inlineinherited

Set flag to indicate whether kernel coverage checks should be performed.

This check makes sure that at least one kernel is active on all subdomains in the domain (default: true).

Definition at line 2280 of file FEProblemBase.h.

◆ setKernelCoverageCheck() [2/2]

void FEProblemBase::setKernelCoverageCheck ( CoverageCheckMode  mode)
inlineinherited

Set flag to indicate whether kernel coverage checks should be performed.

This check makes sure that at least one kernel is active on all subdomains in the domain (default: true).

Definition at line 2274 of file FEProblemBase.h.

2274{ _kernel_coverage_check = mode; }

◆ setLinearConvergenceNames()

void FEProblemBase::setLinearConvergenceNames ( const std::vector< ConvergenceName > &  convergence_names)
inherited

Sets the linear convergence object name(s) if there is one.

Definition at line 10163 of file FEProblemBase.C.

10164{
10165 if (convergence_names.size() != numLinearSystems())
10166 paramError("linear_convergence", "There must be one convergence object per linear system");
10167 _linear_convergence_names = convergence_names;
10168}

Referenced by FEProblemSolve::FEProblemSolve().

◆ setMaterialCoverageCheck() [1/2]

void FEProblemBase::setMaterialCoverageCheck ( bool  flag)
inlineinherited

Set flag to indicate whether material coverage checks should be performed.

This check makes sure that at least one material is active on all subdomains in the domain if any material is supplied. If no materials are supplied anywhere, a simulation is still considered OK as long as no properties are being requested anywhere.

Definition at line 2299 of file FEProblemBase.h.

◆ setMaterialCoverageCheck() [2/2]

void FEProblemBase::setMaterialCoverageCheck ( CoverageCheckMode  mode)
inlineinherited

Set flag to indicate whether material coverage checks should be performed.

This check makes sure that at least one material is active on all subdomains in the domain if any material is supplied. If no materials are supplied anywhere, a simulation is still considered OK as long as no properties are being requested anywhere.

Definition at line 2291 of file FEProblemBase.h.

2291{ _material_coverage_check = mode; }

◆ setMultiAppFixedPointConvergenceName()

void FEProblemBase::setMultiAppFixedPointConvergenceName ( const ConvergenceName &  convergence_name)
inherited

Sets the MultiApp fixed point convergence object name if there is one.

Definition at line 10135 of file FEProblemBase.C.

10136{
10137 _multiapp_fixed_point_convergence_name = convergence_name;
10138}

Referenced by FixedPointSolve::FixedPointSolve().

◆ setNeedToAddDefaultMultiAppFixedPointConvergence()

void FEProblemBase::setNeedToAddDefaultMultiAppFixedPointConvergence ( )
inlineinherited

Sets _need_to_add_default_multiapp_fixed_point_convergence to true.

Definition at line 783 of file FEProblemBase.h.

Referenced by FixedPointSolve::FixedPointSolve().

◆ setNeedToAddDefaultNonlinearConvergence()

void FEProblemBase::setNeedToAddDefaultNonlinearConvergence ( )
inlineinherited

Sets _need_to_add_default_nonlinear_convergence to true.

Definition at line 778 of file FEProblemBase.h.

Referenced by FEProblemSolve::FEProblemSolve().

◆ setNeedToAddDefaultSteadyStateConvergence()

void FEProblemBase::setNeedToAddDefaultSteadyStateConvergence ( )
inlineinherited

Sets _need_to_add_default_steady_state_convergence to true.

Definition at line 788 of file FEProblemBase.h.

Referenced by TransientBase::TransientBase().

◆ setNeighborSubdomainID() [1/2]

void FEProblemBase::setNeighborSubdomainID ( const Elem *  elem,
const THREAD_ID  tid 
)
virtualinherited

Definition at line 2000 of file FEProblemBase.C.

2001{
2002 SubdomainID did = elem->subdomain_id();
2003 for (const auto i : index_range(_nl))
2004 {
2005 _assembly[tid][i]->setCurrentNeighborSubdomainID(did);
2006 if (_displaced_problem &&
2008 _displaced_problem->assembly(tid, i).setCurrentNeighborSubdomainID(did);
2009 }
2010}

◆ setNeighborSubdomainID() [2/2]

void FEProblemBase::setNeighborSubdomainID ( const Elem *  elem,
unsigned int  side,
const THREAD_ID  tid 
)
overridevirtualinherited

Implements SubProblem.

Definition at line 1987 of file FEProblemBase.C.

1988{
1989 SubdomainID did = elem->neighbor_ptr(side)->subdomain_id();
1990 for (const auto i : index_range(_nl))
1991 {
1992 _assembly[tid][i]->setCurrentNeighborSubdomainID(did);
1993 if (_displaced_problem &&
1995 _displaced_problem->assembly(tid, i).setCurrentNeighborSubdomainID(did);
1996 }
1997}

Referenced by NonlinearSystemBase::constraintJacobians(), NonlinearSystemBase::constraintResiduals(), FEProblemBase::reinitNeighbor(), and NonlinearSystemBase::reinitNodeFace().

◆ setNonlinearConvergenceNames()

void FEProblemBase::setNonlinearConvergenceNames ( const std::vector< ConvergenceName > &  convergence_names)
inherited

Sets the nonlinear convergence object name(s) if there is one.

Definition at line 10122 of file FEProblemBase.C.

10123{
10124 if (convergence_names.size() != numNonlinearSystems())
10125 paramError("nonlinear_convergence",
10126 "There must be one convergence object per nonlinear system");
10127
10128 _nonlinear_convergence_names = convergence_names;
10129
10130 for (const auto i : make_range(numNonlinearSystems()))
10131 _nl[i]->setConvergenceName(convergence_names[i]);
10132}

Referenced by FEProblemSolve::FEProblemSolve().

◆ setNonlocalCouplingMatrix()

void FEProblemBase::setNonlocalCouplingMatrix ( )
inherited

Set custom coupling matrix for variables requiring nonlocal contribution.

Definition at line 6942 of file FEProblemBase.C.

6943{
6944 TIME_SECTION("setNonlocalCouplingMatrix", 5, "Setting Nonlocal Coupling Matrix");
6945
6946 if (_nl.size() > 1)
6947 mooseError("Nonlocal kernels are weirdly stored on the FEProblem so we don't currently support "
6948 "multiple nonlinear systems with nonlocal kernels.");
6949
6950 for (const auto nl_sys_num : index_range(_nl))
6951 {
6952 auto & nl = _nl[nl_sys_num];
6953 auto & nonlocal_cm = _nonlocal_cm[nl_sys_num];
6954 unsigned int n_vars = nl->nVariables();
6955 nonlocal_cm.resize(n_vars);
6956 const auto & vars = nl->getVariables(0);
6957 const auto & nonlocal_kernel = _nonlocal_kernels.getObjects();
6958 const auto & nonlocal_integrated_bc = _nonlocal_integrated_bcs.getObjects();
6959 for (const auto & ivar : vars)
6960 {
6961 for (const auto & kernel : nonlocal_kernel)
6962 {
6963 for (unsigned int i = ivar->number(); i < ivar->number() + ivar->count(); ++i)
6964 if (i == kernel->variable().number())
6965 for (const auto & jvar : vars)
6966 {
6967 const auto it = _var_dof_map.find(jvar->name());
6968 if (it != _var_dof_map.end())
6969 {
6970 unsigned int j = jvar->number();
6971 nonlocal_cm(i, j) = 1;
6972 }
6973 }
6974 }
6975 for (const auto & integrated_bc : nonlocal_integrated_bc)
6976 {
6977 for (unsigned int i = ivar->number(); i < ivar->number() + ivar->count(); ++i)
6978 if (i == integrated_bc->variable().number())
6979 for (const auto & jvar : vars)
6980 {
6981 const auto it = _var_dof_map.find(jvar->name());
6982 if (it != _var_dof_map.end())
6983 {
6984 unsigned int j = jvar->number();
6985 nonlocal_cm(i, j) = 1;
6986 }
6987 }
6988 }
6989 }
6990 }
6991}
std::map< std::string, std::vector< dof_id_type > > _var_dof_map
Definition SubProblem.h:682

◆ setParallelBarrierMessaging()

void FEProblemBase::setParallelBarrierMessaging ( bool  flag)
inlineinherited

Toggle parallel barrier messaging (defaults to on).

Definition at line 2307 of file FEProblemBase.h.

◆ setPostprocessorValueByName()

void FEProblemBase::setPostprocessorValueByName ( const PostprocessorName &  name,
const PostprocessorValue &  value,
std::size_t  t_index = 0 
)
inherited

Set the value of a PostprocessorValue.

Parameters
nameThe name of the post-processor
t_indexFlag for getting current (0), old (1), or older (2) values
Returns
The reference to the value at the given time index

Note: This method is only for setting values that already exist, the Postprocessor and PostprocessorInterface objects should be used rather than this method for creating and getting values within objects.

WARNING! This method should be used with caution. It exists to allow Transfers and other similar objects to modify Postprocessor values. It is not intended for general use.

Definition at line 4981 of file FEProblemBase.C.

4984{
4987}
void setReporterValue(const ReporterName &reporter_name, const T &value, const std::size_t time_index=0)
Method for setting Reporter values that already exist.

Referenced by PIDTransientControl::execute(), MultiAppPostprocessorTransfer::execute(), MFEMProblem::executeMFEMObjects(), PIDTransientControl::initialSetup(), FEProblemBase::joinAndFinalize(), PIDTransientControl::timestepSetup(), PicardSolve::transformPostprocessors(), SecantSolve::transformPostprocessors(), and SteffensenSolve::transformPostprocessors().

◆ setPreserveMatrixSparsityPattern()

void FEProblemBase::setPreserveMatrixSparsityPattern ( bool  preserve)
inherited

Set whether the sparsity pattern of the matrices being formed during the solve (usually the Jacobian) should be preserved.

This global setting can be retrieved by kernels, notably those using AD, to decide whether to take additional care to preserve the sparsity pattern

Definition at line 4113 of file FEProblemBase.C.

4114{
4115 if (_ignore_zeros_in_jacobian && preserve)
4117 "ignore_zeros_in_jacobian",
4118 "We likely cannot preserve the sparsity pattern if ignoring zeros in the Jacobian, which "
4119 "leads to removing those entries from the Jacobian sparsity pattern");
4121}
void paramWarning(const std::string &param, Args... args) const

◆ setResidual() [1/2]

virtual void SubProblem::setResidual ( libMesh::NumericVector< libMesh::Number > &  residual,
const THREAD_ID  tid 
)
pure virtualinherited

◆ setResidual() [2/2]

void FEProblemBase::setResidual ( NumericVector< libMesh::Number > &  residual,
const THREAD_ID  tid 
)
overridevirtualinherited

Definition at line 2133 of file FEProblemBase.C.

2134{
2135 _assembly[tid][_current_nl_sys->number()]->setResidual(
2136 residual,
2138 getVectorTag(_nl[_current_nl_sys->number()]->residualVectorTag()));
2140 _displaced_problem->setResidual(residual, tid);
2141}

Referenced by NonlinearSystemBase::constraintResiduals().

◆ setResidualNeighbor() [1/2]

virtual void SubProblem::setResidualNeighbor ( libMesh::NumericVector< libMesh::Number > &  residual,
const THREAD_ID  tid 
)
pure virtualinherited

◆ setResidualNeighbor() [2/2]

void FEProblemBase::setResidualNeighbor ( NumericVector< libMesh::Number > &  residual,
const THREAD_ID  tid 
)
overridevirtualinherited

Definition at line 2144 of file FEProblemBase.C.

2145{
2146 _assembly[tid][_current_nl_sys->number()]->setResidualNeighbor(
2149 _displaced_problem->setResidualNeighbor(residual, tid);
2150}

◆ setResidualObjectParamsAndLog()

void FEProblemBase::setResidualObjectParamsAndLog ( const std::string &  ro_name,
const std::string &  name,
InputParameters &  parameters,
const unsigned int  nl_sys_num,
const std::string &  base_name,
bool &  reinit_displaced 
)
privateinherited

Set the subproblem and system parameters for residual objects and log their addition.

Parameters
ro_nameThe type of the residual object
nameThe name of the residual object
parametersThe residual object parameters
nl_sys_numThe nonlinear system that the residual object belongs to
base_nameThe base type of the residual object, e.g. Kernel, BoundaryCondition, etc.
reinit_displacedA data member indicating whether a geometric concept should be reinit'd for the displaced problem. Examples of valid data members to pass in are _reinit_displaced_elem and _reinit_displaced_face

Definition at line 3136 of file FEProblemBase.C.

3142{
3143 if (_displaced_problem && parameters.get<bool>("use_displaced_mesh"))
3144 {
3145 parameters.set<SubProblem *>("_subproblem") = _displaced_problem.get();
3146 parameters.set<SystemBase *>("_sys") = &_displaced_problem->solverSys(nl_sys_num);
3147 reinit_displaced = true;
3148 }
3149 else
3150 {
3151 if (_displaced_problem == nullptr && parameters.get<bool>("use_displaced_mesh"))
3152 {
3153 // We allow Kernels to request that they use_displaced_mesh,
3154 // but then be overridden when no displacements variables are
3155 // provided in the Mesh block. If that happened, update the value
3156 // of use_displaced_mesh appropriately for this Kernel.
3157 if (parameters.have_parameter<bool>("use_displaced_mesh"))
3158 parameters.set<bool>("use_displaced_mesh") = false;
3159 }
3160
3161 parameters.set<SubProblem *>("_subproblem") = this;
3162 parameters.set<SystemBase *>("_sys") = _nl[nl_sys_num].get();
3163 }
3164
3165 logAdd(base_name, name, ro_name, parameters);
3166}

Referenced by FEProblemBase::addBoundaryCondition(), FEProblemBase::addHDGKernel(), and FEProblemBase::addKernel().

◆ setRestartFile()

void FEProblemBase::setRestartFile ( const std::string &  file_name)
inherited

Communicate to the Resurector the name of the restart filer.

Parameters
file_nameThe file name for restarting from

Definition at line 9591 of file FEProblemBase.C.

9592{
9593 if (_app.isRecovering())
9594 {
9595 mooseInfo("Restart file ", file_name, " is NOT being used since we are performing recovery.");
9596 }
9597 else
9598 {
9599 _app.setRestart(true);
9601 mooseInfo("Using ", file_name, " for restart.");
9602 }
9603}
void mooseInfo(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
Definition MooseError.h:401
void setRestart(bool value)
Sets the restart/recover flags.
Definition MooseApp.C:2884
void setRestartRecoverFileBase(const std::string &file_base)
mutator for recover_base (set by RecoverBaseAction)
Definition MooseApp.h:512
bool isRecovering() const
Whether or not this is a "recover" calculation.
Definition MooseApp.C:1674

Referenced by Executioner::Executioner(), Executioner::Executioner(), and FEProblemBase::FEProblemBase().

◆ setSNESMFReuseBase()

void FEProblemBase::setSNESMFReuseBase ( bool  reuse,
bool  set_by_user 
)
inlineinherited

If or not to reuse the base vector for matrix-free calculation.

Definition at line 2660 of file FEProblemBase.h.

2661 {
2663 }
bool _snesmf_reuse_base
If or not to resuse the base vector for matrix-free calculation.

Referenced by FEProblemSolve::FEProblemSolve().

◆ setSteadyStateConvergenceName()

void FEProblemBase::setSteadyStateConvergenceName ( const ConvergenceName &  convergence_name)
inherited

Sets the steady-state detection convergence object name if there is one.

Definition at line 10141 of file FEProblemBase.C.

10142{
10143 _steady_state_convergence_name = convergence_name;
10144}

Referenced by TransientBase::TransientBase().

◆ setUDotDotOldRequested()

virtual void FEProblemBase::setUDotDotOldRequested ( const bool  u_dotdot_old_requested)
inlinevirtualinherited

Set boolean flag to true to store old solution second time derivative.

Definition at line 2708 of file FEProblemBase.h.

2709 {
2710 _u_dotdot_old_requested = u_dotdot_old_requested;
2711 }
bool _u_dotdot_old_requested
Whether old solution second time derivative needs to be stored.

Referenced by CentralDifference::CentralDifference(), and NewmarkBeta::NewmarkBeta().

◆ setUDotDotRequested()

virtual void FEProblemBase::setUDotDotRequested ( const bool  u_dotdot_requested)
inlinevirtualinherited

Set boolean flag to true to store solution second time derivative.

Definition at line 2696 of file FEProblemBase.h.

2697 {
2698 _u_dotdot_requested = u_dotdot_requested;
2699 }
bool _u_dotdot_requested
Whether solution second time derivative needs to be stored.

Referenced by CentralDifference::CentralDifference(), and NewmarkBeta::NewmarkBeta().

◆ setUDotOldRequested()

virtual void FEProblemBase::setUDotOldRequested ( const bool  u_dot_old_requested)
inlinevirtualinherited

Set boolean flag to true to store old solution time derivative.

Definition at line 2702 of file FEProblemBase.h.

2703 {
2704 _u_dot_old_requested = u_dot_old_requested;
2705 }
bool _u_dot_old_requested
Whether old solution time derivative needs to be stored.

Referenced by CentralDifference::CentralDifference(), and NewmarkBeta::NewmarkBeta().

◆ setUDotRequested()

virtual void FEProblemBase::setUDotRequested ( const bool  u_dot_requested)
inlinevirtualinherited

Set boolean flag to true to store solution time derivative.

Definition at line 2693 of file FEProblemBase.h.

2693{ _u_dot_requested = u_dot_requested; }
bool _u_dot_requested
Whether solution time derivative needs to be stored.

Referenced by TimeIntegrator::TimeIntegrator().

◆ setupDampers()

void FEProblemBase::setupDampers ( )
inherited

Definition at line 5806 of file FEProblemBase.C.

5807{
5808 for (auto & nl : _nl)
5809 nl->setupDampers();
5810}

◆ setVariableAllDoFMap()

void FEProblemBase::setVariableAllDoFMap ( const std::vector< const MooseVariableFEBase * > &  moose_vars)
inherited

Definition at line 1882 of file FEProblemBase.C.

1883{
1884 for (unsigned int i = 0; i < moose_vars.size(); ++i)
1885 {
1886 VariableName var_name = moose_vars[i]->name();
1887 auto & sys = _solver_systems[moose_vars[i]->sys().number()];
1888 sys->setVariableGlobalDoFs(var_name);
1889 _var_dof_map[var_name] = sys->getVariableGlobalDoFs();
1890 }
1891}

Referenced by FEProblemBase::meshChanged().

◆ setVectorPostprocessorValueByName()

void FEProblemBase::setVectorPostprocessorValueByName ( const std::string &  object_name,
const std::string &  vector_name,
const VectorPostprocessorValue &  value,
std::size_t  t_index = 0 
)
inherited

Set the value of a VectorPostprocessor vector.

Parameters
object_nameThe name of the VPP object
vector_nameThe name of the declared vector
valueThe data to apply to the vector
t_indexFlag for getting current (0), old (1), or older (2) values

Definition at line 5007 of file FEProblemBase.C.

5011{
5013 VectorPostprocessorReporterName(object_name, vector_name), value, t_index);
5014}

◆ setVerboseProblem()

void FEProblemBase::setVerboseProblem ( bool  verbose)
inherited

Make the problem be verbose.

Definition at line 10311 of file FEProblemBase.C.

10312{
10313 _verbose_setup = verbose ? "true" : "false";
10314 _verbose_multiapps = verbose;
10315 _verbose_restore = verbose;
10316}

Referenced by PhysicsBase::initializePhysics().

◆ shouldPrintExecution()

bool FEProblemBase::shouldPrintExecution ( const THREAD_ID  tid) const
inherited

Check whether the problem should output execution orders at this time.

Definition at line 10253 of file FEProblemBase.C.

10254{
10255 // For now, only support printing from thread 0
10256 if (tid != 0)
10257 return false;
10258
10261 return true;
10262 else
10263 return false;
10264}
const ExecFlagType EXEC_ALWAYS
Definition Moose.C:54

Referenced by FEProblemBase::joinAndFinalize(), ComputeLinearFVElementalThread::printBlockExecutionInformation(), ComputeLinearFVFaceThread::printBlockExecutionInformation(), ComputeDiracThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), NonlinearThread::printBoundaryExecutionInformation(), ComputeFVInitialConditionThread::printGeneralExecutionInformation(), ComputeInitialConditionThread::printGeneralExecutionInformation(), ComputeLinearFVElementalThread::printGeneralExecutionInformation(), ComputeLinearFVFaceThread::printGeneralExecutionInformation(), ComputeDiracThread::printGeneralExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeIndicatorThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), ComputeNodalDampingThread::printGeneralExecutionInformation(), ComputeNodalKernelBCJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelBcsThread::printGeneralExecutionInformation(), ComputeNodalKernelJacobiansThread::printGeneralExecutionInformation(), ComputeNodalKernelsThread::printGeneralExecutionInformation(), ComputeNodalUserObjectsThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), and ComputeThreadedGeneralUserObjectsThread::printGeneralExecutionInformation().

◆ shouldSolve()

bool FEProblemBase::shouldSolve ( ) const
inlineinherited

◆ shouldUpdateSolution()

bool FEProblemBase::shouldUpdateSolution ( )
virtualinherited

Check to see whether the problem should update the solution.

Returns
true if the problem should update the solution, false otherwise

Definition at line 8677 of file FEProblemBase.C.

8678{
8679 return false;
8680}

Referenced by FEProblemBase::computePostCheck(), and NonlinearSystem::solve().

◆ showFunctorRequestors()

void SubProblem::showFunctorRequestors ( ) const
privateinherited

Lists all functors and all the objects that requested them.

Definition at line 1268 of file SubProblem.C.

1269{
1270 for (const auto & [functor, requestors] : _functor_to_requestors)
1271 {
1272 _console << "[DBG] Requestors for wrapped functor "
1273 << std::regex_replace(functor, std::regex("wraps_"), "") << std::endl;
1274 _console << "[DBG] " << MooseUtils::join(requestors, " ") << std::endl;
1275 }
1276}

Referenced by SubProblem::initialSetup().

◆ showFunctors()

void SubProblem::showFunctors ( ) const
privateinherited

Lists all functors in the problem.

Definition at line 1256 of file SubProblem.C.

1257{
1258 _console << "[DBG] Wrapped functors found in Subproblem" << std::endl;
1259 std::string functor_names = "[DBG] ";
1260 for (const auto & functor_pair : _functors[0])
1261 functor_names += std::regex_replace(functor_pair.first, std::regex("wraps_"), "") + " ";
1262 if (functor_names.size())
1263 functor_names.pop_back();
1264 _console << functor_names << std::endl;
1265}

Referenced by SubProblem::initialSetup().

◆ showInvalidSolutionConsole()

bool FEProblemBase::showInvalidSolutionConsole ( ) const
inlineinherited

Whether or not to print out the invalid solutions summary table in console.

Definition at line 2476 of file FEProblemBase.h.

const bool _show_invalid_solution_console

Referenced by SolverSystem::checkInvalidSolution().

◆ sideUOInterfaceMatPropIntegrityCheck()

bool FEProblemBase::sideUOInterfaceMatPropIntegrityCheck ( ) const
inlineinherited
Returns
whether to perform an integrity check for side user objects consuming interface material properties

Definition at line 2827 of file FEProblemBase.h.

2828 {
2830 }
const bool _side_uo_interface_mat_prop_integrity_check
Whether to check that side user objects do not consume interface material properties.

Referenced by SideUserObject::initialSetup().

◆ sizeZeroes()

void FEProblemBase::sizeZeroes ( unsigned int  size,
const THREAD_ID  tid 
)
virtualinherited

Definition at line 2335 of file FEProblemBase.C.

2336{
2337 mooseDoOnce(mooseWarning(
2338 "This function is deprecated and no longer performs any function. Please do not call it."));
2339}

◆ skipExceptionCheck()

void FEProblemBase::skipExceptionCheck ( bool  skip_exception_check)
inlineinherited

Set a flag that indicates if we want to skip exception and stop solve.

Definition at line 2673 of file FEProblemBase.h.

2674 {
2675 _skip_exception_check = skip_exception_check;
2676 }

Referenced by FEProblemSolve::FEProblemSolve().

◆ skipNextForwardSolutionCopyToOld()

void FEProblemBase::skipNextForwardSolutionCopyToOld ( )
inherited

Prevents the copy of the solution vector to the old solution vector in each system.

Old -> Older is still performed This is useful for MultiApps fixed point iterations

Definition at line 7459 of file FEProblemBase.C.

7460{
7461 for (auto & sys : _solver_systems)
7462 sys->skipNextSolutionToOldCopy();
7463 _aux->skipNextSolutionToOldCopy();
7464}

Referenced by FullSolveMultiApp::solveStep().

◆ solve()

virtual void DumpObjectsProblem::solve ( unsigned int  )
inlineoverridevirtual

output data in solve (if ever called)

Reimplemented from FEProblemBase.

Definition at line 52 of file DumpObjectsProblem.h.

52{}

◆ solveLinearSystem()

virtual void DumpObjectsProblem::solveLinearSystem ( unsigned int  linear_sys_num,
const Moose::PetscSupport::PetscOptions *  po 
)
inlineoverridevirtual

Build and solve a linear system.

Parameters
linear_sys_numThe number of the linear system (1,..,num. of lin. systems)
poThe petsc options for the solve, if not supplied, the defaults are used

Reimplemented from FEProblemBase.

Definition at line 53 of file DumpObjectsProblem.h.

55 {
56 }

◆ solverParams() [1/2]

SolverParams & FEProblemBase::solverParams ( unsigned int  solver_sys_num = 0)
inherited

Get the solver parameters.

Definition at line 9623 of file FEProblemBase.C.

9624{
9625 mooseAssert(solver_sys_num < numSolverSystems(),
9626 "Solver system number '" << solver_sys_num << "' is out of bounds. We have '"
9627 << numSolverSystems() << "' solver systems");
9628 return _solver_params[solver_sys_num];
9629}
std::vector< SolverParams > _solver_params
virtual std::size_t numSolverSystems() const override

Referenced by NonlinearEigenSystem::attachPreconditioner(), SolverSystem::compute(), SlepcEigenSolverConfiguration::configure_solver(), EigenProblemSolve::EigenProblemSolve(), ExplicitTimeIntegrator::ExplicitTimeIntegrator(), FEProblemSolve::FEProblemSolve(), EigenProblem::init(), FEProblemBase::init(), ExplicitTimeIntegrator::init(), EigenProblemSolve::initialSetup(), EigenProblem::isNonlinearEigenvalueSolver(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionA(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionAB(), Moose::SlepcSupport::mooseSlepcEigenFormFunctionB(), Moose::SlepcSupport::mooseSlepcEigenFormJacobianA(), MooseStaticCondensationPreconditioner::MooseStaticCondensationPreconditioner(), ConsoleUtils::outputExecutionInformation(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), NonlinearSystem::residualAndJacobianTogether(), Moose::SlepcSupport::setEigenProblemSolverParams(), Moose::PetscSupport::setLineSearchFromParams(), Moose::PetscSupport::setMFFDTypeFromParams(), Moose::PetscSupport::setSinglePetscOption(), Moose::PetscSupport::setSolveTypeFromParams(), NonlinearSystemBase::shouldEvaluatePreSMOResidual(), EigenProblem::solve(), FEProblemBase::solverParams(), FEProblemBase::solverTypeString(), EigenProblem::solverTypeString(), and Moose::SlepcSupport::storeSolveType().

◆ solverParams() [2/2]

const SolverParams & FEProblemBase::solverParams ( unsigned int  solver_sys_num = 0) const
inherited

const version

Definition at line 9632 of file FEProblemBase.C.

9633{
9634 return const_cast<FEProblemBase *>(this)->solverParams(solver_sys_num);
9635}

◆ solverSysNum()

unsigned int FEProblemBase::solverSysNum ( const SolverSystemName &  solver_sys_name) const
overridevirtualinherited
Returns
the solver system number corresponding to the provided solver_sys_name

Implements SubProblem.

Definition at line 7184 of file FEProblemBase.C.

7185{
7186 std::istringstream ss(solver_sys_name);
7187 unsigned int solver_sys_num;
7188 if (!(ss >> solver_sys_num) || !ss.eof())
7189 {
7190 const auto & search = _solver_sys_name_to_num.find(solver_sys_name);
7191 if (search == _solver_sys_name_to_num.end())
7192 mooseError("The solver system number was requested for system '" + solver_sys_name,
7193 "' but this system does not exist in the Problem. Systems can be added to the "
7194 "problem using the 'nl_sys_names'/'linear_sys_names' parameter.\nSystems in the "
7195 "Problem: " +
7197 solver_sys_num = search->second;
7198 }
7199
7200 return solver_sys_num;
7201}
std::map< SolverSystemName, unsigned int > _solver_sys_name_to_num
Map connecting solver system names with their respective systems.

Referenced by FEProblemBase::addVariable(), FEProblemBase::getSystemBase(), PhysicsBase::initializePhysics(), MultiSystemSolveObject::MultiSystemSolveObject(), and DisplacedProblem::solverSysNum().

◆ solverSystemConverged()

bool FEProblemBase::solverSystemConverged ( const unsigned int  sys_num)
overridevirtualinherited
Returns
whether the given solver system sys_num is converged

Reimplemented from SubProblem.

Reimplemented in EigenProblem.

Definition at line 7416 of file FEProblemBase.C.

7417{
7418 if (_solve)
7419 return _solver_systems[sys_num]->converged();
7420 else
7421 return true;
7422}

◆ solverTypeString()

std::string FEProblemBase::solverTypeString ( unsigned int  solver_sys_num = 0)
virtualinherited

Return solver type as a human readable string.

Reimplemented in MFEMProblem, and EigenProblem.

Definition at line 10432 of file FEProblemBase.C.

10433{
10434 return Moose::stringify(solverParams(solver_sys_num)._type);
10435}

Referenced by ConsoleUtils::outputExecutionInformation().

◆ startedInitialSetup()

virtual bool FEProblemBase::startedInitialSetup ( )
inlinevirtualinherited

Returns true if we are in or beyond the initialSetup stage.

Definition at line 569 of file FEProblemBase.h.

569{ return _started_initial_setup; }
bool _started_initial_setup
At or beyond initialSteup stage.

Referenced by MaterialBase::checkExecutionStage(), MaterialPropertyInterface::checkExecutionStage(), and NEML2ModelExecutor::checkExecutionStage().

◆ storeBoundaryDelayedCheckMatProp()

void SubProblem::storeBoundaryDelayedCheckMatProp ( const std::string &  requestor,
BoundaryID  boundary_id,
const std::string &  name 
)
virtualinherited

Adds to a map based on boundary ids of material properties to validate.

Parameters
requestorThe MOOSE object name requesting the material property
boundary_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 604 of file SubProblem.C.

607{
608 _map_boundary_material_props_check[boundary_id].insert(std::make_pair(requestor, name));
609}

Referenced by MaterialPropertyInterface::checkMaterialProperty().

◆ storeBoundaryMatPropName()

void SubProblem::storeBoundaryMatPropName ( BoundaryID  boundary_id,
const std::string &  name 
)
virtualinherited

Adds the given material property to a storage map based on boundary ids.

This is method is called from within the Material class when the property is first registered.

Parameters
boundary_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 578 of file SubProblem.C.

579{
580 _map_boundary_material_props[boundary_id].insert(name);
581}

Referenced by MaterialBase::registerPropName().

◆ storeBoundaryZeroMatProp()

void SubProblem::storeBoundaryZeroMatProp ( BoundaryID  boundary_id,
const MaterialPropertyName &  name 
)
virtualinherited

Adds to a map based on boundary ids of material properties for which a zero value can be returned.

Thes properties are optional and will not trigger a missing material property error.

Parameters
boundary_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 590 of file SubProblem.C.

591{
592 _zero_boundary_material_props[boundary_id].insert(name);
593}

Referenced by MaterialBase::storeBoundaryZeroMatProp().

◆ storeSubdomainDelayedCheckMatProp()

void SubProblem::storeSubdomainDelayedCheckMatProp ( const std::string &  requestor,
SubdomainID  block_id,
const std::string &  name 
)
virtualinherited

Adds to a map based on block ids of material properties to validate.

Parameters
block_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 596 of file SubProblem.C.

599{
600 _map_block_material_props_check[block_id].insert(std::make_pair(requestor, name));
601}

Referenced by MaterialPropertyInterface::checkMaterialProperty().

◆ storeSubdomainMatPropName()

void SubProblem::storeSubdomainMatPropName ( SubdomainID  block_id,
const std::string &  name 
)
virtualinherited

Adds the given material property to a storage map based on block ids.

This is method is called from within the Material class when the property is first registered.

Parameters
block_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 572 of file SubProblem.C.

573{
574 _map_block_material_props[block_id].insert(name);
575}

Referenced by MaterialBase::registerPropName().

◆ storeSubdomainZeroMatProp()

void SubProblem::storeSubdomainZeroMatProp ( SubdomainID  block_id,
const MaterialPropertyName &  name 
)
virtualinherited

Adds to a map based on block ids of material properties for which a zero value can be returned.

Thes properties are optional and will not trigger a missing material property error.

Parameters
block_idThe block id for the MaterialProperty
nameThe name of the property

Definition at line 584 of file SubProblem.C.

585{
586 _zero_block_material_props[block_id].insert(name);
587}

Referenced by MaterialBase::storeSubdomainZeroMatProp().

◆ stringifyParameters()

std::map< std::string, std::string > DumpObjectsProblem::stringifyParameters ( const InputParameters &  parameters)
protected

create a string map form parameter names to stringified parameter values

Definition at line 219 of file DumpObjectsProblem.C.

220{
221 std::map<std::string, std::string> parameter_map;
222
223 std::string syntax;
224 if (parameters.isParamValid("parser_syntax"))
225 syntax = parameters.get<std::string>("parser_syntax");
226
227 for (auto & value_pair : parameters)
228 {
229 // parameter name
230 const auto & param_name = value_pair.first;
231
232 if (!parameters.isPrivate(param_name) && parameters.isParamValid(param_name))
233 {
234 if (param_name == "control_tags")
235 {
236 // deal with the control tags. The current parser_syntax is automatically added to this. So
237 // we can remove the parameter if that's all there is in it
238 }
239 else
240 {
241 // special treatment for some types
242
243 // parameter value
244 std::string param_value;
245 if (parameters.have_parameter<bool>(param_name))
246 {
247 const bool & b = parameters.get<bool>(param_name);
248 param_value = b ? "true" : "false";
249 }
250 else
251 {
252 std::stringstream ss;
253 value_pair.second->print(ss);
254 param_value = ss.str();
255 }
256
257 // delete trailing space
258 if (!param_value.empty() && param_value.back() == ' ')
259 param_value.pop_back();
260
261 // add quotes if the parameter contains spaces or is empty
262 if (param_value.find_first_of(" ") != std::string::npos || param_value.length() == 0)
263 param_value = "'" + param_value + "'";
264
265 parameter_map[param_name] = param_value;
266 }
267 }
268 }
269
270 return parameter_map;
271}
bool isPrivate(const std::string &name) const
Returns a Boolean indicating whether the specified parameter is private or not.

Referenced by deduceNecessaryParameters().

◆ subdomainSetup()

void FEProblemBase::subdomainSetup ( SubdomainID  subdomain,
const THREAD_ID  tid 
)
virtualinherited

Definition at line 2676 of file FEProblemBase.C.

2677{
2678 _all_materials.subdomainSetup(subdomain, tid);
2679 // Call the subdomain methods of the output system, these are not threaded so only call it once
2680 if (tid == 0)
2682
2683 for (auto & nl : _nl)
2684 nl->subdomainSetup(subdomain, tid);
2685
2686 // FIXME: call displaced_problem->subdomainSetup() ?
2687 // When adding possibility with materials being evaluated on displaced mesh
2688}
virtual void subdomainSetup(THREAD_ID tid=0) const override
void subdomainSetup()
Calls the subdomainSetup function for each of the output objects.

Referenced by ThreadedFaceLoop< RangeType >::subdomainChanged(), ComputeDiracThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), ComputeUserObjectsThread::subdomainChanged(), and NonlinearThread::subdomainChanged().

◆ subspaceDim()

unsigned int FEProblemBase::subspaceDim ( const std::string &  prefix) const
inlineinherited

Dimension of the subspace spanned by vectors with a given prefix.

Parameters
prefixPrefix of the vectors spanning the subspace.

Definition at line 2349 of file FEProblemBase.h.

2350 {
2351 if (_subspace_dim.count(prefix))
2352 return _subspace_dim.find(prefix)->second;
2353 else
2354 return 0;
2355 }

Referenced by FEProblemBase::computeNearNullSpace(), FEProblemBase::computeNullSpace(), and FEProblemBase::computeTransposeNullSpace().

◆ swapBackMaterials()

void FEProblemBase::swapBackMaterials ( const THREAD_ID  tid)
virtualinherited

Definition at line 4522 of file FEProblemBase.C.

4523{
4524 auto && elem = _assembly[tid][0]->elem();
4526}
void swapBack(const Elem &elem, unsigned int side=0)
material properties for given element (and possible side)

Referenced by NodalPatchRecovery::compute(), LineMaterialSamplerBase< T >::execute(), ComputeElemAuxVarsThread< AuxKernelType >::onElement(), ComputeIndicatorThread::onElement(), ComputeMarkerThread::onElement(), ComputeUserObjectsThread::onElement(), and NonlinearThread::onElement().

◆ swapBackMaterialsFace()

void FEProblemBase::swapBackMaterialsFace ( const THREAD_ID  tid)
virtualinherited

◆ swapBackMaterialsNeighbor()

void FEProblemBase::swapBackMaterialsNeighbor ( const THREAD_ID  tid)
virtualinherited

Definition at line 4537 of file FEProblemBase.C.

4538{
4539 // NOTE: this will not work with h-adaptivity
4540 const Elem * neighbor = _assembly[tid][0]->neighbor();
4541 unsigned int neighbor_side =
4542 neighbor ? neighbor->which_neighbor_am_i(_assembly[tid][0]->elem()) : libMesh::invalid_uint;
4543
4544 if (!neighbor)
4545 {
4546 if (haveFV())
4547 {
4548 // If neighbor is null, then we're on the neighbor side of a mesh boundary, e.g. we're off
4549 // the mesh in ghost-land. If we're using the finite volume method, then variable values and
4550 // consequently material properties have well-defined values in this ghost region outside of
4551 // the mesh and we really do want to reinit our neighbor materials in this case. Since we're
4552 // off in ghost land it's safe to do swaps with `MaterialPropertyStorage` using the elem and
4553 // elem_side keys
4554 neighbor = _assembly[tid][0]->elem();
4555 neighbor_side = _assembly[tid][0]->side();
4556 mooseAssert(neighbor, "We should have an appropriate value for elem coming from Assembly");
4557 }
4558 else
4559 mooseError("neighbor is null in Assembly!");
4560 }
4561
4562 _neighbor_material_props.getMaterialData(tid).swapBack(*neighbor, neighbor_side);
4563}

Referenced by ComputeUserObjectsThread::onInterface(), NonlinearThread::onInterface(), ComputeIndicatorThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), NonlinearThread::onInternalSide(), and ComputeElemAuxBcsThread< AuxKernelType >::operator()().

◆ systemBaseAuxiliary() [1/2]

const SystemBase & FEProblemBase::systemBaseAuxiliary ( ) const
overridevirtualinherited

Return the auxiliary system object as a base class reference.

Implements SubProblem.

Definition at line 9973 of file FEProblemBase.C.

9974{
9975 return *_aux;
9976}

Referenced by PhysicsBase::copyVariablesFromMesh(), and MFEMProblem::getAuxVariableNames().

◆ systemBaseAuxiliary() [2/2]

SystemBase & FEProblemBase::systemBaseAuxiliary ( )
overridevirtualinherited

Implements SubProblem.

Definition at line 9979 of file FEProblemBase.C.

9980{
9981 return *_aux;
9982}

◆ systemBaseLinear() [1/2]

const SystemBase & FEProblemBase::systemBaseLinear ( unsigned int  sys_num) const
overridevirtualinherited

Get a constant base class reference to a linear system.

Parameters
sys_numThe number of the linear system

Implements SubProblem.

Definition at line 9941 of file FEProblemBase.C.

9942{
9943 mooseAssert(sys_num < _linear_systems.size(),
9944 "System number greater than the number of linear systems");
9945 return *_linear_systems[sys_num];
9946}

◆ systemBaseLinear() [2/2]

SystemBase & FEProblemBase::systemBaseLinear ( unsigned int  sys_num)
overridevirtualinherited

Get a non-constant base class reference to a linear system.

Parameters
sys_numThe number of the linear system

Implements SubProblem.

Definition at line 9949 of file FEProblemBase.C.

9950{
9951 mooseAssert(sys_num < _linear_systems.size(),
9952 "System number greater than the number of linear systems");
9953 return *_linear_systems[sys_num];
9954}

◆ systemBaseNonlinear() [1/2]

const SystemBase & FEProblemBase::systemBaseNonlinear ( const unsigned int  sys_num) const
overridevirtualinherited

Return the nonlinear system object as a base class reference given the system number.

Implements SubProblem.

Definition at line 9927 of file FEProblemBase.C.

9928{
9929 mooseAssert(sys_num < _nl.size(), "System number greater than the number of nonlinear systems");
9930 return *_nl[sys_num];
9931}

◆ systemBaseNonlinear() [2/2]

SystemBase & FEProblemBase::systemBaseNonlinear ( const unsigned int  sys_num)
overridevirtualinherited

Implements SubProblem.

Definition at line 9934 of file FEProblemBase.C.

9935{
9936 mooseAssert(sys_num < _nl.size(), "System number greater than the number of nonlinear systems");
9937 return *_nl[sys_num];
9938}

◆ systemBaseSolver() [1/2]

const SystemBase & FEProblemBase::systemBaseSolver ( const unsigned int  sys_num) const
overridevirtualinherited

Return the solver system object as a base class reference given the system number.

Implements SubProblem.

Definition at line 9957 of file FEProblemBase.C.

9958{
9959 mooseAssert(sys_num < _solver_systems.size(),
9960 "System number greater than the number of solver systems");
9961 return *_solver_systems[sys_num];
9962}

◆ systemBaseSolver() [2/2]

SystemBase & FEProblemBase::systemBaseSolver ( const unsigned int  sys_num)
overridevirtualinherited

Implements SubProblem.

Definition at line 9965 of file FEProblemBase.C.

9966{
9967 mooseAssert(sys_num < _solver_systems.size(),
9968 "System number greater than the number of solver systems");
9969 return *_solver_systems[sys_num];
9970}

◆ systemNumForVariable()

unsigned int FEProblemBase::systemNumForVariable ( const VariableName &  variable_name) const
inherited
Returns
the system number for the provided variable_name Can be nonlinear or auxiliary

Definition at line 7204 of file FEProblemBase.C.

7205{
7206 for (const auto & solver_sys : _solver_systems)
7207 if (solver_sys->hasVariable(variable_name))
7208 return solver_sys->number();
7209 mooseAssert(_aux, "Should have an auxiliary system");
7210 if (_aux->hasVariable(variable_name))
7211 return _aux->number();
7212
7213 mooseError("Variable '",
7214 variable_name,
7215 "' was not found in any solver (nonlinear/linear) or auxiliary system");
7216}

Referenced by FEProblemBase::projectFunctionOnCustomRange(), and ElementSubdomainModifierBase::restoreOverriddenDofValues().

◆ terminateSolve()

virtual void Problem::terminateSolve ( )
inlinevirtualinherited

Allow objects to request clean termination of the solve.

Definition at line 37 of file Problem.h.

37{ _termination_requested = true; };

Referenced by Terminator::execute(), WebServerControl::execute(), and TerminateChainControl::terminate().

◆ theWarehouse()

TheWarehouse & FEProblemBase::theWarehouse ( ) const
inlineinherited

Definition at line 2655 of file FEProblemBase.h.

2655{ return _app.theWarehouse(); }
TheWarehouse & theWarehouse()
Definition MooseApp.h:143

Referenced by NonlinearSystemBase::addBoundaryCondition(), NonlinearSystemBase::addDGKernel(), NonlinearSystemBase::addDiracKernel(), FEProblemBase::addFVGradientMethod(), FEProblemBase::addFVInterpolationMethod(), NonlinearSystemBase::addHDGKernel(), NonlinearSystemBase::addInterfaceKernel(), NonlinearSystemBase::addKernel(), NonlinearSystemBase::addNodalKernel(), FEProblemBase::addObject(), NonlinearSystemBase::addScalarKernel(), NonlinearSystemBase::addSplit(), FEProblemBase::addUserObject(), NonlinearSystemBase::checkKernelCoverage(), FEProblemBase::checkUserObjectJacobianRequirement(), FEProblemBase::checkUserObjects(), ComputeResidualAndJacobianThread::compute(), NonlinearSystemBase::computeJacobianInternal(), NonlinearSystemBase::computeResidualAndJacobianInternal(), NonlinearSystemBase::computeResidualInternal(), LinearSystem::containsTimeKernel(), FEProblemBase::customSetup(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeResidualThread::determineObjectWarehouses(), MFEMProblem::executeMFEMObjects(), FEProblemBase::executeSamplers(), ComputeLinearFVElementalThread::fetchBlockSystemContributionObjects(), ComputeLinearFVFaceThread::fetchBlockSystemContributionObjects(), FEProblemBase::getDistribution(), FEProblemBase::getFVGradientMethod(), FEProblemBase::getFVInterpolationMethod(), NonlinearSystemBase::getFVSetupObjects(), FEProblemBase::getKokkosUserObject(), MFEMProblem::getMFEMObject(), FEProblemBase::getMortarUserObjects(), FEProblemBase::getPositionsObject(), FEProblemBase::getPostprocessorObjectByName(), FEProblemBase::getSampler(), CompositionDT::getTimeSteppers(), FEProblemBase::getUOQuery(), FEProblemBase::getUserObject(), FEProblemBase::getUserObjectBase(), FEProblemBase::getVectorPostprocessorObjectByName(), FEProblemBase::hasDistribution(), FEProblemBase::hasFVGradientMethod(), FEProblemBase::hasFVInterpolationMethod(), MFEMProblem::hasMFEMObject(), FEProblemBase::hasUserObject(), VectorPostprocessorInterface::hasVectorPostprocessorByName(), MFEMProblem::initialSetup(), BoundaryLinearFVFluxIntegral::initialSetup(), SideFVFluxBCIntegral::initialSetup(), LinearSystem::initialSetup(), ExplicitTimeIntegrator::initialSetup(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), FEProblemBase::needBoundaryMaterialOnSide(), FEProblemBase::needInterfaceMaterialOnSide(), FEProblemBase::needInternalNeighborSideMaterial(), JSONOutput::outputReporters(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), BlockRestrictionDebugOutput::printBoundaryRestrictionGroups(), ComputeLinearFVElementalThread::setupSystemContributionObjects(), ComputeLinearFVFaceThread::setupSystemContributionObjects(), and FEProblemBase::timestepSetup().

◆ time()

virtual Real & FEProblemBase::time ( ) const
inlinevirtualinherited

◆ timedSectionName()

std::string PerfGraphInterface::timedSectionName ( const std::string &  section_name) const
protectedinherited
Returns
The name of the timed section with the name section_name.

Optionally adds a prefix if one is defined.

Definition at line 55 of file PerfGraphInterface.C.

56{
57 return _prefix.empty() ? "" : (_prefix + "::") + section_name;
58}
const std::string _prefix
A prefix to use for all sections.

Referenced by PerfGraphInterface::registerTimedSection(), and PerfGraphInterface::registerTimedSection().

◆ timeOld()

virtual Real & FEProblemBase::timeOld ( ) const
inlinevirtualinherited

◆ timeOlder()

virtual Real & FEProblemBase::timeOlder ( ) const
inlinevirtualinherited

The time two steps back.

The solution keeps this state, so a multi-step integrator can ask for it, and a functor evaluated alongside that solution has to be able to ask for the time it belongs to. Only meaningful once two steps have been taken; before that it holds the start time, which is what timeOld() does at the first step too.

Definition at line 582 of file FEProblemBase.h.

582{ return _time_older; }

Referenced by FEProblemBase::getTimeFromStateArg().

◆ timeStep()

virtual int & FEProblemBase::timeStep ( ) const
inlinevirtualinherited

◆ timestepSetup()

virtual void DumpObjectsProblem::timestepSetup ( )
inlineoverridevirtual

Reimplemented from SubProblem.

Definition at line 63 of file DumpObjectsProblem.h.

63{}

◆ transient()

virtual void FEProblemBase::transient ( bool  trans)
inlinevirtualinherited

Definition at line 591 of file FEProblemBase.h.

591{ _transient = trans; }

Referenced by EigenExecutionerBase::EigenExecutionerBase(), and TransientBase::TransientBase().

◆ trustUserCouplingMatrix()

void FEProblemBase::trustUserCouplingMatrix ( )
inherited

Whether to trust the user coupling matrix even if we want to do things like be paranoid and create a full coupling matrix.

See https://github.com/idaholab/moose/issues/16395 for detailed background

Definition at line 6932 of file FEProblemBase.C.

6933{
6935 mooseError("Someone told us (the FEProblemBase) to trust the user coupling matrix, but we "
6936 "haven't been provided a coupling matrix!");
6937
6939}

Referenced by SingleMatrixPreconditioner::SingleMatrixPreconditioner().

◆ type()

const std::string & MooseBase::type ( ) const
inlineinherited

Get the type of this class.

Returns
the name of the type of this class

Definition at line 93 of file MooseBase.h.

94 {
95 mooseAssert(_type.size(), "Empty type");
96 return _type;
97 }

Referenced by CreateProblemDefaultAction::act(), MaterialDerivativeTestAction::act(), MaterialOutputAction::act(), SetupDebugAction::act(), FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addConvergence(), FEProblemBase::addDistribution(), DistributedRectilinearMeshGenerator::addElement(), DistributedRectilinearMeshGenerator::addElement(), MooseApp::addExecutor(), MooseApp::addExecutorParams(), MFEMProblem::addFESpace(), MFEMProblem::addFESpaceHierarchy(), FEProblemBase::addFunction(), MFEMProblem::addFunction(), FEProblemBase::addMeshDivision(), MooseApp::addMeshGenerator(), MeshGenerator::addMeshSubgenerator(), MeshGenerator::addMeshSubgenerator(), MFEMProblem::addMFEMProblemComposer(), FEProblemBase::addObject(), DistributedRectilinearMeshGenerator::addPoint(), MFEMProblem::addPostprocessor(), FEProblemBase::addPredictor(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), FEProblemBase::addReporter(), FEProblemBase::addSampler(), WebServerControl::addServerActionsInternal(), FEProblemBase::addTimeIntegrator(), MFEMProblem::addVectorPostprocessor(), SubProblem::addVectorTag(), DisplacedProblem::addVectorTag(), FEProblemBase::advanceMultiApps(), MooseApp::appendMeshGenerator(), AuxKernelBase::AuxKernelBase(), FEProblemBase::backupMultiApps(), BatchMeshGeneratorAction::BatchMeshGeneratorAction(), BoundaryPreservedMarker::BoundaryPreservedMarker(), DistributedRectilinearMeshGenerator::buildCube(), MooseMesh::buildHRefinementAndCoarseningMaps(), MooseMesh::buildLowerDMesh(), MooseMesh::buildPRefinementAndCoarseningMaps(), PhysicsBase::checkComponentType(), MeshGenerator::checkGetMesh(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), ActionComponent::checkRequiredTasks(), PhysicsBase::checkRequiredTasks(), FEProblemBase::checkUserObjectNameCollision(), MFEMMultiAppTransfer::checkValidTransferProblemTypes(), MeshInfo::CombinedInfos< ElemInfoMap, ElemInfoItems >::CombinedInfos(), ElemElemConstraint::computeElemNeighJacobian(), ArrayDGKernel::computeElemNeighJacobian(), DGKernel::computeElemNeighJacobian(), ADDGKernel::computeElemNeighJacobian(), ElemElemConstraint::computeElemNeighResidual(), ArrayDGKernel::computeElemNeighResidual(), DGKernel::computeElemNeighResidual(), ADDGKernel::computeElemNeighResidual(), ArrayDGLowerDKernel::computeLowerDJacobian(), DGLowerDKernel::computeLowerDJacobian(), ArrayLowerDIntegratedBC::computeLowerDJacobian(), LowerDIntegratedBC::computeLowerDJacobian(), ArrayLowerDIntegratedBC::computeLowerDOffDiagJacobian(), LowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayHFEMDirichletBC::computeLowerDQpJacobian(), HFEMDirichletBC::computeLowerDQpJacobian(), ArrayHFEMDiffusion::computeLowerDQpJacobian(), HFEMDiffusion::computeLowerDQpJacobian(), ArrayLowerDIntegratedBC::computeLowerDQpOffDiagJacobian(), ArrayDGLowerDKernel::computeLowerDQpOffDiagJacobian(), ArrayHFEMDirichletBC::computeLowerDQpOffDiagJacobian(), HFEMDirichletBC::computeLowerDQpOffDiagJacobian(), FEProblemBase::computeMultiAppsDT(), ArrayDGKernel::computeOffDiagElemNeighJacobian(), DGKernel::computeOffDiagElemNeighJacobian(), ADDGKernel::computeOffDiagElemNeighJacobian(), ArrayDGLowerDKernel::computeOffDiagLowerDJacobian(), DGLowerDKernel::computeOffDiagLowerDJacobian(), ScalarKernel::computeQpJacobian(), CoupledTiedValueConstraint::computeQpJacobian(), EqualValueBoundaryConstraint::computeQpJacobian(), LinearNodalConstraint::computeQpJacobian(), TiedValueConstraint::computeQpJacobian(), DGConvection::computeQpJacobian(), ArrayDGDiffusion::computeQpJacobian(), DGDiffusion::computeQpJacobian(), InterfaceDiffusion::computeQpJacobian(), InterfaceReaction::computeQpJacobian(), CoupledTiedValueConstraint::computeQpOffDiagJacobian(), ArrayDGKernel::computeQpOffDiagJacobian(), HFEMTestJump::computeQpOffDiagJacobian(), HFEMTrialJump::computeQpOffDiagJacobian(), ScalarKernel::computeQpResidual(), CoupledTiedValueConstraint::computeQpResidual(), EqualValueBoundaryConstraint::computeQpResidual(), LinearNodalConstraint::computeQpResidual(), TiedValueConstraint::computeQpResidual(), DGConvection::computeQpResidual(), ADDGAdvection::computeQpResidual(), ADDGDiffusion::computeQpResidual(), DGDiffusion::computeQpResidual(), HFEMDiffusion::computeQpResidual(), HFEMTestJump::computeQpResidual(), HFEMTrialJump::computeQpResidual(), ADMatInterfaceReaction::computeQpResidual(), InterfaceDiffusion::computeQpResidual(), InterfaceReaction::computeQpResidual(), ArrayDGDiffusion::computeQpResidual(), ArrayHFEMDiffusion::computeQpResidual(), FEProblemBase::computeSystems(), FEProblemBase::computeUserObjectByName(), FEProblemBase::computeUserObjects(), FEProblemBase::computeUserObjectsInternal(), FEProblemBase::createQRules(), DisplacedProblem::createQRules(), MooseApp::createRecoverablePerfGraph(), MoveBoundaryNodesToCurveGenerator::curveGenerator(), MeshGenerator::declareMeshProperty(), deduceNecessaryParameters(), dumpObjectHelper(), FEProblemBase::duplicateVariableCheck(), FEProblemBase::execMultiAppTransfers(), SteadyBase::execute(), WebServerControl::execute(), ActionWarehouse::executeActionsWithAction(), FEProblemBase::finishMultiAppStep(), FVScalarLagrangeMultiplierInterface::FVScalarLagrangeMultiplierInterface(), Boundary2DDelaunayGenerator::General2DDelaunay(), SurfaceSubdomainsDelaunayRemesher::General2DDelaunay(), Boundary2DDelaunayGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), SubdomainPerElementGenerator::generate(), PatternedMeshGenerator::generate(), MeshGenerator::generateInternal(), MeshGenerator::generateInternalCSG(), MultiAppTransfer::getAppInfo(), TransfiniteMeshGenerator::getEdge(), ElementGenerator::getElemType(), FEProblemBase::getMaterial(), FEProblemBase::getMaterialData(), FEProblemBase::getMaterialPropertyStorageConsumers(), MaterialOutputAction::getParams(), ReporterData::getReporterInfo(), MooseServer::getSyntaxMetadata(), FEProblemBase::getTransfers(), FEProblemBase::getUOQuery(), SubProblem::getVectorTags(), DisplacedProblem::getVectorTags(), EqualValueBoundaryConstraint::ghostPrimary(), CommonOutputAction::hasConsole(), FEProblemBase::hasMultiApps(), AdvancedOutput::hasOutput(), FEProblemBase::incrementMultiAppTStep(), NEML2Action::inferMOOSEIOType(), AdvancedOutput::initAvailableLists(), FunctorPositions::initialize(), FunctorTimes::initialize(), LinearFVAdvection::initialSetup(), LinearFVAnisotropicDiffusion::initialSetup(), LinearFVDiffusion::initialSetup(), MultiAppConservativeTransfer::initialSetup(), ArrayDGDiffusion::initQpResidual(), AdvancedOutput::initShowHideLists(), RelationshipManager::isType(), FEProblemBase::logAdd(), MaterialFunctorConverterTempl< T >::MaterialFunctorConverterTempl(), MooseObject::MooseObject(), SubProblem::numVectorTags(), DisplacedProblem::numVectorTags(), AdvancedOutput::output(), Console::output(), ConsoleUtils::outputExecutionInformation(), Output::outputStep(), SampledOutput::outputStep(), FEProblemBase::outputStep(), MooseServer::parseDocumentForDiagnostics(), PointInUnionCheckUO::PointInUnionCheckUO(), MooseMesh::prepare(), MFEMFunctorMaterial::processLiterals(), ProjectedStatefulMaterialStorageAction::processProperty(), MooseApp::recursivelyCreateExecutors(), SolutionInvalidInterface::registerInvalidSolutionInternal(), FEProblemBase::restoreMultiApps(), MeshRepairGenerator::separateSubdomainsByElementType(), FEProblemBase::setCoupling(), MooseApp::setupOptions(), ExplicitRK2::solve(), ExplicitTVDRK2::solve(), Reporter::store(), MooseBase::typeAndName(), AuxScalarKernel::uOld(), ScalarKernelBase::uOld(), DisplacedProblem::updateGeomSearch(), FEProblemBase::updateGeomSearch(), UserObjectInterface::userObjectType(), and AdvancedOutput::wantOutput().

◆ typeAndName()

std::string MooseBase::typeAndName ( ) const
inherited

Get the class's combined type and name; useful in error handling.

Returns
The type and name of this class in the form '<type()> "<name()>"'.

Definition at line 57 of file MooseBase.C.

58{
59 return type() + std::string(" \"") + name() + std::string("\"");
60}

Referenced by MaterialPropertyStorage::addProperty(), FEProblemBase::checkUserObjectNameCollision(), MeshGeneratorSystem::dataDrivenError(), ReporterContext< T >::finalize(), ReporterData::getReporterInfo(), MFEMSamplerBase::initialSetup(), MFEMVariableSamplerBase::initialSetup(), WebServerControl::outputMessage(), and Action::timedAct().

◆ uDotDotOldRequested()

virtual bool FEProblemBase::uDotDotOldRequested ( )
inlinevirtualinherited

Get boolean flag to check whether old solution second time derivative needs to be stored.

Definition at line 2731 of file FEProblemBase.h.

2732 {
2734 mooseError("FEProblemBase: When requesting old second time derivative of solution, current "
2735 "second time derivation of solution should also be stored. Please set "
2736 "`u_dotdot_requested` to true using setUDotDotRequested.");
2738 }

Referenced by SystemBase::addDotVectors().

◆ uDotDotRequested()

virtual bool FEProblemBase::uDotDotRequested ( )
inlinevirtualinherited

Get boolean flag to check whether solution second time derivative needs to be stored.

Definition at line 2717 of file FEProblemBase.h.

2717{ return _u_dotdot_requested; }

Referenced by SystemBase::addDotVectors(), and FEProblemBase::addTimeIntegrator().

◆ uDotOldRequested()

virtual bool FEProblemBase::uDotOldRequested ( )
inlinevirtualinherited

Get boolean flag to check whether old solution time derivative needs to be stored.

Definition at line 2720 of file FEProblemBase.h.

2721 {
2723 mooseError("FEProblemBase: When requesting old time derivative of solution, current time "
2724 "derivative of solution should also be stored. Please set `u_dot_requested` to "
2725 "true using setUDotRequested.");
2726
2727 return _u_dot_old_requested;
2728 }

Referenced by SystemBase::addDotVectors().

◆ uDotRequested()

virtual bool FEProblemBase::uDotRequested ( )
inlinevirtualinherited

Get boolean flag to check whether solution time derivative needs to be stored.

Definition at line 2714 of file FEProblemBase.h.

2714{ return _u_dot_requested; }

Referenced by SystemBase::addDotVectors().

◆ uniformRefine()

void FEProblemBase::uniformRefine ( )
inherited

uniformly refine the problem mesh(es).

This will also prolong the the solution, and in order for that to be safe, we can only perform one refinement at a time

Definition at line 10003 of file FEProblemBase.C.

10004{
10005 // ResetDisplacedMeshThread::onNode looks up the reference mesh by ID, so we need to make sure
10006 // we undisplace before adapting the reference mesh
10008 _displaced_problem->undisplaceMesh();
10009
10013
10015 /*intermediate_change=*/false, /*contract_mesh=*/true, /*clean_refinement_flags=*/true);
10016}
static void uniformRefine(MooseMesh *mesh, unsigned int level=libMesh::invalid_uint)
Performs uniform refinement of the passed Mesh object.
Definition Adaptivity.C:301

Referenced by FEProblemSolve::solve().

◆ uniqueName()

MooseObjectName MooseBase::uniqueName ( ) const
inherited
Returns
The unique name for accessing input parameters of this object in the InputParameterWarehouse

Definition at line 69 of file MooseBase.C.

70{
71 if (!_pars.have_parameter<std::string>(unique_name_param))
72 mooseError("uniqueName(): Object does not have a unique name");
73 return MooseObjectName(_pars.get<std::string>(unique_name_param));
74}
static const std::string unique_name_param
The name of the parameter that contains the unique object name.
Definition MooseBase.h:57

Referenced by MooseBase::connectControllableParams(), and Action::uniqueActionName().

◆ uniqueParameterName()

MooseObjectParameterName MooseBase::uniqueParameterName ( const std::string &  parameter_name) const
inherited
Returns
The unique parameter name of a valid parameter of this object for accessing parameter controls

Definition at line 63 of file MooseBase.C.

64{
65 return MooseObjectParameterName(getBase(), name(), parameter_name);
66}
const std::string & getBase() const
Definition MooseBase.h:147

◆ updateActiveObjects()

virtual void DumpObjectsProblem::updateActiveObjects ( )
inlineoverridevirtual

Update the active objects in the warehouses.

Reimplemented from FEProblemBase.

Definition at line 66 of file DumpObjectsProblem.h.

66{}

◆ updateGeomSearch()

void FEProblemBase::updateGeomSearch ( GeometricSearchData::GeometricSearchType  type = GeometricSearchData::ALL)
overridevirtualinherited

Update this object's geometric search data as well as the displaced problem's if it exists.

Implements SubProblem.

Definition at line 8704 of file FEProblemBase.C.

8705{
8706 TIME_SECTION("updateGeometricSearch", 3, "Updating Geometric Search");
8707
8709
8711 _displaced_problem->updateGeomSearch(type);
8712}
void update(GeometricSearchType type=ALL)
Update all of the search objects.

Referenced by NonlinearSystemBase::augmentSparsity().

◆ updateMaxQps()

void FEProblemBase::updateMaxQps ( )
privateinherited

Definition at line 6800 of file FEProblemBase.C.

6801{
6802 // Find the maximum number of quadrature points
6803 {
6804 MaxQpsThread mqt(*this);
6806 _max_qps = mqt.max();
6807
6808 // If we have more shape functions or more quadrature points on
6809 // another processor, then we may need to handle those elements
6810 // ourselves later after repartitioning.
6812 }
6813
6814 unsigned int max_qpts = getMaxQps();
6815 if (max_qpts > Moose::constMaxQpsPerElem)
6816 mooseError("Max quadrature points per element assumptions made in some code (e.g. Coupleable ",
6817 "and MaterialPropertyInterface classes) have been violated.\n",
6818 "Complain to Moose developers to have constMaxQpsPerElem increased from ",
6820 " to ",
6821 max_qpts);
6822 for (unsigned int tid = 0; tid < libMesh::n_threads(); ++tid)
6823 {
6824 // the highest available order in libMesh is 43
6825 _scalar_zero[tid].resize(libMesh::FORTYTHIRD, 0);
6826 _zero[tid].resize(max_qpts, 0);
6827 _ad_zero[tid].resize(max_qpts, 0);
6828 _grad_zero[tid].resize(max_qpts, RealGradient(0.));
6829 _ad_grad_zero[tid].resize(max_qpts, ADRealGradient(0));
6830 _second_zero[tid].resize(max_qpts, RealTensor(0.));
6831 _ad_second_zero[tid].resize(max_qpts, ADRealTensorValue(0));
6832 _vector_zero[tid].resize(max_qpts, RealGradient(0.));
6833 _vector_curl_zero[tid].resize(max_qpts, RealGradient(0.));
6834 }
6835}
libMesh::TensorValue< ADReal > ADRealTensorValue
Definition MooseTypes.h:414
ADRealVectorValue ADRealGradient
Definition MooseTypes.h:412
std::vector< MooseArray< ADRealVectorValue > > _ad_grad_zero
std::vector< MooseArray< ADRealTensorValue > > _ad_second_zero
std::vector< MooseArray< ADReal > > _ad_zero
This class determines the maximum number of Quadrature Points and Shape Functions used for a given si...
constexpr std::size_t constMaxQpsPerElem
This is used for places where we initialize some qp-sized data structures that would end up being siz...
Definition MooseTypes.h:258

Referenced by FEProblemBase::bumpAllQRuleOrder(), FEProblemBase::bumpVolumeQRuleOrder(), and FEProblemBase::createQRules().

◆ updateMeshXFEM()

bool FEProblemBase::updateMeshXFEM ( )
virtualinherited

Update the mesh due to changing XFEM cuts.

Definition at line 8986 of file FEProblemBase.C.

8987{
8988 TIME_SECTION("updateMeshXFEM", 5, "Updating XFEM");
8989
8990 bool updated = false;
8991 if (haveXFEM())
8992 {
8993 if (_xfem->updateHeal())
8994 // XFEM exodiff tests rely on a given numbering because they cannot use map = true due to
8995 // having coincident elements. While conceptually speaking we do not need to contract the
8996 // mesh, we need its call to renumber_nodes_and_elements in order to preserve these tests
8998 /*intermediate_change=*/false, /*contract_mesh=*/true, /*clean_refinement_flags=*/false);
8999
9000 updated = _xfem->update(_time, _nl, *_aux);
9001 if (updated)
9002 {
9004 /*intermediate_change=*/false, /*contract_mesh=*/true, /*clean_refinement_flags=*/false);
9005 _xfem->initSolution(_nl, *_aux);
9007 _console << "\nXFEM update complete: Mesh modified" << std::endl;
9008 }
9009 else
9010 _console << "\nXFEM update complete: Mesh not modified" << std::endl;
9011 }
9012 return updated;
9013}
bool haveXFEM()
Find out whether the current analysis is using XFEM.
virtual void restoreSolutions()

Referenced by FixedPointSolve::solveStep().

◆ updateMortarMesh()

void FEProblemBase::updateMortarMesh ( )
virtualinherited

Definition at line 8715 of file FEProblemBase.C.

8716{
8717 TIME_SECTION("updateMortarMesh", 5, "Updating Mortar Mesh");
8718
8720
8721 // If any mortar interface's coverage changed, the DoF ghosting and sparsity that
8722 // AugmentSparsityOnInterface computed from the previous coverage are stale (see
8723 // reinitBecauseOfGhostingOrNewGeomObjects()'s mortar_changed parameter); refresh them now rather
8724 // than leaving that to the caller, since this may be called mid-solve where no other reinit
8725 // follows. Guard on _initialized: this is also called from init() itself, before es().init() has
8726 // run for the first time, and reinit()ing an EquationSystems that has never been init()ed is not
8727 // meaningful (init() immediately after will pick up whatever _mortar_data->update() just built).
8728 if (_mortar_data->update() && _initialized && !currentlyComputingResidual() &&
8730 reinitBecauseOfGhostingOrNewGeomObjects(/*mortar_changed=*/true);
8731}
const bool & currentlyComputingResidual() const
Returns true if the problem is in the process of computing the residual.
Definition SubProblem.h:728

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), and FEProblemBase::init().

◆ updateSolution()

bool FEProblemBase::updateSolution ( NumericVector< libMesh::Number > &  vec_solution,
NumericVector< libMesh::Number > &  ghosted_solution 
)
virtualinherited

Update the solution.

Parameters
vec_solutionLocal solution vector that gets modified by this method
ghosted_solutionGhosted solution vector
Returns
true if the solution was modified, false otherwise

Definition at line 8683 of file FEProblemBase.C.

8685{
8686 return false;
8687}

Referenced by FEProblemBase::computePostCheck().

◆ useHashTableMatrixAssembly()

bool FEProblemBase::useHashTableMatrixAssembly ( ) const
inlineinherited

Definition at line 3065 of file FEProblemBase.h.

const bool _use_hash_table_matrix_assembly
Whether to assemble matrices using hash tables instead of preallocating matrix memory.

Referenced by NonlinearSystemBase::addConstraint().

◆ useSNESMFReuseBase()

bool FEProblemBase::useSNESMFReuseBase ( )
inlineinherited

Return a flag that indicates if we are reusing the vector base.

Definition at line 2668 of file FEProblemBase.h.

2668{ return _snesmf_reuse_base; }

Referenced by NonlinearSystem::potentiallySetupFiniteDifferencing().

◆ validParams()

InputParameters DumpObjectsProblem::validParams ( )
static

Definition at line 27 of file DumpObjectsProblem.C.

28{
30 params.addClassDescription("Single purpose problem object that does not run the given input but "
31 "allows deconstructing actions into their series of underlying Moose "
32 "objects and variables.");
33 params.addParam<std::string>(
34 "dump_path", "all", "Syntax path of the action of which to dump the generated syntax");
35 params.addParam<bool>(
36 "include_all_user_specified_params",
37 true,
38 "Whether to include all parameters that have been specified by a user in the dump, even if "
39 "they match the default value of the parameter in the Factory");
40
41 // Change the default because any complex solve or executioners needs the problem to perform its
42 // setup duties (all the calls in initialSetup()) which are skipped by the DumpObjectsProblem
43 params.addParam<bool>(
44 "solve",
45 false,
46 "Whether to attempt to solve the Problem. This will only cause additional outputs of the "
47 "objects and their parameters. This is unlikely to succeed with more complex executioners.");
48 return params;
49}
static InputParameters validParams()
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.

◆ vectorTagExists() [1/2]

virtual bool SubProblem::vectorTagExists ( const TagID  tag_id) const
inlinevirtualinherited

◆ vectorTagExists() [2/2]

bool SubProblem::vectorTagExists ( const TagName &  tag_name) const
virtualinherited

Check to see if a particular Tag exists by using Tag name.

Reimplemented in DisplacedProblem.

Definition at line 125 of file SubProblem.C.

126{
127 mooseAssert(verifyVectorTags(), "Vector tag storage invalid");
128
129 const auto tag_name_upper = MooseUtils::toUpper(tag_name);
130 for (const auto & vector_tag : _vector_tags)
131 if (vector_tag._name == tag_name_upper)
132 return true;
133
134 return false;
135}

◆ vectorTagName()

TagName SubProblem::vectorTagName ( const TagID  tag) const
virtualinherited

Retrieve the name associated with a TagID.

Reimplemented in DisplacedProblem.

Definition at line 210 of file SubProblem.C.

211{
212 mooseAssert(verifyVectorTags(), "Vector tag storage invalid");
213 if (!vectorTagExists(tag_id))
214 mooseError("Vector tag with ID ", tag_id, " does not exist");
215
216 return _vector_tags[tag_id]._name;
217}

Referenced by SystemBase::addVector(), SystemBase::closeTaggedVector(), NonlinearSystemBase::getResidualNonTimeVector(), NonlinearSystemBase::getResidualTimeVector(), SystemBase::removeVector(), NonlinearSystemBase::residualGhosted(), DisplacedProblem::vectorTagName(), and SystemBase::zeroTaggedVector().

◆ vectorTagNotZeroed()

bool SubProblem::vectorTagNotZeroed ( const TagID  tag) const
inherited

Checks if a vector tag is in the list of vectors that will not be zeroed when other tagged vectors are.

Parameters
tagthe TagID of the vector that is currently being checked
Returns
false if the tag is not within the set of vectors that are intended to not be zero or if the set is empty. returns true otherwise

Definition at line 144 of file SubProblem.C.

145{
146 return _not_zeroed_tagged_vectors.count(tag);
147}

Referenced by SystemBase::zeroTaggedVector().

◆ vectorTagType()

Moose::VectorTagType SubProblem::vectorTagType ( const TagID  tag_id) const
virtualinherited

Reimplemented in DisplacedProblem.

Definition at line 220 of file SubProblem.C.

221{
222 mooseAssert(verifyVectorTags(), "Vector tag storage invalid");
223 if (!vectorTagExists(tag_id))
224 mooseError("Vector tag with ID ", tag_id, " does not exist");
225
226 return _vector_tags[tag_id]._type;
227}

Referenced by MooseVariableScalar::reinit(), TaggingInterface::TaggingInterface(), TagVectorAux::TagVectorAux(), and DisplacedProblem::vectorTagType().

◆ verboseMultiApps()

bool FEProblemBase::verboseMultiApps ( ) const
inlineinherited

Whether or not to use verbose printing for MultiApps.

Definition at line 2315 of file FEProblemBase.h.

2315{ return _verbose_multiapps; }

Referenced by MultiApp::backup(), MultiApp::createApp(), MultiApp::restore(), FullSolveMultiApp::showStatusMessage(), and TransientMultiApp::solveStep().

◆ verifyVectorTags()

bool SubProblem::verifyVectorTags ( ) const
protectedinherited

Verify the integrity of _vector_tags and _typed_vector_tags.

Definition at line 230 of file SubProblem.C.

231{
232 for (TagID tag_id = 0; tag_id < _vector_tags.size(); ++tag_id)
233 {
234 const auto & vector_tag = _vector_tags[tag_id];
235
236 if (vector_tag._id != tag_id)
237 mooseError("Vector tag ", vector_tag._id, " id mismatch in _vector_tags");
238 if (vector_tag._type == Moose::VECTOR_TAG_ANY)
239 mooseError("Vector tag '", vector_tag._name, "' has type VECTOR_TAG_ANY");
240
241 const auto search = _vector_tags_name_map.find(vector_tag._name);
242 if (search == _vector_tags_name_map.end())
243 mooseError("Vector tag ", vector_tag._id, " is not in _vector_tags_name_map");
244 else if (search->second != tag_id)
245 mooseError("Vector tag ", vector_tag._id, " has incorrect id in _vector_tags_name_map");
246
247 unsigned int found_in_type = 0;
248 for (TagTypeID tag_type_id = 0; tag_type_id < _typed_vector_tags[vector_tag._type].size();
249 ++tag_type_id)
250 {
251 const auto & vector_tag_type = _typed_vector_tags[vector_tag._type][tag_type_id];
252 if (vector_tag_type == vector_tag)
253 {
254 ++found_in_type;
255 if (vector_tag_type._type_id != tag_type_id)
256 mooseError("Type ID for Vector tag ", tag_id, " is incorrect");
257 }
258 }
259
260 if (found_in_type == 0)
261 mooseError("Vector tag ", tag_id, " not found in _typed_vector_tags");
262 if (found_in_type > 1)
263 mooseError("Vector tag ", tag_id, " found multiple times in _typed_vector_tags");
264 }
265
266 unsigned int num_typed_vector_tags = 0;
267 for (const auto & typed_vector_tags : _typed_vector_tags)
268 num_typed_vector_tags += typed_vector_tags.size();
269 if (num_typed_vector_tags != _vector_tags.size())
270 mooseError("Size mismatch between _vector_tags and _typed_vector_tags");
271 if (_vector_tags_name_map.size() != _vector_tags.size())
272 mooseError("Size mismatch between _vector_tags and _vector_tags_name_map");
273
274 return true;
275}

Referenced by SubProblem::addVectorTag(), SubProblem::getVectorTag(), SubProblem::getVectorTagID(), SubProblem::getVectorTags(), SubProblem::getVectorTags(), SubProblem::numVectorTags(), SubProblem::vectorTagExists(), SubProblem::vectorTagName(), and SubProblem::vectorTagType().

Member Data Documentation

◆ _action_factory

ActionFactory& ParallelParamObject::_action_factory
protectedinherited

◆ _active_elemental_moose_variables

std::vector<std::set<MooseVariableFieldBase *> > SubProblem::_active_elemental_moose_variables
protectedinherited

This is the set of MooseVariableFieldBase that will actually get reinited by a call to reinit(elem)

Definition at line 1079 of file SubProblem.h.

Referenced by SubProblem::clearActiveElementalMooseVariables(), SubProblem::getActiveElementalMooseVariables(), SubProblem::setActiveElementalMooseVariables(), and SubProblem::SubProblem().

◆ _active_fe_var_coupleable_matrix_tags

std::vector<std::set<TagID> > SubProblem::_active_fe_var_coupleable_matrix_tags
protectedinherited

◆ _active_fe_var_coupleable_vector_tags

std::vector<std::set<TagID> > SubProblem::_active_fe_var_coupleable_vector_tags
protectedinherited

◆ _active_sc_var_coupleable_matrix_tags

std::vector<std::set<TagID> > SubProblem::_active_sc_var_coupleable_matrix_tags
protectedinherited

◆ _active_sc_var_coupleable_vector_tags

std::vector<std::set<TagID> > SubProblem::_active_sc_var_coupleable_vector_tags
protectedinherited

◆ _ad_grad_zero

std::vector<MooseArray<ADRealVectorValue> > FEProblemBase::_ad_grad_zero
inherited

◆ _ad_second_zero

std::vector<MooseArray<ADRealTensorValue> > FEProblemBase::_ad_second_zero
inherited

◆ _ad_zero

std::vector<MooseArray<ADReal> > FEProblemBase::_ad_zero
inherited

◆ _adaptivity

Adaptivity FEProblemBase::_adaptivity
protectedinherited

◆ _all_materials

MaterialWarehouse FEProblemBase::_all_materials
protectedinherited

◆ _allow_ics_during_restart

const bool FEProblemBase::_allow_ics_during_restart
privateinherited

Definition at line 3667 of file FEProblemBase.h.

Referenced by FEProblemBase::checkICRestartError().

◆ _allow_invalid_solution

const bool FEProblemBase::_allow_invalid_solution
privateinherited

Definition at line 3670 of file FEProblemBase.h.

Referenced by FEProblemBase::allowInvalidSolution().

◆ _app

MooseApp& MooseBase::_app
protectedinherited

The MOOSE application this is associated with.

Definition at line 375 of file MooseBase.h.

Referenced by AB2PredictorCorrector::AB2PredictorCorrector(), FEProblemBase::acceptInvalidSolution(), FEProblemBase::addAnyRedistributers(), MeshGenerator::addChildMeshGenerator(), FEProblemBase::addMaterialHelper(), MeshGenerator::addMeshSubgenerator(), MeshGenerator::addMeshSubgenerator(), FEProblemBase::addOutput(), MeshGenerator::addParentMeshGenerator(), FEProblemBase::allowOutput(), AStableDirk4::AStableDirk4(), FileMesh::buildMesh(), MooseMesh::buildTypedMesh(), MooseMesh::cacheFaceInfoVariableOwnership(), MooseMesh::cacheFVElementalDoFs(), DefaultNonlinearConvergence::checkConvergence(), MeshGenerator::checkGetMesh(), FEProblemBase::checkICRestartError(), FEProblemBase::checkProblemIntegrity(), LibmeshPartitioner::clone(), BlockWeightedPartitioner::clone(), CopyMeshPartitioner::clone(), GridPartitioner::clone(), HierarchicalGridPartitioner::clone(), PetscExternalPartitioner::clone(), RandomPartitioner::clone(), SingleRankPartitioner::clone(), ElementPointNeighborLayers::clone(), ElementSideNeighborLayers::clone(), GhostAllPointNeighbors::clone(), GhostBoundary::clone(), GhostEverything::clone(), GhostHigherDLowerDPointNeighbors::clone(), GhostLowerDElems::clone(), GhostPrimaryFace::clone(), ProxyRelationshipManager::clone(), RedistributeProperties::clone(), SampledOutput::cloneMesh(), FEProblemBase::computeJacobianSys(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualSys(), FEProblemBase::computeResidualTags(), Console::Console(), TimeStepper::constrainStep(), Control::Control(), CopyMeshPartitioner::CopyMeshPartitioner(), MultiApp::createApp(), MultiApp::createApps(), MoveBoundaryNodesToCurveGenerator::curveGenerator(), FEProblemBase::customSetup(), MeshGenerator::declareMeshProperty(), MeshGenerator::declareNullMeshName(), MooseMesh::determineUseDistributedMesh(), dumpObjectHelper(), DumpObjectsProblem(), dumpVariableHelper(), EigenExecutionerBase::EigenExecutionerBase(), EigenKernel::EigenKernel(), PIDTransientControl::execute(), Eigenvalue::execute(), InversePowerMethod::execute(), NonlinearEigen::execute(), SteadyBase::execute(), TransientBase::execute(), MFEMSteady::execute(), PseudoTimestep::execute(), IterationInfo::execute(), EigenProblem::execute(), Executioner::Executioner(), Executioner::Executioner(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), FEProblemBase::FEProblemBase(), FileOutput::FileOutput(), NEML2Assembly::finalize(), ChangeOverFixedPointPostprocessor::finalize(), RadialAverage::finalize(), FixedPointSolve::FixedPointSolve(), FEProblemBase::forceOutput(), FullSolveMultiApp::FullSolveMultiApp(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), FVAdvection::FVAdvection(), FileMeshGenerator::generate(), MeshGenerator::generateInternal(), MeshGenerator::generateInternalCSG(), MeshGenerator::getCSGBaseByName(), FEProblemBase::getExecutor(), MeshGenerator::getMeshByName(), NumFixedPointIterations::getValue(), NumRelationshipManagers::getValue(), GhostingUserObject::GhostingUserObject(), MooseMesh::init(), Eigenvalue::init(), InversePowerMethod::init(), NonlinearEigen::init(), TransientBase::init(), MFEMMesh::init(), FEProblemBase::init(), CompositionDT::init(), SubProblem::initialSetup(), PIDTransientControl::initialSetup(), RealFunctionControl::initialSetup(), TimePeriod::initialSetup(), EigenProblemSolve::initialSetup(), FEProblemSolve::initialSetup(), Console::initialSetup(), FEProblemBase::initialSetup(), BoundaryMeshBuilder::initialSetup(), AdvancedOutput::initOutputList(), FEProblemBase::initPetscOutputAndSomeSolverSettings(), EigenProblem::initPetscOutputAndSomeSolverSettings(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), FEProblemBase::meshChanged(), MeshGenerator::MeshGenerator(), MFEMProblemSolve::MFEMProblemSolve(), MooseMesh::MooseMesh(), MooseMesh::MooseMesh(), MooseObject::MooseObject(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), EigenExecutionerBase::normalizeSolution(), NumFailedTimeSteps::NumFailedTimeSteps(), Checkpoint::output(), Exodus::output(), Nemesis::output(), PerfGraphOutput::output(), Tecplot::output(), MortarNodalGeometryOutput::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Exodus::outputEmptyTimestep(), Console::outputInput(), Exodus::outputInput(), Exodus::outputNodalVariables(), JSONOutput::outputReporters(), Output::outputStep(), SampledOutput::outputStep(), FEProblemBase::outputStep(), Console::outputSystemInformation(), JSONOutput::outputSystemInformation(), OverlayMeshGenerator::OverlayMeshGenerator(), MultiApp::parentOutputPositionChanged(), TransientBase::preExecute(), FEProblemBase::projectSolution(), AnnularMesh::safeClone(), ConcentricCircleMesh::safeClone(), FileMesh::safeClone(), GeneratedMesh::safeClone(), ImageMesh::safeClone(), MeshGeneratorMesh::safeClone(), PatternedMesh::safeClone(), RinglebMesh::safeClone(), SpiralAnnularMesh::safeClone(), StitchedMesh::safeClone(), TiledMesh::safeClone(), MFEMFileMesh::safeClone(), MFEMMeshGeneratorMesh::safeClone(), MultiApp::setAppOutputFileBase(), FileOutput::setFileBaseInternal(), MeshGenerator::setMeshProperty(), MeshGenerator::setMeshPropertyHelper(), FEProblemBase::setRestartFile(), TransientMultiApp::setupApp(), TimeSequenceStepperBase::setupSequence(), TransientBase::setupTimeIntegrator(), Output::setWallTimeIntervalFromCommandLineParam(), SideSetExtruderGenerator::SideSetExtruderGenerator(), SolutionInvalidityReporter::SolutionInvalidityReporter(), FixedPointSolve::solve(), ActuallyExplicitEuler::solve(), FEProblemBase::solve(), EigenProblem::solve(), FEProblemBase::solveLinearSystem(), PetscOutput::solveSetup(), FixedPointSolve::solveStep(), TransientMultiApp::solveStep(), FEProblemBase::subdomainSetup(), FEProblemBase::theWarehouse(), TimeExtremeValue::TimeExtremeValue(), TimeIntegratedPostprocessor::TimeIntegratedPostprocessor(), TimeIntervalTimes::TimeIntervalTimes(), TimePeriod::TimePeriod(), SubProblem::timestepSetup(), PIDTransientControl::timestepSetup(), FEProblemBase::timestepSetup(), TransientBase::TransientBase(), MooseMesh::update(), NEML2FEInterpolation::updateDofMap(), NEML2FEInterpolation::updateGradPhi(), NEML2FEInterpolation::updateInterpolations(), FEProblemBase::updateMortarMesh(), NEML2FEInterpolation::updatePhi(), Console::write(), XYQuadrilateralMeshFromBoundaryCurve::XYQuadrilateralMeshFromBoundaryCurve(), and FEProblemBase::~FEProblemBase().

◆ _assembly

std::vector<std::vector<std::unique_ptr<Assembly> > > FEProblemBase::_assembly
protectedinherited

The Assembly objects.

The first index corresponds to the thread ID and the second index corresponds to the nonlinear system number

Definition at line 3261 of file FEProblemBase.h.

Referenced by FEProblemBase::addCachedResidualDirectly(), FEProblemBase::addJacobian(), FEProblemBase::addJacobianBlockTags(), FEProblemBase::addJacobianLowerD(), FEProblemBase::addJacobianNeighbor(), FEProblemBase::addJacobianNeighborLowerD(), FEProblemBase::addJacobianOffDiagScalar(), FEProblemBase::addJacobianScalar(), FEProblemBase::addResidual(), FEProblemBase::addResidualLower(), FEProblemBase::addResidualNeighbor(), FEProblemBase::addResidualScalar(), FEProblemBase::assembly(), FEProblemBase::assembly(), FEProblemBase::bumpAllQRuleOrder(), FEProblemBase::bumpVolumeQRuleOrder(), FEProblemBase::couplingEntries(), FEProblemBase::createQRules(), FEProblemBase::fieldScalarCouplingEntries(), FEProblemBase::init(), FEProblemBase::initElementStatefulProps(), FEProblemBase::initXFEM(), FEProblemBase::meshChanged(), FEProblemBase::newAssemblyArray(), FEProblemBase::nonlocalCouplingEntries(), FEProblemBase::prepare(), FEProblemBase::prepare(), FEProblemBase::prepareAssembly(), FEProblemBase::prepareAssemblyNeighbor(), FEProblemBase::prepareFaceShapes(), FEProblemBase::prepareNeighborShapes(), FEProblemBase::prepareShapes(), FEProblemBase::reinitDirac(), FEProblemBase::reinitElemFace(), FEProblemBase::reinitElemNeighborAndLowerD(), FEProblemBase::reinitElemPhys(), FEProblemBase::reinitMaterials(), FEProblemBase::reinitMaterialsBoundary(), FEProblemBase::reinitMaterialsFace(), FEProblemBase::reinitMaterialsFaceOnBoundary(), FEProblemBase::reinitMaterialsInterface(), FEProblemBase::reinitMaterialsNeighbor(), FEProblemBase::reinitNeighbor(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNode(), FEProblemBase::reinitNodeFace(), FEProblemBase::reinitOffDiagScalars(), FEProblemBase::reinitScalars(), FEProblemBase::setCurrentSubdomainID(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setResidual(), FEProblemBase::setResidualNeighbor(), FEProblemBase::swapBackMaterials(), FEProblemBase::swapBackMaterialsFace(), and FEProblemBase::swapBackMaterialsNeighbor().

◆ _aux

std::shared_ptr<AuxiliarySystem> FEProblemBase::_aux
protectedinherited

The auxiliary system.

Definition at line 3244 of file FEProblemBase.h.

Referenced by FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxKernel(), FEProblemBase::addAuxScalarKernel(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), FEProblemBase::addIndicator(), FEProblemBase::addMarker(), FEProblemBase::addMultiApp(), FEProblemBase::addObjectParamsHelper(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), FEProblemBase::advanceState(), FEProblemBase::checkExceptionAndStopSolve(), FEProblemBase::computeBounds(), FEProblemBase::computeIndicators(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeLinearSystemTags(), FEProblemBase::computeMarkers(), FEProblemBase::computePostCheck(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), FEProblemBase::computeSystems(), FEProblemBase::computeUserObjectsInternal(), FEProblemBase::copySolutionsBackwards(), FEProblemBase::createQRules(), FEProblemBase::createTagMatrices(), FEProblemBase::createTagSolutions(), FEProblemBase::customSetup(), FEProblemBase::determineSolverSystem(), DumpObjectsProblem(), FEProblemBase::duplicateVariableCheck(), EigenProblem::EigenProblem(), FEProblemBase::execute(), ExternalProblem::ExternalProblem(), FEProblem::FEProblem(), FEProblemBase::getActualFieldVariable(), FEProblemBase::getArrayVariable(), FEProblemBase::getAuxiliarySystem(), FEProblemBase::getScalarVariable(), FEProblemBase::getStandardVariable(), FEProblemBase::getSystem(), FEProblemBase::getSystemBase(), FEProblemBase::getSystemBase(), FEProblemBase::getSystemBase(), FEProblemBase::getVariable(), FEProblemBase::getVariableNames(), FEProblemBase::getVectorVariable(), FEProblemBase::hasScalarVariable(), FEProblemBase::hasSolutionState(), FEProblemBase::hasVariable(), FEProblemBase::init(), FEProblemBase::initialSetup(), FEProblemBase::meshChanged(), FEProblemBase::needBoundaryMaterialOnSide(), FEProblemBase::needSolutionState(), FEProblemBase::outputStep(), FEProblemBase::prepare(), FEProblemBase::prepare(), FEProblemBase::prepareFace(), FEProblemBase::projectInitialConditionOnCustomRange(), FEProblemBase::projectSolution(), FEProblemBase::reinitDirac(), FEProblemBase::reinitElem(), FEProblemBase::reinitElemFace(), FEProblemBase::reinitElemPhys(), FEProblemBase::reinitNeighbor(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNode(), FEProblemBase::reinitNodeFace(), FEProblemBase::reinitScalars(), FEProblemBase::restoreOldSolutions(), FEProblemBase::restoreSolutions(), FEProblemBase::saveOldSolutions(), FEProblemBase::setAuxKernelParamsAndLog(), FEProblemBase::skipNextForwardSolutionCopyToOld(), FEProblemBase::systemBaseAuxiliary(), FEProblemBase::systemBaseAuxiliary(), FEProblemBase::systemNumForVariable(), FEProblemBase::timestepSetup(), FEProblemBase::updateActiveObjects(), and FEProblemBase::updateMeshXFEM().

◆ _aux_evaluable_local_elem_range

std::unique_ptr<libMesh::ConstElemRange> FEProblemBase::_aux_evaluable_local_elem_range
protectedinherited

Definition at line 3569 of file FEProblemBase.h.

◆ _between_multi_app_transfers

ExecuteMooseObjectWarehouse<Transfer> FEProblemBase::_between_multi_app_transfers
protectedinherited

◆ _block_mat_side_cache

std::vector<std::unordered_map<SubdomainID, bool> > FEProblemBase::_block_mat_side_cache
protectedinherited

Cache for calculating materials on side.

Definition at line 3355 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::needInternalNeighborSideMaterial().

◆ _bnd_mat_side_cache

std::vector<std::unordered_map<BoundaryID, bool> > FEProblemBase::_bnd_mat_side_cache
protectedinherited

Cache for calculating materials on side.

Definition at line 3358 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::needBoundaryMaterialOnSide().

◆ _bnd_material_props

MaterialPropertyStorage& FEProblemBase::_bnd_material_props
protectedinherited

◆ _boundary_restricted_elem_integrity_check

const bool FEProblemBase::_boundary_restricted_elem_integrity_check
protectedinherited

whether to perform checking of boundary restricted elemental object variable dependencies, e.g.

whether the variable dependencies are defined on the selected boundaries

Definition at line 3497 of file FEProblemBase.h.

◆ _boundary_restricted_node_integrity_check

const bool FEProblemBase::_boundary_restricted_node_integrity_check
protectedinherited

whether to perform checking of boundary restricted nodal object variable dependencies, e.g.

whether the variable dependencies are defined on the selected boundaries

Definition at line 3493 of file FEProblemBase.h.

◆ _calculate_jacobian_in_uo

bool FEProblemBase::_calculate_jacobian_in_uo
protectedinherited

◆ _check_residual_for_nans

bool FEProblemBase::_check_residual_for_nans
protectedinherited

Whether to check the residual for NaN or Inf values.

Definition at line 3520 of file FEProblemBase.h.

Referenced by FEProblemBase::checkResidualForNans(), and FEProblemBase::setCheckResidualForNans().

◆ _checking_uo_aux_state

bool FEProblemBase::_checking_uo_aux_state = false
privateinherited

Flag used to indicate whether we are doing the uo/aux state check in execute.

Definition at line 3716 of file FEProblemBase.h.

Referenced by FEProblemBase::checkingUOAuxState(), and FEProblemBase::execute().

◆ _cli_option_found

bool Problem::_cli_option_found
protectedinherited

True if the CLI option is found.

Definition at line 52 of file Problem.h.

Referenced by Problem::_setCLIOption().

◆ _cm

std::vector<std::unique_ptr<libMesh::CouplingMatrix> > FEProblemBase::_cm
protectedinherited

Coupling matrix for variables.

Definition at line 3247 of file FEProblemBase.h.

Referenced by FEProblemBase::areCoupled(), FEProblemBase::couplingMatrix(), FEProblemBase::FEProblemBase(), and FEProblemBase::init().

◆ _color_output

bool Problem::_color_output
protectedinherited

True if we're going to attempt to write color output.

Definition at line 55 of file Problem.h.

◆ _computing_nonlinear_residual

bool SubProblem::_computing_nonlinear_residual
protectedinherited

Whether the non-linear residual is being evaluated.

Definition at line 1106 of file SubProblem.h.

Referenced by SubProblem::computingNonlinearResid(), FEProblemBase::computingNonlinearResid(), and SubProblem::computingNonlinearResid().

◆ _computing_scaling_jacobian

bool FEProblemBase::_computing_scaling_jacobian = false
privateinherited

Flag used to indicate whether we are computing the scaling Jacobian.

Definition at line 3710 of file FEProblemBase.h.

Referenced by FEProblemBase::computingScalingJacobian(), and FEProblemBase::computingScalingJacobian().

◆ _computing_scaling_residual

bool FEProblemBase::_computing_scaling_residual = false
privateinherited

Flag used to indicate whether we are computing the scaling Residual.

Definition at line 3713 of file FEProblemBase.h.

Referenced by FEProblemBase::computingScalingResidual(), and FEProblemBase::computingScalingResidual().

◆ _console

const ConsoleStream ConsoleStreamInterface::_console
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(), MaterialOutputAction::act(), MeshOnlyAction::act(), SetupDebugAction::act(), FEProblemBase::adaptMesh(), Adaptivity::adaptMesh(), PerfGraph::addToExecutionList(), SimplePredictor::apply(), SystemBase::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::checkNonConformingFaces(), MeshDiagnosticsGenerator::checkNonMatchingEdges(), MeshDiagnosticsGenerator::checkNonPlanarSides(), MeshDiagnosticsGenerator::checkPolygons(), FEProblemBase::checkProblemIntegrity(), ReferenceResidualConvergence::checkResidualConvergence(), MeshDiagnosticsGenerator::checkSidesetsOrientation(), MeshDiagnosticsGenerator::checkWatertightNodesets(), MeshDiagnosticsGenerator::checkWatertightSidesets(), CoarsenSurfaceMeshAlongSidesetGenerator::coarsenAlongSidesets(), IterationAdaptiveDT::computeAdaptiveDT(), TransientBase::computeConstrainedDT(), DefaultMultiAppFixedPointConvergence::computeCustomConvergencePostprocessor(), NonlinearSystemBase::computeDamping(), FixedPointIterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeFailedDT(), IterationAdaptiveDT::computeInitialDT(), IterationAdaptiveDT::computeInterpolationDT(), FEProblemBase::computeLinearSystemTags(), LinearSystem::computeLinearSystemTags(), NonlinearSystemBase::computeScaling(), Problem::console(), TimeStepper::constrainStep(), IterationAdaptiveDT::constrainStep(), MultiApp::createApp(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), Eigenvalue::execute(), SteadyBase::execute(), MFEMSteady::execute(), MessageFromInput::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), MeshGeneratorSystem::executeMeshGenerators(), SidesetAroundSubdomainUpdater::finalize(), ElementQualityChecker::finalize(), FEProblemBase::finishMultiAppStep(), MeshRepairGenerator::fixOverlappingNodes(), SurfaceSubdomainsDelaunayRemesher::General2DDelaunay(), CoarsenBlockGenerator::generate(), CoarsenSurfaceMeshAlongSidesetGenerator::generate(), OrientSurfaceMeshGenerator::generate(), PolyLineMeshFollowingNodeSetGenerator::generate(), MeshGenerator::generateInternal(), VariableCondensationPreconditioner::getDofToCondense(), InversePowerMethod::init(), NonlinearEigen::init(), FEProblemBase::initialAdaptMesh(), DefaultMultiAppFixedPointConvergence::initialize(), SubProblem::initialSetup(), EigenExecutionerBase::inversePowerIteration(), FEProblemBase::joinAndFinalize(), TransientBase::keepGoing(), IterationAdaptiveDT::limitDTByFunction(), IterationAdaptiveDT::limitDTToPostprocessorValue(), FEProblemBase::logAdd(), EigenExecutionerBase::makeBXConsistent(), Console::meshChanged(), SurfaceDelaunayGeneratorBase::meshNormalDeviation2D(), MooseBase::mooseDeprecated(), MooseBase::mooseDeprecatedNoTrace(), MooseBase::mooseInfo(), MooseBase::mooseWarning(), MooseBase::mooseWarningNonPrefixed(), ReferenceResidualConvergence::nonlinearConvergenceSetup(), Console::output(), DOFMapOutput::output(), MaterialPropertyDebugOutput::output(), PerfGraphOutput::output(), ReporterDebugOutput::output(), SolutionInvalidityOutput::output(), VariableResidualNormsDebugOutput::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Console::outputInput(), WebServerControl::outputMessage(), Console::outputPostprocessors(), PseudoTimestep::outputPseudoTimestep(), Console::outputReporters(), DefaultMultiAppFixedPointConvergence::outputResidualNorm(), Console::outputScalarVariables(), Console::outputSystemInformation(), FEProblemBase::possiblyRebuildGeomSearchPatches(), EigenExecutionerBase::postExecute(), AB2PredictorCorrector::postSolve(), ActionWarehouse::printActionDependencySets(), BlockRestrictionDebugOutput::printBlockRestrictionGroups(), BlockRestrictionDebugOutput::printBlockRestrictionMap(), BlockRestrictionDebugOutput::printBoundaryRestrictionGroups(), SolutionInvalidity::printDebug(), EigenExecutionerBase::printEigenvalue(), PicardSolve::printFixedPointConvergenceHistory(), SecantSolve::printFixedPointConvergenceHistory(), SteffensenSolve::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(), FEProblemSolve::solve(), FixedPointSolve::solve(), LinearSystem::solve(), NonlinearSystem::solve(), AStableDirk4::solve(), ExplicitRK2::solve(), ExplicitTVDRK2::solve(), ImplicitMidpoint::solve(), LStableDirk2::solve(), LStableDirk3::solve(), LStableDirk4::solve(), EigenProblem::solve(), FixedPointSolve::solveStep(), TransientMultiApp::solveStep(), MeshRepairGenerator::splitNonConvexPolygons(), PerfGraphLivePrint::start(), WebServerControl::startServer(), AB2PredictorCorrector::step(), NonlinearEigen::takeStep(), TransientBase::takeStep(), MFEMTransient::takeStep(), TerminateChainControl::terminate(), SubProblem::timestepSetup(), FEProblemBase::updateMeshXFEM(), Convergence::verboseOutput(), Console::writeTimestepInformation(), Console::writeVariableNorms(), and FEProblemBase::~FEProblemBase().

◆ _const_jacobian

bool FEProblemBase::_const_jacobian
protectedinherited

◆ _consumed_material_properties

std::map<MooseObjectName, std::set<std::string> > SubProblem::_consumed_material_properties
privateinherited

◆ _control_warehouse

ExecuteMooseObjectWarehouse<Control> FEProblemBase::_control_warehouse
protectedinherited

◆ _convergences

MooseObjectWarehouse<Convergence> FEProblemBase::_convergences
protectedinherited

◆ _coupling

Moose::CouplingType FEProblemBase::_coupling
protectedinherited

◆ _current_algebraic_bnd_node_range

std::unique_ptr<ConstBndNodeRange> FEProblemBase::_current_algebraic_bnd_node_range
protectedinherited

◆ _current_algebraic_elem_range

std::unique_ptr<libMesh::ConstElemRange> FEProblemBase::_current_algebraic_elem_range
protectedinherited

◆ _current_algebraic_node_range

std::unique_ptr<libMesh::ConstNodeRange> FEProblemBase::_current_algebraic_node_range
protectedinherited

◆ _current_execute_on_flag

ExecFlagType FEProblemBase::_current_execute_on_flag
protectedinherited

◆ _current_ic_state

unsigned short FEProblemBase::_current_ic_state
protectedinherited

Definition at line 3580 of file FEProblemBase.h.

Referenced by FEProblemBase::getCurrentICState().

◆ _current_linear_sys

LinearSystem* FEProblemBase::_current_linear_sys
protectedinherited

◆ _current_nl_sys

NonlinearSystemBase* FEProblemBase::_current_nl_sys
protectedinherited

The current nonlinear system that we are solving.

Definition at line 3226 of file FEProblemBase.h.

Referenced by FEProblemBase::addCachedResidualDirectly(), FEProblemBase::addJacobian(), FEProblemBase::addJacobianBlockTags(), FEProblemBase::addJacobianLowerD(), FEProblemBase::addJacobianNeighbor(), FEProblemBase::addJacobianNeighborLowerD(), FEProblemBase::addJacobianOffDiagScalar(), FEProblemBase::addJacobianScalar(), FEProblemBase::addResidual(), FEProblemBase::addResidualLower(), FEProblemBase::addResidualNeighbor(), FEProblemBase::addResidualScalar(), FEProblemBase::checkExceptionAndStopSolve(), FEProblemBase::computeBounds(), FEProblemBase::computeDamping(), FEProblemBase::computeJacobianBlock(), FEProblemBase::computeJacobianBlocks(), EigenProblem::computeJacobianBlocks(), FEProblemBase::computeJacobianInternal(), FEProblemBase::computeJacobianTag(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeNearNullSpace(), FEProblemBase::computeNullSpace(), FEProblemBase::computePostCheck(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualInternal(), FEProblemBase::computeResidualL2Norm(), FEProblemBase::computeResidualTag(), FEProblemBase::computeResidualTags(), FEProblemBase::computeResidualType(), FEProblemBase::computeTransposeNullSpace(), FEProblemBase::currentNonlinearSystem(), FEProblemBase::currentNonlinearSystem(), EigenProblem::doFreeNonlinearPowerIterations(), EigenProblem::EigenProblem(), FEProblemBase::prepare(), FEProblemBase::prepareAssembly(), FEProblemBase::prepareAssemblyNeighbor(), FEProblemBase::prepareFaceShapes(), FEProblemBase::prepareNeighborShapes(), FEProblemBase::prepareShapes(), FEProblemBase::reinitDirac(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitOffDiagScalars(), FEProblemBase::setCurrentNonlinearSystem(), FEProblemBase::setResidual(), FEProblemBase::setResidualNeighbor(), FEProblemBase::solve(), and EigenProblem::solve().

◆ _current_residual_vector_tags

std::vector<VectorTag> FEProblemBase::_current_residual_vector_tags
privateinherited

A data member to store the residual vector tag(s) passed into computeResidualTag(s).

This data member will be used when APIs like cacheResidual, addCachedResiduals, etc. are called

Definition at line 3727 of file FEProblemBase.h.

Referenced by FEProblemBase::clearCurrentResidualVectorTags(), FEProblemBase::currentResidualVectorTags(), and FEProblemBase::setCurrentResidualVectorTags().

◆ _current_solver_sys

SolverSystem* FEProblemBase::_current_solver_sys
protectedinherited

The current solver system.

Definition at line 3229 of file FEProblemBase.h.

Referenced by FEProblemBase::setCurrentLinearSystem(), and FEProblemBase::setCurrentNonlinearSystem().

◆ _currently_computing_jacobian

bool SubProblem::_currently_computing_jacobian
protectedinherited

◆ _currently_computing_residual

bool SubProblem::_currently_computing_residual
protectedinherited

◆ _currently_computing_residual_and_jacobian

bool SubProblem::_currently_computing_residual_and_jacobian
protectedinherited

Flag to determine whether the problem is currently computing the residual and Jacobian.

Definition at line 1103 of file SubProblem.h.

Referenced by SubProblem::currentlyComputingResidualAndJacobian(), and SubProblem::setCurrentlyComputingResidualAndJacobian().

◆ _cycles_completed

unsigned int FEProblemBase::_cycles_completed
protectedinherited

◆ _default_ghosting

bool SubProblem::_default_ghosting
protectedinherited

Whether or not to use default libMesh coupling.

Definition at line 1094 of file SubProblem.h.

Referenced by SubProblem::defaultGhosting().

◆ _dirac_kernel_info

DiracKernelInfo SubProblem::_dirac_kernel_info
protectedinherited

◆ _discrete_materials

MaterialWarehouse FEProblemBase::_discrete_materials
protectedinherited

◆ _displaced_mesh

MooseMesh* FEProblemBase::_displaced_mesh
protectedinherited

◆ _displaced_problem

std::shared_ptr<DisplacedProblem> FEProblemBase::_displaced_problem
protectedinherited

Definition at line 3424 of file FEProblemBase.h.

Referenced by FEProblemBase::adaptMesh(), FEProblemBase::addAnyRedistributers(), FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxScalarKernel(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), FEProblemBase::addCachedJacobian(), FEProblemBase::addCachedResidual(), FEProblemBase::addCachedResidualDirectly(), FEProblemBase::addConstraint(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addDisplacedProblem(), FEProblemBase::addFunction(), FEProblemBase::addFunctorMaterial(), FEProblemBase::addFVKernel(), FEProblemBase::addGhostedBoundary(), FEProblemBase::addIndicator(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addJacobian(), FEProblemBase::addJacobianBlockTags(), FEProblemBase::addJacobianLowerD(), FEProblemBase::addJacobianNeighbor(), FEProblemBase::addJacobianNeighborLowerD(), FEProblemBase::addMarker(), FEProblemBase::addMaterialHelper(), FEProblemBase::addMultiApp(), FEProblemBase::addNodalKernel(), FEProblemBase::addObjectParamsHelper(), FEProblemBase::addResidual(), FEProblemBase::addResidualLower(), FEProblemBase::addResidualNeighbor(), FEProblemBase::addScalarKernel(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), FEProblemBase::addUserObject(), FEProblemBase::addVariable(), FEProblemBase::advanceState(), FEProblemBase::automaticScaling(), FEProblemBase::backupGeometricSearchState(), FEProblemBase::bumpAllQRuleOrder(), FEProblemBase::bumpVolumeQRuleOrder(), FEProblemBase::cacheJacobian(), FEProblemBase::cacheJacobianNeighbor(), FEProblemBase::cacheResidual(), FEProblemBase::cacheResidualNeighbor(), FEProblemBase::checkDisplacementOrders(), FEProblemBase::clearActiveElementalMooseVariables(), FEProblemBase::clearActiveFEVariableCoupleableMatrixTags(), FEProblemBase::clearActiveFEVariableCoupleableVectorTags(), FEProblemBase::clearActiveScalarVariableCoupleableMatrixTags(), FEProblemBase::clearActiveScalarVariableCoupleableVectorTags(), FEProblemBase::clearDiracInfo(), FEProblemBase::computeJacobianBlocks(), EigenProblem::computeJacobianBlocks(), FEProblemBase::computeJacobianTags(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualTags(), FEProblemBase::computeUserObjectsInternal(), FEProblemBase::computingNonlinearResid(), FEProblemBase::createMortarInterface(), FEProblemBase::createQRules(), FEProblemBase::customSetup(), FEProblemBase::execute(), FEProblemBase::getDiracElements(), FEProblemBase::getDisplacedProblem(), FEProblemBase::getDisplacedProblem(), FEProblemBase::getMortarUserObjects(), FEProblemBase::ghostGhostedBoundaries(), FEProblemBase::haveADObjects(), FEProblemBase::haveDisplaced(), FEProblemBase::init(), FEProblemBase::initXFEM(), FEProblemBase::jacobianSetup(), FEProblemBase::mesh(), FEProblemBase::mesh(), FEProblemBase::meshChanged(), FEProblemBase::outputStep(), FEProblemBase::possiblyRebuildGeomSearchPatches(), FEProblemBase::prepare(), FEProblemBase::prepare(), FEProblemBase::prepareAssembly(), FEProblemBase::prepareAssemblyNeighbor(), FEProblemBase::prepareFace(), FEProblemBase::reinitBecauseOfGhostingOrNewGeomObjects(), FEProblemBase::reinitDirac(), FEProblemBase::reinitElem(), FEProblemBase::reinitElemFace(), FEProblemBase::reinitElemFaceRef(), FEProblemBase::reinitElemNeighborAndLowerD(), FEProblemBase::reinitLowerDElem(), FEProblemBase::reinitNeighbor(), FEProblemBase::reinitNeighborFaceRef(), FEProblemBase::reinitNode(), FEProblemBase::reinitNodeFace(), FEProblemBase::reinitOffDiagScalars(), FEProblemBase::reinitScalars(), FEProblemBase::resetState(), FEProblemBase::residualSetup(), FEProblemBase::restoreGeometricSearchState(), FEProblemBase::restoreSolutions(), FEProblemBase::setActiveElementalMooseVariables(), FEProblemBase::setActiveFEVariableCoupleableMatrixTags(), FEProblemBase::setActiveFEVariableCoupleableVectorTags(), FEProblemBase::setActiveScalarVariableCoupleableMatrixTags(), FEProblemBase::setActiveScalarVariableCoupleableVectorTags(), FEProblemBase::setAuxKernelParamsAndLog(), FEProblemBase::setCurrentBoundaryID(), FEProblemBase::setCurrentLowerDElem(), FEProblemBase::setCurrentlyComputingResidual(), FEProblemBase::setCurrentSubdomainID(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setResidual(), FEProblemBase::setResidualNeighbor(), FEProblemBase::setResidualObjectParamsAndLog(), FEProblemBase::solve(), EigenProblem::solve(), FEProblemBase::timestepSetup(), FEProblemBase::uniformRefine(), and FEProblemBase::updateGeomSearch().

◆ _dt

Real& FEProblemBase::_dt
protectedinherited

◆ _dt_old

Real& FEProblemBase::_dt_old
protectedinherited

Definition at line 3186 of file FEProblemBase.h.

Referenced by FEProblemBase::dtOld(), and FEProblemBase::FEProblemBase().

◆ _enabled

const bool& MooseObject::_enabled
protectedinherited

Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.

Definition at line 71 of file MooseObject.h.

Referenced by MooseObject::enabled().

◆ _error_on_jacobian_nonzero_reallocation

bool FEProblemBase::_error_on_jacobian_nonzero_reallocation
privateinherited

Whether to error when the Jacobian is re-allocated, usually because the sparsity pattern changed.

Definition at line 3655 of file FEProblemBase.h.

Referenced by FEProblemBase::errorOnJacobianNonzeroReallocation(), and FEProblemBase::setErrorOnJacobianNonzeroReallocation().

◆ _evaluable_local_elem_range

std::unique_ptr<libMesh::ConstElemRange> FEProblemBase::_evaluable_local_elem_range
protectedinherited

◆ _exception_message

std::string FEProblemBase::_exception_message
protectedinherited

The error message to go with an exception.

Definition at line 3548 of file FEProblemBase.h.

Referenced by FEProblemBase::checkExceptionAndStopSolve(), and FEProblemBase::setException().

◆ _factory

Factory& SubProblem::_factory
protectedinherited

◆ _fail_next_system_convergence_check

bool FEProblemBase::_fail_next_system_convergence_check
privateinherited

◆ _fe_matrix_tags

std::set<TagID> FEProblemBase::_fe_matrix_tags
protectedinherited

◆ _fe_vector_tags

std::set<TagID> FEProblemBase::_fe_vector_tags
protectedinherited

◆ _force_restart

const bool FEProblemBase::_force_restart
privateinherited

Definition at line 3666 of file FEProblemBase.h.

◆ _from_multi_app_transfers

ExecuteMooseObjectWarehouse<Transfer> FEProblemBase::_from_multi_app_transfers
protectedinherited

◆ _functions

MooseObjectWarehouse<Function> FEProblemBase::_functions
protectedinherited

◆ _functor_to_request_info

std::vector<std::multimap<std::string, std::pair<bool, bool> > > SubProblem::_functor_to_request_info
privateinherited

A multimap (for each thread) from unfilled functor requests to whether the requests were for AD functors and whether the requestor was an AD object.

Definition at line 1165 of file SubProblem.h.

Referenced by SubProblem::addFunctor(), SubProblem::getFunctor(), and SubProblem::SubProblem().

◆ _functor_to_requestors

std::map<std::string, std::set<std::string> > SubProblem::_functor_to_requestors
privateinherited

The requestors of functors where the key is the prop name and the value is a set of names of requestors.

Definition at line 1161 of file SubProblem.h.

Referenced by SubProblem::getFunctor(), SubProblem::initialSetup(), and SubProblem::showFunctorRequestors().

◆ _functors

std::vector<std::multimap<std::string, std::tuple<TrueFunctorIs, std::unique_ptr<Moose::FunctorEnvelopeBase>, std::unique_ptr<Moose::FunctorEnvelopeBase> > > > SubProblem::_functors
privateinherited

A container holding pointers to all the functors in our problem.

We hold a tuple where the zeroth item in the tuple is an enumerator that describes what type of functor the "true" functor is (either NONAD or AD), the first item in the tuple is the non-AD version of the functor, and the second item in the tuple is the AD version of the functor

Definition at line 1148 of file SubProblem.h.

Referenced by SubProblem::addFunctor(), SubProblem::getFunctor(), SubProblem::hasFunctor(), SubProblem::hasFunctorWithType(), SubProblem::initialSetup(), SubProblem::showFunctors(), and SubProblem::SubProblem().

◆ _fv_bcs_integrity_check

bool FEProblemBase::_fv_bcs_integrity_check
protectedinherited

Whether to check overlapping Dirichlet and Flux BCs and/or multiple DirichletBCs per sideset.

Definition at line 3507 of file FEProblemBase.h.

Referenced by FEProblemBase::fvBCsIntegrityCheck(), and FEProblemBase::fvBCsIntegrityCheck().

◆ _fv_face_integrity_check

const bool FEProblemBase::_fv_face_integrity_check
protectedinherited

Whether to check FV boundary and interface objects against the faces on which they execute.

Definition at line 3510 of file FEProblemBase.h.

◆ _fv_ics

FVInitialConditionWarehouse FEProblemBase::_fv_ics
protectedinherited

◆ _generated_syntax

std::map<std::string, std::map<std::string, std::string> > DumpObjectsProblem::_generated_syntax
protected

store input syntax to build objects generated by a specific action

Definition at line 94 of file DumpObjectsProblem.h.

Referenced by dumpAllGeneratedSyntax(), dumpGeneratedSyntax(), dumpObjectHelper(), and dumpVariableHelper().

◆ _geometric_search_data

GeometricSearchData FEProblemBase::_geometric_search_data
protectedinherited

◆ _ghosted_elems

std::set<dof_id_type> SubProblem::_ghosted_elems
protectedinherited

◆ _grad_phi_zero

std::vector<VariablePhiGradient> FEProblemBase::_grad_phi_zero
inherited

◆ _grad_zero

std::vector<VariableGradient> FEProblemBase::_grad_zero
inherited

◆ _has_active_elemental_moose_variables

std::vector<unsigned int> SubProblem::_has_active_elemental_moose_variables
protectedinherited

Whether or not there is currently a list of active elemental moose variables.

Definition at line 1083 of file SubProblem.h.

Referenced by SubProblem::clearActiveElementalMooseVariables(), SubProblem::hasActiveElementalMooseVariables(), SubProblem::setActiveElementalMooseVariables(), and SubProblem::SubProblem().

◆ _has_active_material_properties

std::vector<unsigned char> FEProblemBase::_has_active_material_properties
protectedinherited

◆ _has_constraints

bool FEProblemBase::_has_constraints
protectedinherited

Whether or not this system has any Constraints.

Definition at line 3442 of file FEProblemBase.h.

Referenced by FEProblemBase::addConstraint(), NonlinearSystemBase::computeJacobianInternal(), and NonlinearSystemBase::computeResidualInternal().

◆ _has_dampers

bool FEProblemBase::_has_dampers
protectedinherited

Whether or not this system has any Dampers associated with it.

Definition at line 3439 of file FEProblemBase.h.

Referenced by FEProblemBase::addDamper(), FEProblemBase::computeDamping(), FEProblemBase::computePostCheck(), and FEProblemBase::hasDampers().

◆ _has_exception

bool FEProblemBase::_has_exception
protectedinherited

Whether or not an exception has occurred.

Definition at line 3533 of file FEProblemBase.h.

Referenced by FEProblemBase::checkExceptionAndStopSolve(), FEProblemBase::hasException(), and FEProblemBase::setException().

◆ _has_initialized_stateful

bool FEProblemBase::_has_initialized_stateful
protectedinherited

Whether nor not stateful materials have been initialized.

Definition at line 3454 of file FEProblemBase.h.

Referenced by FEProblemBase::meshChanged().

◆ _has_internal_edge_residual_objects

bool FEProblemBase::_has_internal_edge_residual_objects
privateinherited

Whether the problem has dgkernels or interface kernels.

Definition at line 3678 of file FEProblemBase.h.

Referenced by FEProblemBase::addDGKernel(), FEProblemBase::addInterfaceKernel(), and FEProblemBase::hasNeighborCoupling().

◆ _has_jacobian

bool FEProblemBase::_has_jacobian
protectedinherited

Indicates if the Jacobian was computed.

Definition at line 3460 of file FEProblemBase.h.

Referenced by FEProblemBase::computeJacobianTags(), FEProblemBase::hasJacobian(), FEProblemBase::meshChanged(), and FEProblemBase::prepare().

◆ _has_kokkos_objects

bool FEProblemBase::_has_kokkos_objects = false
privateinherited

Whether we have any Kokkos objects.

Definition at line 3744 of file FEProblemBase.h.

Referenced by FEProblemBase::hasKokkosObjects(), FEProblemBase::init(), and FEProblemBase::initElementStatefulProps().

◆ _has_kokkos_residual_objects

bool FEProblemBase::_has_kokkos_residual_objects = false
privateinherited

Whether we have any Kokkos residual objects.

Definition at line 3747 of file FEProblemBase.h.

Referenced by FEProblemBase::hasKokkosResidualObjects().

◆ _has_mortar

bool FEProblemBase::_has_mortar
privateinherited

Whether the simulation requires mortar coupling.

Definition at line 3700 of file FEProblemBase.h.

Referenced by FEProblemBase::createMortarInterface(), and FEProblemBase::hasMortarCoupling().

◆ _has_nonlocal_coupling

bool FEProblemBase::_has_nonlocal_coupling
protectedinherited

◆ _has_time_integrator

bool FEProblemBase::_has_time_integrator
protectedinherited

Indicates whether or not this executioner has a time integrator (during setup)

Definition at line 3530 of file FEProblemBase.h.

Referenced by FEProblemBase::addTimeIntegrator(), and FEProblemBase::hasTimeIntegrator().

◆ _have_ad_objects

bool SubProblem::_have_ad_objects
protectedinherited

AD flag indicating whether any AD objects have been added.

Definition at line 1118 of file SubProblem.h.

Referenced by SubProblem::haveADObjects(), SubProblem::haveADObjects(), DisplacedProblem::haveADObjects(), and FEProblemBase::haveADObjects().

◆ _have_fv

bool FEProblemBase::_have_fv = false
privateinherited

Whether we are performing some calculations with finite volume discretizations.

Definition at line 3730 of file FEProblemBase.h.

Referenced by FEProblemBase::haveFV(), and FEProblemBase::needFV().

◆ _ics

InitialConditionWarehouse FEProblemBase::_ics
protectedinherited

Initial condition storage

Definition at line 3290 of file FEProblemBase.h.

Referenced by FEProblemBase::addInitialCondition(), and FEProblemBase::getInitialConditionWarehouse().

◆ _identify_variable_groups_in_nl

const bool FEProblemBase::_identify_variable_groups_in_nl
privateinherited

Whether to identify variable groups in nonlinear systems. This affects dof ordering.

Definition at line 3722 of file FEProblemBase.h.

Referenced by FEProblemBase::identifyVariableGroupsInNL().

◆ _ignore_zeros_in_jacobian

bool FEProblemBase::_ignore_zeros_in_jacobian
privateinherited

Whether to ignore zeros in the Jacobian, thereby leading to a reduced sparsity pattern.

Definition at line 3662 of file FEProblemBase.h.

Referenced by FEProblemBase::ignoreZerosInJacobian(), FEProblemBase::setIgnoreZerosInJacobian(), and FEProblemBase::setPreserveMatrixSparsityPattern().

◆ _immediately_print_invalid_solution

const bool& FEProblemBase::_immediately_print_invalid_solution
privateinherited

Definition at line 3672 of file FEProblemBase.h.

Referenced by FEProblemBase::immediatelyPrintInvalidSolution().

◆ _include_all_user_specified_params

const bool DumpObjectsProblem::_include_all_user_specified_params
protected

Whether to include all user-specified parameters in the dump or only parameters that differ from the default value.

Definition at line 97 of file DumpObjectsProblem.h.

Referenced by deduceNecessaryParameters().

◆ _indicators

MooseObjectWarehouse<Indicator> FEProblemBase::_indicators
protectedinherited

◆ _initialized

bool FEProblemBase::_initialized
protectedinherited

◆ _input_file_saved

bool FEProblemBase::_input_file_saved
protectedinherited

whether input file has been written

Definition at line 3436 of file FEProblemBase.h.

◆ _interface_mat_side_cache

std::vector<std::unordered_map<BoundaryID, bool> > FEProblemBase::_interface_mat_side_cache
protectedinherited

Cache for calculating materials on interface.

Definition at line 3361 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::needInterfaceMaterialOnSide().

◆ _interface_materials

MaterialWarehouse FEProblemBase::_interface_materials
protectedinherited

◆ _internal_side_indicators

MooseObjectWarehouse<InternalSideIndicatorBase> FEProblemBase::_internal_side_indicators
protectedinherited

◆ _is_petsc_options_inserted

bool FEProblemBase::_is_petsc_options_inserted
protectedinherited

If or not PETSc options have been added to database.

Definition at line 3563 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), FEProblemBase::petscOptionsInserted(), FEProblemBase::solve(), and FEProblemBase::solveLinearSystem().

◆ _kernel_coverage_blocks

std::vector<SubdomainName> FEProblemBase::_kernel_coverage_blocks
protectedinherited

◆ _kernel_coverage_check

CoverageCheckMode FEProblemBase::_kernel_coverage_check
protectedinherited

Determines whether and which subdomains are to be checked to ensure that they have an active kernel.

Definition at line 3488 of file FEProblemBase.h.

Referenced by FEProblemBase::checkProblemIntegrity(), FEProblemBase::FEProblemBase(), FEProblemBase::setKernelCoverageCheck(), and FEProblemBase::setKernelCoverageCheck().

◆ _kokkos_assembly

Moose::Kokkos::Assembly FEProblemBase::_kokkos_assembly
protectedinherited

◆ _kokkos_bnd_material_props

Moose::Kokkos::MaterialPropertyStorage& FEProblemBase::_kokkos_bnd_material_props
protectedinherited

◆ _kokkos_fe_systems

Moose::Kokkos::Array<Moose::Kokkos::FESystem> FEProblemBase::_kokkos_fe_systems
protectedinherited

FESystem array - sparsely populated (only slots for systems needing a Kokkos::FESystem)

Definition at line 3253 of file FEProblemBase.h.

Referenced by FEProblemBase::getKokkosFESystems(), and FEProblemBase::getKokkosFESystems().

◆ _kokkos_functions

MooseObjectWarehouse<Moose::FunctionBase> FEProblemBase::_kokkos_functions
protectedinherited

◆ _kokkos_material_props

Moose::Kokkos::MaterialPropertyStorage& FEProblemBase::_kokkos_material_props
protectedinherited

◆ _kokkos_materials

MaterialWarehouse FEProblemBase::_kokkos_materials
protectedinherited

◆ _kokkos_mesh_initialization_hooks

std::vector<std::function<void()> > FEProblemBase::_kokkos_mesh_initialization_hooks
privateinherited

Container holding hooks for functions that need to be called after Kokkos mesh initialization.

Definition at line 3750 of file FEProblemBase.h.

Referenced by FEProblemBase::addKokkosMeshInitializationHook().

◆ _kokkos_neighbor_material_props

Moose::Kokkos::MaterialPropertyStorage& FEProblemBase::_kokkos_neighbor_material_props
protectedinherited

◆ _kokkos_systems

Moose::Kokkos::Array<Moose::Kokkos::System> FEProblemBase::_kokkos_systems
protectedinherited

System array - sparsely populated (only slots for systems needing a Kokkos::System)

Definition at line 3251 of file FEProblemBase.h.

Referenced by FEProblemBase::getKokkosSystems(), and FEProblemBase::getKokkosSystems().

◆ _line_search

std::shared_ptr<LineSearch> FEProblemBase::_line_search
protectedinherited

◆ _linear_convergence_names

std::optional<std::vector<ConvergenceName> > FEProblemBase::_linear_convergence_names
protectedinherited

Linear system(s) convergence name(s) (if any)

Definition at line 3161 of file FEProblemBase.h.

Referenced by FEProblemBase::getLinearConvergenceNames(), FEProblemBase::hasLinearConvergenceObjects(), and FEProblemBase::setLinearConvergenceNames().

◆ _linear_matrix_tags

std::set<TagID> FEProblemBase::_linear_matrix_tags
protectedinherited

Temporary storage for filtered matrix tags for linear systems.

Definition at line 3175 of file FEProblemBase.h.

Referenced by FEProblemBase::computeLinearSystemSys().

◆ _linear_sys_name_to_num

std::map<LinearSystemName, unsigned int> FEProblemBase::_linear_sys_name_to_num
protectedinherited

Map from linear system name to number.

Definition at line 3205 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::linearSysNum().

◆ _linear_sys_names

const std::vector<LinearSystemName> FEProblemBase::_linear_sys_names
protectedinherited

◆ _linear_systems

std::vector<std::shared_ptr<LinearSystem> > FEProblemBase::_linear_systems
protectedinherited

◆ _linear_vector_tags

std::set<TagID> FEProblemBase::_linear_vector_tags
protectedinherited

Temporary storage for filtered vector tags for linear systems.

Definition at line 3172 of file FEProblemBase.h.

Referenced by FEProblemBase::computeLinearSystemSys().

◆ _map_block_material_props

std::map<SubdomainID, std::set<std::string> > SubProblem::_map_block_material_props
protectedinherited

Map of material properties (block_id -> list of properties)

Definition at line 1056 of file SubProblem.h.

Referenced by SubProblem::checkBlockMatProps(), SubProblem::getMaterialPropertyBlocks(), SubProblem::hasBlockMaterialProperty(), and SubProblem::storeSubdomainMatPropName().

◆ _map_block_material_props_check

std::map<SubdomainID, std::multimap<std::string, std::string> > SubProblem::_map_block_material_props_check
protectedinherited

Data structures of the requested material properties.

We store them in a map from boundary/block id to multimap. Each of the multimaps is a list of requestor object names to material property names.

Definition at line 1074 of file SubProblem.h.

Referenced by SubProblem::checkBlockMatProps(), and SubProblem::storeSubdomainDelayedCheckMatProp().

◆ _map_boundary_material_props

std::map<BoundaryID, std::set<std::string> > SubProblem::_map_boundary_material_props
protectedinherited

Map for boundary material properties (boundary_id -> list of properties)

Definition at line 1059 of file SubProblem.h.

Referenced by SubProblem::checkBoundaryMatProps(), SubProblem::getMaterialPropertyBoundaryIDs(), SubProblem::hasBoundaryMaterialProperty(), and SubProblem::storeBoundaryMatPropName().

◆ _map_boundary_material_props_check

std::map<BoundaryID, std::multimap<std::string, std::string> > SubProblem::_map_boundary_material_props_check
protectedinherited

◆ _markers

MooseObjectWarehouse<Marker> FEProblemBase::_markers
protectedinherited

◆ _material_coverage_blocks

std::vector<SubdomainName> FEProblemBase::_material_coverage_blocks
protectedinherited

◆ _material_coverage_check

CoverageCheckMode FEProblemBase::_material_coverage_check
protectedinherited

Determines whether and which subdomains are to be checked to ensure that they have an active material.

Definition at line 3503 of file FEProblemBase.h.

Referenced by FEProblemBase::checkProblemIntegrity(), FEProblemBase::FEProblemBase(), FEProblemBase::setMaterialCoverageCheck(), and FEProblemBase::setMaterialCoverageCheck().

◆ _material_dependency_check

const bool FEProblemBase::_material_dependency_check
protectedinherited

Determines whether a check to verify material dependencies on every subdomain.

Definition at line 3513 of file FEProblemBase.h.

Referenced by FEProblemBase::checkProblemIntegrity().

◆ _material_prop_registry

MaterialPropertyRegistry FEProblemBase::_material_prop_registry
protectedinherited

◆ _material_property_requested

std::set<std::string> SubProblem::_material_property_requested
protectedinherited

set containing all material property names that have been requested by getMaterialProperty*

Definition at line 1066 of file SubProblem.h.

Referenced by SubProblem::isMatPropRequested(), and SubProblem::markMatPropRequested().

◆ _material_props

MaterialPropertyStorage& FEProblemBase::_material_props
protectedinherited

◆ _materials

MaterialWarehouse FEProblemBase::_materials
protectedinherited

◆ _matrix_tag_id_to_tag_name

std::map<TagID, TagName> SubProblem::_matrix_tag_id_to_tag_name
protectedinherited

Reverse map.

Definition at line 1048 of file SubProblem.h.

Referenced by SubProblem::addMatrixTag(), SubProblem::matrixTagExists(), and SubProblem::matrixTagName().

◆ _matrix_tag_name_to_tag_id

std::map<TagName, TagID> SubProblem::_matrix_tag_name_to_tag_id
protectedinherited

◆ _max_qps

unsigned int FEProblemBase::_max_qps
protectedinherited

Maximum number of quadrature points used in the problem.

Definition at line 3524 of file FEProblemBase.h.

Referenced by FEProblemBase::getMaxQps(), FEProblemBase::reinitDirac(), and FEProblemBase::updateMaxQps().

◆ _max_scalar_order

libMesh::Order FEProblemBase::_max_scalar_order
protectedinherited

Maximum scalar variable order.

Definition at line 3527 of file FEProblemBase.h.

Referenced by FEProblemBase::addAuxScalarVariable(), and FEProblemBase::getMaxScalarOrder().

◆ _mesh

MooseMesh& FEProblemBase::_mesh
protectedinherited

◆ _mesh_divisions

MooseObjectWarehouse<MeshDivision> FEProblemBase::_mesh_divisions
protectedinherited

Warehouse to store mesh divisions NOTE: this could probably be moved to the MooseMesh instead of the Problem Time (and people's uses) will tell where this fits best.

Definition at line 3270 of file FEProblemBase.h.

Referenced by FEProblemBase::addMeshDivision(), and FEProblemBase::getMeshDivision().

◆ _metaname

const RestartableDataMapName Restartable::_metaname
privateinherited

Restartable metadata name.

Definition at line 247 of file Restartable.h.

Referenced by Restartable::registerRestartableDataOnApp().

◆ _mortar_data

std::unique_ptr<MortarInterfaceWarehouse> FEProblemBase::_mortar_data
protectedinherited

◆ _multi_apps

ExecuteMooseObjectWarehouse<MultiApp> FEProblemBase::_multi_apps
protectedinherited

◆ _multiapp_fixed_point_convergence_name

std::optional<ConvergenceName> FEProblemBase::_multiapp_fixed_point_convergence_name
protectedinherited

◆ _name

const std::string& MooseBase::_name
protectedinherited

The name of this class.

Definition at line 381 of file MooseBase.h.

Referenced by AddFieldSplitAction::act(), AddBCAction::act(), AddConstraintAction::act(), AddControlAction::act(), AddConvergenceAction::act(), AddCorrectorAction::act(), AddDamperAction::act(), AddDGKernelAction::act(), AddDiracKernelAction::act(), AddDistributionAction::act(), AddFunctionAction::act(), AddFunctorMaterialAction::act(), AddFVBCAction::act(), AddFVGradientMethodAction::act(), AddFVInitialConditionAction::act(), AddFVInterfaceKernelAction::act(), AddFVInterpolationMethodAction::act(), AddFVKernelAction::act(), AddHDGKernelAction::act(), AddIndicatorAction::act(), AddInitialConditionAction::act(), AddInterfaceKernelAction::act(), AddKernelAction::act(), AddLinearFVBCAction::act(), AddLinearFVKernelAction::act(), AddMarkerAction::act(), AddMaterialAction::act(), AddMeshDivisionAction::act(), AddMeshGeneratorAction::act(), AddMeshModifiersAction::act(), AddMultiAppAction::act(), AddNodalKernelAction::act(), AddOutputAction::act(), AddPositionsAction::act(), AddPostprocessorAction::act(), AddReporterAction::act(), AddSamplerAction::act(), AddScalarKernelAction::act(), AddTimesAction::act(), AddTimeStepperAction::act(), AddTransferAction::act(), AddUserObjectAction::act(), AddVectorPostprocessorAction::act(), PartitionerAction::act(), ReadExecutorParamsAction::act(), SetupPreconditionerAction::act(), SetupTimeIntegratorAction::act(), AddMFEMComplexBCComponentAction::act(), AddMFEMComplexKernelComponentAction::act(), AddMFEMFESpaceAction::act(), AddMFEMFESpaceHierarchyAction::act(), AddMFEMProblemComposerAction::act(), AddMFEMSolverAction::act(), AddMFEMSubMeshAction::act(), ADPiecewiseLinearInterpolationMaterial::ADPiecewiseLinearInterpolationMaterial(), BatchMeshGeneratorAction::BatchMeshGeneratorAction(), PiecewiseLinearBase::buildInterpolation(), CombinerGenerator::CombinerGenerator(), Executor::Executor(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), MultiApp::fillPositions(), CentroidMultiApp::fillPositions(), QuadraturePointMultiApp::fillPositions(), FunctionDT::FunctionDT(), FillBetweenCurvesGenerator::generate(), FillBetweenPointVectorsGenerator::generate(), FillBetweenSidesetsGenerator::generate(), MooseBase::MooseBase(), MooseBase::name(), ReferenceResidualConvergence::nonlinearConvergenceSetup(), ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), PiecewiseBase::setData(), and AddVariableAction::varName().

◆ _need_to_add_default_multiapp_fixed_point_convergence

bool FEProblemBase::_need_to_add_default_multiapp_fixed_point_convergence
protectedinherited

Flag that the problem needs to add the default fixed point convergence.

Definition at line 3191 of file FEProblemBase.h.

Referenced by FEProblemBase::needToAddDefaultMultiAppFixedPointConvergence(), and FEProblemBase::setNeedToAddDefaultMultiAppFixedPointConvergence().

◆ _need_to_add_default_nonlinear_convergence

bool FEProblemBase::_need_to_add_default_nonlinear_convergence
protectedinherited

Flag that the problem needs to add the default nonlinear convergence.

Definition at line 3189 of file FEProblemBase.h.

Referenced by FEProblemBase::needToAddDefaultNonlinearConvergence(), and FEProblemBase::setNeedToAddDefaultNonlinearConvergence().

◆ _need_to_add_default_steady_state_convergence

bool FEProblemBase::_need_to_add_default_steady_state_convergence
protectedinherited

Flag that the problem needs to add the default steady convergence.

Definition at line 3193 of file FEProblemBase.h.

Referenced by FEProblemBase::needToAddDefaultSteadyStateConvergence(), and FEProblemBase::setNeedToAddDefaultSteadyStateConvergence().

◆ _needs_old_newton_iter

bool FEProblemBase::_needs_old_newton_iter
protectedinherited

Indicates that we need to compute variable values for previous Newton iteration.

Definition at line 3463 of file FEProblemBase.h.

◆ _neighbor_material_props

MaterialPropertyStorage& FEProblemBase::_neighbor_material_props
protectedinherited

◆ _nl

std::vector<std::shared_ptr<NonlinearSystemBase> > FEProblemBase::_nl
protectedinherited

The nonlinear systems.

Definition at line 3220 of file FEProblemBase.h.

Referenced by FEProblemBase::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addHDGKernel(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addKernel(), FEProblemBase::addNodalKernel(), FEProblemBase::addPredictor(), FEProblemBase::addScalarKernel(), FEProblemBase::addTimeIntegrator(), FEProblemBase::bumpAllQRuleOrder(), FEProblemBase::bumpVolumeQRuleOrder(), FEProblemBase::checkNonlocalCoupling(), FEProblemBase::checkProblemIntegrity(), FEProblemBase::computeResidualL2Norm(), FEProblemBase::computingPreSMOResidual(), FEProblemBase::currentNlSysNum(), FEProblemBase::customSetup(), DumpObjectsProblem(), ExternalProblem::ExternalProblem(), FEProblemBase::finalNonlinearResidual(), FEProblemBase::getNonlinearEvaluableElementRange(), FEProblemBase::getNonlinearSystem(), FEProblemBase::getNonlinearSystemBase(), FEProblemBase::getNonlinearSystemBase(), FEProblemBase::init(), FEProblemBase::initXFEM(), FEProblemBase::jacobianSetup(), FEProblemBase::meshChanged(), FEProblemBase::needBoundaryMaterialOnSide(), FEProblemBase::needInterfaceMaterialOnSide(), FEProblemBase::needInternalNeighborSideMaterial(), FEProblemBase::nLinearIterations(), FEProblemBase::nNonlinearIterations(), FEProblemBase::onTimestepBegin(), FEProblemBase::prepare(), FEProblemBase::prepareFace(), FEProblemBase::projectInitialConditionOnCustomRange(), FEProblemBase::projectSolution(), FEProblemBase::reinitDirac(), FEProblemBase::reinitNeighbor(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNeighborPhys(), FEProblemBase::reinitNode(), FEProblemBase::reinitNodeFace(), FEProblemBase::reinitScalars(), FEProblemBase::residualSetup(), FEProblemBase::setCurrentNonlinearSystem(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setNeighborSubdomainID(), FEProblemBase::setNonlinearConvergenceNames(), FEProblemBase::setNonlocalCouplingMatrix(), FEProblemBase::setResidual(), FEProblemBase::setResidualObjectParamsAndLog(), FEProblemBase::setupDampers(), FEProblemBase::subdomainSetup(), FEProblemBase::systemBaseNonlinear(), FEProblemBase::systemBaseNonlinear(), FEProblemBase::updateActiveObjects(), and FEProblemBase::updateMeshXFEM().

◆ _nl_evaluable_local_elem_range

std::unique_ptr<libMesh::ConstElemRange> FEProblemBase::_nl_evaluable_local_elem_range
protectedinherited

◆ _nl_sys_name_to_num

std::map<NonlinearSystemName, unsigned int> FEProblemBase::_nl_sys_name_to_num
protectedinherited

Map from nonlinear system name to number.

Definition at line 3223 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::nlSysNum().

◆ _nl_sys_names

const std::vector<NonlinearSystemName> FEProblemBase::_nl_sys_names
protectedinherited

◆ _nonlinear_convergence_names

std::optional<std::vector<ConvergenceName> > FEProblemBase::_nonlinear_convergence_names
protectedinherited

Nonlinear system(s) convergence name(s)

Definition at line 3159 of file FEProblemBase.h.

Referenced by FEProblemBase::getNonlinearConvergenceNames(), and FEProblemBase::setNonlinearConvergenceNames().

◆ _nonlocal_cm

std::vector<libMesh::CouplingMatrix> FEProblemBase::_nonlocal_cm
privateinherited

◆ _nonlocal_integrated_bcs

MooseObjectWarehouse<IntegratedBCBase> FEProblemBase::_nonlocal_integrated_bcs
protectedinherited

◆ _nonlocal_kernels

MooseObjectWarehouse<KernelBase> FEProblemBase::_nonlocal_kernels
protectedinherited

◆ _not_zeroed_tagged_vectors

std::unordered_set<TagID> SubProblem::_not_zeroed_tagged_vectors
protectedinherited

the list of vector tags that will not be zeroed when all other tags are

Definition at line 1121 of file SubProblem.h.

Referenced by SubProblem::addNotZeroedVectorTag(), FEProblemBase::restoreSolutions(), and SubProblem::vectorTagNotZeroed().

◆ _notify_when_mesh_changes

std::vector<MeshChangedInterface *> FEProblemBase::_notify_when_mesh_changes
protectedinherited

Objects to be notified when the mesh changes.

Definition at line 3364 of file FEProblemBase.h.

Referenced by FEProblemBase::meshChanged(), and FEProblemBase::notifyWhenMeshChanges().

◆ _notify_when_mesh_displaces

std::vector<MeshDisplacedInterface *> FEProblemBase::_notify_when_mesh_displaces
protectedinherited

Objects to be notified when the mesh displaces.

Definition at line 3367 of file FEProblemBase.h.

Referenced by FEProblemBase::meshDisplaced(), and FEProblemBase::notifyWhenMeshDisplaces().

◆ _num_concurrent_multiapps

const unsigned int FEProblemBase::_num_concurrent_multiapps
protectedinherited

Number of concurrent applications being solved at the same time.

Definition at line 3349 of file FEProblemBase.h.

Referenced by FEProblemBase::execMultiApps(), FEProblemBase::numConcurrentMultiApps(), and FEProblemBase::partitionConcurrentMultiApps().

◆ _num_grid_steps

unsigned int FEProblemBase::_num_grid_steps
privateinherited

◆ _num_linear_sys

const std::size_t FEProblemBase::_num_linear_sys
protectedinherited

◆ _num_nl_sys

const std::size_t FEProblemBase::_num_nl_sys
protectedinherited

◆ _parallel_barrier_messaging

bool FEProblemBase::_parallel_barrier_messaging
protectedinherited

◆ _parent

const ParallelParamObject& DataFileInterface::_parent
privateinherited

◆ _pars

const InputParameters& MooseBase::_pars
protectedinherited

The object's parameters.

Definition at line 384 of file MooseBase.h.

Referenced by AddAuxKernelAction::act(), AddFVICAction::act(), AddICAction::act(), CommonOutputAction::act(), ComposeTimeStepperAction::act(), CreateProblemAction::act(), CreateProblemDefaultAction::act(), SetupDebugAction::act(), SetupMeshAction::act(), AddMFEMComplexBCComponentAction::act(), AddMFEMComplexKernelComponentAction::act(), FunctorMaterial::addFunctorPropertyByBlocks(), BreakMeshByBlockGenerator::BreakMeshByBlockGenerator(), PNGOutput::calculateRescalingValues(), MooseBase::callMooseError(), MooseBase::connectControllableParams(), Console::Console(), MooseApp::copyInputs(), MaterialBase::declareADProperty(), Moose::Kokkos::MaterialBase::declareKokkosOnDemandProperty(), Moose::Kokkos::MaterialBase::declareKokkosProperty(), MaterialBase::declareProperty(), FEProblemSolve::FEProblemSolve(), FileMeshGenerator::generate(), MooseBase::getBase(), MooseBase::getCheckedPointerParam(), MaterialBase::getGenericZeroMaterialProperty(), MooseBase::getHitNode(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), MooseBase::getParam(), MooseBase::getParam(), MooseBase::hasBase(), MeshGenerator::hasGenerateCSG(), MeshGenerator::hasGenerateData(), AddVariableAction::init(), AdvancedOutput::initExecutionTypes(), EigenProblemSolve::initialSetup(), Console::initialSetup(), MooseBase::isParamSetByUser(), MooseBase::isParamValid(), MultiApp::keepSolutionDuringRestore(), MooseBase::messagePrefix(), MooseBase::MooseBase(), MultiSystemSolveObject::MultiSystemSolveObject(), MooseApp::outputMachineReadableData(), MooseBase::paramError(), MooseBase::parameters(), MooseBase::paramInfo(), MooseBase::paramWarning(), MooseMesh::prepare(), MooseBase::queryParam(), MooseMesh::setCoordSystem(), MooseMesh::setPartitionerHelper(), SetupMeshAction::setupMesh(), TransientBase::setupTimeIntegrator(), MooseApp::showInputs(), and MooseBase::uniqueName().

◆ _pbblf_functors

std::vector<std::map<std::string, std::unique_ptr<Moose::FunctorAbstract> > > SubProblem::_pbblf_functors
privateinherited

◆ _petsc_option_data_base

PetscOptions FEProblemBase::_petsc_option_data_base
protectedinherited

◆ _petsc_options

Moose::PetscSupport::PetscOptions FEProblemBase::_petsc_options
protectedinherited

PETSc option storage.

Definition at line 3557 of file FEProblemBase.h.

Referenced by FEProblemBase::getPetscOptions(), FEProblemBase::solve(), and FEProblemBase::solveLinearSystem().

◆ _pg_moose_app

MooseApp& PerfGraphInterface::_pg_moose_app
protectedinherited

The MooseApp that owns the PerfGraph.

Definition at line 135 of file PerfGraphInterface.h.

Referenced by PerfGraphInterface::perfGraph().

◆ _phi_zero

std::vector<VariablePhiValue> FEProblemBase::_phi_zero
inherited

◆ _point_zero

std::vector<Point> FEProblemBase::_point_zero
inherited

Definition at line 2605 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase().

◆ _prefix

const std::string PerfGraphInterface::_prefix
protectedinherited

A prefix to use for all sections.

Definition at line 138 of file PerfGraphInterface.h.

Referenced by PerfGraphInterface::timedSectionName().

◆ _preserve_matrix_sparsity_pattern

bool FEProblemBase::_preserve_matrix_sparsity_pattern
privateinherited

Whether to preserve the system matrix / Jacobian sparsity pattern, using 0-valued entries usually.

Definition at line 3664 of file FEProblemBase.h.

Referenced by FEProblemBase::preserveMatrixSparsityPattern(), and FEProblemBase::setPreserveMatrixSparsityPattern().

◆ _previous_multiapp_fp_aux_solution_required

bool FEProblemBase::_previous_multiapp_fp_aux_solution_required
protectedinherited

Indicates we need to save the previous multiapp fixed-point iteration auxiliary variable values.

Definition at line 3470 of file FEProblemBase.h.

Referenced by FEProblemBase::needsPreviousMultiAppFixedPointIterationAuxiliary(), and FEProblemBase::needsPreviousMultiAppFixedPointIterationAuxiliary().

◆ _previous_multiapp_fp_nl_solution_required

std::vector<bool> FEProblemBase::_previous_multiapp_fp_nl_solution_required
protectedinherited

Indicates we need to save the previous multiapp fixed-point iteration solver variable values.

Definition at line 3468 of file FEProblemBase.h.

Referenced by FEProblemBase::needsPreviousMultiAppFixedPointIterationSolution(), and FEProblemBase::needsPreviousMultiAppFixedPointIterationSolution().

◆ _previous_multisystem_fp_aux_solution_required

bool FEProblemBase::_previous_multisystem_fp_aux_solution_required
protectedinherited

Indicates we need to save the previous multi-system fixed-point iteration auxiliary variable values.

Definition at line 3474 of file FEProblemBase.h.

Referenced by FEProblemBase::needsPreviousMultiSystemFixedPointIterationAuxiliary(), and FEProblemBase::needsPreviousMultiSystemFixedPointIterationAuxiliary().

◆ _previous_multisystem_fp_nl_solution_required

std::vector<bool> FEProblemBase::_previous_multisystem_fp_nl_solution_required
protectedinherited

Indicates we need to save the previous multi-system fixed-point iteration solver variable values.

Definition at line 3472 of file FEProblemBase.h.

Referenced by FEProblemBase::needsPreviousMultiSystemFixedPointIterationSolution(), and FEProblemBase::needsPreviousMultiSystemFixedPointIterationSolution().

◆ _previous_nl_solution_required

bool FEProblemBase::_previous_nl_solution_required
protectedinherited

Indicates we need to save the previous NL iteration variable values.

Definition at line 3466 of file FEProblemBase.h.

Referenced by FEProblemBase::createTagSolutions().

◆ _print_execution_on

ExecFlagEnum FEProblemBase::_print_execution_on
privateinherited

When to print the execution of loops.

Definition at line 3719 of file FEProblemBase.h.

Referenced by FEProblemBase::setExecutionPrinting(), and FEProblemBase::shouldPrintExecution().

◆ _random_data_objects

std::map<std::string, std::unique_ptr<RandomData> > FEProblemBase::_random_data_objects
protectedinherited

◆ _real_zero

std::vector<Real> FEProblemBase::_real_zero
inherited

Convenience zeros.

Definition at line 2594 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase().

◆ _regard_general_exceptions_as_errors

const bool FEProblemBase::_regard_general_exceptions_as_errors
privateinherited

If we catch an exception during residual/Jacobian evaluaton for which we don't have specific handling, immediately error instead of allowing the time step to be cut.

Definition at line 3734 of file FEProblemBase.h.

Referenced by FEProblemBase::handleException().

◆ _reinit_displaced_elem

bool FEProblemBase::_reinit_displaced_elem
protectedinherited

◆ _reinit_displaced_face

bool FEProblemBase::_reinit_displaced_face
protectedinherited

◆ _reinit_displaced_neighbor

bool FEProblemBase::_reinit_displaced_neighbor
protectedinherited

◆ _reporter_data

ReporterData FEProblemBase::_reporter_data
protectedinherited

◆ _req

Restartable::ManagedValue<RestartableEquationSystems> FEProblemBase::_req
privateinherited

The EquationSystems object, wrapped for restart.

Definition at line 3112 of file FEProblemBase.h.

Referenced by FEProblemBase::es(), and FEProblemBase::getRestartableEquationSystems().

◆ _requires_nonlocal_coupling

bool FEProblemBase::_requires_nonlocal_coupling
privateinherited

◆ _restartable_app

MooseApp& Restartable::_restartable_app
protectedinherited

Reference to the application.

Definition at line 234 of file Restartable.h.

Referenced by Restartable::registerRestartableDataOnApp(), and Restartable::registerRestartableNameWithFilterOnApp().

◆ _restartable_name

std::string Restartable::_restartable_name
privateinherited

The name of the object.

Definition at line 250 of file Restartable.h.

Referenced by Restartable::declareRestartableDataWithObjectNameWithContext(), and Restartable::restartableName().

◆ _restartable_read_only

const bool Restartable::_restartable_read_only
protectedinherited

Flag for toggling read only status (see ReporterData)

Definition at line 243 of file Restartable.h.

Referenced by Restartable::registerRestartableDataOnApp().

◆ _restartable_system_name

const std::string Restartable::_restartable_system_name
protectedinherited

The system name this object is in.

Definition at line 237 of file Restartable.h.

Referenced by Restartable::restartableName().

◆ _restartable_tid

const THREAD_ID Restartable::_restartable_tid
protectedinherited

The thread ID for this object.

Definition at line 240 of file Restartable.h.

Referenced by Restartable::declareRestartableDataHelper().

◆ _restore_original_nonzero_pattern

const bool FEProblemBase::_restore_original_nonzero_pattern
privateinherited

Whether we should restore the original nonzero pattern for every Jacobian evaluation.

This option is useful if the sparsity pattern is constantly changing and you are using hash table assembly or if you wish to continually restore the matrix to the originally preallocated sparsity pattern computed by relationship managers.

Definition at line 3660 of file FEProblemBase.h.

Referenced by FEProblemBase::computeJacobianTags(), and FEProblemBase::restoreOriginalNonzeroPattern().

◆ _root_alg_gf_to_sys_clones

std::unordered_map<libMesh::GhostingFunctor *, std::vector<std::shared_ptr<libMesh::GhostingFunctor> > > SubProblem::_root_alg_gf_to_sys_clones
privateinherited

A map from a root algebraic ghosting functor, e.g.

the ghosting functor passed into removeAlgebraicGhostingFunctor, to its clones in other systems, e.g. systems other than system 0

Definition at line 1199 of file SubProblem.h.

Referenced by SubProblem::cloneAlgebraicGhostingFunctor(), and SubProblem::removeAlgebraicGhostingFunctor().

◆ _root_coupling_gf_to_sys_clones

std::unordered_map<libMesh::GhostingFunctor *, std::vector<std::shared_ptr<libMesh::GhostingFunctor> > > SubProblem::_root_coupling_gf_to_sys_clones
privateinherited

A map from a root coupling ghosting functor, e.g.

the ghosting functor passed into removeCouplingGhostingFunctor, to its clones in other systems, e.g. systems other than system 0

Definition at line 1206 of file SubProblem.h.

Referenced by SubProblem::cloneCouplingGhostingFunctor(), and SubProblem::removeCouplingGhostingFunctor().

◆ _safe_access_tagged_matrices

bool SubProblem::_safe_access_tagged_matrices
protectedinherited

◆ _safe_access_tagged_vectors

bool SubProblem::_safe_access_tagged_vectors
protectedinherited

◆ _scalar_ics

ScalarInitialConditionWarehouse FEProblemBase::_scalar_ics
protectedinherited

◆ _scalar_zero

std::vector<VariableValue> FEProblemBase::_scalar_zero
inherited

◆ _second_phi_zero

std::vector<VariablePhiSecond> FEProblemBase::_second_phi_zero
inherited

◆ _second_zero

std::vector<VariableSecond> FEProblemBase::_second_zero
inherited

◆ _show_chain_control_data

bool SubProblem::_show_chain_control_data
privateinherited

Whether to output a list of all the chain control data.

Definition at line 1171 of file SubProblem.h.

Referenced by SubProblem::initialSetup(), SubProblem::setChainControlDataOutput(), and SubProblem::timestepSetup().

◆ _show_functors

bool SubProblem::_show_functors
privateinherited

Whether to output a list of the functors used and requested (currently only at initialSetup)

Definition at line 1168 of file SubProblem.h.

Referenced by SubProblem::initialSetup(), and SubProblem::setFunctorOutput().

◆ _show_invalid_solution_console

const bool FEProblemBase::_show_invalid_solution_console
privateinherited

Definition at line 3671 of file FEProblemBase.h.

Referenced by FEProblemBase::showInvalidSolutionConsole().

◆ _si_moose_base

const MooseBase& SolutionInvalidInterface::_si_moose_base
privateinherited

◆ _si_problem

const FEProblemBase* SolutionInvalidInterface::_si_problem
privateinherited

A pointer to FEProblem base.

Definition at line 114 of file SolutionInvalidInterface.h.

Referenced by SolutionInvalidInterface::flagInvalidSolutionInternal().

◆ _side_uo_interface_mat_prop_integrity_check

const bool FEProblemBase::_side_uo_interface_mat_prop_integrity_check
protectedinherited

Whether to check that side user objects do not consume interface material properties.

Definition at line 3500 of file FEProblemBase.h.

Referenced by FEProblemBase::sideUOInterfaceMatPropIntegrityCheck().

◆ _skip_exception_check

bool FEProblemBase::_skip_exception_check
protectedinherited

If or not skip 'exception and stop solve'.

Definition at line 3448 of file FEProblemBase.h.

Referenced by FEProblemBase::checkExceptionAndStopSolve(), FEProblemBase::initialSetup(), and FEProblemBase::skipExceptionCheck().

◆ _skip_nl_system_check

const bool FEProblemBase::_skip_nl_system_check
privateinherited

Definition at line 3668 of file FEProblemBase.h.

Referenced by FEProblemBase::checkProblemIntegrity(), and FEProblemBase::init().

◆ _snesmf_reuse_base

bool FEProblemBase::_snesmf_reuse_base
protectedinherited

If or not to resuse the base vector for matrix-free calculation.

Definition at line 3445 of file FEProblemBase.h.

Referenced by FEProblemBase::setSNESMFReuseBase(), and FEProblemBase::useSNESMFReuseBase().

◆ _snesmf_reuse_base_set_by_user

bool FEProblemBase::_snesmf_reuse_base_set_by_user
protectedinherited

If or not _snesmf_reuse_base is set by user.

Definition at line 3451 of file FEProblemBase.h.

Referenced by FEProblemBase::isSNESMFReuseBaseSetbyUser(), and FEProblemBase::setSNESMFReuseBase().

◆ _solve

const bool& FEProblemBase::_solve
protectedinherited

◆ _solver_params

std::vector<SolverParams> FEProblemBase::_solver_params
protectedinherited

◆ _solver_sys_name_to_num

std::map<SolverSystemName, unsigned int> FEProblemBase::_solver_sys_name_to_num
protectedinherited

Map connecting solver system names with their respective systems.

Definition at line 3238 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::solverSysNum().

◆ _solver_sys_names

std::vector<SolverSystemName> FEProblemBase::_solver_sys_names
protectedinherited

◆ _solver_systems

std::vector<std::shared_ptr<SolverSystem> > FEProblemBase::_solver_systems
protectedinherited

Combined container to base pointer of every solver system.

Definition at line 3232 of file FEProblemBase.h.

Referenced by FEProblemBase::addObjectParamsHelper(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addVariable(), FEProblemBase::advanceState(), FEProblemBase::computeSystems(), FEProblemBase::copySolutionsBackwards(), FEProblemBase::createQRules(), FEProblemBase::createTagMatrices(), FEProblemBase::createTagSolutions(), FEProblemBase::createTagVectors(), FEProblemBase::determineSolverSystem(), DumpObjectsProblem(), FEProblemBase::duplicateVariableCheck(), EigenProblem::EigenProblem(), ExternalProblem::ExternalProblem(), FEProblem::FEProblem(), FEProblemBase::getActualFieldVariable(), FEProblemBase::getArrayVariable(), FEProblemBase::getScalarVariable(), FEProblemBase::getSolverSystem(), FEProblemBase::getSolverSystem(), FEProblemBase::getStandardVariable(), FEProblemBase::getSystem(), FEProblemBase::getSystemBase(), FEProblemBase::getSystemBase(), FEProblemBase::getVariable(), FEProblemBase::getVariableNames(), FEProblemBase::getVectorVariable(), FEProblemBase::hasScalarVariable(), FEProblemBase::hasSolutionState(), FEProblemBase::hasSolverVariable(), FEProblemBase::hasVariable(), FEProblem::init(), FEProblemBase::init(), FEProblemBase::initialSetup(), FEProblemBase::meshChanged(), FEProblemBase::needSolutionState(), FEProblemBase::outputStep(), FEProblemBase::prepare(), FEProblemBase::projectSolution(), FEProblemBase::reinitElem(), FEProblemBase::reinitElemFace(), FEProblemBase::reinitElemPhys(), FEProblemBase::restoreOldSolutions(), FEProblemBase::restoreSolutions(), FEProblemBase::saveOldSolutions(), FEProblemBase::setAuxKernelParamsAndLog(), FEProblemBase::setCurrentSubdomainID(), Moose::PetscSupport::setSinglePetscOption(), FEProblemBase::setVariableAllDoFMap(), FEProblemBase::skipNextForwardSolutionCopyToOld(), FEProblemBase::solverSystemConverged(), FEProblemBase::systemBaseSolver(), FEProblemBase::systemBaseSolver(), FEProblemBase::systemNumForVariable(), and FEProblemBase::timestepSetup().

◆ _solver_var_to_sys_num

std::map<SolverVariableName, unsigned int> FEProblemBase::_solver_var_to_sys_num
protectedinherited

Map connecting variable names with their respective solver systems.

Definition at line 3235 of file FEProblemBase.h.

Referenced by FEProblemBase::addVariable(), and FEProblemBase::determineSolverSystem().

◆ _started_initial_setup

bool FEProblemBase::_started_initial_setup
privateinherited

At or beyond initialSteup stage.

Definition at line 3675 of file FEProblemBase.h.

Referenced by FEProblemBase::initialSetup(), and FEProblemBase::startedInitialSetup().

◆ _steady_state_convergence_name

std::optional<ConvergenceName> FEProblemBase::_steady_state_convergence_name
protectedinherited

◆ _subspace_dim

std::map<std::string, unsigned int> FEProblemBase::_subspace_dim
protectedinherited

Dimension of the subspace spanned by the vectors with a given prefix.

Definition at line 3257 of file FEProblemBase.h.

Referenced by FEProblemBase::initNullSpaceVectors(), and FEProblemBase::subspaceDim().

◆ _t_step

int& FEProblemBase::_t_step
protectedinherited

◆ _termination_requested

bool Problem::_termination_requested
protectedinherited

True if termination of the solve has been requested.

Definition at line 58 of file Problem.h.

Referenced by Problem::isSolveTerminationRequested(), and Problem::terminateSolve().

◆ _time

Real& FEProblemBase::_time
protectedinherited

◆ _time_old

Real& FEProblemBase::_time_old
protectedinherited

Definition at line 3182 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::timeOld().

◆ _time_older

Real& FEProblemBase::_time_older
protectedinherited

Definition at line 3183 of file FEProblemBase.h.

Referenced by FEProblemBase::FEProblemBase(), and FEProblemBase::timeOlder().

◆ _to_multi_app_transfers

ExecuteMooseObjectWarehouse<Transfer> FEProblemBase::_to_multi_app_transfers
protectedinherited

◆ _transfers

ExecuteMooseObjectWarehouse<Transfer> FEProblemBase::_transfers
protectedinherited

Normal Transfers.

Definition at line 3337 of file FEProblemBase.h.

Referenced by FEProblemBase::addTransfer(), and FEProblemBase::updateActiveObjects().

◆ _transient

bool FEProblemBase::_transient
protectedinherited

Definition at line 3180 of file FEProblemBase.h.

Referenced by FEProblemBase::isTransient(), and FEProblemBase::transient().

◆ _transient_multi_apps

ExecuteMooseObjectWarehouse<TransientMultiApp> FEProblemBase::_transient_multi_apps
protectedinherited

Storage for TransientMultiApps (only needed for calling 'computeDT')

Definition at line 3334 of file FEProblemBase.h.

Referenced by FEProblemBase::addMultiApp(), FEProblemBase::computeMultiAppsDT(), and FEProblemBase::updateActiveObjects().

◆ _trust_user_coupling_matrix

bool FEProblemBase::_trust_user_coupling_matrix = false
privateinherited

Whether to trust the user coupling matrix no matter what.

See https://github.com/idaholab/moose/issues/16395 for detailed background

Definition at line 3707 of file FEProblemBase.h.

Referenced by FEProblemBase::setCoupling(), and FEProblemBase::trustUserCouplingMatrix().

◆ _type

const std::string& MooseBase::_type
protectedinherited

◆ _typed_vector_tags

std::vector<std::vector<VectorTag> > SubProblem::_typed_vector_tags
privateinherited

The vector tags associated with each VectorTagType This is kept separate from _vector_tags for quick access into typed vector tags in places where we don't want to build a new vector every call (like in residual evaluation)

Definition at line 1181 of file SubProblem.h.

Referenced by SubProblem::addVectorTag(), SubProblem::getVectorTags(), and SubProblem::verifyVectorTags().

◆ _u_dot_old_requested

bool FEProblemBase::_u_dot_old_requested
privateinherited

Whether old solution time derivative needs to be stored.

Definition at line 3687 of file FEProblemBase.h.

Referenced by FEProblemBase::setUDotOldRequested(), and FEProblemBase::uDotOldRequested().

◆ _u_dot_requested

bool FEProblemBase::_u_dot_requested
privateinherited

Whether solution time derivative needs to be stored.

Definition at line 3681 of file FEProblemBase.h.

Referenced by FEProblemBase::setUDotRequested(), FEProblemBase::uDotOldRequested(), and FEProblemBase::uDotRequested().

◆ _u_dotdot_old_requested

bool FEProblemBase::_u_dotdot_old_requested
privateinherited

Whether old solution second time derivative needs to be stored.

Definition at line 3690 of file FEProblemBase.h.

Referenced by FEProblemBase::setUDotDotOldRequested(), and FEProblemBase::uDotDotOldRequested().

◆ _u_dotdot_requested

bool FEProblemBase::_u_dotdot_requested
privateinherited

Whether solution second time derivative needs to be stored.

Definition at line 3684 of file FEProblemBase.h.

Referenced by FEProblemBase::setUDotDotRequested(), FEProblemBase::uDotDotOldRequested(), and FEProblemBase::uDotDotRequested().

◆ _uo_aux_state_check

const bool FEProblemBase::_uo_aux_state_check
protectedinherited

Whether or not checking the state of uo/aux evaluation.

Definition at line 3516 of file FEProblemBase.h.

Referenced by FEProblemBase::execute(), and FEProblemBase::hasUOAuxStateCheck().

◆ _uo_jacobian_moose_vars

std::vector<std::vector<const MooseVariableFEBase *> > FEProblemBase::_uo_jacobian_moose_vars
protectedinherited

◆ _use_hash_table_matrix_assembly

const bool FEProblemBase::_use_hash_table_matrix_assembly
protectedinherited

Whether to assemble matrices using hash tables instead of preallocating matrix memory.

This can be a good option if the sparsity pattern changes throughout the course of the simulation

Definition at line 3584 of file FEProblemBase.h.

Referenced by EigenProblem::EigenProblem(), FEProblem::FEProblem(), and FEProblemBase::useHashTableMatrixAssembly().

◆ _using_ad_mat_props

bool FEProblemBase::_using_ad_mat_props
protectedinherited

Automatic differentiaion (AD) flag which indicates whether any consumer has requested an AD material property or whether any suppier has declared an AD material property.

Definition at line 3577 of file FEProblemBase.h.

◆ _using_default_nl

const bool FEProblemBase::_using_default_nl
protectedinherited

Boolean to check if we have the default nonlinear system.

Definition at line 3211 of file FEProblemBase.h.

◆ _var_dof_map

std::map<std::string, std::vector<dof_id_type> > SubProblem::_var_dof_map
inherited

◆ _vector_curl_zero

std::vector<VectorVariableCurl> FEProblemBase::_vector_curl_zero
inherited

◆ _vector_tags

std::vector<VectorTag> SubProblem::_vector_tags
privateinherited

◆ _vector_tags_name_map

std::map<TagName, TagID> SubProblem::_vector_tags_name_map
privateinherited

Map of vector tag TagName to TagID.

Definition at line 1184 of file SubProblem.h.

Referenced by SubProblem::addVectorTag(), SubProblem::getVectorTagID(), and SubProblem::verifyVectorTags().

◆ _vector_zero

std::vector<VectorVariableValue> FEProblemBase::_vector_zero
inherited

◆ _verbose_multiapps

bool FEProblemBase::_verbose_multiapps
protectedinherited

◆ _verbose_restore

bool FEProblemBase::_verbose_restore
protectedinherited

Whether or not to be verbose on solution restoration post a failed time step.

Definition at line 3545 of file FEProblemBase.h.

Referenced by FEProblemBase::restoreSolutions(), and FEProblemBase::setVerboseProblem().

◆ _verbose_setup

MooseEnum FEProblemBase::_verbose_setup
protectedinherited

Whether or not to be verbose during setup.

Definition at line 3539 of file FEProblemBase.h.

Referenced by FEProblemBase::logAdd(), and FEProblemBase::setVerboseProblem().

◆ _xfem

std::shared_ptr<XFEMInterface> FEProblemBase::_xfem
protectedinherited

Pointer to XFEM controller.

Definition at line 3420 of file FEProblemBase.h.

Referenced by FEProblemBase::getXFEM(), FEProblemBase::haveXFEM(), FEProblemBase::initXFEM(), and FEProblemBase::updateMeshXFEM().

◆ _zero

std::vector<VariableValue> FEProblemBase::_zero
inherited

◆ _zero_block_material_props

std::map<SubdomainID, std::set<MaterialPropertyName> > SubProblem::_zero_block_material_props
protectedinherited

Set of properties returned as zero properties.

Definition at line 1062 of file SubProblem.h.

Referenced by SubProblem::checkBlockMatProps(), FEProblemBase::checkDependMaterialsHelper(), and SubProblem::storeSubdomainZeroMatProp().

◆ _zero_boundary_material_props

std::map<BoundaryID, std::set<MaterialPropertyName> > SubProblem::_zero_boundary_material_props
protectedinherited

◆ app_param

const std::string MooseBase::app_param = "_moose_app"
staticinherited

◆ kokkos_object_param

const std::string MooseBase::kokkos_object_param = "_kokkos_object"
staticinherited

The name of the parameter that indicates an object is a Kokkos functor.

Definition at line 64 of file MooseBase.h.

Referenced by InputParameters::isKokkosObject().

◆ moose_base_param

const std::string MooseBase::moose_base_param = "_moose_base"
staticinherited

The name of the parameter that contains the moose system base.

Definition at line 61 of file MooseBase.h.

Referenced by InputParameters::getBase(), InputParameters::hasBase(), and InputParameters::registerBase().

◆ name_param

const std::string MooseBase::name_param = "_object_name"
staticinherited

◆ type_param

const std::string MooseBase::type_param = "_type"
staticinherited

◆ unique_name_param

const std::string MooseBase::unique_name_param = "_unique_name"
staticinherited

The name of the parameter that contains the unique object name.

Definition at line 57 of file MooseBase.h.

Referenced by InputParameterWarehouse::addInputParameters(), AppFactory::create(), InputParameterWarehouse::removeInputParameters(), MooseBase::uniqueName(), and MooseBase::validParams().

◆ usingCombinedWarningSolutionWarnings

MooseObject::usingCombinedWarningSolutionWarnings
inherited

Definition at line 67 of file MooseObject.h.


The documentation for this class was generated from the following files: