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

Base class to compute Advective fluxes. More...

#include <AdvectiveFluxCalculatorBase.h>

Inheritance diagram for AdvectiveFluxCalculatorBase:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 AdvectiveFluxCalculatorBase (const InputParameters &parameters)
 
virtual void timestepSetup () override
 
virtual void meshChanged () override
 
virtual void initialize () override
 
virtual void threadJoin (const UserObject &uo) override
 
virtual void finalize () override
 
virtual void execute () override
 
virtual void executeOnElement (dof_id_type global_i, dof_id_type global_j, unsigned local_i, unsigned local_j, unsigned qp)
 This is called by multiple times in execute() in a double loop over _current_elem's nodes (local_i and local_j) nested in a loop over each of _current_elem's quadpoints (qp).
 
Real getFluxOut (dof_id_type node_i) const
 Returns the flux out of lobal node id.
 
const std::map< dof_id_type, Real > & getdFluxOutdu (dof_id_type node_i) const
 Returns r where r[j] = d(flux out of global node i)/du(global node j) used in Jacobian computations.
 
const std::vector< std::vector< Real > > & getdFluxOutdKjk (dof_id_type node_i) const
 Returns r where r[j][k] = d(flux out of global node i)/dK[connected node j][connected node k] used in Jacobian computations.
 
unsigned getValence (dof_id_type node_i) const
 Returns the valence of the global node i Valence is the number of times the node is encountered in a loop over elements (that have appropriate subdomain_id, if the user has employed the "blocks=" parameter) seen by this processor (including ghosted elements)
 
virtual Real spatialValue (const Point &) const
 
virtual const std::vector< Point > spatialPoints () const
 
void setPrimaryThreadCopy (UserObject *primary)
 
UserObjectprimaryThreadCopy ()
 
SubProblemgetSubProblem () const
 
bool shouldDuplicateInitialExecution () const
 
void gatherSum (T &value)
 
void gatherMax (T &value)
 
void gatherMin (T &value)
 
void gatherProxyValueMax (T1 &proxy, T2 &value)
 
void gatherProxyValueMin (T1 &proxy, T2 &value)
 
std::set< UserObjectName > getDependObjects () const
 
const std::set< std::string > & getRequestedItems () override
 
const std::set< std::string > & getSuppliedItems () override
 
unsigned int systemNumber () const
 
virtual bool needThreadedCopy () const
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
bool isKokkosObject () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
const std::string & name () const
 
std::string typeAndName () const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParametersparameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const TgetParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const TqueryParam (const std::string &name) const
 
const TgetRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &name) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 
void mooseError (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecatedNoTrace (Args &&... args) const
 
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
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void initialSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void subdomainSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const TgetUserObject (const std::string &param_name, bool is_dependency=true) const
 
const TgetUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const std::vector< SubdomainName > & blocks () const
 
unsigned int numBlocks () const
 
virtual const std::set< SubdomainID > & blockIDs () const
 
unsigned int blocksMaxDimension () const
 
bool hasBlocks (const SubdomainName &name) const
 
bool hasBlocks (const std::vector< SubdomainName > &names) const
 
bool hasBlocks (const std::set< SubdomainName > &names) const
 
bool hasBlocks (SubdomainID id) const
 
bool hasBlocks (const std::vector< SubdomainID > &ids) const
 
bool hasBlocks (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::vector< SubdomainID > &ids) const
 
bool hasBlockMaterialProperty (const std::string &prop_name)
 
const std::set< SubdomainID > & meshBlockIDs () const
 
virtual bool blockRestricted () const
 
virtual void checkVariable (const MooseVariableFieldBase &variable) const
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyByName (const std::string &prop_name_in)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOldByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlderByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialProperty (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOld (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlder (const std::string &name)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (const MaterialPropertyName &name)
 
std::pair< Moose::Kokkos::MaterialProperty< T, dimension >, std::set< SubdomainID > > getKokkosBlockMaterialProperty (const MaterialPropertyName &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
std::set< SubdomainIDgetMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryIDgetMaterialPropertyBoundaryIDs (const std::string &name)
 
std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &name)
 
void checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete)
 
std::unordered_map< SubdomainID, std::vector< MaterialBase * > > buildRequiredMaterials (bool allow_stateful=true)
 
void statefulPropertiesAllowed (bool)
 
virtual bool getMaterialPropertyCalled () const
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const
 
virtual void resolveOptionalProperties ()
 
const GenericMaterialProperty< T, is_ad > & getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state)
 
virtual const VariableValuecoupledValueByName (const std::string &var_name)
 
virtual const ArrayVariableValuecoupledArrayValueByName (const std::string &var_name)
 
const std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > & getCoupledVars () const
 
const std::vector< MooseVariableFieldBase * > & getCoupledMooseVars () const
 
const std::vector< MooseVariable * > & getCoupledStandardMooseVars () const
 
const std::vector< VectorMooseVariable * > & getCoupledVectorMooseVars () const
 
const std::vector< ArrayMooseVariable * > & getCoupledArrayMooseVars () const
 
void addFEVariableCoupleableVectorTag (TagID tag)
 
void addFEVariableCoupleableMatrixTag (TagID tag)
 
std::set< TagID > & getFEVariableCoupleableVectorTags ()
 
const std::set< TagID > & getFEVariableCoupleableVectorTags () const
 
std::set< TagID > & getFEVariableCoupleableMatrixTags ()
 
const std::set< TagID > & getFEVariableCoupleableMatrixTags () const
 
auto & getWritableCoupledVariables () const
 
bool hasWritableCoupledVariables () const
 
const ADVariableValuegetADDefaultValue (const std::string &var_name) const
 
const ADVectorVariableValuegetADDefaultVectorValue (const std::string &var_name) const
 
const ADVariableGradientgetADDefaultGradient () const
 
const ADVectorVariableGradientgetADDefaultVectorGradient () const
 
const ADVariableSecondgetADDefaultSecond () const
 
const ADVectorVariableCurlgetADDefaultCurl () const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradients (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDots (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::Scalar< const Real > kokkosCoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosZeroValue () const
 
Moose::Kokkos::VariableGradient kokkosZeroGradient () const
 
Moose::Kokkos::VariableValue kokkosZeroNodalValue () const
 
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const std::set< MooseVariableFieldBase * > & getMooseVariableDependencies () const
 
std::set< MooseVariableFieldBase * > checkAllVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_omit={})
 
virtual std::set< MooseVariableFieldBase * > checkVariables (const libMesh::Node &node, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
std::set< MooseVariableFieldBase * > checkVariables (const libMesh::Elem &element, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
void addMooseVariableDependency (MooseVariableFieldBase *var)
 
void addMooseVariableDependency (const std::vector< MooseVariableFieldBase * > &vars)
 
bool isImplicit ()
 
Moose::StateArg determineState () const
 
void setRandomResetFrequency (ExecFlagType exec_flag)
 
unsigned long getRandomLong () const
 
Real getRandomReal () const
 
unsigned int getSeed (std::size_t id)
 
unsigned int getMasterSeed () const
 
bool isNodal () const
 
ExecFlagType getResetOnTime () const
 
void setRandomDataPointer (RandomData *random_data)
 
virtual unsigned int getElementIDIndex (const std::string &id_parameter_name, unsigned int comp=0) const
 
virtual unsigned int getElementIDIndexByName (const std::string &id_name) const
 
virtual const dof_id_type & getElementID (const std::string &id_parameter_name, unsigned int comp=0) const
 
dof_id_type getElementID (const Elem *elem, unsigned int elem_id_index) const
 
virtual const dof_id_type & getElementIDNeighbor (const std::string &id_parameter_name, unsigned int comp=0) const
 
virtual const dof_id_type & getElementIDByName (const std::string &id_name) const
 
virtual const dof_id_type & getElementIDNeighborByName (const std::string &id_name) const
 
bool hasElementID (const std::string &id_name) const
 
dof_id_type maxElementID (unsigned int elem_id_index) const
 
dof_id_type minElementID (unsigned int elem_id_index) const
 
bool areElemIDsIdentical (const std::string &id_name1, const std::string &id_name2) const
 
std::unordered_map< dof_id_type, std::set< dof_id_type > > getElemIDMapping (const std::string &id_name1, const std::string &id_name2) const
 
std::set< dof_id_type > getAllElemIDs (unsigned int elem_id_index) const
 
std::set< dof_id_type > getElemIDsOnBlocks (unsigned int elem_id_index, const std::set< SubdomainID > &blks) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
Moose::Kokkos::Function getKokkosFunction (const std::string &name) const
 
const TgetKokkosFunction (const std::string &name) const
 
Moose::Kokkos::Function getKokkosFunctionByName (const FunctionName &name) const
 
const TgetKokkosFunctionByName (const FunctionName &name) const
 
bool hasKokkosFunction (const std::string &param_name) const
 
bool hasKokkosFunctionByName (const FunctionName &name) const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
TgetSampler (const std::string &name)
 
SamplergetSampler (const std::string &name)
 
TgetSamplerByName (const SamplerName &name)
 
SamplergetSamplerByName (const SamplerName &name)
 
virtual void meshDisplaced ()
 
PerfGraphperfGraph ()
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
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)
 
static void sort (typename std::vector< T > &vector)
 
static void sortDFS (typename std::vector< T > &vector)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header, NameFunc &&name_func)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header)
 

Public Attributes

 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 

Static Public Attributes

static const std::string type_param
 
static const std::string name_param
 
static const std::string unique_name_param
 
static const std::string app_param
 
static const std::string moose_base_param
 
static const std::string kokkos_object_param
 
static constexpr PropertyValue::id_type default_property_id
 
static constexpr PropertyValue::id_type zero_property_id
 
static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Types

enum class  FluxLimiterTypeEnum {
  MinMod , VanLeer , MC , superbee ,
  None
}
 Determines Flux Limiter type (Page 135 of Kuzmin and Turek) "None" means that limitFlux=0 always, which implies zero antidiffusion will be added. More...
 
enum class  PQPlusMinusEnum { PPlus , PMinus , QPlus , QMinus }
 Signals to the PQPlusMinus method what should be computed. More...
 

Protected Member Functions

virtual void buildCommLists ()
 When using multiple processors, other processors will compute:
 
virtual void exchangeGhostedInfo ()
 Sends and receives multi-processor information regarding u_nodal and k_ij.
 
virtual Real computeVelocity (unsigned i, unsigned j, unsigned qp) const =0
 Computes the transfer velocity between current node i and current node j at the current qp in the current element (_current_elem).
 
virtual Real computeU (unsigned i) const =0
 Computes the value of u at the local node id of the current element (_current_elem)
 
void limitFlux (Real a, Real b, Real &limited, Real &dlimited_db) const
 flux limiter, L, on Page 135 of Kuzmin and Turek
 
Real rPlus (dof_id_type sequential_i, std::vector< Real > &dlimited_du, std::vector< Real > &dlimited_dk) const
 Returns the value of R_{i}^{+}, Eqn (49) of KT.
 
Real rMinus (dof_id_type sequential_i, std::vector< Real > &dlimited_du, std::vector< Real > &dlimited_dk) const
 Returns the value of R_{i}^{-}, Eqn (49) of KT.
 
Real PQPlusMinus (dof_id_type sequential_i, const PQPlusMinusEnum pq_plus_minus, std::vector< Real > &derivs, std::vector< Real > &dpq_dk) const
 Returns the value of P_{i}^{+}, P_{i}^{-}, Q_{i}^{+} or Q_{i}^{-} (depending on pq_plus_minus) which are defined in Eqns (47) and (48) of KT.
 
void zeroedConnection (std::map< dof_id_type, Real > &the_map, dof_id_type node_i) const
 Clears the_map, then, using _kij, constructs the_map so that the_map[node_id] = 0.0 for all node_id connected with node_i.
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &name) const override
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &name) const override
 
virtual void addUserObjectDependencyHelper (const UserObjectBase &uo) const override
 
void addReporterDependencyHelper (const ReporterName &reporter_name) override
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
const ReporterContextBasegetReporterContextBaseByName (const ReporterName &reporter_name) const
 
const ReporterNamegetReporterName (const std::string &param_name) const
 
TdeclareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< TdeclareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const TgetRestartableData (const std::string &data_name) const
 
TdeclareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
TdeclareRecoverableData (const std::string &data_name, Args &&... args)
 
TdeclareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
TdeclareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
const TgetMeshProperty (const std::string &data_name, const std::string &prefix)
 
const TgetMeshProperty (const std::string &data_name)
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name) const
 
bool hasMeshProperty (const std::string &data_name) const
 
std::string meshPropertyName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 
virtual bool hasBlockMaterialPropertyHelper (const std::string &prop_name)
 
void initializeBlockRestrictable (const MooseObject *moose_object)
 
void initializeKokkosBlockRestrictable ()
 
Moose::CoordinateSystemType getBlockCoordSystem ()
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockElements () const
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockNodes () const
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockSides () const
 
KOKKOS_FUNCTION ContiguousElementID kokkosBlockElementID (Moose::Kokkos::ThreadID tid) const
 
KOKKOS_FUNCTION ContiguousElementID kokkosBlockNodeID (Moose::Kokkos::ThreadID tid) const
 
KOKKOS_FUNCTION auto kokkosBlockElementSideID (Moose::Kokkos::ThreadID tid) const
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state)
 
virtual void getKokkosMaterialPropertyHook (const std::string &, const unsigned int)
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
void checkExecutionStage ()
 
virtual void coupledCallback (const std::string &, bool) const
 
virtual bool isCoupled (const std::string &var_name, unsigned int i=0) const
 
virtual bool isCoupledConstant (const std::string &var_name) const
 
unsigned int coupledComponents (const std::string &var_name) const
 
VariableName coupledName (const std::string &var_name, unsigned int comp=0) const
 
std::vector< VariableName > coupledNames (const std::string &var_name) const
 
virtual unsigned int coupled (const std::string &var_name, unsigned int comp=0) const
 
std::vector< unsigned intcoupledIndices (const std::string &var_name) const
 
virtual const VariableValuecoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValues (const std::string &var_name) const
 
std::vector< const VectorVariableValue * > coupledVectorValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< is_ad > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVectorVariableValue< false > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< true > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableValue< is_ad > * > coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< false > * > coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< true > * > coupledGenericValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericDofValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDotDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
virtual const VariableValuecoupledValueLower (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledValues (const std::string &var_name) const
 
const ADVariableValueadCoupledLowerValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVectorVariableValue * > adCoupledVectorValues (const std::string &var_name) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue * > coupledVectorTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledVectorTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableValue * > coupledVectorTagArrayValues (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableValue * > coupledVectorTagArrayValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableGradient * > coupledVectorTagGradients (const std::string &var_names, TagID tag) const
 
std::vector< const VariableGradient * > coupledVectorTagGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableGradient * > coupledVectorTagArrayGradients (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableGradient * > coupledVectorTagArrayGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_name, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const ArrayVariableValuecoupledVectorTagArrayDofValue (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledVectorTagDofValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledVectorTagDofValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue * > coupledMatrixTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledMatrixTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VectorVariableValuecoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ArrayVariableValue * > coupledArrayValues (const std::string &var_name) const
 
MooseWritableVariablewritableVariable (const std::string &var_name, unsigned int comp=0)
 
virtual VariableValuewritableCoupledValue (const std::string &var_name, unsigned int comp=0)
 
void checkWritableVar (MooseWritableVariable *var)
 
virtual const VariableValuecoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValuesOld (const std::string &var_name) const
 
std::vector< const VectorVariableValue * > coupledVectorValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValuesOlder (const std::string &var_name) const
 
virtual const VariableValuecoupledValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradients (const std::string &var_name) const
 
const ADVariableGradientadCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableGradientadCoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableGradient * > adCoupledGradients (const std::string &var_name) const
 
const GenericVariableGradient< is_ad > & coupledGenericGradient (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableGradient< false > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
const GenericVariableGradient< true > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableGradient< is_ad > * > coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< false > * > coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< true > * > coupledGenericGradients (const std::string &var_name) const
 
const ADVectorVariableGradientadCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableSecondadCoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableSecondadCoupledVectorSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradientsOld (const std::string &var_name) const
 
virtual const VariableGradientcoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOlder (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableCurladCoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDiv (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledDots (const std::string &var_name) const
 
virtual const VariableValuecoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledDots (const std::string &var_name) const
 
const ADVariableValueadCoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledArrayDotDu (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const Moose::ADType< T >::typeadCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValues (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOlder (const std::string &var_name) const
 
virtual const ArrayVariableValuecoupledArrayDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValueadCoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadZeroValue () const
 
const ADVariableGradientadZeroGradient () const
 
const ADVariableSecondadZeroSecond () const
 
const GenericVariableValue< is_ad > & genericZeroValue ()
 
const GenericVariableValue< false > & genericZeroValue ()
 
const GenericVariableValue< true > & genericZeroValue ()
 
const GenericVariableGradient< is_ad > & genericZeroGradient ()
 
const GenericVariableGradient< false > & genericZeroGradient ()
 
const GenericVariableGradient< true > & genericZeroGradient ()
 
const GenericVariableSecond< is_ad > & genericZeroSecond ()
 
const GenericVariableSecond< false > & genericZeroSecond ()
 
const GenericVariableSecond< true > & genericZeroSecond ()
 
bool checkVar (const std::string &var_name, unsigned int comp=0, unsigned int comp_bound=0) const
 
const MooseVariableFieldBasegetFEVar (const std::string &var_name, unsigned int comp) const
 
const MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp) const
 
MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp)
 
std::vector< const MooseVariableFieldBase * > getFieldVars (const std::string &var_name) const
 
const TgetVarHelper (const std::string &var_name, unsigned int comp) const
 
TgetVarHelper (const std::string &var_name, unsigned int comp)
 
std::vector< const T * > getVarsHelper (const std::string &var_name) const
 
MooseVariablegetVar (const std::string &var_name, unsigned int comp)
 
const MooseVariablegetVar (const std::string &var_name, unsigned int comp) const
 
VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp)
 
const VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp) const
 
ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp)
 
const ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
std::vector< TcoupledVectorHelper (const std::string &var_name, const Func &func) const
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 

Static Protected Member Functions

static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 

Protected Attributes

bool _resizing_needed
 whether _kij, etc, need to be sized appropriately (and valence recomputed) at the start of the timestep
 
enum AdvectiveFluxCalculatorBase::FluxLimiterTypeEnum _flux_limiter_type
 
std::vector< std::vector< Real > > _kij
 Kuzmin-Turek K_ij matrix.
 
std::vector< Real > _flux_out
 _flux_out[i] = flux of "heat" from sequential node i
 
std::vector< std::map< dof_id_type, Real > > _dflux_out_du
 _dflux_out_du[i][j] = d(flux_out[i])/d(u[j]).
 
std::vector< std::vector< std::vector< Real > > > _dflux_out_dKjk
 _dflux_out_dKjk[sequential_i][j][k] = d(flux_out[sequential_i])/d(K[j][k]).
 
std::vector< unsigned > _valence
 _valence[i] = number of times, in a loop over elements seen by this processor (viz, including ghost elements) and are part of the block-restricted blocks of this UserObject, that the sequential node i is encountered
 
std::vector< Real > _u_nodal
 _u_nodal[i] = value of _u at sequential node number i
 
std::vector< bool > _u_nodal_computed_by_thread
 _u_nodal_computed_by_thread(i) = true if _u_nodal[i] has been computed in execute() by the thread on this processor
 
PorousFlowConnectedNodes _connections
 Holds the sequential and global nodal IDs, and info regarding mesh connections between them.
 
std::size_t _number_of_nodes
 Number of nodes held by the _connections object.
 
processor_id_type _my_pid
 processor ID of this object
 
std::map< processor_id_type, std::vector< dof_id_type > > _nodes_to_receive
 _nodes_to_receive[proc_id] = list of sequential nodal IDs.
 
std::map< processor_id_type, std::vector< dof_id_type > > _nodes_to_send
 _nodes_to_send[proc_id] = list of sequential nodal IDs.
 
std::map< processor_id_type, std::vector< std::pair< dof_id_type, dof_id_type > > > _pairs_to_receive
 _pairs_to_receive[proc_id] indicates the k(i, j) pairs that will be sent to us from proc_id _pairs_to_receive is first built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs and the index of connections is performed, for efficiency.
 
std::map< processor_id_type, std::vector< std::pair< dof_id_type, dof_id_type > > > _pairs_to_send
 _pairs_to_send[proc_id] indicates the k(i, j) pairs that we will send to proc_id _pairs_to_send is first built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs and the index of connections is performed, for efficiency.
 
const Real _allowable_MB_wastage
 A mooseWarning is issued if mb_wasted = (_connections.sizeSequential() - _connections.numNodes()) * 4 / 1048576 > _allowable_MB_wastage.
 
std::vector< std::vector< Real > > _dij
 Vectors used in finalize()
 
std::vector< std::vector< Real > > _dDij_dKij
 dDij_dKij[i][j] = d(D[i][j])/d(K[i][j]) for i!=j
 
std::vector< std::vector< Real > > _dDij_dKji
 dDij_dKji[i][j] = d(D[i][j])/d(K[j][i]) for i!=j
 
std::vector< std::vector< Real > > _dDii_dKij
 dDii_dKij[i][j] = d(D[i][i])/d(K[i][j])
 
std::vector< std::vector< Real > > _dDii_dKji
 dDii_dKji[i][j] = d(D[i][i])/d(K[j][i])
 
std::vector< std::vector< Real > > _lij
 
std::vector< Real > _rP
 
std::vector< Real > _rM
 
std::vector< std::vector< Real > > _drP
 drP[i][j] = d(rP[i])/d(u[j]). Here j indexes the j^th node connected to i
 
std::vector< std::vector< Real > > _drM
 drM[i][j] = d(rM[i])/d(u[j]). Here j indexes the j^th node connected to i
 
std::vector< std::vector< Real > > _drP_dk
 drP_dk[i][j] = d(rP[i])/d(K[i][j]). Here j indexes the j^th node connected to i
 
std::vector< std::vector< Real > > _drM_dk
 drM_dk[i][j] = d(rM[i])/d(K[i][j]). Here j indexes the j^th node connected to i
 
std::vector< std::vector< Real > > _fa
 fa[sequential_i][j] sequential_j is the j^th connection to sequential_i
 
std::vector< std::vector< std::map< dof_id_type, Real > > > _dfa
 dfa[sequential_i][j][global_k] = d(fa[sequential_i][j])/du[global_k].
 
std::vector< std::vector< std::vector< Real > > > _dFij_dKik
 dFij_dKik[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_i][k]).
 
std::vector< std::vector< std::vector< Real > > > _dFij_dKjk
 dFij_dKjk[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_j][k]).
 
MooseMesh_mesh
 
const Elem *const & _current_elem
 
const Real & _current_elem_volume
 
const MooseArray< Point > & _q_point
 
const QBase *const & _qrule
 
const MooseArray< Real > & _JxW
 
const MooseArray< Real > & _coord
 
const Moose::CoordinateSystemType_coord_sys
 
const THREAD_ID _tid
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
SystemBase_sys
 
Assembly_assembly
 
const bool _duplicate_initial_execution
 
std::set< std::string > _depend_uo
 
const bool & _enabled
 
MooseApp_app
 
Factory_factory
 
ActionFactory_action_factory
 
const std::string & _type
 
const std::string & _name
 
const InputParameters_pars
 
const ExecFlagEnum_execute_enum
 
const ExecFlagType_current_execute_flag
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
FEProblemBase_mdi_feproblem
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
const MaterialData_blk_material_data
 
const InputParameters_mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase_mi_feproblem
 
SubProblem_mi_subproblem
 
const THREAD_ID _mi_tid
 
const bool _is_kokkos_object
 
const Moose::MaterialDataType _material_data_type
 
MaterialData_material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int_material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
const InputParameters_c_parameters
 
const std::string & _c_name
 
const std::string & _c_type
 
FEProblemBase_c_fe_problem
 
const SystemBase *const _c_sys
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > _coupled_vars
 
std::vector< MooseVariableFieldBase * > _coupled_moose_vars
 
std::vector< MooseVariable * > _coupled_standard_moose_vars
 
std::vector< VectorMooseVariable * > _coupled_vector_moose_vars
 
std::vector< ArrayMooseVariable * > _coupled_array_moose_vars
 
std::vector< MooseVariableField< Real > * > _coupled_fv_moose_vars
 
const std::unordered_map< std::string, std::string > & _new_to_deprecated_coupled_vars
 
bool _c_nodal
 
bool _c_is_implicit
 
const bool _c_allow_element_to_nodal_coupling
 
THREAD_ID _c_tid
 
std::unordered_map< std::string, std::vector< std::unique_ptr< VariableValue > > > _default_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADReal > > > _ad_default_value
 
std::unordered_map< std::string, std::unique_ptr< VectorVariableValue > > _default_vector_value
 
std::unordered_map< std::string, std::unique_ptr< ArrayVariableValue > > _default_array_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADRealVectorValue > > > _ad_default_vector_value
 
VariableValue _default_value_zero
 
VariableGradient _default_gradient
 
MooseArray< ADRealVectorValue_ad_default_gradient
 
MooseArray< ADRealTensorValue_ad_default_vector_gradient
 
VariableSecond _default_second
 
MooseArray< ADRealTensorValue_ad_default_second
 
MooseArray< ADRealVectorValue_ad_default_curl
 
const VariableValue_zero
 
const VariablePhiValue_phi_zero
 
const MooseArray< ADReal > & _ad_zero
 
const VariableGradient_grad_zero
 
const MooseArray< ADRealVectorValue > & _ad_grad_zero
 
const VariablePhiGradient_grad_phi_zero
 
const VariableSecond_second_zero
 
const MooseArray< ADRealTensorValue > & _ad_second_zero
 
const VariablePhiSecond_second_phi_zero
 
const VectorVariableValue_vector_zero
 
const VectorVariableCurl_vector_curl_zero
 
VectorVariableValue _default_vector_value_zero
 
VectorVariableGradient _default_vector_gradient
 
VectorVariableCurl _default_vector_curl
 
VectorVariableDivergence _default_div
 
ArrayVariableValue _default_array_value_zero
 
ArrayVariableGradient _default_array_gradient
 
bool _coupleable_neighbor
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real & _real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
const InputParameters_ti_params
 
FEProblemBase_ti_feproblem
 
bool _is_implicit
 
Real & _t
 
const Real & _t_old
 
int_t_step
 
Real & _dt
 
Real & _dt_old
 
bool _is_transient
 
const Parallel::Communicator & _communicator
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 

Private Types

enum  FuncAge
 
enum  VarType
 

Private Member Functions

const Moose::FunctionBasegetKokkosFunctionByNameHelper (const FunctionName &name) const
 
const UserObjectBasegetUserObjectFromFEProblem (const UserObjectName &object_name, const THREAD_ID tid=0) const
 
const TcastUserObject (const UserObjectBase &uo_base, const std::string &param_name="") const
 
void mooseObjectError (const std::string &param_name, std::stringstream &oss) const
 
const std::string & userObjectType (const UserObjectBase &uo) const
 
const std::string & userObjectName (const UserObjectBase &uo) const
 
const PostprocessorName & getPostprocessorNameInternal (const std::string &param_name, const unsigned int index, const bool allow_default_value=true) const
 
bool isDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
PostprocessorValue getDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
void checkParam (const std::string &param_name, const unsigned int index=std::numeric_limits< unsigned int >::max()) const
 
bool postprocessorsAdded () const
 
const VectorPostprocessorValuegetVectorPostprocessorByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name, bool broadcast, std::size_t t_index) const
 
const VectorPostprocessorContext< VectorPostprocessorValue > & getVectorPostprocessorContextByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool vectorPostprocessorsAdded () const
 
bool reportersAdded () const
 
void possiblyCheckHasReporter (const ReporterName &reporter_name, const std::string &param_name="") const
 
RestartableDataValueregisterRestartableDataOnApp (std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
 
void registerRestartableNameWithFilterOnApp (const std::string &name, Moose::RESTARTABLE_FILTER filter)
 
RestartableData< T > & declareRestartableDataHelper (const std::string &data_name, void *context, Args &&... args) const
 
virtual std::string meshPropertyPrefix (const std::string &data_name) const
 
const RestartableDataValuegetMeshPropertyInternal (const std::string &data_name, const std::string &prefix) const
 
void mooseErrorInternal (Args &&... args) const
 
Moose::MaterialDataType getMaterialDataType (const std::set< BoundaryID > &boundary_ids) const
 
unsigned int getMaxQps () const
 
void addConsumedPropertyName (const MooseObjectName &obj_name, const std::string &prop_name)
 
const OutputTools< T >::VariableValuevectorTagValueHelper (const std::string &var_names, TagID tag, unsigned int index=0) const
 
const OutputTools< T >::VariableValuevectorTagValueHelper (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const OutputTools< T >::VariableValuevectorTagDofValueHelper (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const OutputTools< T >::VariableValuevectorTagDofValueHelper (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
void requestStates (const std::string &var_name, const TagName &tag_name, const unsigned int comp)
 
void checkFuncType (const std::string var_name, VarType t, FuncAge age) const
 
const VariableValuegetDefaultValue (const std::string &var_name, unsigned int comp) const
 
const VectorVariableValuegetDefaultVectorValue (const std::string &var_name) const
 
const ArrayVariableValuegetDefaultArrayValue (const std::string &var_name) const
 
const TgetDefaultNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const RealVectorValue & getDefaultNodalValue (const std::string &var_name, unsigned int) const
 
const RealEigenVector & getDefaultNodalValue (const std::string &var_name, unsigned int) const
 
const Moose::Functor< T > & getDefaultFunctor (const std::string &var_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVariables (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVectorVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVectorVariables (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::Variable kokkosZeroVariable () const
 
std::set< MooseVariableFieldBase * > checkVariablesHelper (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
const PostprocessorValuegetPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 

Static Private Member Functions

static const hit::Node * getHitNode (const InputParameters &params)
 
static std::string messagePrefix (const InputParameters &params, const bool hit_prefix)
 

Private Attributes

UserObject_primary_thread_copy
 
std::set< std::string > _supplied_uo
 
const ParallelParamObject_parent
 
const MooseBase_si_moose_base
 
const FEProblemBase_si_problem
 
ExecFlagEnum _empty_execute_enum
 
const MooseObject_fni_object
 
const InputParameters_fni_params
 
FEProblemBase_fni_feproblem
 
const THREAD_ID _fni_tid
 
const MooseObject_uoi_moose_object
 
const FEProblemBase_uoi_feproblem
 
const THREAD_ID _uoi_tid
 
const MooseObject_ppi_moose_object
 
const InputParameters_ppi_params
 
const FEProblemBase_ppi_feproblem
 
std::map< PostprocessorName, std::unique_ptr< PostprocessorValue > > _default_values
 
const bool _broadcast_by_default
 
const MooseObject_vpi_moose_object
 
const FEProblemBase_vpi_feproblem
 
const THREAD_ID _vpi_tid
 
const InputParameters_ri_params
 
FEProblemBase_ri_fe_problem_base
 
const ReporterData_ri_reporter_data
 
const MooseObject_ri_moose_object
 
const InputParameters_dni_params
 
FEProblemBase_dni_feproblem
 
const MooseObject *const _dni_moose_object_ptr
 
const InputParameters_si_params
 
FEProblemBase_si_feproblem
 
THREAD_ID _si_tid
 
const RestartableDataMapName _metaname
 
std::string _restartable_name
 
MooseApp_meta_data_app
 
const MooseObject *const _meta_data_object
 
std::set< SubdomainID_blk_ids
 
std::vector< SubdomainID_vec_ids
 
std::vector< SubdomainName > _blocks
 
const bool _blk_dual_restrictable
 
FEProblemBase_blk_feproblem
 
const MooseMesh_blk_mesh
 
const std::set< BoundaryID_empty_boundary_ids
 
const std::set< BoundaryID > & _boundary_ids
 
THREAD_ID _blk_tid
 
const std::string & _blk_name
 
unsigned int _blk_dim
 
const MooseObject_moose_object
 
Moose::Kokkos::Array< ContiguousElementID_kokkos_element_ids
 
Moose::Kokkos::Array< ContiguousNodeID_kokkos_node_ids
 
Moose::Kokkos::Array< Moose::Kokkos::Pair< ContiguousElementID, unsigned int > > _kokkos_element_side_ids
 
const MooseObject_mi_moose_object
 
const bool _mi_boundary_restricted
 
const std::set< SubdomainID > & _mi_block_ids
 
const std::set< BoundaryID > & _mi_boundary_ids
 
std::vector< std::unique_ptr< OptionalMaterialPropertyProxyBase< MaterialPropertyInterface > > > _optional_property_proxies
 
unsigned int _coupleable_max_qps
 
std::unordered_map< std::string, std::vector< unsigned int > > _optional_var_index
 
std::unordered_map< std::string, std::vector< MooseVariableScalar * > > _c_coupled_scalar_vars
 
std::set< TagID_fe_coupleable_vector_tags
 
std::set< TagID_fe_coupleable_matrix_tags
 
const bool _is_fv
 
const MooseObject *const _obj
 
const std::set< std::string > _older_state_tags
 
std::vector< std::set< MooseWritableVariable * > > _writable_coupled_variables
 
const Real _kokkos_default_value_zero
 
const InputParameters_sc_parameters
 
const std::string & _sc_name
 
const bool _sc_is_implicit
 
std::unordered_map< std::string, std::vector< MooseVariableScalar * > > _coupled_scalar_vars
 
std::unordered_map< std::string, std::unique_ptr< ADVariableValue > > _dual_default_value
 
std::vector< MooseVariableScalar * > _coupled_moose_scalar_vars
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > _sc_coupled_vars
 
std::set< TagID_sc_coupleable_vector_tags
 
std::set< TagID_sc_coupleable_matrix_tags
 
std::set< MooseVariableFieldBase * > _moose_variable_dependencies
 
std::vector< libMesh::dof_id_type_dof_indices
 
const std::string _ti_name
 
RandomData_random_data
 
MooseRandom_generator
 
FEProblemBase_ri_problem
 
const std::string _ri_name
 
unsigned int _master_seed
 
bool _is_nodal
 
ExecFlagType _reset_on
 
const Node *const & _curr_node
 
const Elem *const & _curr_element
 
const InputParameters_obj_parameters
 
std::shared_ptr< MooseMesh > & _id_mesh
 
const std::string & _ei_name
 

Detailed Description

Base class to compute Advective fluxes.

Specifically, computes K_ij, D_ij, L_ij, R+, R-, f^a_ij detailed in D Kuzmin and S Turek "High-resolution FEM-TVD schemes based on a fully multidimensional flux limiter" Journal of Computational Physics 198 (2004) 131-158 Then combines the results to produce the residual and Jacobian contributions that may be used by Kernels

K_ij is a measure of flux from node i to node j D_ij is a diffusion matrix that stabilizes K_ij (K+D has the LED property) L = K + D R^+_i and R^-_i and f^a_{ij} quantify how much antidiffusion to allow around node i

Definition at line 28 of file AdvectiveFluxCalculatorBase.h.

Member Enumeration Documentation

◆ FluxLimiterTypeEnum

Determines Flux Limiter type (Page 135 of Kuzmin and Turek) "None" means that limitFlux=0 always, which implies zero antidiffusion will be added.

Enumerator
MinMod 
VanLeer 
MC 
superbee 
None 

Definition at line 166 of file AdvectiveFluxCalculatorBase.h.

◆ PQPlusMinusEnum

Signals to the PQPlusMinus method what should be computed.

Enumerator
PPlus 
PMinus 
QPlus 
QMinus 

Definition at line 252 of file AdvectiveFluxCalculatorBase.h.

Constructor & Destructor Documentation

◆ AdvectiveFluxCalculatorBase()

AdvectiveFluxCalculatorBase::AdvectiveFluxCalculatorBase ( const InputParameters parameters)

Definition at line 49 of file AdvectiveFluxCalculatorBase.C.

51 _resizing_needed(true),
52 _flux_limiter_type(getParam<MooseEnum>("flux_limiter_type").getEnum<FluxLimiterTypeEnum>()),
53 _kij(),
54 _flux_out(),
57 _valence(),
58 _u_nodal(),
67 _allowable_MB_wastage(getParam<Real>("allowable_MB_wastage"))
68{
69 if (!_execute_enum.isValueSet(EXEC_LINEAR))
71 "execute_on",
72 "The AdvectiveFluxCalculator UserObject " + name() +
73 " execute_on parameter must include, at least, 'linear'. This is to ensure that "
74 "this UserObject computes all necessary quantities just before the Kernels evaluate "
75 "their Residuals");
76}
std::vector< Real > _u_nodal
_u_nodal[i] = value of _u at sequential node number i
std::vector< std::vector< Real > > _kij
Kuzmin-Turek K_ij matrix.
std::map< processor_id_type, std::vector< std::pair< dof_id_type, dof_id_type > > > _pairs_to_send
_pairs_to_send[proc_id] indicates the k(i, j) pairs that we will send to proc_id _pairs_to_send is fi...
PorousFlowConnectedNodes _connections
Holds the sequential and global nodal IDs, and info regarding mesh connections between them.
std::map< processor_id_type, std::vector< dof_id_type > > _nodes_to_receive
_nodes_to_receive[proc_id] = list of sequential nodal IDs.
std::vector< std::map< dof_id_type, Real > > _dflux_out_du
_dflux_out_du[i][j] = d(flux_out[i])/d(u[j]).
std::vector< std::vector< std::vector< Real > > > _dflux_out_dKjk
_dflux_out_dKjk[sequential_i][j][k] = d(flux_out[sequential_i])/d(K[j][k]).
std::map< processor_id_type, std::vector< std::pair< dof_id_type, dof_id_type > > > _pairs_to_receive
_pairs_to_receive[proc_id] indicates the k(i, j) pairs that will be sent to us from proc_id _pairs_to...
std::vector< bool > _u_nodal_computed_by_thread
_u_nodal_computed_by_thread(i) = true if _u_nodal[i] has been computed in execute() by the thread on ...
std::vector< unsigned > _valence
_valence[i] = number of times, in a loop over elements seen by this processor (viz,...
processor_id_type _my_pid
processor ID of this object
std::size_t _number_of_nodes
Number of nodes held by the _connections object.
const Real _allowable_MB_wastage
A mooseWarning is issued if mb_wasted = (_connections.sizeSequential() - _connections....
std::map< processor_id_type, std::vector< dof_id_type > > _nodes_to_send
_nodes_to_send[proc_id] = list of sequential nodal IDs.
bool _resizing_needed
whether _kij, etc, need to be sized appropriately (and valence recomputed) at the start of the timest...
std::vector< Real > _flux_out
_flux_out[i] = flux of "heat" from sequential node i
const InputParameters & parameters() const
const std::string & name() const
void paramError(const std::string &param, Args... args) const
bool isValueSet(const std::string &value) const
const ExecFlagEnum & _execute_enum
processor_id_type processor_id() const

Member Function Documentation

◆ buildCommLists()

void AdvectiveFluxCalculatorBase::buildCommLists ( )
protectedvirtual

When using multiple processors, other processors will compute:

  • u_nodal for nodes that we don't "own", but that we need when doing the stabilization
  • k_ij for node pairs that we don't "own", and contributions to node pairs that we do "own" (on the boundary of our set of elements), that are used in the stabilization This method builds _nodes_to_receive and _pairs_to_receive that describe which processors we are going to receive this info from, and similarly it builds _nodes_to_send and _pairs_to_send.

Build the multi-processor communication lists.

(A) We will have to send _u_nodal information to other processors. This is because although we can Evaluate Variables at all elements in _fe_problem.getNonlinearEvaluableElementRange(), in the PorousFlow setting _u_nodal could depend on Material Properties within the elements, and we can't access those Properties within the ghosted elements.

(B) In a similar way, we need to send _kij information to other processors. A similar strategy is followed

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 848 of file AdvectiveFluxCalculatorBase.C.

849{
863 _nodes_to_receive.clear();
864 for (const auto & elem : _fe_problem.getNonlinearEvaluableElementRange())
865 if (this->hasBlocks(elem->subdomain_id()))
866 {
867 const processor_id_type elem_pid = elem->processor_id();
868 if (elem_pid != _my_pid)
869 {
870 if (_nodes_to_receive.find(elem_pid) == _nodes_to_receive.end())
871 _nodes_to_receive[elem_pid] = std::vector<dof_id_type>();
872 for (unsigned i = 0; i < elem->n_nodes(); ++i)
873 if (std::find(_nodes_to_receive[elem_pid].begin(),
874 _nodes_to_receive[elem_pid].end(),
875 elem->node_id(i)) == _nodes_to_receive[elem_pid].end())
876 _nodes_to_receive[elem_pid].push_back(elem->node_id(i));
877 }
878 }
879
880 // exchange this info with other processors, building _nodes_to_send at the same time
881 _nodes_to_send.clear();
882 auto nodes_action_functor = [this](processor_id_type pid, const std::vector<dof_id_type> & nts)
883 { _nodes_to_send[pid] = nts; };
884 Parallel::push_parallel_vector_data(this->comm(), _nodes_to_receive, nodes_action_functor);
885
886 // At the moment, _nodes_to_send and _nodes_to_receive contain global node numbers
887 // It is slightly more efficient to convert to sequential node numbers
888 // so that we don't have to keep doing things like
889 // _u_nodal[_connections.sequentialID(_nodes_to_send[pid][i])
890 // every time we send/receive
891 for (auto & kv : _nodes_to_send)
892 {
893 const processor_id_type pid = kv.first;
894 const std::size_t num_nodes = kv.second.size();
895 for (unsigned i = 0; i < num_nodes; ++i)
897 }
898 for (auto & kv : _nodes_to_receive)
899 {
900 const processor_id_type pid = kv.first;
901 const std::size_t num_nodes = kv.second.size();
902 for (unsigned i = 0; i < num_nodes; ++i)
904 }
905
906 // Build pairs_to_receive
907 _pairs_to_receive.clear();
908 for (const auto & elem : _fe_problem.getNonlinearEvaluableElementRange())
909 if (this->hasBlocks(elem->subdomain_id()))
910 {
911 const processor_id_type elem_pid = elem->processor_id();
912 if (elem_pid != _my_pid)
913 {
914 if (_pairs_to_receive.find(elem_pid) == _pairs_to_receive.end())
915 _pairs_to_receive[elem_pid] = std::vector<std::pair<dof_id_type, dof_id_type>>();
916 for (unsigned i = 0; i < elem->n_nodes(); ++i)
917 for (unsigned j = 0; j < elem->n_nodes(); ++j)
918 {
919 std::pair<dof_id_type, dof_id_type> the_pair(elem->node_id(i), elem->node_id(j));
920 if (std::find(_pairs_to_receive[elem_pid].begin(),
921 _pairs_to_receive[elem_pid].end(),
922 the_pair) == _pairs_to_receive[elem_pid].end())
923 _pairs_to_receive[elem_pid].push_back(the_pair);
924 }
925 }
926 }
927
928 _pairs_to_send.clear();
929 auto pairs_action_functor =
930 [this](processor_id_type pid, const std::vector<std::pair<dof_id_type, dof_id_type>> & pts)
931 { _pairs_to_send[pid] = pts; };
932 Parallel::push_parallel_vector_data(this->comm(), _pairs_to_receive, pairs_action_functor);
933
934 // _pairs_to_send and _pairs_to_receive have been built using global node IDs
935 // since all processors know about that. However, using global IDs means
936 // that every time we send/receive, we keep having to do things like
937 // _kij[_connections.sequentialID(_pairs_to_send[pid][i].first)][_connections.indexOfGlobalConnection(_pairs_to_send[pid][i].first,
938 // _pairs_to_send[pid][i].second)] which is quite inefficient. So:
939 for (auto & kv : _pairs_to_send)
940 {
941 const processor_id_type pid = kv.first;
942 const std::size_t num_pairs = kv.second.size();
943 for (unsigned i = 0; i < num_pairs; ++i)
944 {
946 _pairs_to_send[pid][i].first, _pairs_to_send[pid][i].second);
947 _pairs_to_send[pid][i].first = _connections.sequentialID(_pairs_to_send[pid][i].first);
948 }
949 }
950 for (auto & kv : _pairs_to_receive)
951 {
952 const processor_id_type pid = kv.first;
953 const std::size_t num_pairs = kv.second.size();
954 for (unsigned i = 0; i < num_pairs; ++i)
955 {
957 _pairs_to_receive[pid][i].first, _pairs_to_receive[pid][i].second);
958 _pairs_to_receive[pid][i].first = _connections.sequentialID(_pairs_to_receive[pid][i].first);
959 }
960 }
961}
bool hasBlocks(const SubdomainName &name) const
unsigned indexOfGlobalConnection(dof_id_type global_node_ID_from, dof_id_type global_node_ID_to) const
Return the index of global_node_ID_to in the globalConnectionsToGlobalID(global_node_ID_from) vector.
dof_id_type sequentialID(dof_id_type global_node_ID) const
Return the sequential node ID corresponding to the global node ID This is guaranteed to lie in the ra...
FEProblemBase & _fe_problem
const Parallel::Communicator & comm() const
uint8_t processor_id_type
if(subdm)

Referenced by PorousFlowAdvectiveFluxCalculatorBase::buildCommLists(), and timestepSetup().

◆ computeU()

virtual Real AdvectiveFluxCalculatorBase::computeU ( unsigned  i) const
protectedpure virtual

◆ computeVelocity()

virtual Real AdvectiveFluxCalculatorBase::computeVelocity ( unsigned  i,
unsigned  j,
unsigned  qp 
) const
protectedpure virtual

Computes the transfer velocity between current node i and current node j at the current qp in the current element (_current_elem).

For instance, (_grad_phi[i][qp] * _velocity) * _phi[j][qp];

Parameters
inode number in the current element
jnode number in the current element
qpquadpoint number in the current element

Implemented in AdvectiveFluxCalculatorConstantVelocity, and PorousFlowAdvectiveFluxCalculatorBase.

Referenced by executeOnElement().

◆ exchangeGhostedInfo()

void AdvectiveFluxCalculatorBase::exchangeGhostedInfo ( )
protectedvirtual

Sends and receives multi-processor information regarding u_nodal and k_ij.

See buildCommLists for some more explanation.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 964 of file AdvectiveFluxCalculatorBase.C.

965{
966 // Exchange ghosted _u_nodal information with other processors
967 std::map<processor_id_type, std::vector<Real>> unodal_to_send;
968 for (const auto & kv : _nodes_to_send)
969 {
970 const processor_id_type pid = kv.first;
971 unodal_to_send[pid] = std::vector<Real>();
972 for (const auto & nd : kv.second)
973 unodal_to_send[pid].push_back(_u_nodal[nd]);
974 }
975
976 auto unodal_action_functor =
977 [this](processor_id_type pid, const std::vector<Real> & unodal_received)
978 {
979 const std::size_t msg_size = unodal_received.size();
980 mooseAssert(msg_size == _nodes_to_receive[pid].size(),
981 "Message size, " << msg_size
982 << ", incompatible with nodes_to_receive, which has size "
983 << _nodes_to_receive[pid].size());
984 for (unsigned i = 0; i < msg_size; ++i)
985 _u_nodal[_nodes_to_receive[pid][i]] = unodal_received[i];
986 };
987 Parallel::push_parallel_vector_data(this->comm(), unodal_to_send, unodal_action_functor);
988
989 // Exchange _kij information with other processors
990 std::map<processor_id_type, std::vector<Real>> kij_to_send;
991 for (const auto & kv : _pairs_to_send)
992 {
993 const processor_id_type pid = kv.first;
994 kij_to_send[pid] = std::vector<Real>();
995 for (const auto & pr : kv.second)
996 kij_to_send[pid].push_back(_kij[pr.first][pr.second]);
997 }
998
999 auto kij_action_functor = [this](processor_id_type pid, const std::vector<Real> & kij_received)
1000 {
1001 const std::size_t msg_size = kij_received.size();
1002 mooseAssert(msg_size == _pairs_to_receive[pid].size(),
1003 "Message size, " << msg_size
1004 << ", incompatible with pairs_to_receive, which has size "
1005 << _pairs_to_receive[pid].size());
1006 for (unsigned i = 0; i < msg_size; ++i)
1007 _kij[_pairs_to_receive[pid][i].first][_pairs_to_receive[pid][i].second] += kij_received[i];
1008 };
1009 Parallel::push_parallel_vector_data(this->comm(), kij_to_send, kij_action_functor);
1010}

Referenced by PorousFlowAdvectiveFluxCalculatorBase::exchangeGhostedInfo(), and finalize().

◆ execute()

void AdvectiveFluxCalculatorBase::execute ( )
overridevirtual

Implements ElementUserObject.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 216 of file AdvectiveFluxCalculatorBase.C.

217{
218 // compute _kij contributions from this element that is local to this processor
219 // and record _u_nodal
220 for (unsigned i = 0; i < _current_elem->n_nodes(); ++i)
221 {
222 const dof_id_type node_i = _current_elem->node_id(i);
223 const dof_id_type sequential_i = _connections.sequentialID(node_i);
224 if (!_u_nodal_computed_by_thread[sequential_i])
225 {
226 _u_nodal[sequential_i] = computeU(i);
227 _u_nodal_computed_by_thread[sequential_i] = true;
228 }
229 for (unsigned j = 0; j < _current_elem->n_nodes(); ++j)
230 {
231 const dof_id_type node_j = _current_elem->node_id(j);
232 for (unsigned qp = 0; qp < _qrule->n_points(); ++qp)
233 executeOnElement(node_i, node_j, i, j, qp);
234 }
235 }
236}
virtual void executeOnElement(dof_id_type global_i, dof_id_type global_j, unsigned local_i, unsigned local_j, unsigned qp)
This is called by multiple times in execute() in a double loop over _current_elem's nodes (local_i an...
virtual Real computeU(unsigned i) const =0
Computes the value of u at the local node id of the current element (_current_elem)
const QBase *const & _qrule
const Elem *const & _current_elem
uint8_t dof_id_type

Referenced by PorousFlowAdvectiveFluxCalculatorBase::execute().

◆ executeOnElement()

void AdvectiveFluxCalculatorBase::executeOnElement ( dof_id_type  global_i,
dof_id_type  global_j,
unsigned  local_i,
unsigned  local_j,
unsigned  qp 
)
virtual

This is called by multiple times in execute() in a double loop over _current_elem's nodes (local_i and local_j) nested in a loop over each of _current_elem's quadpoints (qp).

It is used to compute _kij and its derivatives

Parameters
global_iglobal node id corresponding to the local node local_i
global_jglobal node id corresponding to the local node local_j
local_ilocal node number of the _current_elem
local_jlocal node number of the _current_elem
qpquadpoint number of the _current_elem

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 239 of file AdvectiveFluxCalculatorBase.C.

241{
242 // KT Eqn (20)
243 const dof_id_type sequential_i = _connections.sequentialID(global_i);
244 const unsigned index_i_to_j = _connections.indexOfGlobalConnection(global_i, global_j);
245 _kij[sequential_i][index_i_to_j] += _JxW[qp] * _coord[qp] * computeVelocity(local_i, local_j, qp);
246}
virtual Real computeVelocity(unsigned i, unsigned j, unsigned qp) const =0
Computes the transfer velocity between current node i and current node j at the current qp in the cur...
const MooseArray< Real > & _coord
const MooseArray< Real > & _JxW

Referenced by execute(), and PorousFlowAdvectiveFluxCalculatorBase::executeOnElement().

◆ finalize()

void AdvectiveFluxCalculatorBase::finalize ( )
overridevirtual

Implements ElementUserObject.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 268 of file AdvectiveFluxCalculatorBase.C.

269{
270 // Overall: ensure _kij is fully built, then compute Kuzmin-Turek D, L, f^a and
271 // relevant Jacobian information, and then the relevant quantities into _flux_out and
272 // _dflux_out_du, _dflux_out_dKjk
273
274 if (_app.n_processors() > 1)
276
277 // Calculate KuzminTurek D matrix
278 // See Eqn (32)
279 // This adds artificial diffusion, which eliminates any spurious oscillations
280 // The idea is that D will remove all negative off-diagonal elements when it is added to K
281 // This is identical to full upwinding
282 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
283 {
284 const std::vector<dof_id_type> & con_i =
286 const std::size_t num_con_i = con_i.size();
287 _dij[sequential_i].assign(num_con_i, 0.0);
288 _dDij_dKij[sequential_i].assign(num_con_i, 0.0);
289 _dDij_dKji[sequential_i].assign(num_con_i, 0.0);
290 _dDii_dKij[sequential_i].assign(num_con_i, 0.0);
291 _dDii_dKji[sequential_i].assign(num_con_i, 0.0);
292 const unsigned index_i_to_i =
293 _connections.indexOfSequentialConnection(sequential_i, sequential_i);
294 for (std::size_t j = 0; j < num_con_i; ++j)
295 {
296 const dof_id_type sequential_j = con_i[j];
297 if (sequential_i == sequential_j)
298 continue;
299 const unsigned index_j_to_i =
300 _connections.indexOfSequentialConnection(sequential_j, sequential_i);
301 const Real kij = _kij[sequential_i][j];
302 const Real kji = _kij[sequential_j][index_j_to_i];
303 if ((kij <= kji) && (kij < 0.0))
304 {
305 _dij[sequential_i][j] = -kij;
306 _dDij_dKij[sequential_i][j] = -1.0;
307 _dDii_dKij[sequential_i][j] += 1.0;
308 }
309 else if ((kji <= kij) && (kji < 0.0))
310 {
311 _dij[sequential_i][j] = -kji;
312 _dDij_dKji[sequential_i][j] = -1.0;
313 _dDii_dKji[sequential_i][j] += 1.0;
314 }
315 else
316 _dij[sequential_i][j] = 0.0;
317 _dij[sequential_i][index_i_to_i] -= _dij[sequential_i][j];
318 }
319 }
320
321 // Calculate KuzminTurek L matrix
322 // See Fig 2: L = K + D
323 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
324 {
325 const std::vector<dof_id_type> & con_i =
327 const std::size_t num_con_i = con_i.size();
328 _lij[sequential_i].assign(num_con_i, 0.0);
329 for (std::size_t j = 0; j < num_con_i; ++j)
330 _lij[sequential_i][j] = _kij[sequential_i][j] + _dij[sequential_i][j];
331 }
332
333 // Compute KuzminTurek R matrices
334 // See Eqns (49) and (12)
335 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
336 {
337 _rP[sequential_i] = rPlus(sequential_i, _drP[sequential_i], _drP_dk[sequential_i]);
338 _rM[sequential_i] = rMinus(sequential_i, _drM[sequential_i], _drM_dk[sequential_i]);
339 }
340
341 // Calculate KuzminTurek f^{a} matrix
342 // This is the antidiffusive flux
343 // See Eqn (50)
344 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
345 {
346 const std::vector<dof_id_type> & con_i =
348 const unsigned num_con_i = con_i.size();
349 _fa[sequential_i].assign(num_con_i, 0.0);
350 _dfa[sequential_i].resize(num_con_i);
351 _dFij_dKik[sequential_i].resize(num_con_i);
352 _dFij_dKjk[sequential_i].resize(num_con_i);
353 for (std::size_t j = 0; j < num_con_i; ++j)
354 {
355 for (const auto & global_k : con_i)
356 _dfa[sequential_i][j][global_k] = 0;
357 const dof_id_type global_j = con_i[j];
358 const std::vector<dof_id_type> & con_j = _connections.globalConnectionsToGlobalID(global_j);
359 const unsigned num_con_j = con_j.size();
360 for (const auto & global_k : con_j)
361 _dfa[sequential_i][j][global_k] = 0;
362 _dFij_dKik[sequential_i][j].assign(num_con_i, 0.0);
363 _dFij_dKjk[sequential_i][j].assign(num_con_j, 0.0);
364 }
365 }
366
367 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
368 {
369 const dof_id_type global_i = _connections.globalID(sequential_i);
370 const Real u_i = _u_nodal[sequential_i];
371 const std::vector<dof_id_type> & con_i =
373 const std::size_t num_con_i = con_i.size();
374 for (std::size_t j = 0; j < num_con_i; ++j)
375 {
376 const dof_id_type sequential_j = con_i[j];
377 if (sequential_i == sequential_j)
378 continue;
379 const unsigned index_j_to_i =
380 _connections.indexOfSequentialConnection(sequential_j, sequential_i);
381 const Real Lij = _lij[sequential_i][j];
382 const Real Lji = _lij[sequential_j][index_j_to_i];
383 if (Lji >= Lij) // node i is upwind of node j.
384 {
385 const Real Dij = _dij[sequential_i][j];
386 const dof_id_type global_j = _connections.globalID(sequential_j);
387 const Real u_j = _u_nodal[sequential_j];
388 Real prefactor = 0.0;
389 std::vector<Real> dprefactor_du(num_con_i,
390 0.0); // dprefactor_du[j] = d(prefactor)/du[sequential_j]
391 std::vector<Real> dprefactor_dKij(
392 num_con_i, 0.0); // dprefactor_dKij[j] = d(prefactor)/dKij[sequential_i][j].
393 Real dprefactor_dKji = 0; // dprefactor_dKji = d(prefactor)/dKij[sequential_j][index_j_to_i]
394 if (u_i >= u_j)
395 {
396 if (Lji <= _rP[sequential_i] * Dij)
397 {
398 prefactor = Lji;
399 dprefactor_dKij[j] += _dDij_dKji[sequential_j][index_j_to_i];
400 dprefactor_dKji += 1.0 + _dDij_dKij[sequential_j][index_j_to_i];
401 }
402 else
403 {
404 prefactor = _rP[sequential_i] * Dij;
405 for (std::size_t ind_j = 0; ind_j < num_con_i; ++ind_j)
406 dprefactor_du[ind_j] = _drP[sequential_i][ind_j] * Dij;
407 dprefactor_dKij[j] += _rP[sequential_i] * _dDij_dKij[sequential_i][j];
408 dprefactor_dKji += _rP[sequential_i] * _dDij_dKji[sequential_i][j];
409 for (std::size_t ind_j = 0; ind_j < num_con_i; ++ind_j)
410 dprefactor_dKij[ind_j] += _drP_dk[sequential_i][ind_j] * Dij;
411 }
412 }
413 else
414 {
415 if (Lji <= _rM[sequential_i] * Dij)
416 {
417 prefactor = Lji;
418 dprefactor_dKij[j] += _dDij_dKji[sequential_j][index_j_to_i];
419 dprefactor_dKji += 1.0 + _dDij_dKij[sequential_j][index_j_to_i];
420 }
421 else
422 {
423 prefactor = _rM[sequential_i] * Dij;
424 for (std::size_t ind_j = 0; ind_j < num_con_i; ++ind_j)
425 dprefactor_du[ind_j] = _drM[sequential_i][ind_j] * Dij;
426 dprefactor_dKij[j] += _rM[sequential_i] * _dDij_dKij[sequential_i][j];
427 dprefactor_dKji += _rM[sequential_i] * _dDij_dKji[sequential_i][j];
428 for (std::size_t ind_j = 0; ind_j < num_con_i; ++ind_j)
429 dprefactor_dKij[ind_j] += _drM_dk[sequential_i][ind_j] * Dij;
430 }
431 }
432 _fa[sequential_i][j] = prefactor * (u_i - u_j);
433 _dfa[sequential_i][j][global_i] = prefactor;
434 _dfa[sequential_i][j][global_j] = -prefactor;
435 for (std::size_t ind_j = 0; ind_j < num_con_i; ++ind_j)
436 {
437 _dfa[sequential_i][j][_connections.globalID(con_i[ind_j])] +=
438 dprefactor_du[ind_j] * (u_i - u_j);
439 _dFij_dKik[sequential_i][j][ind_j] += dprefactor_dKij[ind_j] * (u_i - u_j);
440 }
441 _dFij_dKjk[sequential_i][j][index_j_to_i] += dprefactor_dKji * (u_i - u_j);
442 }
443 }
444 }
445
446 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
447 {
448 const std::vector<dof_id_type> & con_i =
450 const std::size_t num_con_i = con_i.size();
451 for (std::size_t j = 0; j < num_con_i; ++j)
452 {
453 const dof_id_type sequential_j = con_i[j];
454 if (sequential_i == sequential_j)
455 continue;
456 const unsigned index_j_to_i =
457 _connections.indexOfSequentialConnection(sequential_j, sequential_i);
458 if (_lij[sequential_j][index_j_to_i] < _lij[sequential_i][j]) // node_i is downwind of node_j.
459 {
460 _fa[sequential_i][j] = -_fa[sequential_j][index_j_to_i];
461 for (const auto & dof_deriv : _dfa[sequential_j][index_j_to_i])
462 _dfa[sequential_i][j][dof_deriv.first] = -dof_deriv.second;
463 for (std::size_t k = 0; k < num_con_i; ++k)
464 _dFij_dKik[sequential_i][j][k] = -_dFij_dKjk[sequential_j][index_j_to_i][k];
465 const std::size_t num_con_j =
467 for (std::size_t k = 0; k < num_con_j; ++k)
468 _dFij_dKjk[sequential_i][j][k] = -_dFij_dKik[sequential_j][index_j_to_i][k];
469 }
470 }
471 }
472
473 // zero _flux_out and its derivatives
474 _flux_out.assign(_number_of_nodes, 0.0);
475 // The derivatives are a bit complicated.
476 // If i is upwind of a node "j" then _flux_out[i] depends on all nodes connected to i.
477 // But if i is downwind of a node "j" then _flux_out depends on all nodes connected with node
478 // j.
479 _dflux_out_du.assign(_number_of_nodes, std::map<dof_id_type, Real>());
480 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
481 for (const auto & j : _connections.globalConnectionsToSequentialID(sequential_i))
482 {
483 _dflux_out_du[sequential_i][j] = 0.0;
484 for (const auto & neighbors_j : _connections.globalConnectionsToGlobalID(j))
485 _dflux_out_du[sequential_i][neighbors_j] = 0.0;
486 }
488 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
489 {
490 const std::vector<dof_id_type> & con_i =
492 const std::size_t num_con_i = con_i.size();
493 _dflux_out_dKjk[sequential_i].resize(num_con_i);
494 for (std::size_t j = 0; j < num_con_i; ++j)
495 {
496 const dof_id_type sequential_j = con_i[j];
497 const std::vector<dof_id_type> & con_j =
499 _dflux_out_dKjk[sequential_i][j].assign(con_j.size(), 0.0);
500 }
501 }
502
503 // Add everything together
504 // See step 3 in Fig 2, noting Eqn (36)
505 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
506 {
507 const std::vector<dof_id_type> & con_i =
509 const size_t num_con_i = con_i.size();
510 const dof_id_type index_i_to_i =
511 _connections.indexOfSequentialConnection(sequential_i, sequential_i);
512 for (std::size_t j = 0; j < num_con_i; ++j)
513 {
514 const dof_id_type sequential_j = con_i[j];
515 const dof_id_type global_j = _connections.globalID(sequential_j);
516 const Real u_j = _u_nodal[sequential_j];
517
518 // negative sign because residual = -Lu (KT equation (19))
519 _flux_out[sequential_i] -= _lij[sequential_i][j] * u_j + _fa[sequential_i][j];
520
521 _dflux_out_du[sequential_i][global_j] -= _lij[sequential_i][j];
522 for (const auto & dof_deriv : _dfa[sequential_i][j])
523 _dflux_out_du[sequential_i][dof_deriv.first] -= dof_deriv.second;
524
525 _dflux_out_dKjk[sequential_i][index_i_to_i][j] -= 1.0 * u_j; // from the K in L = K + D
526
527 if (sequential_j == sequential_i)
528 for (dof_id_type k = 0; k < num_con_i; ++k)
529 _dflux_out_dKjk[sequential_i][index_i_to_i][k] -= _dDii_dKij[sequential_i][k] * u_j;
530 else
531 _dflux_out_dKjk[sequential_i][index_i_to_i][j] -= _dDij_dKij[sequential_i][j] * u_j;
532 for (dof_id_type k = 0; k < num_con_i; ++k)
533 _dflux_out_dKjk[sequential_i][index_i_to_i][k] -= _dFij_dKik[sequential_i][j][k];
534
535 if (sequential_j == sequential_i)
536 for (unsigned k = 0; k < con_i.size(); ++k)
537 {
538 const unsigned index_k_to_i =
539 _connections.indexOfSequentialConnection(con_i[k], sequential_i);
540 _dflux_out_dKjk[sequential_i][k][index_k_to_i] -= _dDii_dKji[sequential_i][k] * u_j;
541 }
542 else
543 {
544 const unsigned index_j_to_i =
545 _connections.indexOfSequentialConnection(sequential_j, sequential_i);
546 _dflux_out_dKjk[sequential_i][j][index_j_to_i] -= _dDij_dKji[sequential_i][j] * u_j;
547 }
548 for (unsigned k = 0;
549 k < _connections.sequentialConnectionsToSequentialID(sequential_j).size();
550 ++k)
551 _dflux_out_dKjk[sequential_i][j][k] -= _dFij_dKjk[sequential_i][j][k];
552 }
553 }
554}
std::vector< std::vector< Real > > _drM
drM[i][j] = d(rM[i])/d(u[j]). Here j indexes the j^th node connected to i
std::vector< std::vector< Real > > _fa
fa[sequential_i][j] sequential_j is the j^th connection to sequential_i
Real rPlus(dof_id_type sequential_i, std::vector< Real > &dlimited_du, std::vector< Real > &dlimited_dk) const
Returns the value of R_{i}^{+}, Eqn (49) of KT.
std::vector< std::vector< Real > > _dDij_dKji
dDij_dKji[i][j] = d(D[i][j])/d(K[j][i]) for i!=j
std::vector< std::vector< std::vector< Real > > > _dFij_dKik
dFij_dKik[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_i][k]).
std::vector< std::vector< Real > > _lij
std::vector< std::vector< Real > > _dDii_dKij
dDii_dKij[i][j] = d(D[i][i])/d(K[i][j])
std::vector< std::vector< Real > > _dij
Vectors used in finalize()
std::vector< std::vector< Real > > _drP_dk
drP_dk[i][j] = d(rP[i])/d(K[i][j]). Here j indexes the j^th node connected to i
Real rMinus(dof_id_type sequential_i, std::vector< Real > &dlimited_du, std::vector< Real > &dlimited_dk) const
Returns the value of R_{i}^{-}, Eqn (49) of KT.
std::vector< std::vector< Real > > _drM_dk
drM_dk[i][j] = d(rM[i])/d(K[i][j]). Here j indexes the j^th node connected to i
std::vector< std::vector< Real > > _dDii_dKji
dDii_dKji[i][j] = d(D[i][i])/d(K[j][i])
std::vector< std::vector< std::vector< Real > > > _dFij_dKjk
dFij_dKjk[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_j][k]).
std::vector< std::vector< Real > > _dDij_dKij
dDij_dKij[i][j] = d(D[i][j])/d(K[i][j]) for i!=j
virtual void exchangeGhostedInfo()
Sends and receives multi-processor information regarding u_nodal and k_ij.
std::vector< std::vector< Real > > _drP
drP[i][j] = d(rP[i])/d(u[j]). Here j indexes the j^th node connected to i
std::vector< std::vector< std::map< dof_id_type, Real > > > _dfa
dfa[sequential_i][j][global_k] = d(fa[sequential_i][j])/du[global_k].
const std::vector< dof_id_type > & sequentialConnectionsToSequentialID(dof_id_type sequential_node_ID) const
Return all the nodes (sequential node IDs) connected to the given sequential node ID All elements of ...
dof_id_type globalID(dof_id_type sequential_node_ID) const
Return the global node ID (node number in the mesh) corresponding to the provided sequential node ID.
unsigned indexOfSequentialConnection(dof_id_type sequential_node_ID_from, dof_id_type sequential_node_ID_to) const
Return the index of sequential_node_ID_to in the sequentialConnectionsToSequentialID(sequential_node_...
const std::vector< dof_id_type > & globalConnectionsToSequentialID(dof_id_type sequential_node_ID) const
Return all the nodes (global node IDs) connected to the given sequential node ID.
const std::vector< dof_id_type > & globalConnectionsToGlobalID(dof_id_type global_node_ID) const
Return all the nodes (global node IDs) connected to the given global node ID.
processor_id_type n_processors() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by PorousFlowAdvectiveFluxCalculatorBase::finalize().

◆ getdFluxOutdKjk()

const std::vector< std::vector< Real > > & AdvectiveFluxCalculatorBase::getdFluxOutdKjk ( dof_id_type  node_i) const

Returns r where r[j][k] = d(flux out of global node i)/dK[connected node j][connected node k] used in Jacobian computations.

Parameters
node_iglobal id of node
Returns
the derivatives (after applying the KT procedure)

Definition at line 735 of file AdvectiveFluxCalculatorBase.C.

736{
738}

Referenced by PorousFlowAdvectiveFluxCalculatorBase::finalize().

◆ getdFluxOutdu()

const std::map< dof_id_type, Real > & AdvectiveFluxCalculatorBase::getdFluxOutdu ( dof_id_type  node_i) const

Returns r where r[j] = d(flux out of global node i)/du(global node j) used in Jacobian computations.

Parameters
node_iglobal id of node
Returns
the derivatives (after applying the KT procedure)

Definition at line 729 of file AdvectiveFluxCalculatorBase.C.

730{
732}

Referenced by FluxLimitedTVDAdvection::computeJacobian(), and PorousFlowAdvectiveFluxCalculatorBase::finalize().

◆ getFluxOut()

Real AdvectiveFluxCalculatorBase::getFluxOut ( dof_id_type  node_i) const

Returns the flux out of lobal node id.

Parameters
node_iid of node
Returns
advective flux out of node after applying the KT procedure

Definition at line 741 of file AdvectiveFluxCalculatorBase.C.

742{
743 return _flux_out[_connections.sequentialID(node_i)];
744}

Referenced by FluxLimitedTVDAdvection::computeResidual(), and PorousFlowFluxLimitedTVDAdvection::computeResidual().

◆ getValence()

unsigned AdvectiveFluxCalculatorBase::getValence ( dof_id_type  node_i) const

Returns the valence of the global node i Valence is the number of times the node is encountered in a loop over elements (that have appropriate subdomain_id, if the user has employed the "blocks=" parameter) seen by this processor (including ghosted elements)

Parameters
node_igloal id of i^th node
Returns
valence of the node

Definition at line 747 of file AdvectiveFluxCalculatorBase.C.

748{
749 return _valence[_connections.sequentialID(node_i)];
750}

Referenced by FluxLimitedTVDAdvection::computeJacobian(), PorousFlowFluxLimitedTVDAdvection::computeJacobian(), FluxLimitedTVDAdvection::computeResidual(), and PorousFlowFluxLimitedTVDAdvection::computeResidual().

◆ initialize()

void AdvectiveFluxCalculatorBase::initialize ( )
overridevirtual

Implements ElementUserObject.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 205 of file AdvectiveFluxCalculatorBase.C.

206{
207 // Zero _kij and falsify _u_nodal_computed_by_thread ready for building in execute() and
208 // finalize()
210 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
211 _kij[sequential_i].assign(_connections.sequentialConnectionsToSequentialID(sequential_i).size(),
212 0.0);
213}

Referenced by PorousFlowAdvectiveFluxCalculatorBase::initialize().

◆ limitFlux()

void AdvectiveFluxCalculatorBase::limitFlux ( Real  a,
Real  b,
Real &  limited,
Real &  dlimited_db 
) const
protected

flux limiter, L, on Page 135 of Kuzmin and Turek

Parameters
aKT's "a" parameter
bKT's "b" parameter
limited[out]The value of the flux limiter, L
dlimited_db[out]The derivative dL/db

Definition at line 629 of file AdvectiveFluxCalculatorBase.C.

630{
631 limited = 0.0;
632 dlimited_db = 0.0;
634 return;
635
636 if ((a >= 0.0 && b <= 0.0) || (a <= 0.0 && b >= 0.0))
637 return;
638 const Real s = (a > 0.0 ? 1.0 : -1.0);
639
640 const Real lal = std::abs(a);
641 const Real lbl = std::abs(b);
642 const Real dlbl = (b >= 0.0 ? 1.0 : -1.0); // d(lbl)/db
643 switch (_flux_limiter_type)
644 {
646 {
647 if (lal <= lbl)
648 {
649 limited = s * lal;
650 dlimited_db = 0.0;
651 }
652 else
653 {
654 limited = s * lbl;
655 dlimited_db = s * dlbl;
656 }
657 return;
658 }
660 {
661 limited = s * 2 * lal * lbl / (lal + lbl);
662 dlimited_db = s * 2 * lal * (dlbl / (lal + lbl) - lbl * dlbl / std::pow(lal + lbl, 2));
663 return;
664 }
666 {
667 const Real av = 0.5 * std::abs(a + b);
668 if (2 * lal <= av && lal <= lbl)
669 {
670 // 2 * lal is the smallest
671 limited = s * 2.0 * lal;
672 dlimited_db = 0.0;
673 }
674 else if (2 * lbl <= av && lbl <= lal)
675 {
676 // 2 * lbl is the smallest
677 limited = s * 2.0 * lbl;
678 dlimited_db = s * 2.0 * dlbl;
679 }
680 else
681 {
682 // av is the smallest
683 limited = s * av;
684 // if (a>0 and b>0) then d(av)/db = 0.5 = 0.5 * dlbl
685 // if (a<0 and b<0) then d(av)/db = -0.5 = 0.5 * dlbl
686 // if a and b have different sign then limited=0, above
687 dlimited_db = s * 0.5 * dlbl;
688 }
689 return;
690 }
692 {
693 const Real term1 = std::min(2.0 * lal, lbl);
694 const Real term2 = std::min(lal, 2.0 * lbl);
695 if (term1 >= term2)
696 {
697 if (2.0 * lal <= lbl)
698 {
699 limited = s * 2 * lal;
700 dlimited_db = 0.0;
701 }
702 else
703 {
704 limited = s * lbl;
705 dlimited_db = s * dlbl;
706 }
707 }
708 else
709 {
710 if (lal <= 2.0 * lbl)
711 {
712 limited = s * lal;
713 dlimited_db = 0.0;
714 }
715 else
716 {
717 limited = s * 2.0 * lbl;
718 dlimited_db = s * 2.0 * dlbl;
719 }
720 }
721 return;
722 }
723 default:
724 return;
725 }
726}

Referenced by rMinus(), and rPlus().

◆ meshChanged()

void AdvectiveFluxCalculatorBase::meshChanged ( )
overridevirtual

Reimplemented from ElementUserObject.

Definition at line 196 of file AdvectiveFluxCalculatorBase.C.

197{
199
200 // Signal that _kij, _valence, etc need to be rebuilt
201 _resizing_needed = true;
202}
virtual void meshChanged()

◆ PQPlusMinus()

Real AdvectiveFluxCalculatorBase::PQPlusMinus ( dof_id_type  sequential_i,
const PQPlusMinusEnum  pq_plus_minus,
std::vector< Real > &  derivs,
std::vector< Real > &  dpq_dk 
) const
protected

Returns the value of P_{i}^{+}, P_{i}^{-}, Q_{i}^{+} or Q_{i}^{-} (depending on pq_plus_minus) which are defined in Eqns (47) and (48) of KT.

Parameters
sequential_isequential nodal ID
pq_plus_minusindicates whether P_{i}^{+}, P_{i}^{-}, Q_{i}^{+} or Q_{i}^{-} should be returned
derivs[out]derivs[j] = d(result)/d(u[sequential_j]). Here sequential_j is the j^th connection to sequential_i
dpq_dk[out]dpq_dk[j] = d(result)/d(K[node_i][j]). Here j indexes a connection to sequential_i. Recall that d(result)/d(K[l][m]) are zero unless l=sequential_i

Definition at line 762 of file AdvectiveFluxCalculatorBase.C.

766{
767 // Find the value of u at sequential_i
768 const Real u_i = _u_nodal[sequential_i];
769
770 // Connections to sequential_i
771 const std::vector<dof_id_type> con_i =
773 const std::size_t num_con = con_i.size();
774 // The neighbor number of sequential_i to sequential_i
775 const unsigned i_index_i = _connections.indexOfSequentialConnection(sequential_i, sequential_i);
776
777 // Initialize the results
778 Real result = 0.0;
779 derivs.assign(num_con, 0.0);
780 dpqdk.assign(num_con, 0.0);
781
782 // Sum over all nodes connected with node_i.
783 for (std::size_t j = 0; j < num_con; ++j)
784 {
785 const dof_id_type sequential_j = con_i[j];
786 if (sequential_j == sequential_i)
787 continue;
788 const Real kentry = _kij[sequential_i][j];
789
790 // Find the value of u at node_j
791 const Real u_j = _u_nodal[sequential_j];
792 const Real ujminusi = u_j - u_i;
793
794 // Evaluate the i-j contribution to the result
795 switch (pq_plus_minus)
796 {
798 {
799 if (ujminusi < 0.0 && kentry < 0.0)
800 {
801 result += kentry * ujminusi;
802 derivs[j] += kentry;
803 derivs[i_index_i] -= kentry;
804 dpqdk[j] += ujminusi;
805 }
806 break;
807 }
809 {
810 if (ujminusi > 0.0 && kentry < 0.0)
811 {
812 result += kentry * ujminusi;
813 derivs[j] += kentry;
814 derivs[i_index_i] -= kentry;
815 dpqdk[j] += ujminusi;
816 }
817 break;
818 }
820 {
821 if (ujminusi > 0.0 && kentry > 0.0)
822 {
823 result += kentry * ujminusi;
824 derivs[j] += kentry;
825 derivs[i_index_i] -= kentry;
826 dpqdk[j] += ujminusi;
827 }
828 break;
829 }
831 {
832 if (ujminusi < 0.0 && kentry > 0.0)
833 {
834 result += kentry * ujminusi;
835 derivs[j] += kentry;
836 derivs[i_index_i] -= kentry;
837 dpqdk[j] += ujminusi;
838 }
839 break;
840 }
841 }
842 }
843
844 return result;
845}

Referenced by rMinus(), and rPlus().

◆ rMinus()

Real AdvectiveFluxCalculatorBase::rMinus ( dof_id_type  sequential_i,
std::vector< Real > &  dlimited_du,
std::vector< Real > &  dlimited_dk 
) const
protected

Returns the value of R_{i}^{-}, Eqn (49) of KT.

Parameters
sequential_iSequential nodal ID
dlimited_du[out]dlimited_du[j] = d(R_{sequential_i}^{-})/du[sequential_j]. Here sequential_j is the j^th connection to sequential_i
dlimited_dk[out]dlimited_dk[j] = d(R_{sequential_i}^{-})/d(K[sequential_i][j]). Note Derivatives w.r.t. K[l][m] with l!=i are zero

Definition at line 593 of file AdvectiveFluxCalculatorBase.C.

596{
597 const std::size_t num_con = _connections.sequentialConnectionsToSequentialID(sequential_i).size();
598 dlimited_du.assign(num_con, 0.0);
599 dlimited_dk.assign(num_con, 0.0);
601 return 0.0;
602 std::vector<Real> dp_du;
603 std::vector<Real> dp_dk;
604 const Real p = PQPlusMinus(sequential_i, PQPlusMinusEnum::PMinus, dp_du, dp_dk);
605 if (p == 0.0)
606 // Comment after Eqn (49): if P=0 then there's no antidiffusion, so no need to remove it
607 return 1.0;
608 std::vector<Real> dq_du;
609 std::vector<Real> dq_dk;
610 const Real q = PQPlusMinus(sequential_i, PQPlusMinusEnum::QMinus, dq_du, dq_dk);
611
612 const Real r = q / p;
613 Real limited;
614 Real dlimited_dr;
615 limitFlux(1.0, r, limited, dlimited_dr);
616
617 const Real p2 = std::pow(p, 2);
618 for (std::size_t j = 0; j < num_con; ++j)
619 {
620 const Real dr_du = dq_du[j] / p - q * dp_du[j] / p2;
621 const Real dr_dk = dq_dk[j] / p - q * dp_dk[j] / p2;
622 dlimited_du[j] = dlimited_dr * dr_du;
623 dlimited_dk[j] = dlimited_dr * dr_dk;
624 }
625 return limited;
626}
const Real p
Real PQPlusMinus(dof_id_type sequential_i, const PQPlusMinusEnum pq_plus_minus, std::vector< Real > &derivs, std::vector< Real > &dpq_dk) const
Returns the value of P_{i}^{+}, P_{i}^{-}, Q_{i}^{+} or Q_{i}^{-} (depending on pq_plus_minus) which ...
void limitFlux(Real a, Real b, Real &limited, Real &dlimited_db) const
flux limiter, L, on Page 135 of Kuzmin and Turek

Referenced by finalize().

◆ rPlus()

Real AdvectiveFluxCalculatorBase::rPlus ( dof_id_type  sequential_i,
std::vector< Real > &  dlimited_du,
std::vector< Real > &  dlimited_dk 
) const
protected

Returns the value of R_{i}^{+}, Eqn (49) of KT.

Parameters
node_inodal id
dlimited_du[out]dlimited_du[j] = d(R_{sequential_i}^{+})/du[sequential_j]. Here sequential_j is the j^th connection to sequential_i
dlimited_dk[out]dlimited_dk[j] = d(R_{sequential_i}^{+})/d(K[sequential_i][j]). Note Derivatives w.r.t. K[l][m] with l!=i are zero

Definition at line 557 of file AdvectiveFluxCalculatorBase.C.

560{
561 const std::size_t num_con = _connections.sequentialConnectionsToSequentialID(sequential_i).size();
562 dlimited_du.assign(num_con, 0.0);
563 dlimited_dk.assign(num_con, 0.0);
565 return 0.0;
566 std::vector<Real> dp_du;
567 std::vector<Real> dp_dk;
568 const Real p = PQPlusMinus(sequential_i, PQPlusMinusEnum::PPlus, dp_du, dp_dk);
569 if (p == 0.0)
570 // Comment after Eqn (49): if P=0 then there's no antidiffusion, so no need to remove it
571 return 1.0;
572 std::vector<Real> dq_du;
573 std::vector<Real> dq_dk;
574 const Real q = PQPlusMinus(sequential_i, PQPlusMinusEnum::QPlus, dq_du, dq_dk);
575
576 const Real r = q / p;
577 Real limited;
578 Real dlimited_dr;
579 limitFlux(1.0, r, limited, dlimited_dr);
580
581 const Real p2 = std::pow(p, 2);
582 for (std::size_t j = 0; j < num_con; ++j)
583 {
584 const Real dr_du = dq_du[j] / p - q * dp_du[j] / p2;
585 const Real dr_dk = dq_dk[j] / p - q * dp_dk[j] / p2;
586 dlimited_du[j] = dlimited_dr * dr_du;
587 dlimited_dk[j] = dlimited_dr * dr_dk;
588 }
589 return limited;
590}

Referenced by finalize().

◆ threadJoin()

void AdvectiveFluxCalculatorBase::threadJoin ( const UserObject uo)
overridevirtual

Implements ElementUserObject.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 249 of file AdvectiveFluxCalculatorBase.C.

250{
251 const auto & afc = static_cast<const AdvectiveFluxCalculatorBase &>(uo);
252 // add the values of _kij computed by different threads
253 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
254 {
255 const std::size_t num_con_i =
257 for (std::size_t j = 0; j < num_con_i; ++j)
258 _kij[sequential_i][j] += afc._kij[sequential_i][j];
259 }
260
261 // gather the values of _u_nodal computed by different threads
262 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
263 if (!_u_nodal_computed_by_thread[sequential_i] && afc._u_nodal_computed_by_thread[sequential_i])
264 _u_nodal[sequential_i] = afc._u_nodal[sequential_i];
265}
Base class to compute Advective fluxes.

Referenced by PorousFlowAdvectiveFluxCalculatorBase::threadJoin().

◆ timestepSetup()

void AdvectiveFluxCalculatorBase::timestepSetup ( )
overridevirtual

Reimplemented from ElementUserObject.

Reimplemented in PorousFlowAdvectiveFluxCalculatorBase.

Definition at line 79 of file AdvectiveFluxCalculatorBase.C.

80{
81 // If needed, size and initialize quantities appropriately, and compute _valence
83 {
84 /*
85 * Populate _connections for all nodes that can be seen by this processor and on relevant
86 * blocks
87 *
88 * MULTIPROC NOTE: this must loop over local elements and 2 layers of ghosted elements.
89 * The Kernel will only loop over local elements, so will only use _kij, etc, for
90 * linked node-node pairs that appear in the local elements. Nevertheless, we
91 * need to build _kij, etc, for the nodes in the ghosted elements in order to simplify
92 * Jacobian computations
93 */
95 for (const auto & elem : _fe_problem.getNonlinearEvaluableElementRange())
96 if (this->hasBlocks(elem->subdomain_id()))
97 for (unsigned i = 0; i < elem->n_nodes(); ++i)
98 _connections.addGlobalNode(elem->node_id(i));
100 for (const auto & elem : _fe_problem.getNonlinearEvaluableElementRange())
101 if (this->hasBlocks(elem->subdomain_id()))
102 for (unsigned i = 0; i < elem->n_nodes(); ++i)
103 for (unsigned j = 0; j < elem->n_nodes(); ++j)
104 _connections.addConnection(elem->node_id(i), elem->node_id(j));
106
108
109 Real mb_wasted = (_connections.sizeSequential() - _number_of_nodes) * 4.0 / 1048576;
110 gatherMax(mb_wasted);
111 if (mb_wasted > _allowable_MB_wastage)
113 "In at least one processor, the sequential node-numbering internal data structure used "
114 "in " +
115 name() + " is using memory inefficiently.\nThe memory wasted is " +
116 Moose::stringify(mb_wasted) +
117 " megabytes.\n The node-numbering data structure has been optimized for speed at the "
118 "expense of memory, but that may not be an appropriate optimization for your case, "
119 "because the node numbering is not close to sequential in your case.\n");
120
121 // initialize _kij
122 _kij.resize(_number_of_nodes);
123 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
124 _kij[sequential_i].assign(
125 _connections.sequentialConnectionsToSequentialID(sequential_i).size(), 0.0);
126
127 /*
128 * Build _valence[i], which is the number of times the sequential node i is encountered when
129 * looping over the entire mesh (and on relevant blocks)
130 *
131 * MULTIPROC NOTE: this must loop over local elements and >=1 layer of ghosted elements.
132 * The Kernel will only loop over local elements, so will only use _valence for
133 * linked node-node pairs that appear in the local elements. But other processors will
134 * loop over neighboring elements, so avoid multiple counting of the residual and Jacobian
135 * this processor must record how many times each node-node link of its local elements
136 * appears in the local elements and >=1 layer, and pass that info to the Kernel
137 */
138 _valence.assign(_number_of_nodes, 0);
139 for (const auto & elem : _fe_problem.getNonlinearEvaluableElementRange())
140 if (this->hasBlocks(elem->subdomain_id()))
141 for (unsigned i = 0; i < elem->n_nodes(); ++i)
142 {
143 const dof_id_type node_i = elem->node_id(i);
144 const dof_id_type sequential_i = _connections.sequentialID(node_i);
145 _valence[sequential_i] += 1;
146 }
147
148 _u_nodal.assign(_number_of_nodes, 0.0);
150 _flux_out.assign(_number_of_nodes, 0.0);
151 _dflux_out_du.assign(_number_of_nodes, std::map<dof_id_type, Real>());
152 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
153 zeroedConnection(_dflux_out_du[sequential_i], _connections.globalID(sequential_i));
155 for (dof_id_type sequential_i = 0; sequential_i < _number_of_nodes; ++sequential_i)
156 {
157 const std::vector<dof_id_type> con_i =
159 const std::size_t num_con_i = con_i.size();
160 _dflux_out_dKjk[sequential_i].resize(num_con_i);
161 for (std::size_t j = 0; j < con_i.size(); ++j)
162 {
163 const dof_id_type sequential_j = con_i[j];
164 const std::size_t num_con_j =
166 _dflux_out_dKjk[sequential_i][j].assign(num_con_j, 0.0);
167 }
168 }
169
170 if (_app.n_processors() > 1)
172
173 _resizing_needed = false;
174
175 // Clear and size all member vectors
176 _dij.assign(_number_of_nodes, {});
177 _dDij_dKij.assign(_number_of_nodes, {});
178 _dDij_dKji.assign(_number_of_nodes, {});
179 _dDii_dKij.assign(_number_of_nodes, {});
180 _dDii_dKji.assign(_number_of_nodes, {});
181 _lij.assign(_number_of_nodes, {});
182 _rP.assign(_number_of_nodes, 0.0);
183 _rM.assign(_number_of_nodes, 0.0);
184 _drP.assign(_number_of_nodes, {});
185 _drM.assign(_number_of_nodes, {});
186 _drP_dk.assign(_number_of_nodes, {});
187 _drM_dk.assign(_number_of_nodes, {});
188 _fa.assign(_number_of_nodes, {});
189 _dfa.assign(_number_of_nodes, {});
190 _dFij_dKik.assign(_number_of_nodes, {});
191 _dFij_dKjk.assign(_number_of_nodes, {});
192 }
193}
for(PetscInt i=0;i< nvars;++i)
virtual void buildCommLists()
When using multiple processors, other processors will compute:
void zeroedConnection(std::map< dof_id_type, Real > &the_map, dof_id_type node_i) const
Clears the_map, then, using _kij, constructs the_map so that the_map[node_id] = 0....
void mooseWarning(Args &&... args) const
void finalizeAddingConnections()
Signal that all global node IDs have been added to the internal data structures.
void addConnection(dof_id_type global_node_from, dof_id_type global_node_to)
Specifies that global_node_to is connected to global_node_from.
std::size_t numNodes() const
number of nodes known by this class
void finalizeAddingGlobalNodes()
Signal that all global node IDs have been added to the internal data structures.
void clear()
clear all data in readiness for adding global nodes and connections
void addGlobalNode(dof_id_type global_node_ID)
Add the given global_node_ID to the internal data structures If the global node ID has already been a...
std::size_t sizeSequential() const
Return the size of _sequential_id, for checking memory efficiency.
void gatherMax(T &value)
std::string stringify(const T &t)

Referenced by PorousFlowAdvectiveFluxCalculatorBase::timestepSetup().

◆ validParams()

InputParameters AdvectiveFluxCalculatorBase::validParams ( )
static

Definition at line 18 of file AdvectiveFluxCalculatorBase.C.

19{
22 "Base class to compute K_ij (a measure of advective flux from node i to node j) "
23 "and R+ and R- (which quantify amount of antidiffusion to add) in the "
24 "Kuzmin-Turek FEM-TVD multidimensional scheme");
25 MooseEnum flux_limiter_type("MinMod VanLeer MC superbee None", "VanLeer");
26 params.addParam<MooseEnum>("flux_limiter_type",
27 flux_limiter_type,
28 "Type of flux limiter to use. 'None' means that no antidiffusion "
29 "will be added in the Kuzmin-Turek scheme");
31 "allowable_MB_wastage",
32 5.0,
33 "allowable_MB_wastage > 0.0",
34 "This object will issue a memory warning if the internal node-numbering data structure "
35 "wastes more than allowable_MB_wastage megabytes. This data structure uses sequential "
36 "node-numbering which is optimized for speed rather than memory efficiency");
37
38 params.addRelationshipManager("ElementPointNeighborLayers",
39 Moose::RelationshipManagerType::GEOMETRIC |
40 Moose::RelationshipManagerType::ALGEBRAIC |
41 Moose::RelationshipManagerType::COUPLING,
42 [](const InputParameters &, InputParameters & rm_params)
43 { rm_params.set<unsigned short>("layers") = 2; });
44
45 params.set<ExecFlagEnum>("execute_on", true) = {EXEC_LINEAR};
46 return params;
47}
const ExecFlagType EXEC_LINEAR
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addRelationshipManager(const std::string &name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback input_parameter_callback=nullptr)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
void addRangeCheckedParam(const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string)

Referenced by AdvectiveFluxCalculatorConstantVelocity::validParams(), and PorousFlowAdvectiveFluxCalculatorBase::validParams().

◆ zeroedConnection()

void AdvectiveFluxCalculatorBase::zeroedConnection ( std::map< dof_id_type, Real > &  the_map,
dof_id_type  node_i 
) const
protected

Clears the_map, then, using _kij, constructs the_map so that the_map[node_id] = 0.0 for all node_id connected with node_i.

Parameters
[out]the_mapthe map to be zeroed appropriately
[in]node_inodal id

Definition at line 753 of file AdvectiveFluxCalculatorBase.C.

755{
756 the_map.clear();
757 for (const auto & node_j : _connections.globalConnectionsToGlobalID(node_i))
758 the_map[node_j] = 0.0;
759}

Referenced by timestepSetup().

Member Data Documentation

◆ _allowable_MB_wastage

const Real AdvectiveFluxCalculatorBase::_allowable_MB_wastage
protected

A mooseWarning is issued if mb_wasted = (_connections.sizeSequential() - _connections.numNodes()) * 4 / 1048576 > _allowable_MB_wastage.

The _connections object uses sequential node numbering for computational efficiency, but this leads to memory being used inefficiently: the number of megabytes wasted is mb_wasted.

Definition at line 249 of file AdvectiveFluxCalculatorBase.h.

Referenced by timestepSetup().

◆ _connections

PorousFlowConnectedNodes AdvectiveFluxCalculatorBase::_connections
protected

◆ _dDii_dKij

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_dDii_dKij
protected

dDii_dKij[i][j] = d(D[i][i])/d(K[i][j])

Definition at line 291 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dDii_dKji

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_dDii_dKji
protected

dDii_dKji[i][j] = d(D[i][i])/d(K[j][i])

Definition at line 293 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dDij_dKij

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_dDij_dKij
protected

dDij_dKij[i][j] = d(D[i][j])/d(K[i][j]) for i!=j

Definition at line 287 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dDij_dKji

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_dDij_dKji
protected

dDij_dKji[i][j] = d(D[i][j])/d(K[j][i]) for i!=j

Definition at line 289 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dfa

std::vector<std::vector<std::map<dof_id_type, Real> > > AdvectiveFluxCalculatorBase::_dfa
protected

dfa[sequential_i][j][global_k] = d(fa[sequential_i][j])/du[global_k].

Here global_k can be a neighbor to sequential_i or a neighbour to sequential_j (sequential_j is the j^th connection to sequential_i)

Definition at line 313 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dFij_dKik

std::vector<std::vector<std::vector<Real> > > AdvectiveFluxCalculatorBase::_dFij_dKik
protected

dFij_dKik[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_i][k]).

Here j denotes the j^th connection to sequential_i, while k denotes the k^th connection to sequential_i

Definition at line 318 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dFij_dKjk

std::vector<std::vector<std::vector<Real> > > AdvectiveFluxCalculatorBase::_dFij_dKjk
protected

dFij_dKjk[sequential_i][j][k] = d(fa[sequential_i][j])/d(K[sequential_j][k]).

Here sequential_j is the j^th connection to sequential_i, and k denotes the k^th connection to sequential_j (this will include sequential_i itself)

Definition at line 323 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _dflux_out_dKjk

std::vector<std::vector<std::vector<Real> > > AdvectiveFluxCalculatorBase::_dflux_out_dKjk
protected

_dflux_out_dKjk[sequential_i][j][k] = d(flux_out[sequential_i])/d(K[j][k]).

Here sequential_i is a sequential node number according to the _connections object, and j represents the j^th node connected to i according to the _connections object, and k represents the k^th node connected to j according to the _connections object. Here j must be connected to i (this does include (the sequential version of j) == i), and k must be connected to j (this does include (the sequential version of k) = i and (the sequential version of k) == (sequential version of j)))

Definition at line 187 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), getdFluxOutdKjk(), and timestepSetup().

◆ _dflux_out_du

std::vector<std::map<dof_id_type, Real> > AdvectiveFluxCalculatorBase::_dflux_out_du
protected

_dflux_out_du[i][j] = d(flux_out[i])/d(u[j]).

Here i is a sequential node number according to the _connections object, and j (global ID) must be connected to i, or to a node that is connected to i.

Definition at line 180 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), getdFluxOutdu(), and timestepSetup().

◆ _dij

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_dij
protected

Vectors used in finalize()

Definition at line 285 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _drM

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_drM
protected

drM[i][j] = d(rM[i])/d(u[j]). Here j indexes the j^th node connected to i

Definition at line 302 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _drM_dk

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_drM_dk
protected

drM_dk[i][j] = d(rM[i])/d(K[i][j]). Here j indexes the j^th node connected to i

Definition at line 306 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _drP

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_drP
protected

drP[i][j] = d(rP[i])/d(u[j]). Here j indexes the j^th node connected to i

Definition at line 300 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _drP_dk

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_drP_dk
protected

drP_dk[i][j] = d(rP[i])/d(K[i][j]). Here j indexes the j^th node connected to i

Definition at line 304 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _fa

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_fa
protected

fa[sequential_i][j] sequential_j is the j^th connection to sequential_i

Definition at line 309 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _flux_limiter_type

enum AdvectiveFluxCalculatorBase::FluxLimiterTypeEnum AdvectiveFluxCalculatorBase::_flux_limiter_type
protected

Referenced by limitFlux(), rMinus(), and rPlus().

◆ _flux_out

std::vector<Real> AdvectiveFluxCalculatorBase::_flux_out
protected

_flux_out[i] = flux of "heat" from sequential node i

Definition at line 176 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), getFluxOut(), and timestepSetup().

◆ _kij

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_kij
protected

Kuzmin-Turek K_ij matrix.

Along with R+ and R-, this is the key quantity computed by this UserObject. _kij[i][j] = k_ij corresponding to the i-j node pair. Here i is a sequential node numbers according to the _connections object, and j represents the j^th node connected to i according to the _connections object.

Definition at line 173 of file AdvectiveFluxCalculatorBase.h.

Referenced by exchangeGhostedInfo(), executeOnElement(), finalize(), initialize(), PQPlusMinus(), threadJoin(), and timestepSetup().

◆ _lij

std::vector<std::vector<Real> > AdvectiveFluxCalculatorBase::_lij
protected

Definition at line 295 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _my_pid

processor_id_type AdvectiveFluxCalculatorBase::_my_pid
protected

processor ID of this object

Definition at line 207 of file AdvectiveFluxCalculatorBase.h.

Referenced by buildCommLists(), and PorousFlowAdvectiveFluxCalculatorBase::buildCommLists().

◆ _nodes_to_receive

std::map<processor_id_type, std::vector<dof_id_type> > AdvectiveFluxCalculatorBase::_nodes_to_receive
protected

_nodes_to_receive[proc_id] = list of sequential nodal IDs.

proc_id will send us _u_nodal at those nodes. _nodes_to_receive is built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs is made, for efficiency. The result is: we will receive _u_nodal[_nodes_to_receive[proc_id][i]] from proc_id

Definition at line 215 of file AdvectiveFluxCalculatorBase.h.

Referenced by buildCommLists(), exchangeGhostedInfo(), and PorousFlowAdvectiveFluxCalculatorBase::exchangeGhostedInfo().

◆ _nodes_to_send

std::map<processor_id_type, std::vector<dof_id_type> > AdvectiveFluxCalculatorBase::_nodes_to_send
protected

_nodes_to_send[proc_id] = list of sequential nodal IDs.

We will send _u_nodal at those nodes to proc_id _nodes_to_send is built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs is made, for efficiency The result is: we will send _u_nodal[_nodes_to_receive[proc_id][i]] to proc_id

Definition at line 223 of file AdvectiveFluxCalculatorBase.h.

Referenced by buildCommLists(), exchangeGhostedInfo(), and PorousFlowAdvectiveFluxCalculatorBase::exchangeGhostedInfo().

◆ _number_of_nodes

std::size_t AdvectiveFluxCalculatorBase::_number_of_nodes
protected

Number of nodes held by the _connections object.

Definition at line 204 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), initialize(), threadJoin(), PorousFlowAdvectiveFluxCalculatorBase::threadJoin(), and timestepSetup().

◆ _pairs_to_receive

std::map<processor_id_type, std::vector<std::pair<dof_id_type, dof_id_type> > > AdvectiveFluxCalculatorBase::_pairs_to_receive
protected

_pairs_to_receive[proc_id] indicates the k(i, j) pairs that will be sent to us from proc_id _pairs_to_receive is first built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs and the index of connections is performed, for efficiency.

The result is we will receive: _kij[_pairs_to_receive[proc_id][i].first][_pairs_to_receive[proc_id][i].second] from proc_id

Definition at line 232 of file AdvectiveFluxCalculatorBase.h.

Referenced by buildCommLists(), and exchangeGhostedInfo().

◆ _pairs_to_send

std::map<processor_id_type, std::vector<std::pair<dof_id_type, dof_id_type> > > AdvectiveFluxCalculatorBase::_pairs_to_send
protected

_pairs_to_send[proc_id] indicates the k(i, j) pairs that we will send to proc_id _pairs_to_send is first built (in buildCommLists()) using global node IDs, but after construction, a translation to sequential node IDs and the index of connections is performed, for efficiency.

The result is we will send: _kij[_pairs_to_send[proc_id][i].first][_pairs_to_send[proc_id][i+1].second] to proc_id

Definition at line 241 of file AdvectiveFluxCalculatorBase.h.

Referenced by buildCommLists(), and exchangeGhostedInfo().

◆ _resizing_needed

bool AdvectiveFluxCalculatorBase::_resizing_needed
protected

whether _kij, etc, need to be sized appropriately (and valence recomputed) at the start of the timestep

Definition at line 127 of file AdvectiveFluxCalculatorBase.h.

Referenced by meshChanged(), timestepSetup(), and PorousFlowAdvectiveFluxCalculatorBase::timestepSetup().

◆ _rM

std::vector<Real> AdvectiveFluxCalculatorBase::_rM
protected

Definition at line 297 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _rP

std::vector<Real> AdvectiveFluxCalculatorBase::_rP
protected

Definition at line 296 of file AdvectiveFluxCalculatorBase.h.

Referenced by finalize(), and timestepSetup().

◆ _u_nodal

std::vector<Real> AdvectiveFluxCalculatorBase::_u_nodal
protected

_u_nodal[i] = value of _u at sequential node number i

Definition at line 195 of file AdvectiveFluxCalculatorBase.h.

Referenced by exchangeGhostedInfo(), execute(), finalize(), PQPlusMinus(), threadJoin(), and timestepSetup().

◆ _u_nodal_computed_by_thread

std::vector<bool> AdvectiveFluxCalculatorBase::_u_nodal_computed_by_thread
protected

_u_nodal_computed_by_thread(i) = true if _u_nodal[i] has been computed in execute() by the thread on this processor

Definition at line 198 of file AdvectiveFluxCalculatorBase.h.

Referenced by execute(), initialize(), threadJoin(), and timestepSetup().

◆ _valence

std::vector<unsigned> AdvectiveFluxCalculatorBase::_valence
protected

_valence[i] = number of times, in a loop over elements seen by this processor (viz, including ghost elements) and are part of the block-restricted blocks of this UserObject, that the sequential node i is encountered

Definition at line 192 of file AdvectiveFluxCalculatorBase.h.

Referenced by getValence(), and timestepSetup().


The documentation for this class was generated from the following files: