Base class for all Postprocessors. More...
#include <Postprocessor.h>
Public Types | |
| using | FunctorType = FunctorBase< Real > |
| using | ValueType = Real |
| using | GradientType = typename FunctorReturnType< Real, FunctorEvaluationKind::Gradient >::type |
| This rigmarole makes it so that a user can create functors that return containers (std::vector, std::array). | |
| using | DotType = ValueType |
Public Member Functions | |
| Postprocessor (const MooseObject *moose_object) | |
| Postprocessor (const Postprocessor &object, const Moose::Kokkos::FunctorCopy &key) | |
| Special constructor used for Kokkos functor copy during parallel dispatch. | |
| virtual PostprocessorValue | getValue () const =0 |
| This will get called to actually grab the final value the postprocessor has calculated. | |
| const PostprocessorValue & | getCurrentValue () const |
| const std::string & | PPName () const |
| Returns the name of the Postprocessor. | |
| virtual bool | hasBlocks (SubdomainID) const override |
| Returns whether the functor is defined on this block. | |
| bool | supportsFaceArg () const override final |
| Whether this functor supports evaluation with FaceArg. | |
| bool | supportsElemSideQpArg () const override final |
| Whether this functor supports evaluation with ElemSideQpArg. | |
| void | buildOutputHideVariableList (std::set< std::string > variable_names) |
| Builds hide lists for output objects NOT listed in the 'outputs' parameter. | |
| const std::set< OutputName > & | getOutputs () |
| Get the list of output objects that this class is restricted. | |
| template<> | |
| const Moose::Functor< Real > * | defaultFunctor (const std::string &name) |
| template<> | |
| const Moose::Functor< ADReal > * | defaultFunctor (const std::string &name) |
| FunctorReturnType< Real, FET >::type | genericEvaluate (const Space &r, const State &state) const |
Perform a generic evaluation based on the supplied template argument FET and supplied spatial and temporal arguments. | |
| const MooseFunctorName & | functorName () const |
| Return the functor name. | |
| virtual void | residualSetup () override |
| virtual void | jacobianSetup () override |
| virtual void | timestepSetup () override |
| virtual void | customSetup (const ExecFlagType &exec_type) override |
| void | setCacheClearanceSchedule (const std::set< ExecFlagType > &clearance_schedule) |
| Set how often to clear the functor evaluation cache. | |
| virtual bool | isExtrapolatedBoundaryFace (const FaceInfo &, const Elem *, const StateArg &) const |
| Returns whether this (sided) face is an extrapolated boundary face for this functor. | |
| bool | isInternalFace (const FaceInfo &) const |
| Returns true if the face is an internal face. | |
| virtual bool | isConstant () const |
| Returns true if this functor is a constant. | |
| virtual bool | hasFaceSide (const FaceInfo &fi, const bool fi_elem_side) const override |
| void | checkFace (const Moose::FaceArg &face) const |
| Examines the incoming face argument. | |
| ValueType | operator() (const ElemArg &elem, const StateArg &state) const |
Same as their evaluate overloads with the same arguments but allows for caching implementation. | |
| ValueType | operator() (const FaceArg &face, const StateArg &state) const |
| ValueType | operator() (const ElemQpArg &qp, const StateArg &state) const |
| ValueType | operator() (const ElemSideQpArg &qp, const StateArg &state) const |
| ValueType | operator() (const ElemPointArg &elem_point, const StateArg &state) const |
| ValueType | operator() (const NodeArg &node, const StateArg &state) const |
| GradientType | gradient (const ElemArg &elem, const StateArg &state) const |
Same as their evaluateGradient overloads with the same arguments but allows for caching implementation. | |
| GradientType | gradient (const FaceArg &face, const StateArg &state) const |
| GradientType | gradient (const ElemQpArg &qp, const StateArg &state) const |
| GradientType | gradient (const ElemSideQpArg &qp, const StateArg &state) const |
| GradientType | gradient (const ElemPointArg &elem_point, const StateArg &state) const |
| GradientType | gradient (const NodeArg &node, const StateArg &state) const |
| DotType | dot (const ElemArg &elem, const StateArg &state) const |
Same as their evaluateDot overloads with the same arguments but allows for caching implementation. | |
| DotType | dot (const FaceArg &face, const StateArg &state) const |
| DotType | dot (const ElemQpArg &qp, const StateArg &state) const |
| DotType | dot (const ElemSideQpArg &qp, const StateArg &state) const |
| DotType | dot (const ElemPointArg &elem_point, const StateArg &state) const |
| DotType | dot (const NodeArg &node, const StateArg &state) const |
| GradientType | gradDot (const ElemArg &elem, const StateArg &state) const |
Same as their evaluateGradDot overloads with the same arguments but allows for caching implementation. | |
| GradientType | gradDot (const FaceArg &face, const StateArg &state) const |
| GradientType | gradDot (const ElemQpArg &qp, const StateArg &state) const |
| GradientType | gradDot (const ElemSideQpArg &qp, const StateArg &state) const |
| GradientType | gradDot (const ElemPointArg &elem_point, const StateArg &state) const |
| GradientType | gradDot (const NodeArg &node, const StateArg &state) const |
Static Public Member Functions | |
| static InputParameters | validParams () |
| static std::string | deduceFunctorName (const std::string &name, const InputParameters ¶ms) |
| Helper to look up a functor name through the input parameter keys. | |
Protected Member Functions | |
| std::string | deduceFunctorName (const std::string &name) const |
| Small helper to look up a functor name through the input parameter keys. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctor (const std::string &name) |
| Retrieves a functor from the subproblem. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctor (const std::string &name, THREAD_ID tid) |
| Retrieves a functor from the subproblem. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctor (const std::string &name, SubProblem &subproblem) |
| Retrieves a functor from the passed-in subproblem. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctor (const std::string &name, SubProblem &subproblem, THREAD_ID tid) |
| Retrieves a functor from the passed-in subproblem. | |
| bool | isFunctor (const std::string &name) const |
| Checks the subproblem for the given functor. | |
| bool | isFunctor (const std::string &name, const SubProblem &subproblem) const |
| Checks the passed-in subproblem for the given functor. | |
| Moose::ElemArg | makeElemArg (const Elem *elem, bool correct_skewnewss=false) const |
| Helper method to create an elemental argument for a functor that includes whether to perform skewness corrections. | |
| template<typename T > | |
| void | checkFunctorSupportsSideIntegration (const std::string &name, bool qp_integration) |
| Throws error if the functor does not support the requested side integration. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctorByName (const std::string &name) |
| Retrieves a functor from the subproblem. | |
Functor evaluation routines | |
These methods are all for evaluating functors with different kinds of spatial arguments. Each of these methods also takes a state argument. For a description of the state argument, please see the | |
| virtual GradientType | evaluateGradDot (const ElemArg &, const StateArg &) const |
| Evaluate the functor gradient-dot with a given element. | |
| virtual GradientType | evaluateGradDot (const FaceArg &, const StateArg &) const |
| virtual GradientType | evaluateGradDot (const ElemQpArg &, const StateArg &) const |
| virtual GradientType | evaluateGradDot (const ElemSideQpArg &, const StateArg &) const |
| virtual GradientType | evaluateGradDot (const ElemPointArg &, const StateArg &) const |
| Evaluate the functor gradient-dot with a given element and point. | |
| virtual GradientType | evaluateGradDot (const NodeArg &, const StateArg &) const |
Protected Attributes | |
| const std::string & | _pp_name |
| Post-processor name. | |
| const PostprocessorValue & | _current_value |
| The current value, which is the Reporter value that changes when we execute UOs in the problem. | |
Private Types | |
| using | ElemArg = Moose::ElemArg |
| using | ElemQpArg = Moose::ElemQpArg |
| using | ElemSideQpArg = Moose::ElemSideQpArg |
| using | FaceArg = Moose::FaceArg |
| using | ElemPointArg = Moose::ElemPointArg |
| using | NodeArg = Moose::NodeArg |
Private Member Functions | |
| const PostprocessorValue & | declareValue (const MooseObject &moose_object) |
| Internal method to be used to declare the value and store it within _current_value in the constructor. | |
| ValueType | evaluate (const ElemArg &elem, const Moose::StateArg &state) const override final |
| Evaluate the functor with a given element. | |
| ValueType | evaluate (const FaceArg &face, const Moose::StateArg &state) const override final |
| ValueType | evaluate (const ElemQpArg &qp, const Moose::StateArg &state) const override final |
| ValueType | evaluate (const ElemSideQpArg &elem_side_qp, const Moose::StateArg &state) const override final |
| ValueType | evaluate (const ElemPointArg &elem_point, const Moose::StateArg &state) const override final |
| Evaluate the functor with a given element and point. | |
| ValueType | evaluate (const NodeArg &node, const Moose::StateArg &state) const override final |
| GradientType | evaluateGradient (const ElemArg &elem, const Moose::StateArg &state) const override final |
| Evaluate the functor gradient with a given element. | |
| GradientType | evaluateGradient (const FaceArg &face, const Moose::StateArg &state) const override final |
| GradientType | evaluateGradient (const ElemQpArg &qp, const Moose::StateArg &state) const override final |
| GradientType | evaluateGradient (const ElemSideQpArg &elem_side_qp, const Moose::StateArg &state) const override final |
| GradientType | evaluateGradient (const ElemPointArg &elem_point, const Moose::StateArg &state) const override final |
| Evaluate the functor gradient with a given element and point. | |
| GradientType | evaluateGradient (const NodeArg &node, const Moose::StateArg &state) const override final |
| DotType | evaluateDot (const ElemArg &elem, const Moose::StateArg &state) const override final |
| Evaluate the functor time derivative with a given element. | |
| DotType | evaluateDot (const FaceArg &face, const Moose::StateArg &state) const override final |
| DotType | evaluateDot (const ElemQpArg &qp, const Moose::StateArg &state) const override final |
| DotType | evaluateDot (const ElemSideQpArg &elem_side_qp, const Moose::StateArg &state) const override final |
| DotType | evaluateDot (const ElemPointArg &elem_point, const Moose::StateArg &state) const override final |
| Evaluate the functor time derivative with a given element and point. | |
| DotType | evaluateDot (const NodeArg &node, const Moose::StateArg &state) const override final |
| void | evaluateDotWarning () const |
Internal method for giving a one-time warning for calling an evaluateDot() method. | |
| virtual bool | isADObject () const override |
| Whether this interface is for an AD object. | |
| template<typename T > | |
| const Moose::Functor< T > & | getFunctorByName (const std::string &name, SubProblem &subproblem, THREAD_ID tid) |
| Retrieves a functor from the passed-in subproblem. | |
| template<typename T > | |
| const Moose::Functor< T > * | defaultFunctor (const std::string &name) |
| Helper function to parse default functor values. | |
| template<> | |
| const Moose::Functor< Real > * | defaultFunctor (const std::string &name) |
| template<> | |
| const Moose::Functor< ADReal > * | defaultFunctor (const std::string &name) |
| void | clearCacheData () |
| clear cache data | |
| ValueType | queryQpCache (unsigned int qp, const libMesh::QBase &qrule, std::vector< std::pair< bool, Real > > &qp_cache_data, const SpaceArg &space, const StateArg &state) const |
| check a qp cache and if invalid then evaluate | |
| ValueType | queryFVArgCache (std::map< SpaceArg, ValueType > &cache_data, const SpaceArg &space) const |
| check a finite volume spatial argument cache and if invalid then evaluate | |
Private Attributes | |
| const MooseObject & | _pp_moose_object |
| MOOSE object. | |
| MooseApp & | _oi_moose_app |
| Reference the the MooseApp; neede for access to the OutputWarehouse. | |
| OutputWarehouse & | _oi_output_warehouse |
| Reference to the OutputWarehouse for populating the Output object hide lists. | |
| std::set< OutputName > | _oi_outputs |
| The set of Output object names listed in the 'outputs' parameter. | |
| const InputParameters & | _fi_params |
| Parameters of the object with this interface. | |
| const std::string | _fi_name |
| The name of the object that this interface belongs to. | |
| SubProblem *const | _fi_subproblem |
| Pointer to subproblem if the subproblem pointer parameter was set. | |
| const THREAD_ID | _fi_tid |
| Current threaded it. | |
| std::vector< std::unique_ptr< Moose::Functor< Real > > > | _default_real_functors |
| Storage vector for Moose::Functor<Real> default objects. | |
| std::vector< std::unique_ptr< Moose::Functor< ADReal > > > | _default_ad_real_functors |
| Storage vector for Moose::Functor<ADReal> default objects. | |
| std::set< ExecFlagType > | _clearance_schedule |
| How often to clear the material property cache. | |
| bool | _always_evaluate |
| Boolean to check if we always need evaluation. | |
| dof_id_type | _current_qp_map_key |
| Current key for qp map cache. | |
| std::vector< std::pair< bool, ValueType > > * | _current_qp_map_value |
| Current value for qp map cache. | |
| std::unordered_map< dof_id_type, std::vector< std::pair< bool, ValueType > > > | _qp_to_value |
| Cached element quadrature point functor property evaluations. | |
| dof_id_type | _current_side_qp_map_key |
| Current key for side-qp map cache. | |
| std::vector< std::vector< std::pair< bool, ValueType > > > * | _current_side_qp_map_value |
| Current value for side-qp map cache. | |
| std::unordered_map< dof_id_type, std::vector< std::vector< std::pair< bool, ValueType > > > > | _side_qp_to_value |
| Cached element quadrature point functor property evaluations. | |
| std::map< ElemArg, ValueType > | _elem_arg_to_value |
| Map from element arguments to their cached evaluations. | |
| std::map< FaceArg, ValueType > | _face_arg_to_value |
| Map from face arguments to their cached evaluations. | |
| std::map< NodeArg, ValueType > | _node_arg_to_value |
| Map from nodal arguments to their cached evaluations. | |
| MooseFunctorName | _functor_name |
| name of the functor | |
Base class for all Postprocessors.
Defines a name and sets up the virtual getValue() interface which must be overridden by derived classes.
Definition at line 23 of file Postprocessor.h.
|
inherited |
Definition at line 150 of file MooseFunctor.h.
|
private |
Definition at line 89 of file Postprocessor.h.
|
private |
Definition at line 93 of file Postprocessor.h.
|
private |
Definition at line 90 of file Postprocessor.h.
|
private |
Definition at line 91 of file Postprocessor.h.
|
private |
Definition at line 92 of file Postprocessor.h.
|
inherited |
Definition at line 140 of file MooseFunctor.h.
|
inherited |
This rigmarole makes it so that a user can create functors that return containers (std::vector, std::array).
This logic will make it such that if a user requests a functor type T that is a container of algebraic types, for example Reals, then the GradientType will be a container of the gradients of those algebraic types, in this example VectorValue<Reals>. So if T is std::vector<Real>, then GradientType will be std::vector<VectorValue<Real>>. As another example: T = std::array<VectorValue<Real>, 1> -> GradientType = std::array<TensorValue<Real>, 1>
Definition at line 149 of file MooseFunctor.h.
|
private |
Definition at line 94 of file Postprocessor.h.
|
inherited |
Definition at line 141 of file MooseFunctor.h.
| Postprocessor::Postprocessor | ( | const MooseObject * | moose_object | ) |
Definition at line 27 of file Postprocessor.C.
| Postprocessor::Postprocessor | ( | const Postprocessor & | object, |
| const Moose::Kokkos::FunctorCopy & | key | ||
| ) |
Special constructor used for Kokkos functor copy during parallel dispatch.
Definition at line 38 of file Postprocessor.C.
|
inherited |
Builds hide lists for output objects NOT listed in the 'outputs' parameter.
| variable_names | A set of variables for which the 'outputs' parameter controls |
By default this is called by the constructor and passes the block name as the list of variables. This needs to be called explicitly if the build_list flag is set to False in the constructor. The latter cases is needed by the Material object to work correctly with the automatic material output capability.
Definition at line 68 of file OutputInterface.C.
Referenced by ReporterTransferInterface::hideVariableHelper(), and OutputInterface::OutputInterface().
|
inherited |
Examines the incoming face argument.
If the face argument producer (residual object, postprocessor, etc.) did not indicate a sidedness to the face, e.g. if the face_side member of the FaceArg is nullptr, then we may "modify" the sidedness of the argument if we are only defined on one side of the face. If the face argument producer \emph has indicated a sidedness and we are not defined on that side, then we will error
| face | The face argument created by the face argument producer, likely a residual object |
Definition at line 280 of file MooseFunctor.h.
|
protectedinherited |
Throws error if the functor does not support the requested side integration.
| [in] | name | Name of functor or functor parameter |
| [in] | qp_integration | True if performing qp integration, false if face info |
Definition at line 261 of file FunctorInterface.h.
|
privateinherited |
clear cache data
Definition at line 500 of file MooseFunctor.h.
|
overridevirtualinherited |
Implements Moose::FunctorAbstract.
Reimplemented in Function.
Definition at line 233 of file MooseFunctor.h.
|
private |
Internal method to be used to declare the value and store it within _current_value in the constructor.
Definition at line 50 of file Postprocessor.C.
|
protectedinherited |
Small helper to look up a functor name through the input parameter keys.
Definition at line 71 of file FunctorInterface.C.
|
staticinherited |
Helper to look up a functor name through the input parameter keys.
| name | The input parameter name that we are trying to deduce the functor name for |
| params | The input parameters object that we will be checking for parameters named name |
Definition at line 39 of file FunctorInterface.C.
Referenced by FunctorInterface::checkFunctorSupportsSideIntegration(), FunctorInterface::deduceFunctorName(), FunctorInterface::getFunctor(), and FunctorInterface::isFunctor().
|
privateinherited |
Helper function to parse default functor values.
This is implemented as a specialization for supported types and returns NULL in all other cases.
Definition at line 254 of file FunctorInterface.h.
|
privateinherited |
|
privateinherited |
|
inherited |
Definition at line 78 of file FunctorInterface.C.
|
inherited |
Definition at line 97 of file FunctorInterface.C.
|
inherited |
Same as their evaluateDot overloads with the same arguments but allows for caching implementation.
These are the methods a user will call in their code
Definition at line 209 of file MooseFunctor.h.
|
inherited |
Definition at line 213 of file MooseFunctor.h.
|
inherited |
Definition at line 211 of file MooseFunctor.h.
|
inherited |
Definition at line 212 of file MooseFunctor.h.
|
inherited |
Definition at line 210 of file MooseFunctor.h.
|
inherited |
Definition at line 214 of file MooseFunctor.h.
|
finaloverrideprivatevirtual |
Evaluate the functor with a given element.
Some example implementations of this method could compute an element-average or evaluate at the element centroid
Implements Moose::FunctorBase< Real >.
Definition at line 74 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Evaluate the functor with a given element and point.
Some example implementations of this method could perform a two-term Taylor expansion using cell-centered value and gradient
Implements Moose::FunctorBase< Real >.
Definition at line 99 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| qp | See the ElemQpArg doxygen |
| state | See the StateArg doxygen |
Implements Moose::FunctorBase< Real >.
Definition at line 86 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| side_qp | See the ElemSideQpArg doxygen |
| state | See the StateArg doxygen |
Implements Moose::FunctorBase< Real >.
Definition at line 92 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| face | See the FaceArg doxygen |
| state | See the StateArg doxygen |
Implements Moose::FunctorBase< Real >.
Definition at line 80 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Implements Moose::FunctorBase< Real >.
Definition at line 106 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Evaluate the functor time derivative with a given element.
Some example implementations of this method could compute an element-average or evaluate at the element centroid
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 153 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Evaluate the functor time derivative with a given element and point.
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 182 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| qp | See the ElemQpArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 167 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| side_qp | See the ElemSideQpArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 174 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| face | See the FaceArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 160 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 190 of file Postprocessor.C.
|
private |
Internal method for giving a one-time warning for calling an evaluateDot() method.
Definition at line 197 of file Postprocessor.C.
Referenced by evaluateDot(), evaluateDot(), evaluateDot(), evaluateDot(), evaluateDot(), and evaluateDot().
|
inlineprotectedvirtualinherited |
Evaluate the functor gradient-dot with a given element.
Some example implementations of this method could compute an element-average or evaluate at the element centroid
Definition at line 445 of file MooseFunctor.h.
|
inlineprotectedvirtualinherited |
Evaluate the functor gradient-dot with a given element and point.
Definition at line 485 of file MooseFunctor.h.
|
inlineprotectedvirtualinherited |
| qp | See the ElemQpArg doxygen |
| state | See the StateArg doxygen |
Definition at line 465 of file MooseFunctor.h.
|
inlineprotectedvirtualinherited |
| side_qp | See the ElemSideQpArg doxygen |
| state | See the StateArg doxygen |
Definition at line 476 of file MooseFunctor.h.
|
inlineprotectedvirtualinherited |
| face | See the FaceArg doxygen |
| state | See the StateArg doxygen |
Definition at line 455 of file MooseFunctor.h.
|
inlineprotectedvirtualinherited |
Definition at line 490 of file MooseFunctor.h.
|
finaloverrideprivatevirtual |
Evaluate the functor gradient with a given element.
Some example implementations of this method could compute an element-average or evaluate at the element centroid
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 112 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Evaluate the functor gradient with a given element and point.
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 139 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| qp | See the ElemQpArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 125 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| side_qp | See the ElemSideQpArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 132 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
| face | See the FaceArg doxygen |
| state | See the StateArg doxygen |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 119 of file Postprocessor.C.
|
finaloverrideprivatevirtual |
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 146 of file Postprocessor.C.
|
inlineinherited |
Return the functor name.
Definition at line 176 of file MooseFunctor.h.
|
inherited |
Perform a generic evaluation based on the supplied template argument FET and supplied spatial and temporal arguments.
Definition at line 172 of file MooseFunctor.h.
|
inline |
Your sanity would tell you... why not just call getValue()? Well - the intention of getValue() is to be called by the problem when the UserObjects are executed, and not by other things. This enables the control of when this Postprocessor is updated, which could be very important. If the implementation of getValue() is such that it actually computes a new value (instead of one that is called in finalize()), you could potentially call getValue() and not get the value as it was at the last time this PP was executed.
What this does instead is gives you the value that was last set as this PP was executed by the problem. That is, the value that every object that uses the PostprocessorInterface will get you.
Definition at line 63 of file Postprocessor.h.
Referenced by evaluate(), evaluate(), evaluate(), evaluate(), evaluate(), and evaluate().
|
protectedinherited |
Retrieves a functor from the subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The name of the functor to retrieve. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
Definition at line 217 of file FunctorInterface.h.
Referenced by GenericFunctorGradientMaterialTempl< is_ad >::GenericFunctorGradientMaterialTempl(), GenericFunctorMaterialTempl< is_ad >::GenericFunctorMaterialTempl(), GenericVectorFunctorMaterialTempl< is_ad >::GenericVectorFunctorMaterialTempl(), MaterialFunctorConverterTempl< T >::MaterialFunctorConverterTempl(), and ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl().
|
protectedinherited |
Retrieves a functor from the passed-in subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The name of the functor to retrieve. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
| subproblem | The subproblem to query for the functor |
Definition at line 202 of file FunctorInterface.h.
|
protectedinherited |
Retrieves a functor from the passed-in subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The name of the functor to retrieve. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
| subproblem | The subproblem to query for the functor |
| tid | The thread ID used to retrieve the functor from the subproblem |
Definition at line 193 of file FunctorInterface.h.
|
protectedinherited |
Retrieves a functor from the subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The name of the functor to retrieve. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
| tid | The thread ID used to retrieve the functor from this interface's subproblem |
Definition at line 209 of file FunctorInterface.h.
|
protectedinherited |
Retrieves a functor from the subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The name of the functor to retrieve. This should match the actual name of the functor created in the input file |
Definition at line 225 of file FunctorInterface.h.
|
privateinherited |
Retrieves a functor from the passed-in subproblem.
This method also leverages the ability to create default functors if the user passed an integer or real in the input file
| name | The actual name of the functor to retrieve instead of the parameter name |
| subproblem | The subproblem to query for the functor |
| tid | The thread ID used to retrieve the functor from the subproblem |
Definition at line 233 of file FunctorInterface.h.
|
inherited |
Get the list of output objects that this class is restricted.
Definition at line 101 of file OutputInterface.C.
|
pure virtual |
This will get called to actually grab the final value the postprocessor has calculated.
Note that this should only be called by internal methods, namely the problem that actually sets the value globally for other things to use. If you want the value outside of one of these external methods, you should use getCurrentValue().
Implemented in KokkosExtremeValueBase< KokkosElementVariablePostprocessor >, KokkosExtremeValueBase< KokkosNodalVariablePostprocessor >, KokkosExtremeValueBase< KokkosSideVariablePostprocessor >, KokkosNodalL2Norm, KokkosNodalMaxValueId, KokkosNodalSum, KokkosSumPostprocessor, LibtorchControlValuePostprocessor, AverageElementSize, AverageNodalVariableValue, AverageVariableChange, ChainControlDataPostprocessor, ChangeOverFixedPointPostprocessor, ChangeOverTimePostprocessor, ConstantPostprocessor, CumulativeValuePostprocessor, DifferencePostprocessor, DiscreteVariableResidualNorm, ElementalVariableValue, ElementArrayL2Norm, ElementAverageFunctorPostprocessor, ElementAverageMaterialPropertyTempl< is_ad >, ElementAverageValue, ElementExtremeMaterialPropertyTempl< is_ad >, ElementH1SemiError, ElementIntegralPostprocessor, ElementL2Difference, ElementL2Error, ElementL2FunctorErrorTempl< is_ad >, ElementL2Norm, ElementMaxLevelPostProcessor, ElementSidesL2Norm, ElementVectorL2Error, ElementW1pError, EmptyPostprocessor, ExtremeValueBase< ElementPostprocessor >, ExtremeValueBase< ElementVariablePostprocessor >, ExtremeValueBase< NodalVariablePostprocessor >, ExtremeValueBase< SideVariablePostprocessor >, FindValueOnLine, FunctionElementAverage, FunctionSideAverage, FunctionValuePostprocessor, GreaterThanLessThanPostprocessor, InterfaceAverageVariableValuePostprocessor, InterfaceDiffusiveFluxAverageTempl< is_ad >, InterfaceIntegralPostprocessor, InternalSideIntegralPostprocessor, LinearCombinationPostprocessor, MatrixSymmetryCheck, MemoryUsage, NearestNodeNumber, NodalL2Error, NodalL2Norm, NodalMaxValue, NodalMaxValueId, NodalSum, NodalVariableValue, NumDOFs, NumElements, NumFailedTimeSteps, NumFixedPointIterations, NumLinearIterations, NumMeshDivisions, NumNodes, NumNonlinearIterations, NumPositions, NumRelationshipManagers, NumResidualEvaluations, NumTimeSteps, NumVars, PercentChangePostprocessor, PerfGraphData, PointValue, PostprocessorComparison, PseudoTimestep, Receiver, RelativeDifferencePostprocessor, RelativeSolutionDifferenceNorm, Residual, ScalarL2Error, ScalarVariable, ScalePostprocessor, SideAverageFunctorPostprocessor, SideAverageMaterialPropertyTempl< is_ad >, SideAverageValue, SideDiffusiveFluxAverageTempl< is_ad >, SideIntegralPostprocessor, SumPostprocessor, TagVectorSum, TimeExtremeValue, TimeIntegratedPostprocessor, TimePostprocessor, TimestepSize, VariableResidual, VectorPostprocessorComparison, VectorPostprocessorComponent, VectorPostprocessorReductionValue, MFEMComplexVectorPeriodAveragedPostprocessor, MFEML2Error, MFEMVectorBoundaryFluxIntegralPostprocessor, MFEMVectorFEInnerProductIntegralPostprocessor, MFEMVectorL2Error, ParsedPostprocessor, NumMeshDivisions, PseudoTimestep, and TagVectorSum.
|
inherited |
Same as their evaluateGradDot overloads with the same arguments but allows for caching implementation.
These are the methods a user will call in their code
Definition at line 222 of file MooseFunctor.h.
|
inherited |
Definition at line 226 of file MooseFunctor.h.
|
inherited |
Definition at line 224 of file MooseFunctor.h.
|
inherited |
Definition at line 225 of file MooseFunctor.h.
|
inherited |
Definition at line 223 of file MooseFunctor.h.
|
inherited |
Definition at line 227 of file MooseFunctor.h.
|
inherited |
Same as their evaluateGradient overloads with the same arguments but allows for caching implementation.
These are the methods a user will call in their code
Definition at line 196 of file MooseFunctor.h.
|
inherited |
Definition at line 200 of file MooseFunctor.h.
|
inherited |
Definition at line 198 of file MooseFunctor.h.
|
inherited |
Definition at line 199 of file MooseFunctor.h.
|
inherited |
Definition at line 197 of file MooseFunctor.h.
|
inherited |
Definition at line 201 of file MooseFunctor.h.
|
inlineoverridevirtual |
Returns whether the functor is defined on this block.
Reimplemented from Moose::FunctorBase< Real >.
Definition at line 70 of file Postprocessor.h.
|
overridevirtualinherited |
Implements FaceArgInterface.
Reimplemented in InterfaceIntegralVariableValuePostprocessor, InternalSideIntegralVariablePostprocessor, SideIntegralFunctorPostprocessorTempl< is_ad >, SideIntegralFunctorPostprocessorTempl< false >, and SideIntegralVariablePostprocessor.
Definition at line 268 of file MooseFunctor.h.
|
inlineoverrideprivatevirtualinherited |
Whether this interface is for an AD object.
Implements FunctorInterface.
Definition at line 35 of file NonADFunctorInterface.h.
|
inlinevirtualinherited |
Returns true if this functor is a constant.
Definition at line 266 of file MooseFunctor.h.
|
inlinevirtualinherited |
Returns whether this (sided) face is an extrapolated boundary face for this functor.
Definition at line 253 of file MooseFunctor.h.
|
protectedinherited |
Checks the subproblem for the given functor.
This will not query default functors potentially stored in this object, e.g. this method will return false if the user passed an int or real to the functor param in the input file
| name | The name of the functor to check. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
Definition at line 124 of file FunctorInterface.C.
Referenced by FunctorInterface::isFunctor().
|
protectedinherited |
Checks the passed-in subproblem for the given functor.
This will not query default functors potentially stored in this object, e.g. this method will return false if the user passed an int or real to the functor param in the input file
| name | The name of the functor to check. This should match the functor parameter name, \emph not the actual name of the functor created in the input file |
| subproblem | The subproblem to query for the functor |
Definition at line 115 of file FunctorInterface.C.
|
inherited |
Returns true if the face is an internal face.
Definition at line 261 of file MooseFunctor.h.
|
overridevirtualinherited |
Implements Moose::FunctorAbstract.
Reimplemented in Function.
Definition at line 231 of file MooseFunctor.h.
|
protectedinherited |
Helper method to create an elemental argument for a functor that includes whether to perform skewness corrections.
Definition at line 131 of file FunctorInterface.C.
Referenced by LinearFVAdvectionDiffusionFunctorDirichletBC::computeBoundaryNormalGradient(), LinearFVReaction::computeMatrixContribution(), LinearFVTimeDerivative::computeMatrixContribution(), FVCoupledForce::computeQpResidual(), FVFunctorTimeKernel::computeQpResidual(), FVMassMatrix::computeQpResidual(), FVBoundedValueConstraint::computeQpResidual(), FVIntegralValueConstraint::computeQpResidual(), FVPointValueConstraint::computeQpResidual(), LinearFVSource::computeRightHandSideContribution(), FunctorAux::computeValue(), FunctorCoordinatesFunctionAux::computeValue(), SecondTimeDerivativeAux::computeValue(), TimeDerivativeAux::computeValue(), LinearFVAnisotropicDiffusion::faceDiffusionTensor(), FunctorTimes::initialize(), and LinearFVTimeDerivative::setCurrentElemInfo().
|
inherited |
Same as their evaluate overloads with the same arguments but allows for caching implementation.
These are the methods a user will call in their code
Definition at line 183 of file MooseFunctor.h.
|
inherited |
Definition at line 187 of file MooseFunctor.h.
|
inherited |
Definition at line 185 of file MooseFunctor.h.
|
inherited |
Definition at line 186 of file MooseFunctor.h.
|
inherited |
Definition at line 184 of file MooseFunctor.h.
|
inherited |
Definition at line 188 of file MooseFunctor.h.
|
inline |
|
privateinherited |
check a finite volume spatial argument cache and if invalid then evaluate
Definition at line 516 of file MooseFunctor.h.
|
privateinherited |
check a qp cache and if invalid then evaluate
Definition at line 506 of file MooseFunctor.h.
|
overridevirtualinherited |
Implements Moose::FunctorAbstract.
Reimplemented in Function.
Definition at line 230 of file MooseFunctor.h.
|
inherited |
Set how often to clear the functor evaluation cache.
Definition at line 238 of file MooseFunctor.h.
|
inlinefinaloverridevirtual |
Whether this functor supports evaluation with ElemSideQpArg.
Implements Moose::FunctorBase< Real >.
Definition at line 73 of file Postprocessor.h.
|
inlinefinaloverridevirtual |
Whether this functor supports evaluation with FaceArg.
Implements Moose::FunctorBase< Real >.
Definition at line 72 of file Postprocessor.h.
|
overridevirtualinherited |
Implements Moose::FunctorAbstract.
Reimplemented in Function, MemoryUsage, and NumNonlinearIterations.
Definition at line 232 of file MooseFunctor.h.
|
static |
Definition at line 17 of file Postprocessor.C.
Referenced by MFEMPostprocessor::validParams(), ElementPostprocessor::validParams(), GeneralPostprocessor::validParams(), InterfacePostprocessor::validParams(), InternalSidePostprocessor::validParams(), NodalPostprocessor::validParams(), and SidePostprocessor::validParams().
|
privateinherited |
Boolean to check if we always need evaluation.
Definition at line 523 of file MooseFunctor.h.
|
privateinherited |
How often to clear the material property cache.
Definition at line 520 of file MooseFunctor.h.
|
mutableprivateinherited |
Current key for qp map cache.
Definition at line 529 of file MooseFunctor.h.
|
mutableprivateinherited |
Current value for qp map cache.
Definition at line 532 of file MooseFunctor.h.
|
mutableprivateinherited |
Current key for side-qp map cache.
Definition at line 545 of file MooseFunctor.h.
|
mutableprivateinherited |
Current value for side-qp map cache.
Definition at line 548 of file MooseFunctor.h.
|
protected |
The current value, which is the Reporter value that changes when we execute UOs in the problem.
Definition at line 80 of file Postprocessor.h.
Referenced by getCurrentValue().
|
privateinherited |
Storage vector for Moose::Functor<ADReal> default objects.
Definition at line 188 of file FunctorInterface.h.
Referenced by FunctorInterface::defaultFunctor().
|
privateinherited |
Storage vector for Moose::Functor<Real> default objects.
Definition at line 185 of file FunctorInterface.h.
Referenced by FunctorInterface::defaultFunctor().
|
mutableprivateinherited |
Map from element arguments to their cached evaluations.
Definition at line 561 of file MooseFunctor.h.
|
mutableprivateinherited |
Map from face arguments to their cached evaluations.
Definition at line 564 of file MooseFunctor.h.
|
privateinherited |
The name of the object that this interface belongs to.
Definition at line 176 of file FunctorInterface.h.
Referenced by FunctorInterface::getFunctorByName().
|
privateinherited |
Parameters of the object with this interface.
Definition at line 173 of file FunctorInterface.h.
Referenced by FunctorInterface::deduceFunctorName().
|
privateinherited |
Pointer to subproblem if the subproblem pointer parameter was set.
Definition at line 179 of file FunctorInterface.h.
Referenced by FunctorInterface::getFunctor(), FunctorInterface::getFunctor(), FunctorInterface::getFunctorByName(), and FunctorInterface::isFunctor().
|
privateinherited |
Current threaded it.
Definition at line 182 of file FunctorInterface.h.
Referenced by FunctorInterface::getFunctor(), FunctorInterface::getFunctor(), FunctorInterface::getFunctorByName(), and FunctorInterface::isFunctor().
|
privateinherited |
name of the functor
Definition at line 570 of file MooseFunctor.h.
|
mutableprivateinherited |
Map from nodal arguments to their cached evaluations.
Definition at line 567 of file MooseFunctor.h.
|
privateinherited |
Reference the the MooseApp; neede for access to the OutputWarehouse.
Definition at line 72 of file OutputInterface.h.
|
privateinherited |
Reference to the OutputWarehouse for populating the Output object hide lists.
Definition at line 75 of file OutputInterface.h.
Referenced by OutputInterface::buildOutputHideVariableList().
|
privateinherited |
The set of Output object names listed in the 'outputs' parameter.
Definition at line 78 of file OutputInterface.h.
Referenced by OutputInterface::buildOutputHideVariableList(), and OutputInterface::getOutputs().
|
private |
|
protected |
Post-processor name.
Definition at line 77 of file Postprocessor.h.
Referenced by declareValue(), and PPName().
|
mutableprivateinherited |
Cached element quadrature point functor property evaluations.
The map key is the element id. The map values should have size corresponding to the number of quadrature points on the element. The vector elements are pairs. The first member of the pair indicates whether a cached value has been computed. The second member of the pair is the (cached) value. If the boolean is false, then the value cannot be trusted
Definition at line 539 of file MooseFunctor.h.
|
mutableprivateinherited |
Cached element quadrature point functor property evaluations.
The map key is the element id. The map values are a multi-dimensional vector (or vector of vectors) with the first index corresponding to the side and the second index corresponding to the quadrature point index. The elements returned after double indexing are pairs. The first member of the pair indicates whether a cached value has been computed. The second member of the pair is the (cached) value. If the boolean is false, then the value cannot be trusted
Definition at line 558 of file MooseFunctor.h.