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

Computes and caches flux and residual vectors for a 1-phase compressor. More...

#include <ADShaftConnectedCompressor1PhaseUserObject.h>

Inheritance diagram for ADShaftConnectedCompressor1PhaseUserObject:
[legend]

Public Types

enum  TEST_TYPE
 
typedef DataFileName DataFileParameterType
 

Public Member Functions

 ADShaftConnectedCompressor1PhaseUserObject (const InputParameters &params)
 
virtual void initialSetup () override
 
virtual void initialize () override
 
virtual void execute () override
 
ADReal getIsentropicTorque () const
 Isentropic torque computed in the 1-phase shaft-connected compressor.
 
ADReal getDissipationTorque () const
 Dissipation torque computed in the 1-phase shaft-connected compressor.
 
ADReal getFrictionTorque () const
 Friction torque computed in the 1-phase shaft-connected compressor.
 
ADReal getCompressorDeltaP () const
 Compressor head computed in the 1-phase shaft-connected compressor.
 
ADReal getPressureRatio () const
 Gets the pressure ratio.
 
ADReal getEfficiency () const
 Gets the efficiency.
 
ADReal getRelativeCorrectedMassFlowRate () const
 Gets the relative corrected mass flow rate.
 
ADReal getRelativeCorrectedSpeed () const
 Gets the elative corrected shaft speed.
 
virtual void finalize () override
 
virtual void threadJoin (const UserObject &uo) override
 
std::vector< ADRealcompute3DFlux (const ADNumericalFlux3EqnBase &numerical_flux, const std::vector< ADReal > &Ui, const RealVectorValue &ni) const
 
std::vector< ADRealcomputeResidual (const std::vector< ADReal > &flux_3d, const std::vector< ADReal > &Ui, const RealVectorValue &ni, bool is_primary_connection) const
 
const std::vector< ADReal > & getResidual () const
 Returns the residual vector for the scalar variables.
 
const std::vector< ADReal > & getFlux (const unsigned int &connection_index) const override
 Gets the flux vector for a connection.
 
unsigned int getNumberOfConnections () const
 Gets the number of connected flow channels.
 
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 timestepSetup ()
 
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
 
virtual const std::set< BoundaryID > & boundaryIDs () const
 
const std::vector< BoundaryName > & boundaryNames () const
 
unsigned int numBoundaryIDs () const
 
bool hasBoundary (const BoundaryName &name) const
 
bool hasBoundary (const std::vector< BoundaryName > &names) const
 
bool hasBoundary (const BoundaryID &id) const
 
bool hasBoundary (const std::vector< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::set< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::vector< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::set< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::vector< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::set< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool isBoundarySubset (const std::set< BoundaryID > &ids) const
 
bool isBoundarySubset (const std::vector< BoundaryID > &ids) const
 
bool hasBoundaryMaterialProperty (const std::string &prop_name) const
 
virtual bool boundaryRestricted () const
 
const std::set< BoundaryID > & meshBoundaryIDs () const
 
virtual bool checkVariableBoundaryIntegrity () 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
 
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 meshChanged ()
 
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
 
virtual ADReal getTorque () const
 
virtual ADReal getMomentOfInertia () 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)
 
static bool restricted (const std::set< BoundaryID > &ids)
 

Public Attributes

 ALL
 
 ANY
 
 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 Member Functions

virtual void computeFluxesAndResiduals (const unsigned int &c) override
 Computes and stores the fluxes, the scalar residuals, and their Jacobians.
 
virtual std::vector< const MooseVariableBase * > getFlowChannelVariables () const override
 Gets the flow channel variables.
 
virtual std::vector< const MooseVariableBase * > getJunctionVariables () const override
 Gets the junction variables.
 
virtual void storeConnectionData ()
 Stores data (connection index, face shape functions, DoFs associated with flow channel variables) related to a connection.
 
const MooseVariableBasegetJunctionVar (const std::string &var_name, unsigned int i=0) const
 Gets a junction variable.
 
const ADVariableValuecoupledJunctionValue (const std::string &var_name, unsigned int i=0) const
 Gets an AD junction variable value.
 
unsigned int getBoundaryIDIndex ()
 Gets the index of the currently executing boundary within the vector of boundary IDs given to this SideUserObject.
 
void checkValidConnectionIndex (const unsigned int &connection_index) const
 Checks that a connection index is valid.
 
void getFaceInfos ()
 
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
 
bool hasBoundaryMaterialPropertyHelper (const std::string &prop_name) const
 
KOKKOS_FUNCTION dof_id_type numKokkosBoundaryNodes () const
 
KOKKOS_FUNCTION dof_id_type numKokkosBoundarySides () const
 
KOKKOS_FUNCTION ContiguousNodeID kokkosBoundaryNodeID (Moose::Kokkos::ThreadID tid) const
 
KOKKOS_FUNCTION auto kokkosBoundaryElementSideID (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)
 
virtual void setupConnections (unsigned int n_connections, unsigned int n_flow_eq)
 
virtual void setConnectionData (const std::vector< std::vector< dof_id_type > > &flow_channel_dofs)
 Stores data computed by a volume-junction-like object associated with the conection.
 
virtual void setOmegaDofs (const MooseVariableScalar *omega_var)
 
virtual void setupJunctionData (std::vector< dof_id_type > &scalar_dofs)
 Stores data associated with a junction component.
 

Static Protected Member Functions

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

Protected Attributes

Point _di_out
 Direction of the compressor outlet.
 
const bool _treat_as_turbine
 Treat the compressor as a turbine?
 
const Real & _omega_rated
 Rated compressor speed.
 
const Real & _mdot_rated
 Rated compressor mass flow rate.
 
const Real & _rho0_rated
 Rated compressor inlet stagnation fluid density.
 
const Real & _c0_rated
 Rated compressor inlet stagnation sound speed.
 
const Real & _speed_cr_fr
 Compressor speed threshold for friction.
 
const Real & _tau_fr_const
 Compressor friction constant.
 
const std::vector< Real > & _tau_fr_coeff
 Compressor friction coefficients.
 
const Real & _speed_cr_I
 Compressor speed threshold for inertia.
 
const Real & _inertia_const
 Compressor inertia constant.
 
const std::vector< Real > & _inertia_coeff
 Compressor inertia coefficients.
 
const std::vector< Real > & _speeds
 Compressor speeds which correspond to Rp and eff function order.
 
const std::vector< FunctionName > & _Rp_function_names
 Names of the pressure ratio functions.
 
const std::vector< FunctionName > & _eff_function_names
 Names of the adiabatic efficiency functions.
 
const unsigned int _n_speeds
 Size of vector _speeds.
 
std::vector< const Function * > _Rp_functions
 Pressure ratio functions.
 
std::vector< const Function * > _eff_functions
 Adiabatic efficiency functions.
 
const Real & _Rp_min
 Minimum pressure ratio.
 
const Real & _Rp_max
 Maximum pressure ratio.
 
const std::string & _compressor_name
 Compressor name.
 
const ADVariableValue_omega
 
ADReal _isentropic_torque
 Compressor isentropic torque.
 
ADReal _dissipation_torque
 Compressor dissipation torque.
 
ADReal _friction_torque
 Compressor friction torque.
 
ADReal _delta_p
 Compressor delta p.
 
ADReal _Rp
 Pressure ratio.
 
ADReal _eff
 Efficiency.
 
ADReal _flow_rel_corr
 relative corrected mass flow rate
 
ADReal _speed_rel_corr
 relative corrected shaft speed
 
std::vector< DenseMatrix< Real > > _residual_jacobian_omega_var
 Jacobian entries of junction variables wrt shaft variables.
 
const ADVariableValue_A
 Cross-sectional area of connected flow channels.
 
const ADVariableValue_rhoA
 rho*A of the connected flow channels
 
const ADVariableValue_rhouA
 rho*u*A of the connected flow channels
 
const ADVariableValue_rhoEA
 rho*E*A of the connected flow channels
 
const Real & _K
 Form loss coefficient.
 
const Real & _A_ref
 Reference area.
 
const bool _apply_velocity_scaling
 Apply velocity scaling?
 
const SinglePhaseFluidProperties_fp
 Single-phase fluid properties user object.
 
std::vector< const ADNumericalFlux3EqnBase * > _numerical_flux_uo
 Vector of numerical flux user objects for each connected flow channel.
 
const bool _use_scalar_variables
 True if the junction variables are scalar variables.
 
const subdomain_id_type _junction_subdomain_id
 Junction subdomain ID.
 
const Real & _volume
 Volume of the junction.
 
std::vector< std::string > _flow_variable_names
 Vector of coupled variable names for each flow variable.
 
std::vector< std::string > _scalar_variable_names
 Vector of coupled variable names for each scalar variable.
 
unsigned int _n_flux_eq
 Number of flow channel flux components.
 
unsigned int _n_scalar_eq
 Number of scalar residual components.
 
std::vector< const ADVariableValue * > _junction_var_values
 
std::vector< ADReal_cached_junction_var_values
 
const std::vector< UserObjectName > & _numerical_flux_names
 Names of numerical flux user objects for each connected flow channel.
 
std::vector< unsigned int_connection_indices
 Connection indices for this thread.
 
std::vector< dof_id_type > _scalar_dofs
 Degrees of freedom for scalar variables.
 
std::vector< std::vector< dof_id_type > > _flow_channel_dofs
 Degrees of freedom for flow channel variables, for each connection.
 
std::vector< std::vector< ADReal > > _flux
 Cached flux vector for each connection.
 
std::vector< ADReal_residual
 Cached scalar residual vector.
 
const std::vector< BoundaryID_bnd_ids_vector
 Vector of boundary IDs for this side user object; note that BoundaryRestrictable stores these same boundary IDs in _bnd_ids, but they are stored privately and in a set instead of a vector, so ordering is not preserved.
 
const unsigned int _n_bnd_ids
 
std::map< std::pair< const Elem *, const unsigned short int >, unsigned int_elem_side_to_bnd_id_index
 
const std::vector< Real > & _normal
 Flow channel outward normals or junction inward normals.
 
const MaterialProperty< RealVectorValue > & _dir
 Direction of the element connected to the junction.
 
const unsigned int _n_connections
 Number of connected flow channels.
 
std::vector< unsigned int_processor_ids
 Owners of each side of the junction.
 
MooseMesh_mesh
 
const MooseArray< Point > & _q_point
 
const QBase *const & _qrule
 
const MooseArray< Real > & _JxW
 
const MooseArray< Real > & _coord
 
const MooseArray< Point > & _normals
 
const Elem *const & _current_elem
 
const unsigned int_current_side
 
const Elem *const & _current_side_elem
 
const Real & _current_side_volume
 
const BoundaryID_current_boundary_id
 
std::vector< const FaceInfo * > _face_infos
 
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 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
 
const MooseObject_moose_object
 Associated MOOSE object.
 
unsigned int _n_shaft_eq
 Number of equation in the shaft component.
 
unsigned int _n_connections
 Number of flow channels the shaft connected component is attached to.
 
unsigned int _n_flow_eq
 Number of flow variables in connected flow channels.
 
std::vector< dof_id_type_omega_dof
 Degrees of freedom for omega variable (from shaft)
 
std::vector< dof_id_type_scalar_dofs
 Degrees of freedom for scalar variables (from junction)
 
std::vector< std::vector< dof_id_type > > _flow_channel_dofs
 Degrees of freedom for flow channel variables, for each connection.
 
ADReal _torque
 Total torque.
 
ADReal _moment_of_inertia
 Moment of inertia.
 

Static Protected Attributes

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

Private Types

enum  FuncAge
 
enum  VarType
 

Private Member Functions

void checkNoInterfaceMaterialPropertyDependencies () const
 
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
 
void initializeBoundaryRestrictable ()
 
void initializeKokkosBoundaryRestrictable ()
 
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
 
FEProblemBase_bnd_feproblem
 
MooseMesh_bnd_mesh
 
std::set< BoundaryID_bnd_ids
 
std::vector< BoundaryID_vec_ids
 
std::vector< BoundaryName > _boundary_names
 
const bool _bnd_dual_restrictable
 
const std::set< SubdomainID_empty_block_ids
 
const std::set< SubdomainID > & _block_ids
 
THREAD_ID _bnd_tid
 
const MaterialData_bnd_material_data
 
bool _bnd_nodal
 
const MooseObject_moose_object
 
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
 
const InputParameters_obj_parameters
 
std::shared_ptr< MooseMesh > & _id_mesh
 
const std::string & _ei_name
 

Detailed Description

Computes and caches flux and residual vectors for a 1-phase compressor.

This class computes and caches the following quantities:

Definition at line 26 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Constructor & Destructor Documentation

◆ ADShaftConnectedCompressor1PhaseUserObject()

ADShaftConnectedCompressor1PhaseUserObject::ADShaftConnectedCompressor1PhaseUserObject ( const InputParameters params)

Definition at line 73 of file ADShaftConnectedCompressor1PhaseUserObject.C.

77
78 _di_out(getParam<Point>("di_out")),
79 _treat_as_turbine(getParam<bool>("treat_as_turbine")),
80 _omega_rated(getParam<Real>("omega_rated")),
81 _mdot_rated(getParam<Real>("mdot_rated")),
82 _rho0_rated(getParam<Real>("rho0_rated")),
83 _c0_rated(getParam<Real>("c0_rated")),
84 _speed_cr_fr(getParam<Real>("speed_cr_fr")),
85 _tau_fr_const(getParam<Real>("tau_fr_const")),
86 _tau_fr_coeff(getParam<std::vector<Real>>("tau_fr_coeff")),
87 _speed_cr_I(getParam<Real>("speed_cr_I")),
88 _inertia_const(getParam<Real>("inertia_const")),
89 _inertia_coeff(getParam<std::vector<Real>>("inertia_coeff")),
90 _speeds(getParam<std::vector<Real>>("speeds")),
91 _Rp_function_names(getParam<std::vector<FunctionName>>("Rp_functions")),
92 _eff_function_names(getParam<std::vector<FunctionName>>("eff_functions")),
93 _n_speeds(_speeds.size()),
96 _Rp_min(getParam<Real>("min_pressure_ratio")),
97 _Rp_max(getParam<Real>("max_pressure_ratio")),
98 _compressor_name(getParam<std::string>("compressor_name")),
100{
102 mooseError("The number of entries of speeds needs to equal the number of entries of "
103 "Rp_functions and eff_functions");
104
105 // Store functions and check to make sure there is no self-reference.
106 for (unsigned int i = 0; i < _n_speeds; i++)
107 {
108 if (_Rp_function_names[i] == name() || _eff_function_names[i] == name())
109 mooseError(name(), ": This function cannot use its own name in the 'functions' parameter.");
110
113 }
114}
const std::string name
Definition Setup.h:21
Interface class for user objects that are connected to a shaft.
const std::vector< Real > & _tau_fr_coeff
Compressor friction coefficients.
const bool _treat_as_turbine
Treat the compressor as a turbine?
const Real & _speed_cr_I
Compressor speed threshold for inertia.
const Real & _speed_cr_fr
Compressor speed threshold for friction.
const Real & _rho0_rated
Rated compressor inlet stagnation fluid density.
std::vector< const Function * > _Rp_functions
Pressure ratio functions.
const std::vector< Real > & _speeds
Compressor speeds which correspond to Rp and eff function order.
std::vector< const Function * > _eff_functions
Adiabatic efficiency functions.
const Real & _c0_rated
Rated compressor inlet stagnation sound speed.
const std::vector< Real > & _inertia_coeff
Compressor inertia coefficients.
const std::vector< FunctionName > & _Rp_function_names
Names of the pressure ratio functions.
const std::vector< FunctionName > & _eff_function_names
Names of the adiabatic efficiency functions.
Computes and caches flux and residual vectors for a 1-phase volume junction.
const Function & getFunctionByName(const FunctionName &name) const
void mooseError(Args &&... args) const
const T & getParam(const std::string &name) const
const ADVariableValue & adCoupledScalarValue(const std::string &var_name, unsigned int comp=0) const

Member Function Documentation

◆ checkValidConnectionIndex()

void ADFlowJunctionUserObject::checkValidConnectionIndex ( const unsigned int connection_index) const
protectedinherited

Checks that a connection index is valid.

Parameters
[in]connection_indexConnection index

Definition at line 116 of file ADFlowJunctionUserObject.C.

117{
118 if (connection_index >= _n_connections)
120 ": The connection index '",
121 connection_index,
122 "' is invalid; the range of valid indices is (0, ",
123 _n_connections - 1,
124 ").");
125}
const unsigned int _n_connections
Number of connected flow channels.
const std::string & name() const

Referenced by ADVolumeJunctionBaseUserObject::getFlux().

◆ compute3DFlux()

std::vector< ADReal > ADVolumeJunction1PhaseUserObject::compute3DFlux ( const ADNumericalFlux3EqnBase numerical_flux,
const std::vector< ADReal > &  Ui,
const RealVectorValue &  ni 
) const
inherited

Definition at line 127 of file ADVolumeJunction1PhaseUserObject.C.

130{
131 using std::abs, std::max, std::min;
132
133 const RealVectorValue nJi = -ni;
134
135 RealVectorValue t1, t2;
137
138 const auto & Ai = Ui[THMVACE3D::AREA];
139
145
146 std::vector<ADReal> UJi(THMVACE3D::N_FLUX_INPUTS, 0.);
147 UJi[THMVACE3D::RHOA] = rhoV / _volume * Ai;
149 {
150 const auto & rhoAi = Ui[THMVACE3D::RHOA];
151 const auto & rhouAi = Ui[THMVACE3D::RHOUA];
152 const auto & rhovAi = Ui[THMVACE3D::RHOVA];
153 const auto & rhowAi = Ui[THMVACE3D::RHOWA];
154 const auto & rhoEAi = Ui[THMVACE3D::RHOEA];
155
156 const ADRealVectorValue uveci(rhouAi / rhoAi, rhovAi / rhoAi, rhowAi / rhoAi);
157 const ADReal uni = uveci * nJi;
158
159 const ADReal rhoJ = rhoV / _volume;
160 const ADReal vJ = 1.0 / rhoJ;
161 const ADRealVectorValue uvecJ(rhouV / rhoV, rhovV / rhoV, rhowV / rhoV);
162 const ADReal eJ = rhoEV / rhoV - 0.5 * uvecJ * uvecJ;
163
164 const ADReal unJ = uvecJ * nJi;
165 const ADReal ut1J = uvecJ * t1;
166 const ADReal ut2J = uvecJ * t2;
167
168 const ADReal rhoi = rhoAi / Ai;
169 const ADReal vi = 1.0 / rhoi;
170 const ADReal ei = rhoEAi / rhoAi - 0.5 * uni * uni;
171
172 const ADReal ci = _fp.c_from_v_e(vi, ei);
173 const ADReal cJ = _fp.c_from_v_e(vJ, eJ);
174 const ADReal cmax = max(ci, cJ);
175
176 const ADReal uni_sign = (uni > 0) - (uni < 0);
177 const ADReal factor = 0.5 * (1.0 - uni_sign) * min(abs(uni - unJ) / cmax, 1.0);
178
179 const ADReal unJ_mod = uni - factor * (uni - unJ);
180 const ADRealVectorValue uvecJ_mod = unJ_mod * nJi + ut1J * t1 + ut2J * t2;
181 const ADReal EJ_mod = eJ + 0.5 * uvecJ_mod * uvecJ_mod;
182
183 UJi[THMVACE3D::RHOUA] = rhoJ * uvecJ_mod(0) * Ai;
184 UJi[THMVACE3D::RHOVA] = rhoJ * uvecJ_mod(1) * Ai;
185 UJi[THMVACE3D::RHOWA] = rhoJ * uvecJ_mod(2) * Ai;
186 UJi[THMVACE3D::RHOEA] = rhoJ * EJ_mod * Ai;
187 }
188 else
189 {
190 UJi[THMVACE3D::RHOUA] = rhouV / _volume * Ai;
191 UJi[THMVACE3D::RHOVA] = rhovV / _volume * Ai;
192 UJi[THMVACE3D::RHOWA] = rhowV / _volume * Ai;
193 UJi[THMVACE3D::RHOEA] = rhoEV / _volume * Ai;
194 }
195 UJi[THMVACE3D::AREA] = Ai;
196
197 std::vector<ADReal> FL, FR;
198 numerical_flux.calcFlux(UJi, Ui, nJi, t1, t2, FL, FR);
199
200 return FL;
201}
DualNumber< Real, DNDerivativeType, true > ADReal
const SinglePhaseFluidProperties & _fp
Single-phase fluid properties user object.
const bool _apply_velocity_scaling
Apply velocity scaling?
const Real & _volume
Volume of the junction.
virtual void calcFlux(const std::vector< ADReal > &UL_3d, const std::vector< ADReal > &UR_3d, const RealVectorValue &nLR, const RealVectorValue &t1, const RealVectorValue &t2, std::vector< ADReal > &FL, std::vector< ADReal > &FR) const =0
Calculates the 3D flux vectors given "left" and "right" states.
auto max(const L &left, const R &right)
auto min(const L &left, const R &right)
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 3D.
void computeOrthogonalDirections(const RealVectorValue &n_unnormalized, RealVectorValue &t1, RealVectorValue &t2)
Computes two unit vectors orthogonal to the given vector.
Definition THMUtils.C:22
VectorValue< Real > RealVectorValue

Referenced by ADVolumeJunction1PhaseUserObject::computeFluxesAndResiduals(), VolumeJunctionCoupledFlux1PhaseKernel::computeQpResidual(), and VolumeJunctionCoupledFlux1PhasePostprocessor::finalize().

◆ computeFluxesAndResiduals()

void ADShaftConnectedCompressor1PhaseUserObject::computeFluxesAndResiduals ( const unsigned int c)
overrideprotectedvirtual

Computes and stores the fluxes, the scalar residuals, and their Jacobians.

Parameters
[in]cConnection index

Reimplemented from ADVolumeJunction1PhaseUserObject.

Definition at line 154 of file ADShaftConnectedCompressor1PhaseUserObject.C.

155{
157
158 using std::isinf, std::min, std::max, std::abs, std::isnan;
159
160 // inlet c=0 established in component
161 if (c == 0)
162 {
163 const ADReal rhoA_in = _rhoA[0];
164 const ADReal rhouA_in = _rhouA[0];
165 const ADReal rhoEA_in = _rhoEA[0];
166 const ADReal e_in = THM::e_from_arhoA_arhouA_arhoEA(rhoA_in, rhouA_in, rhoEA_in);
167 const ADReal v_in = _A[0] / rhoA_in;
168 const ADReal p_in = _fp.p_from_v_e(v_in, e_in);
169 const ADReal vel_in = rhouA_in / rhoA_in;
170
171 // static entropy is equal to stagnation entropy by definition of the stagnation state
172 const ADReal s_in = _fp.s_from_v_e(v_in, e_in);
173 const ADReal s_out = s_in;
174
175 // isentropic: dH/m = Vdp/m
176 // h0, T0, and c0 are constant for adiabatic flows
177 const ADReal h0_in = e_in + p_in * v_in + 0.5 * vel_in * vel_in;
178 const ADReal p0_in = _fp.p_from_h_s(h0_in, s_in);
179 const ADReal rho0_in = _fp.rho_from_p_s(p0_in, s_in);
180 const ADReal v0_in = 1.0 / rho0_in;
181 const ADReal e0_in = _fp.e_from_p_rho(p0_in, rho0_in);
182 const ADReal c0_in = _fp.c_from_v_e(v0_in, e0_in);
183 const ADReal flow_A = rhouA_in * _rho0_rated * _c0_rated;
184
185 const ADReal flow_B = _mdot_rated * rho0_in * c0_in;
186 _flow_rel_corr = flow_A / flow_B;
187 _speed_rel_corr = (_omega[0] / _omega_rated) * (_c0_rated / c0_in);
188
189 // If _speed_rel_corr == _speeds[0], then the lower index x1 is determined to be -1
190 if (_speed_rel_corr == _speeds[0])
191 {
192 _Rp = _Rp_functions[0]->value(_flow_rel_corr, ADPoint());
194 }
195 else if (isnan(_speed_rel_corr)) // NaN; unguarded, gives segmentation fault
196 {
197 _Rp = std::nan("");
198 _eff = std::nan("");
199 }
200 else // linear interpolation/extrapolation
201 {
202 unsigned int x1, x2;
203 if (_speed_rel_corr < _speeds[0]) // extrapolation past minimum
204 {
205 x1 = 0;
206 x2 = 1;
207 }
208 else if (_speed_rel_corr > _speeds.back()) // extrapolation past maximum
209 {
210 x1 = _n_speeds - 1;
211 x2 = x1 - 1;
212 }
213 else // interpolation
214 {
215 auto x1_iter = std::lower_bound(_speeds.begin(), _speeds.end(), _speed_rel_corr);
216 auto x2_iter = std::upper_bound(_speeds.begin(), _speeds.end(), _speed_rel_corr);
217
218 x1 = (x1_iter - _speeds.begin()) - 1; // _speeds index for entry <= _speed_rel_corr
219 x2 = (x2_iter - _speeds.begin()); // _speeds index for entry > _speed_rel_corr
220 }
221
222 const Real x1_spd = _speeds[x1];
223 const Real x2_spd = _speeds[x2];
224
225 const ADReal y1_Rp = _Rp_functions[x1]->value(_flow_rel_corr, ADPoint());
226 const ADReal y2_Rp = _Rp_functions[x2]->value(_flow_rel_corr, ADPoint());
227 const ADReal Rp_m = (y2_Rp - y1_Rp) / (x2_spd - x1_spd);
228 _Rp = y1_Rp + (_speed_rel_corr - x1_spd) * Rp_m;
229
230 const ADReal y1_eff = _eff_functions[x1]->value(_flow_rel_corr, ADPoint());
231 const ADReal y2_eff = _eff_functions[x2]->value(_flow_rel_corr, ADPoint());
232 const ADReal eff_m = (y2_eff - y1_eff) / (x2_spd - x1_spd);
233 _eff = y1_eff + (_speed_rel_corr - x1_spd) * eff_m;
234 }
235
236 // Apply bounds
238
239 // Invert if treating as turbine
240 ADReal Rp_comp, eff_comp;
242 {
243 Rp_comp = 1.0 / _Rp;
244 eff_comp = 1.0 / _eff;
245 }
246 else
247 {
248 Rp_comp = _Rp;
249 eff_comp = _eff;
250 }
251
252 const ADReal p0_out = p0_in * Rp_comp;
253 const ADReal rho0_out_isen = _fp.rho_from_p_s(p0_out, s_out);
254
255 const ADReal e0_out_isen = _fp.e_from_p_rho(p0_out, rho0_out_isen);
256
257 _delta_p = p0_in * (Rp_comp - 1.0);
258
259 if (MooseUtils::absoluteFuzzyEqual(_omega[0], 0.0))
260 {
261 _isentropic_torque = 0.0;
263 }
264 else
265 {
266 const ADReal h0_out_isen = THM::h_from_e_p_rho(e0_out_isen, p0_out, rho0_out_isen);
267 _isentropic_torque = -(rhouA_in / _omega[0]) * (h0_out_isen - h0_in); // tau_isen
268
269 const ADReal g_x = h0_out_isen - h0_in + h0_in * eff_comp;
270 const ADReal h0_out = g_x / eff_comp;
271
272 _dissipation_torque = -(rhouA_in / _omega[0]) * (h0_out - h0_out_isen);
273 }
274
275 const ADReal alpha = _omega[0] / _omega_rated;
276
277 if (alpha < _speed_cr_I)
278 {
280 }
281 else
282 {
284 _inertia_coeff[2] * alpha * alpha +
285 _inertia_coeff[3] * abs(alpha * alpha * alpha);
286 }
287
288 // friction torque
289 Real sign;
290 if (_omega[0] >= 0)
291 sign = -1;
292 else
293 sign = 1;
294 if (alpha < _speed_cr_fr)
295 {
297 }
298 else
299 {
301 sign * (_tau_fr_coeff[0] + _tau_fr_coeff[1] * abs(alpha) +
302 _tau_fr_coeff[2] * alpha * alpha + _tau_fr_coeff[3] * abs(alpha * alpha * alpha));
303 }
304
306
307 // compute momentum and energy source terms
308 // a negative torque value results in a positive S_energy
309 const ADReal S_energy = -(_isentropic_torque + _dissipation_torque) * _omega[0];
310
311 const ADRealVectorValue S_momentum = _delta_p * _A_ref * _di_out;
312
314
318 }
319}
const ADVariableValue & _rhoEA
rho*E*A of the connected flow channels
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
const ADVariableValue & _rhouA
rho*u*A of the connected flow channels
const ADVariableValue & _rhoA
rho*A of the connected flow channels
const ADVariableValue & _A
Cross-sectional area of connected flow channels.
std::vector< ADReal > _residual
Cached scalar residual vector.
T sign(T x)
void h_from_e_p_rho(Real e, Real p, Real rho, Real &h, Real &dh_de, Real &dh_dp, Real &dh_drho)
Computes specific enthalpy and its derivatives from specific internal energy, pressure,...
Definition Numerics.C:220
void e_from_arhoA_arhouA_arhoEA(Real arhoA, Real arhouA, Real arhoEA, Real &e, Real &de_darhoA, Real &de_darhouA, Real &de_darhoEA)
Computes specific internal energy and its derivatives from alpha*rho*A, alpha*rho*u*A,...
Definition Numerics.C:147
bool isnan(std::complex< T > a)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by execute().

◆ computeResidual()

std::vector< ADReal > ADVolumeJunction1PhaseUserObject::computeResidual ( const std::vector< ADReal > &  flux_3d,
const std::vector< ADReal > &  Ui,
const RealVectorValue &  ni,
bool  is_primary_connection 
) const
inherited

Definition at line 204 of file ADVolumeJunction1PhaseUserObject.C.

208{
209 using std::abs;
210
211 const RealVectorValue nJi = -ni;
212
213 RealVectorValue t1, t2;
215
216 const auto & Ai = Ui[THMVACE3D::AREA];
217
223
224 const ADReal rhoJ = rhoV / _volume;
225 const ADReal vJ = 1.0 / rhoJ;
226 const ADRealVectorValue uvecJ(rhouV / rhoV, rhovV / rhoV, rhowV / rhoV);
227 const ADReal eJ = rhoEV / rhoV - 0.5 * uvecJ * uvecJ;
228 const ADReal pJ = _fp.p_from_v_e(vJ, eJ);
229
230 std::vector<ADReal> residual(_n_scalar_eq, 0.0);
231
232 if (is_primary_connection && std::abs(_K) > 1e-10)
233 {
234 const auto & rhoAi = Ui[THMVACE3D::RHOA];
235 const auto & rhouAi = Ui[THMVACE3D::RHOUA];
236 const auto & rhovAi = Ui[THMVACE3D::RHOVA];
237 const auto & rhowAi = Ui[THMVACE3D::RHOWA];
238 const auto & rhoEAi = Ui[THMVACE3D::RHOEA];
239
240 const ADRealVectorValue uveci(rhouAi / rhoAi, rhovAi / rhoAi, rhowAi / rhoAi);
241 const ADReal uni = uveci * nJi;
242
243 const ADReal v_in = THM::v_from_rhoA_A(rhoAi, Ai);
244 const ADReal rhouA2 = rhouAi * rhouAi;
245 const ADReal e_in = rhoEAi / rhoAi - 0.5 * rhouA2 / (rhoAi * rhoAi);
246 const ADReal p_in = _fp.p_from_v_e(v_in, e_in);
247 const ADReal s0_in = _fp.s_from_v_e(v_in, e_in);
248 const ADReal T_in = _fp.T_from_v_e(v_in, e_in);
249 const ADReal h_in = _fp.h_from_p_T(p_in, T_in);
250 const ADReal velin2 = uni * uni;
251 const ADReal h0_in = h_in + 0.5 * velin2;
252 const ADReal p0_in = _fp.p_from_h_s(h0_in, s0_in);
253 ADReal S_loss;
254 if (_A_ref == 0)
255 S_loss = _K * (p0_in - p_in) * Ai;
256 else
257 S_loss = _K * (p0_in - p_in) * _A_ref;
258 if (uni > 0) // flow is out of the junction
259 {
260 residual[VolumeJunction1Phase::RHOUV_INDEX] -= ni(0) * S_loss;
261 residual[VolumeJunction1Phase::RHOVV_INDEX] -= ni(1) * S_loss;
262 residual[VolumeJunction1Phase::RHOWV_INDEX] -= ni(2) * S_loss;
263 }
264 else
265 {
266 residual[VolumeJunction1Phase::RHOUV_INDEX] += ni(0) * S_loss;
267 residual[VolumeJunction1Phase::RHOVV_INDEX] += ni(1) * S_loss;
268 residual[VolumeJunction1Phase::RHOWV_INDEX] += ni(2) * S_loss;
269 }
270 residual[VolumeJunction1Phase::RHOEV_INDEX] += S_loss * abs(uni);
271 }
272
273 const ADRealVectorValue flux_mom_n = flux_3d[THMVACE3D::MOM_NORM] * nJi +
274 flux_3d[THMVACE3D::MOM_TAN1] * t1 +
275 flux_3d[THMVACE3D::MOM_TAN2] * t2;
276 const RealVectorValue ex(1, 0, 0);
277 const RealVectorValue ey(0, 1, 0);
278 const RealVectorValue ez(0, 0, 1);
279
281 residual[VolumeJunction1Phase::RHOUV_INDEX] -= -flux_mom_n * ex - pJ * ni(0) * Ai;
282 residual[VolumeJunction1Phase::RHOVV_INDEX] -= -flux_mom_n * ey - pJ * ni(1) * Ai;
283 residual[VolumeJunction1Phase::RHOWV_INDEX] -= -flux_mom_n * ez - pJ * ni(2) * Ai;
285
286 return residual;
287}
unsigned int _n_scalar_eq
Number of scalar residual components.
void v_from_rhoA_A(Real rhoA, Real A, Real &v, Real &dv_drhoA)
Computes specific volume and its derivatives from rho*A, and area.
Definition Numerics.C:100

Referenced by ADVolumeJunction1PhaseUserObject::computeFluxesAndResiduals(), and VolumeJunctionCoupledFlux1PhaseKernel::computeQpResidual().

◆ coupledJunctionValue()

const ADVariableValue & ADVolumeJunctionBaseUserObject::coupledJunctionValue ( const std::string &  var_name,
unsigned int  i = 0 
) const
protectedinherited

Gets an AD junction variable value.

Definition at line 229 of file ADVolumeJunctionBaseUserObject.C.

231{
232 return _use_scalar_variables ? adCoupledScalarValue(var_name, i) : adCoupledValue(var_name, i);
233}
const bool _use_scalar_variables
True if the junction variables are scalar variables.
const ADVariableValue & adCoupledValue(const std::string &var_name, unsigned int comp=0) const

Referenced by ADVolumeJunction1PhaseUserObject::ADVolumeJunction1PhaseUserObject().

◆ execute()

void ADShaftConnectedCompressor1PhaseUserObject::execute ( )
overridevirtual

Reimplemented from ADVolumeJunctionBaseUserObject.

Definition at line 142 of file ADShaftConnectedCompressor1PhaseUserObject.C.

143{
147
148 const unsigned int c = getBoundaryIDIndex();
149
151}
unsigned int getBoundaryIDIndex()
Gets the index of the currently executing boundary within the vector of boundary IDs given to this Si...
virtual void setConnectionData(const std::vector< std::vector< dof_id_type > > &flow_channel_dofs)
Stores data computed by a volume-junction-like object associated with the conection.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
std::vector< std::vector< dof_id_type > > _flow_channel_dofs
Degrees of freedom for flow channel variables, for each connection.
virtual void storeConnectionData()
Stores data (connection index, face shape functions, DoFs associated with flow channel variables) rel...

◆ finalize()

void ADShaftConnectedCompressor1PhaseUserObject::finalize ( )
overridevirtual

Reimplemented from ADVolumeJunction1PhaseUserObject.

Definition at line 368 of file ADShaftConnectedCompressor1PhaseUserObject.C.

369{
372
376
380 comm().sum(_delta_p);
381 comm().sum(_Rp);
382 comm().sum(_eff);
385}
virtual void setOmegaDofs(const MooseVariableScalar *omega_var)
virtual void setupJunctionData(std::vector< dof_id_type > &scalar_dofs)
Stores data associated with a junction component.
std::vector< dof_id_type > _scalar_dofs
Degrees of freedom for scalar variables.
const MooseVariableScalar * getScalarVar(const std::string &var_name, unsigned int comp) const
const Parallel::Communicator & comm() const

◆ getBoundaryIDIndex()

unsigned int ADFlowJunctionUserObject::getBoundaryIDIndex ( )
protectedinherited

Gets the index of the currently executing boundary within the vector of boundary IDs given to this SideUserObject.

Definition at line 56 of file ADFlowJunctionUserObject.C.

57{
58 auto elem_side = std::make_pair(_current_elem, _current_side);
59 auto it = _elem_side_to_bnd_id_index.find(elem_side);
60 if (it == _elem_side_to_bnd_id_index.end())
61 {
62 // Get the boundary IDs associated with this (elem,side). In general, there
63 // may be more than one boundary ID associated with an (elem,side), but
64 // there should be exactly one of these boundary IDs that is seen by this
65 // user object.
66 const std::vector<BoundaryID> elem_side_bnd_ids =
68
69 // Loop over the boundary IDs for this (elem,side) pair and over the
70 // boundary IDs for this side user object; there should be exactly one match.
71 bool found_matching_boundary_id = false;
72 unsigned int boundary_id_index = 0;
73 for (unsigned int i = 0; i < elem_side_bnd_ids.size(); i++)
74 for (unsigned int j = 0; j < _n_bnd_ids; j++)
75 if (elem_side_bnd_ids[i] == _bnd_ids_vector[j])
76 {
77 if (found_matching_boundary_id)
78 mooseError(name(), ": Multiple matches for boundary ID were found");
79 else
80 {
81 found_matching_boundary_id = true;
82 boundary_id_index = j;
83 }
84 }
85
86 if (!found_matching_boundary_id)
87 {
88 std::stringstream ss;
89 ss << name() << ": No matching boundary ID was found for (elem,side) = ("
90 << _current_elem->id() << "," << _current_side << ").";
91 mooseError(ss.str());
92 }
93
94 // Check that this boundary ID index was not already found by an earlier (elem,side)
95 for (auto it_other = _elem_side_to_bnd_id_index.begin();
96 it_other != _elem_side_to_bnd_id_index.end();
97 it_other++)
98 {
99 if (it_other->second == boundary_id_index)
100 mooseError(name(), ": Multiple (elem,side) pairs had the same boundary ID index");
101 }
102
103 // Store boundary index for future use
104 _elem_side_to_bnd_id_index[elem_side] = boundary_id_index;
105
106 return boundary_id_index;
107 }
108 else
109 {
110 // get the boundary ID that is already stored in the map
111 return _elem_side_to_bnd_id_index[elem_side];
112 }
113}
const std::vector< BoundaryID > _bnd_ids_vector
Vector of boundary IDs for this side user object; note that BoundaryRestrictable stores these same bo...
std::map< std::pair< const Elem *, const unsigned short int >, unsigned int > _elem_side_to_bnd_id_index
std::vector< BoundaryID > getBoundaryIDs(const Elem *const elem, const unsigned short int side) const
const unsigned int & _current_side
MooseMesh & _mesh
const Elem *const & _current_elem

Referenced by ADGateValve1PhaseUserObject::execute(), ADJunctionOneToOne1PhaseUserObject::execute(), execute(), ADShaftConnectedPump1PhaseUserObject::execute(), ADShaftConnectedTurbine1PhaseUserObject::execute(), ADVolumeJunctionBaseUserObject::execute(), and ADVolumeJunctionBaseUserObject::storeConnectionData().

◆ getCompressorDeltaP()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getCompressorDeltaP ( ) const

Compressor head computed in the 1-phase shaft-connected compressor.

Definition at line 340 of file ADShaftConnectedCompressor1PhaseUserObject.C.

341{
342 return _delta_p;
343}

Referenced by ShaftConnectedCompressor1PhaseAux::computeValue().

◆ getDissipationTorque()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getDissipationTorque ( ) const

Dissipation torque computed in the 1-phase shaft-connected compressor.

Definition at line 328 of file ADShaftConnectedCompressor1PhaseUserObject.C.

329{
330 return _dissipation_torque;
331}

Referenced by ShaftConnectedCompressor1PhaseAux::computeValue().

◆ getEfficiency()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getEfficiency ( ) const

Gets the efficiency.

Definition at line 352 of file ADShaftConnectedCompressor1PhaseUserObject.C.

353{
354 return _eff;
355}

Referenced by ShaftConnectedCompressor1PhasePostprocessor::getValue().

◆ getFlowChannelVariables()

std::vector< const MooseVariableBase * > ADVolumeJunction1PhaseUserObject::getFlowChannelVariables ( ) const
overrideprotectedvirtualinherited

Gets the flow channel variables.

Reimplemented from ADVolumeJunctionBaseUserObject.

Definition at line 298 of file ADVolumeJunction1PhaseUserObject.C.

299{
300 std::vector<const MooseVariableBase *> vars(THMVACE1D::N_FLUX_OUTPUTS);
301 vars[THMVACE1D::RHOA] = getVar("rhoA", 0);
302 vars[THMVACE1D::RHOUA] = getVar("rhouA", 0);
303 vars[THMVACE1D::RHOEA] = getVar("rhoEA", 0);
304
305 return vars;
306}
char ** vars
MooseVariable * getVar(const std::string &var_name, unsigned int comp)
static const unsigned int N_FLUX_OUTPUTS
Number of numerical flux function outputs for 1D.

◆ getFlux()

const std::vector< ADReal > & ADVolumeJunctionBaseUserObject::getFlux ( const unsigned int connection_index) const
overridevirtualinherited

Gets the flux vector for a connection.

Parameters
[in]connection_indexIndex for the connection

Implements ADFlowJunctionUserObject.

Definition at line 189 of file ADVolumeJunctionBaseUserObject.C.

190{
191 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
192
193 checkValidConnectionIndex(connection_index);
194 return _flux[connection_index];
195}
void checkValidConnectionIndex(const unsigned int &connection_index) const
Checks that a connection index is valid.
std::vector< std::vector< ADReal > > _flux
Cached flux vector for each connection.

Referenced by ADVolumeJunction1PhaseBC::computeQpResidual().

◆ getFrictionTorque()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getFrictionTorque ( ) const

Friction torque computed in the 1-phase shaft-connected compressor.

Definition at line 334 of file ADShaftConnectedCompressor1PhaseUserObject.C.

335{
336 return _friction_torque;
337}

Referenced by ShaftConnectedCompressor1PhaseAux::computeValue().

◆ getIsentropicTorque()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getIsentropicTorque ( ) const

Isentropic torque computed in the 1-phase shaft-connected compressor.

Definition at line 322 of file ADShaftConnectedCompressor1PhaseUserObject.C.

323{
324 return _isentropic_torque;
325}

Referenced by ShaftConnectedCompressor1PhaseAux::computeValue().

◆ getJunctionVar()

const MooseVariableBase * ADVolumeJunctionBaseUserObject::getJunctionVar ( const std::string &  var_name,
unsigned int  i = 0 
) const
protectedinherited

Gets a junction variable.

Definition at line 218 of file ADVolumeJunctionBaseUserObject.C.

219{
220 const MooseVariableBase * var;
222 var = getScalarVar(var_name, i);
223 else
224 var = getVar(var_name, i);
225 return var;
226}

Referenced by ADVolumeJunctionBaseUserObject::getJunctionVariables(), and ADVolumeJunction1PhaseUserObject::getJunctionVariables().

◆ getJunctionVariables()

std::vector< const MooseVariableBase * > ADVolumeJunction1PhaseUserObject::getJunctionVariables ( ) const
overrideprotectedvirtualinherited

Gets the junction variables.

Reimplemented from ADVolumeJunctionBaseUserObject.

Definition at line 309 of file ADVolumeJunction1PhaseUserObject.C.

310{
311 std::vector<const MooseVariableBase *> vars(VolumeJunction1Phase::N_EQ);
317
318 return vars;
319}
const MooseVariableBase * getJunctionVar(const std::string &var_name, unsigned int i=0) const
Gets a junction variable.
static const unsigned int N_EQ
Number of equations for the junction.

◆ getMomentOfInertia()

ADReal ADShaftConnectableUserObjectInterface::getMomentOfInertia ( ) const
virtualinherited

◆ getNumberOfConnections()

unsigned int ADFlowJunctionUserObject::getNumberOfConnections ( ) const
inlineinherited

Gets the number of connected flow channels.

Definition at line 34 of file ADFlowJunctionUserObject.h.

34{ return _n_connections; }

◆ getPressureRatio()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getPressureRatio ( ) const

Gets the pressure ratio.

Definition at line 346 of file ADShaftConnectedCompressor1PhaseUserObject.C.

347{
348 return _Rp;
349}

Referenced by ShaftConnectedCompressor1PhasePostprocessor::getValue().

◆ getRelativeCorrectedMassFlowRate()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getRelativeCorrectedMassFlowRate ( ) const

Gets the relative corrected mass flow rate.

Definition at line 357 of file ADShaftConnectedCompressor1PhaseUserObject.C.

358{
359 return _flow_rel_corr;
360}

Referenced by ShaftConnectedCompressor1PhasePostprocessor::getValue().

◆ getRelativeCorrectedSpeed()

ADReal ADShaftConnectedCompressor1PhaseUserObject::getRelativeCorrectedSpeed ( ) const

Gets the elative corrected shaft speed.

Definition at line 362 of file ADShaftConnectedCompressor1PhaseUserObject.C.

363{
364 return _speed_rel_corr;
365}

Referenced by ShaftConnectedCompressor1PhasePostprocessor::getValue().

◆ getResidual()

const std::vector< ADReal > & ADVolumeJunctionBaseUserObject::getResidual ( ) const
inherited

Returns the residual vector for the scalar variables.

Definition at line 181 of file ADVolumeJunctionBaseUserObject.C.

182{
183 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
184
185 return _residual;
186}

◆ getTorque()

ADReal ADShaftConnectableUserObjectInterface::getTorque ( ) const
virtualinherited

◆ initialize()

void ADShaftConnectedCompressor1PhaseUserObject::initialize ( )
overridevirtual

◆ initialSetup()

void ADShaftConnectedCompressor1PhaseUserObject::initialSetup ( )
overridevirtual

◆ setConnectionData()

void ADShaftConnectableUserObjectInterface::setConnectionData ( const std::vector< std::vector< dof_id_type > > &  flow_channel_dofs)
protectedvirtualinherited

Stores data computed by a volume-junction-like object associated with the conection.

Definition at line 65 of file ADShaftConnectableUserObjectInterface.C.

67{
68 _flow_channel_dofs = flow_channel_dofs;
69}
std::vector< std::vector< dof_id_type > > _flow_channel_dofs
Degrees of freedom for flow channel variables, for each connection.

Referenced by execute(), ADShaftConnectedPump1PhaseUserObject::execute(), and ADShaftConnectedTurbine1PhaseUserObject::execute().

◆ setOmegaDofs()

void ADShaftConnectableUserObjectInterface::setOmegaDofs ( const MooseVariableScalar omega_var)
protectedvirtualinherited

Definition at line 72 of file ADShaftConnectableUserObjectInterface.C.

73{
74 auto && dofs = omega_var->dofIndices();
75 mooseAssert(dofs.size() == 1,
76 "There should be exactly 1 coupled DoF index for the variable '" + omega_var->name() +
77 "'.");
78 _omega_dof = dofs;
79}
std::vector< dof_id_type > _omega_dof
Degrees of freedom for omega variable (from shaft)
virtual const std::vector< dof_id_type > & dofIndices() const

Referenced by finalize(), ADShaftConnectedPump1PhaseUserObject::finalize(), and ADShaftConnectedTurbine1PhaseUserObject::finalize().

◆ setupConnections()

void ADShaftConnectableUserObjectInterface::setupConnections ( unsigned int  n_connections,
unsigned int  n_flow_eq 
)
protectedvirtualinherited

Definition at line 57 of file ADShaftConnectableUserObjectInterface.C.

59{
60 _n_connections = n_connections;
61 _n_flow_eq = n_flow_eq;
62}
unsigned int _n_flow_eq
Number of flow variables in connected flow channels.
unsigned int _n_connections
Number of flow channels the shaft connected component is attached to.

Referenced by initialSetup(), ADShaftConnectedPump1PhaseUserObject::initialSetup(), and ADShaftConnectedTurbine1PhaseUserObject::initialSetup().

◆ setupJunctionData()

void ADShaftConnectableUserObjectInterface::setupJunctionData ( std::vector< dof_id_type > &  scalar_dofs)
protectedvirtualinherited

Stores data associated with a junction component.

Definition at line 82 of file ADShaftConnectableUserObjectInterface.C.

83{
84 _scalar_dofs = scalar_dofs;
85}
std::vector< dof_id_type > _scalar_dofs
Degrees of freedom for scalar variables (from junction)

Referenced by finalize(), ADShaftConnectedPump1PhaseUserObject::finalize(), and ADShaftConnectedTurbine1PhaseUserObject::finalize().

◆ storeConnectionData()

void ADVolumeJunctionBaseUserObject::storeConnectionData ( )
protectedvirtualinherited

Stores data (connection index, face shape functions, DoFs associated with flow channel variables) related to a connection.

Should be called in execute()

Definition at line 134 of file ADVolumeJunctionBaseUserObject.C.

135{
136 // Get the connection index
137 const unsigned int c = getBoundaryIDIndex();
138 _connection_indices.push_back(c);
139
140 // Get flow channel Dofs and basic function values
141 _flow_channel_dofs[c].clear();
142 for (unsigned int j = 0; j < _n_flux_eq; j++)
143 {
145
146 auto && dofs = var->dofIndices();
147 for (unsigned int k = 0; k < dofs.size(); k++)
148 _flow_channel_dofs[c].push_back(dofs[k]);
149 }
150}
std::vector< unsigned int > _connection_indices
Connection indices for this thread.
std::vector< std::string > _flow_variable_names
Vector of coupled variable names for each flow variable.
const std::vector< dof_id_type > & dofIndices() const final

Referenced by execute(), ADShaftConnectedPump1PhaseUserObject::execute(), ADShaftConnectedTurbine1PhaseUserObject::execute(), and ADVolumeJunctionBaseUserObject::execute().

◆ threadJoin()

void ADShaftConnectedCompressor1PhaseUserObject::threadJoin ( const UserObject uo)
overridevirtual

Reimplemented from ADVolumeJunctionBaseUserObject.

Definition at line 388 of file ADShaftConnectedCompressor1PhaseUserObject.C.

389{
392
393 const auto & scpuo = static_cast<const ADShaftConnectedCompressor1PhaseUserObject &>(uo);
395 _dissipation_torque += scpuo._dissipation_torque;
396 _friction_torque += scpuo._friction_torque;
397 _delta_p += scpuo._delta_p;
398 _Rp += scpuo._Rp;
399 _eff += scpuo._eff;
400 _flow_rel_corr += scpuo._flow_rel_corr;
401 _speed_rel_corr += scpuo._speed_rel_corr;
402}
Computes and caches flux and residual vectors for a 1-phase compressor.
virtual void threadJoin(const UserObject &uo)=0

◆ validParams()

InputParameters ADShaftConnectedCompressor1PhaseUserObject::validParams ( )
static

Definition at line 25 of file ADShaftConnectedCompressor1PhaseUserObject.C.

26{
29
30 params.addParam<BoundaryName>("inlet", "Compressor inlet");
31 params.addParam<BoundaryName>("outlet", "Compressor outlet");
32 params.addRequiredParam<Point>("di_out", "Direction of connected outlet");
33 params.addRequiredParam<bool>("treat_as_turbine", "Treat the compressor as a turbine?");
34 params.addRequiredParam<Real>("omega_rated", "Rated compressor speed [rad/s]");
35 params.addRequiredParam<Real>("mdot_rated", "Rated compressor mass flow rate [kg/s]");
36 params.addRequiredParam<Real>("rho0_rated",
37 "Rated compressor inlet stagnation fluid density [kg/m^3]");
38 params.addRequiredParam<Real>("c0_rated", "Rated compressor inlet stagnation sound speed [m/s]");
39 params.addRequiredParam<Real>("speed_cr_fr", "Compressor speed threshold for friction [-]");
40 params.addRequiredParam<Real>("tau_fr_const", "Compressor friction constant [N-m]");
41 params.addRequiredParam<std::vector<Real>>("tau_fr_coeff", "Friction coefficients [N-m]");
42 params.addRequiredParam<Real>("speed_cr_I", "Compressor speed threshold for inertia [-]");
43 params.addRequiredParam<Real>("inertia_const", "Compressor inertia constant [kg-m^2]");
44 params.addRequiredParam<std::vector<Real>>("inertia_coeff",
45 "Compressor inertia coefficients [kg-m^2]");
46 params.addRequiredParam<std::vector<Real>>(
47 "speeds",
48 "Relative corrected speeds. Order of speeds needs correspond to the "
49 "orders of `Rp_functions` and `eff_functions` [-]");
50 params.addRequiredParam<std::vector<FunctionName>>(
51 "Rp_functions",
52 "Functions of pressure ratio versus relative corrected flow. Each function is for a "
53 "different, constant relative corrected speed. The order of function names should correspond "
54 "to the order of speeds in the `speeds` parameter [-]");
55 params.addRequiredParam<std::vector<FunctionName>>(
56 "eff_functions",
57 "Functions of adiabatic efficiency versus relative corrected flow. Each function is for a "
58 "different, constant relative corrected speed. The order of function names should correspond "
59 "to the order of speeds in the `speeds` parameter [-]");
60 params.addRequiredParam<Real>("min_pressure_ratio", "Minimum pressure ratio");
61 params.addRequiredParam<Real>("max_pressure_ratio", "Maximum pressure ratio");
62 params.addRequiredParam<std::string>("compressor_name",
63 "Name of the instance of this compressor component");
64 params.addRequiredCoupledVar("omega", "Shaft rotational speed [rad/s]");
65
66 params.addClassDescription("Computes and caches flux and residual vectors for a 1-phase "
67 "compressor. Also computes compressor torque "
68 "and delta_p which is passed to the connected shaft");
69
70 return params;
71}
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _A

const ADVariableValue& ADVolumeJunction1PhaseUserObject::_A
protectedinherited

◆ _A_ref

const Real& ADVolumeJunction1PhaseUserObject::_A_ref
protectedinherited

◆ _apply_velocity_scaling

const bool ADVolumeJunction1PhaseUserObject::_apply_velocity_scaling
protectedinherited

Apply velocity scaling?

Definition at line 59 of file ADVolumeJunction1PhaseUserObject.h.

Referenced by ADVolumeJunction1PhaseUserObject::compute3DFlux().

◆ _bnd_ids_vector

const std::vector<BoundaryID> ADFlowJunctionUserObject::_bnd_ids_vector
protectedinherited

Vector of boundary IDs for this side user object; note that BoundaryRestrictable stores these same boundary IDs in _bnd_ids, but they are stored privately and in a set instead of a vector, so ordering is not preserved.

Definition at line 55 of file ADFlowJunctionUserObject.h.

Referenced by ADFlowJunctionUserObject::getBoundaryIDIndex().

◆ _c0_rated

const Real& ADShaftConnectedCompressor1PhaseUserObject::_c0_rated
protected

Rated compressor inlet stagnation sound speed.

Definition at line 70 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _cached_junction_var_values

std::vector<ADReal> ADVolumeJunctionBaseUserObject::_cached_junction_var_values
protectedinherited

◆ _compressor_name

const std::string& ADShaftConnectedCompressor1PhaseUserObject::_compressor_name
protected

Compressor name.

Definition at line 101 of file ADShaftConnectedCompressor1PhaseUserObject.h.

◆ _connection_indices

std::vector<unsigned int> ADVolumeJunctionBaseUserObject::_connection_indices
protectedinherited

◆ _delta_p

ADReal ADShaftConnectedCompressor1PhaseUserObject::_delta_p
protected

◆ _di_out

Point ADShaftConnectedCompressor1PhaseUserObject::_di_out
protected

Direction of the compressor outlet.

Definition at line 60 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _dir

const MaterialProperty<RealVectorValue>& ADFlowJunctionUserObject::_dir
protectedinherited

◆ _dissipation_torque

ADReal ADShaftConnectedCompressor1PhaseUserObject::_dissipation_torque
protected

Compressor dissipation torque.

Definition at line 108 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals(), finalize(), getDissipationTorque(), initialize(), and threadJoin().

◆ _eff

ADReal ADShaftConnectedCompressor1PhaseUserObject::_eff
protected

◆ _eff_function_names

const std::vector<FunctionName>& ADShaftConnectedCompressor1PhaseUserObject::_eff_function_names
protected

Names of the adiabatic efficiency functions.

Definition at line 88 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by ADShaftConnectedCompressor1PhaseUserObject().

◆ _eff_functions

std::vector<const Function *> ADShaftConnectedCompressor1PhaseUserObject::_eff_functions
protected

Adiabatic efficiency functions.

Definition at line 94 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by ADShaftConnectedCompressor1PhaseUserObject(), and computeFluxesAndResiduals().

◆ _elem_side_to_bnd_id_index

std::map<std::pair<const Elem *, const unsigned short int>, unsigned int> ADFlowJunctionUserObject::_elem_side_to_bnd_id_index
protectedinherited

◆ _flow_channel_dofs [1/2]

std::vector<std::vector<dof_id_type> > ADShaftConnectableUserObjectInterface::_flow_channel_dofs
protectedinherited

Degrees of freedom for flow channel variables, for each connection.

Definition at line 61 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::setConnectionData().

◆ _flow_channel_dofs [2/2]

std::vector<std::vector<dof_id_type> > ADVolumeJunctionBaseUserObject::_flow_channel_dofs
protectedinherited

◆ _flow_rel_corr

ADReal ADShaftConnectedCompressor1PhaseUserObject::_flow_rel_corr
protected

◆ _flow_variable_names

std::vector<std::string> ADVolumeJunctionBaseUserObject::_flow_variable_names
protectedinherited

◆ _flux

std::vector<std::vector<ADReal> > ADVolumeJunctionBaseUserObject::_flux
protectedinherited

◆ _fp

const SinglePhaseFluidProperties& ADVolumeJunction1PhaseUserObject::_fp
protectedinherited

◆ _friction_torque

ADReal ADShaftConnectedCompressor1PhaseUserObject::_friction_torque
protected

Compressor friction torque.

Definition at line 110 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals(), finalize(), getFrictionTorque(), initialize(), and threadJoin().

◆ _inertia_coeff

const std::vector<Real>& ADShaftConnectedCompressor1PhaseUserObject::_inertia_coeff
protected

Compressor inertia coefficients.

Definition at line 82 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _inertia_const

const Real& ADShaftConnectedCompressor1PhaseUserObject::_inertia_const
protected

Compressor inertia constant.

Definition at line 80 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _isentropic_torque

ADReal ADShaftConnectedCompressor1PhaseUserObject::_isentropic_torque
protected

Compressor isentropic torque.

Definition at line 106 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals(), finalize(), getIsentropicTorque(), initialize(), and threadJoin().

◆ _junction_subdomain_id

const subdomain_id_type ADVolumeJunctionBaseUserObject::_junction_subdomain_id
protectedinherited

Junction subdomain ID.

Definition at line 88 of file ADVolumeJunctionBaseUserObject.h.

Referenced by ADVolumeJunctionBaseUserObject::initialize().

◆ _junction_var_values

std::vector<const ADVariableValue *> ADVolumeJunctionBaseUserObject::_junction_var_values
protectedinherited

◆ _K

const Real& ADVolumeJunction1PhaseUserObject::_K
protectedinherited

Form loss coefficient.

Definition at line 54 of file ADVolumeJunction1PhaseUserObject.h.

Referenced by ADVolumeJunction1PhaseUserObject::computeResidual().

◆ _mdot_rated

const Real& ADShaftConnectedCompressor1PhaseUserObject::_mdot_rated
protected

Rated compressor mass flow rate.

Definition at line 66 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _moment_of_inertia

ADReal ADShaftConnectableUserObjectInterface::_moment_of_inertia
protectedinherited

◆ _moose_object

const MooseObject* ADShaftConnectableUserObjectInterface::_moose_object
protectedinherited

Associated MOOSE object.

Definition at line 48 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::finalize().

◆ _n_bnd_ids

const unsigned int ADFlowJunctionUserObject::_n_bnd_ids
protectedinherited

◆ _n_connections [1/2]

unsigned int ADShaftConnectableUserObjectInterface::_n_connections
protectedinherited

Number of flow channels the shaft connected component is attached to.

Definition at line 52 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::setupConnections().

◆ _n_connections [2/2]

const unsigned int ADFlowJunctionUserObject::_n_connections
protectedinherited

◆ _n_flow_eq

unsigned int ADShaftConnectableUserObjectInterface::_n_flow_eq
protectedinherited

Number of flow variables in connected flow channels.

Definition at line 54 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::setupConnections().

◆ _n_flux_eq

unsigned int ADVolumeJunctionBaseUserObject::_n_flux_eq
protectedinherited

◆ _n_scalar_eq

unsigned int ADVolumeJunctionBaseUserObject::_n_scalar_eq
protectedinherited

◆ _n_shaft_eq

unsigned int ADShaftConnectableUserObjectInterface::_n_shaft_eq
protectedinherited

Number of equation in the shaft component.

Definition at line 50 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::ADShaftConnectableUserObjectInterface().

◆ _n_speeds

const unsigned int ADShaftConnectedCompressor1PhaseUserObject::_n_speeds
protected

◆ _normal

const std::vector<Real>& ADFlowJunctionUserObject::_normal
protectedinherited

◆ _numerical_flux_names

const std::vector<UserObjectName>& ADVolumeJunctionBaseUserObject::_numerical_flux_names
protectedinherited

Names of numerical flux user objects for each connected flow channel.

Definition at line 107 of file ADVolumeJunctionBaseUserObject.h.

Referenced by ADVolumeJunction1PhaseUserObject::ADVolumeJunction1PhaseUserObject(), and ADVolumeJunctionBaseUserObject::ADVolumeJunctionBaseUserObject().

◆ _numerical_flux_uo

std::vector<const ADNumericalFlux3EqnBase *> ADVolumeJunction1PhaseUserObject::_numerical_flux_uo
protectedinherited

Vector of numerical flux user objects for each connected flow channel.

Definition at line 65 of file ADVolumeJunction1PhaseUserObject.h.

Referenced by ADVolumeJunction1PhaseUserObject::ADVolumeJunction1PhaseUserObject(), and ADVolumeJunction1PhaseUserObject::computeFluxesAndResiduals().

◆ _omega

const ADVariableValue& ADShaftConnectedCompressor1PhaseUserObject::_omega
protected

◆ _omega_dof

std::vector<dof_id_type> ADShaftConnectableUserObjectInterface::_omega_dof
protectedinherited

◆ _omega_rated

const Real& ADShaftConnectedCompressor1PhaseUserObject::_omega_rated
protected

Rated compressor speed.

Definition at line 64 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _processor_ids

std::vector<unsigned int> ADFlowJunctionUserObject::_processor_ids
protectedinherited

◆ _residual

std::vector<ADReal> ADVolumeJunctionBaseUserObject::_residual
protectedinherited

◆ _residual_jacobian_omega_var

std::vector<DenseMatrix<Real> > ADShaftConnectedCompressor1PhaseUserObject::_residual_jacobian_omega_var
protected

Jacobian entries of junction variables wrt shaft variables.

Definition at line 123 of file ADShaftConnectedCompressor1PhaseUserObject.h.

◆ _rho0_rated

const Real& ADShaftConnectedCompressor1PhaseUserObject::_rho0_rated
protected

Rated compressor inlet stagnation fluid density.

Definition at line 68 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _rhoA

const ADVariableValue& ADVolumeJunction1PhaseUserObject::_rhoA
protectedinherited

◆ _rhoEA

const ADVariableValue& ADVolumeJunction1PhaseUserObject::_rhoEA
protectedinherited

◆ _rhouA

const ADVariableValue& ADVolumeJunction1PhaseUserObject::_rhouA
protectedinherited

◆ _Rp

ADReal ADShaftConnectedCompressor1PhaseUserObject::_Rp
protected

◆ _Rp_function_names

const std::vector<FunctionName>& ADShaftConnectedCompressor1PhaseUserObject::_Rp_function_names
protected

Names of the pressure ratio functions.

Definition at line 86 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by ADShaftConnectedCompressor1PhaseUserObject().

◆ _Rp_functions

std::vector<const Function *> ADShaftConnectedCompressor1PhaseUserObject::_Rp_functions
protected

Pressure ratio functions.

Definition at line 92 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by ADShaftConnectedCompressor1PhaseUserObject(), and computeFluxesAndResiduals().

◆ _Rp_max

const Real& ADShaftConnectedCompressor1PhaseUserObject::_Rp_max
protected

Maximum pressure ratio.

Definition at line 98 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _Rp_min

const Real& ADShaftConnectedCompressor1PhaseUserObject::_Rp_min
protected

Minimum pressure ratio.

Definition at line 96 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _scalar_dofs [1/2]

std::vector<dof_id_type> ADShaftConnectableUserObjectInterface::_scalar_dofs
protectedinherited

Degrees of freedom for scalar variables (from junction)

Definition at line 59 of file ADShaftConnectableUserObjectInterface.h.

Referenced by ADShaftConnectableUserObjectInterface::setupJunctionData().

◆ _scalar_dofs [2/2]

std::vector<dof_id_type> ADVolumeJunctionBaseUserObject::_scalar_dofs
protectedinherited

◆ _scalar_variable_names

std::vector<std::string> ADVolumeJunctionBaseUserObject::_scalar_variable_names
protectedinherited

◆ _speed_cr_fr

const Real& ADShaftConnectedCompressor1PhaseUserObject::_speed_cr_fr
protected

Compressor speed threshold for friction.

Definition at line 72 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _speed_cr_I

const Real& ADShaftConnectedCompressor1PhaseUserObject::_speed_cr_I
protected

Compressor speed threshold for inertia.

Definition at line 78 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _speed_rel_corr

ADReal ADShaftConnectedCompressor1PhaseUserObject::_speed_rel_corr
protected

relative corrected shaft speed

Definition at line 120 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals(), finalize(), getRelativeCorrectedSpeed(), initialize(), and threadJoin().

◆ _speeds

const std::vector<Real>& ADShaftConnectedCompressor1PhaseUserObject::_speeds
protected

Compressor speeds which correspond to Rp and eff function order.

Definition at line 84 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _tau_fr_coeff

const std::vector<Real>& ADShaftConnectedCompressor1PhaseUserObject::_tau_fr_coeff
protected

Compressor friction coefficients.

Definition at line 76 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _tau_fr_const

const Real& ADShaftConnectedCompressor1PhaseUserObject::_tau_fr_const
protected

Compressor friction constant.

Definition at line 74 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _torque

ADReal ADShaftConnectableUserObjectInterface::_torque
protectedinherited

◆ _treat_as_turbine

const bool ADShaftConnectedCompressor1PhaseUserObject::_treat_as_turbine
protected

Treat the compressor as a turbine?

Definition at line 62 of file ADShaftConnectedCompressor1PhaseUserObject.h.

Referenced by computeFluxesAndResiduals().

◆ _use_scalar_variables

const bool ADVolumeJunctionBaseUserObject::_use_scalar_variables
protectedinherited

◆ _volume

const Real& ADVolumeJunctionBaseUserObject::_volume
protectedinherited

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