NumDOFs

The NumDOFs postprocessor provides information about the number of degrees of freedom (DOFs) in the simulation. This postprocessor is capable of providing the DOFs in either the Nonlinear system (the system of PDEs you are solving), the Auxiliary system, the system containing only explicit calculations, or both together.

If you are using Mesh Adaptivity, the number of DOFs will likely change as your simulation progresses. You might consider using execute_on = initial timestep_end in that case. Otherwise execute_on = initial should be sufficient.

When scaling your problem up to more processor cores, try not to spread your problem out too much. A good target should be around 20,000 DOFs in your Nonlinear System. Please see this PETSc FAQ for more information.

Description and Syntax

Return the number of Degrees of freedom from either the NL, Aux or both systems.

Input Parameters

  • execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

    Default:TIMESTEP_END

    C++ Type:ExecFlagEnum

    Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

  • systemALLThe system(s) for which you want to retrieve the number of DOFs (NL, AUX, ALL). Default == ALL

    Default:ALL

    C++ Type:MooseEnum

    Description:The system(s) for which you want to retrieve the number of DOFs (NL, AUX, ALL). Default == ALL

Optional Parameters

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Description:Set the enabled status of the MooseObject.

  • use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

    Default:False

    C++ Type:bool

    Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

  • outputsVector of output names were you would like to restrict the output of variables(s) associated with this object

    C++ Type:std::vector

    Description:Vector of output names were you would like to restrict the output of variables(s) associated with this object

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

    Default:False

    C++ Type:bool

    Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

  • force_preauxFalseForces the GeneralUserObject to be executed in PREAUX

    Default:False

    C++ Type:bool

    Description:Forces the GeneralUserObject to be executed in PREAUX

Advanced Parameters

References