15 #include "libmesh/sparse_matrix.h" 27 params.
addParam<
bool>(
"use_displaced_mesh",
29 "Whether or not this object should use the " 30 "displaced mesh for computation. Note that " 31 "in the case this is true but no " 32 "displacements are provided in the Mesh block " 33 "the undisplaced mesh will still be used.");
36 params.
addParam<
bool>(
"allow_duplicate_execution_on_initial",
38 "In the case where this UserObject is depended upon by an initial " 39 "condition, allow it to be executed twice during the initial setup (once " 40 "before the IC and again after mesh adaptivity (if applicable).");
43 params.
addParam<
bool>(
"force_preaux",
false,
"Forces the UserObject to be executed in PREAUX");
44 params.
addParam<
bool>(
"force_postaux",
false,
"Forces the UserObject to be executed in POSTAUX");
46 "force_preic",
false,
"Forces the UserObject to be executed in PREIC during initial setup");
48 "execution_order_group",
50 "Execution order groups are executed in increasing order (e.g., the lowest " 51 "number is executed first). Note that negative group numbers may be used to execute groups " 52 "before the default (0) group. Please refer to the user object documentation " 53 "for ordering of user object execution within a group.");
59 "allow_duplicate_execution_on_initial execution_order_group",
60 "Execution scheduling");
80 _subproblem(*getCheckedPointerParam<
SubProblem *>(
"_subproblem")),
81 _fe_problem(*getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
82 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
84 _assembly(_subproblem.assembly(_tid, 0)),
85 _coord_sys(_assembly.coordSystem()),
86 _duplicate_initial_execution(getParam<bool>(
"allow_duplicate_execution_on_initial"))
89 if (getParam<bool>(
"force_preaux") && getParam<bool>(
"force_postaux"))
91 "A user object may be specified as executing before or after " 92 "AuxKernels, not both.");
97 std::set<UserObjectName>
100 std::set<UserObjectName> all;
111 if (uo.name() !=
name())
113 auto uos = uo.getDependObjects();
A MultiMooseEnum object to hold "execute_on" flags.
A class for creating restricted objects.
void setPrimaryThreadCopy(UserObject *primary)
static InputParameters validParams()
Interface for objects acting when the mesh has been displaced.
std::set< std::string > _supplied_uo
A name of the "supplied" user objects, which is just this object.
UserObject * _primary_thread_copy
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
Interface for objects that need to use samplers.
const ExecFlagType EXEC_TIMESTEP_END
Base class for a system (of equations)
virtual void addVectorPostprocessorDependencyHelper(const VectorPostprocessorName &name) const override
Helper for deriving classes to override to add dependencies when a VectorPostprocessor is requested...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual const std::string & name() const
Get the name of the class.
Interface for notifications that the mesh has changed.
Every object that can be built by the factory should be derived from this class.
Interface for objects that need to use distributions.
Interface to allow object to consume Reporter values.
SystemBase & _sys
Reference to the system object for this user object.
Interface for objects that need to use UserObjects.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
unsigned int number() const
Gets the number of this system.
const std::string & getObjectName() const
Return the object name that produces the Reporter value.
std::set< UserObjectName > getDependObjects() const
Recursively return a set of user objects this user object depends on Note: this can be called only af...
static InputParameters validParams()
Interface for objects interacting with the PerfGraph.
std::set< std::string > _depend_uo
Depend UserObjects that to be used both for determining user object sorting and by AuxKernel for find...
virtual void addUserObjectDependencyHelper(const UserObject &uo) const override
Helper for deriving classes to override to add dependencies when a UserObject is requested.
Generic class for solving transient nonlinear problems.
UserObject(const InputParameters ¶ms)
void addReporterDependencyHelper(const ReporterName &reporter_name) override
A method that can be overridden to update the UO dependencies.
const UserObject & getUserObjectBaseByName(const UserObjectName &object_name, bool is_dependency=true) const
Get an user object with the name object_name.
static InputParameters validParams()
virtual void addPostprocessorDependencyHelper(const PostprocessorName &name) const override
Helper for deriving classes to override to add dependencies when a Postprocessor is requested...
unsigned int systemNumber() const
Interface for objects that need to use functions.
Base class for user-specific data.
The Reporter system is comprised of objects that can contain any number of data values.
Interface class for classes which interact with Postprocessors.
static InputParameters validParams()