Base class for 1-phase closures. More...
#include <Closures1PhaseBase.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
Closures1PhaseBase (const InputParameters ¶ms) | |
virtual void | checkFlowChannel (const FlowChannelBase &) const |
Checks for errors associated with a flow channel component. More... | |
virtual void | checkHeatTransfer (const HeatTransferBase &, const FlowChannelBase &) const |
Checks for errors associated with a heat transfer component. More... | |
virtual void | addMooseObjectsFlowChannel (const FlowChannelBase &flow_channel)=0 |
Adds MOOSE objects associated with a flow channel component. More... | |
virtual void | addMooseObjectsHeatTransfer (const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel)=0 |
Adds MOOSE objects associated with a heat transfer component. More... | |
virtual bool | enabled () const |
std::shared_ptr< MooseObject > | getSharedPtr () |
std::shared_ptr< const MooseObject > | getSharedPtr () const |
MooseApp & | getMooseApp () const |
const std::string & | type () const |
virtual const std::string & | name () const |
std::string | typeAndName () const |
std::string | errorPrefix (const std::string &error_type) const |
void | callMooseError (std::string msg, const bool with_prefix) const |
MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
const T * | queryParam (const std::string &name) const |
const T & | getRenamedParam (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 &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
void | mooseError (Args &&... args) const |
void | mooseErrorNonPrefixed (Args &&... args) const |
void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
void | mooseWarning (Args &&... args) const |
void | mooseWarningNonPrefixed (Args &&... args) const |
void | mooseDeprecated (Args &&... args) const |
void | mooseInfo (Args &&... args) const |
std::string | getDataFileName (const std::string ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
template<typename... Args> | |
void | logError (Args &&... args) const |
Logs an error. More... | |
template<typename... Args> | |
void | logComponentError (const std::string &component_name, Args &&... args) const |
Logs an error for a component. More... | |
template<typename... Args> | |
void | logWarning (Args &&... args) const |
Logs a warning. More... | |
template<typename... Args> | |
void | logComponentWarning (const std::string &component_name, Args &&... args) const |
Logs a warning for a component. More... | |
std::string | genName (const std::string &prefix, unsigned int id, const std::string &suffix="") const |
Build a name from a prefix, number and possible suffix. More... | |
std::string | genName (const std::string &prefix, unsigned int i, unsigned int j, const std::string &suffix="") const |
Build a name from a prefix, 2 numbers and possible suffix. More... | |
std::string | genName (const std::string &prefix, const std::string &name, unsigned int i) const |
Build a name from 2 strings and a number. More... | |
std::string | genName (const std::string &prefix, const std::string &middle, const std::string &suffix="") const |
Build a name from strings. More... | |
std::string | genSafeName (const std::string &prefix, const std::string &middle, const std::string &suffix="") const |
Build a name from strings that is safe to use in input files (i.e. More... | |
Static Public Member Functions | |
static InputParameters | validParams () |
Public Attributes | |
const ConsoleStream | _console |
Protected Member Functions | |
void | addWallFrictionFunctionMaterial (const FlowChannel1Phase &flow_channel) const |
Adds material that computes wall friction factor from a specified function. More... | |
void | addAverageWallTemperatureMaterial (const FlowChannel1Phase &flow_channel) const |
Adds average wall temperature material. More... | |
void | addZeroMaterial (const FlowChannelBase &flow_channel, const std::string &property_name) const |
Adds an arbitrary zero-value material. More... | |
void | addWeightedAverageMaterial (const FlowChannelBase &flow_channel, const std::vector< MaterialPropertyName > &values, const std::vector< VariableName > &weights, const MaterialPropertyName &property_name) const |
Adds a weighted average material. More... | |
void | addWallTemperatureFromAuxMaterial (const FlowChannelBase &flow_channel, unsigned int i=0) const |
Adds a material for wall temperature from an aux variable. More... | |
Protected Attributes | |
THMProblem & | _sim |
Simulation. More... | |
Factory & | _factory |
Factory associated with the MooseApp. More... | |
const bool & | _enabled |
MooseApp & | _app |
const std::string | _type |
const std::string | _name |
const InputParameters & | _pars |
ActionFactory & | _action_factory |
const Parallel::Communicator & | _communicator |
Logger & | _log |
Base class for 1-phase closures.
Definition at line 19 of file Closures1PhaseBase.h.
Closures1PhaseBase::Closures1PhaseBase | ( | const InputParameters & | params | ) |
Definition at line 21 of file Closures1PhaseBase.C.
|
protected |
Adds average wall temperature material.
[in] | flow_channel | Flow channel component |
Definition at line 38 of file Closures1PhaseBase.C.
Referenced by Closures1PhaseSimple::addMooseObjectsFlowChannel(), WallTemperature1PhaseClosures::addMooseObjectsFlowChannel(), and Closures1PhaseNone::addMooseObjectsFlowChannel().
|
pure virtualinherited |
Adds MOOSE objects associated with a flow channel component.
[in] | flow_channel | Flow channel component |
Implemented in Closures1PhaseTHM, Closures1PhaseNone, WallTemperature1PhaseClosures, Closures1PhaseSimple, and FunctorClosures.
|
pure virtualinherited |
Adds MOOSE objects associated with a heat transfer component.
[in] | heat_transfer | Heat transfer component |
[in] | flow_channel | Flow channel component |
Implemented in Closures1PhaseTHM, Closures1PhaseNone, WallTemperature1PhaseClosures, Closures1PhaseSimple, and FunctorClosures.
|
protected |
Adds material that computes wall friction factor from a specified function.
This function assumes that the flow channel component has the parameter 'f' as a valid parameter, so this function should be guarded appropriately.
[in] | flow_channel | Flow channel component |
Definition at line 24 of file Closures1PhaseBase.C.
Referenced by Closures1PhaseSimple::addMooseObjectsFlowChannel(), and Closures1PhaseTHM::addMooseObjectsFlowChannel().
|
protectedinherited |
Adds a material for wall temperature from an aux variable.
[in] | flow_channel | Flow channel component |
[in] | i | index of the heat transfer |
Definition at line 64 of file ClosuresBase.C.
Referenced by Closures1PhaseSimple::addMooseObjectsFlowChannel(), WallTemperature1PhaseClosures::addMooseObjectsFlowChannel(), Closures1PhaseNone::addMooseObjectsFlowChannel(), and Closures1PhaseTHM::addMooseObjectsFlowChannel().
|
protectedinherited |
Adds a weighted average material.
[in] | flow_channel | Flow channel component |
[in] | values | Values to average |
[in] | weights | Weights for each value |
[in] | property_name | Name of material property to create |
Definition at line 49 of file ClosuresBase.C.
Referenced by Closures1PhaseSimple::addMooseObjectsFlowChannel().
|
protectedinherited |
Adds an arbitrary zero-value material.
[in] | flow_channel | Flow channel component |
[in] | property_name | Name of the material property to create |
Definition at line 37 of file ClosuresBase.C.
|
inlinevirtualinherited |
Checks for errors associated with a flow channel component.
[in] | flow_channel | Flow channel component |
Reimplemented in Closures1PhaseTHM, Closures1PhaseNone, WallTemperature1PhaseClosures, and Closures1PhaseSimple.
Definition at line 38 of file ClosuresBase.h.
|
inlinevirtualinherited |
Checks for errors associated with a heat transfer component.
[in] | heat_transfer | Heat transfer component |
[in] | flow_channel | Flow channel component |
Reimplemented in Closures1PhaseTHM, Closures1PhaseNone, WallTemperature1PhaseClosures, and Closures1PhaseSimple.
Definition at line 46 of file ClosuresBase.h.
|
inlineinherited |
Build a name from a prefix, number and possible suffix.
Definition at line 29 of file NamingInterface.h.
Referenced by addAverageWallTemperatureMaterial(), FlowModel::addCommonInitialConditions(), FlowModel::addCommonMooseObjects(), FlowChannelBase::addCommonObjects(), Simulation::addComponentScalarIC(), HeatStructureBase::addConstantDensitySolidPropertiesMaterial(), Simulation::addConstantIC(), Simulation::addConstantScalarIC(), FlowModel1PhaseBase::addDensityAux(), FlowModelSinglePhase::addDensityIC(), FlowModelGasMix::addDensityIC(), FlowModel1PhaseBase::addEnergyGravityKernel(), FlowModelSinglePhase::addFluidPropertiesMaterials(), FlowModelGasMix::addFluidPropertiesMaterials(), FlowModel1PhaseBase::addFunctionIC(), Simulation::addFunctionIC(), HeatTransferBase::addHeatedPerimeter(), HeatConductionModel::addHeatEquationRZ(), HeatConductionModel::addHeatEquationXYZ(), HeatTransferFromTemperature1Phase::addHeatTransferKernels(), FlowChannel1PhaseBase::addHydraulicDiameterMaterial(), FlowModelGasMix::addMassDiffusionEnergyDGKernel(), FlowModelGasMix::addMassDiffusionSpeciesDGKernel(), FlowModelGasMix::addMassFractionAux(), HeatConductionModel::addMaterials(), FlowModel1PhaseBase::addMomentumAreaGradientKernel(), FlowModel1PhaseBase::addMomentumFrictionKernel(), FlowModel1PhaseBase::addMomentumGravityKernel(), HeatStructure2DCoupler::addMooseObjects(), HeatStructure2DRadiationCouplerRZ::addMooseObjects(), HeatTransferFromHeatFlux1Phase::addMooseObjects(), HSBoundaryAmbientConvection::addMooseObjects(), HSBoundaryHeatFlux::addMooseObjects(), HSBoundaryRadiation::addMooseObjects(), InletVelocityTemperature1Phase::addMooseObjects(), HSBoundarySpecifiedTemperature::addMooseObjects(), FormLossFromFunction1Phase::addMooseObjects(), HeatSourceFromPowerDensity::addMooseObjects(), HeatSourceFromTotalPower::addMooseObjects(), FormLossFromExternalApp1Phase::addMooseObjects(), GateValve1Phase::addMooseObjects(), HeatSourceVolumetric1Phase::addMooseObjects(), HeatTransferFromSpecifiedTemperature1Phase::addMooseObjects(), HSBoundaryExternalAppTemperature::addMooseObjects(), Shaft::addMooseObjects(), TotalPower::addMooseObjects(), VolumeJunction1Phase::addMooseObjects(), FormLoss1PhaseBase::addMooseObjects(), HeatTransferFromExternalAppHeatFlux1Phase::addMooseObjects(), ShaftConnectedTurbine1Phase::addMooseObjects(), HSBoundaryExternalAppConvection::addMooseObjects(), ShaftConnectedCompressor1Phase::addMooseObjects(), ShaftConnectedPump1Phase::addMooseObjects(), HeatTransferFromHeatStructure3D1Phase::addMooseObjects(), HeatTransferBase::addMooseObjects(), HSCoupler2D2DRadiation::addMooseObjects(), SimpleTurbine1Phase::addMooseObjects(), HSCoupler2D3D::addMooseObjects(), HeatTransferFromHeatStructure1Phase::addMooseObjects(), HSBoundaryExternalAppHeatFlux::addMooseObjects(), JunctionOneToOne1Phase::addMooseObjects(), FlowChannelBase::addMooseObjects(), FunctorClosures::addMooseObjectsFlowChannel(), Closures1PhaseSimple::addMooseObjectsHeatTransfer(), FlowModelSinglePhase::addPressureAux(), FlowModelGasMix::addPressureAux(), FlowModelSinglePhase::addRDGAdvectionDGKernels(), FlowModelGasMix::addRDGAdvectionDGKernels(), FlowModel1PhaseBase::addRhoAIC(), FlowModelSinglePhase::addRhoEAIC(), FlowModelGasMix::addRhoEAIC(), FlowModel1PhaseBase::addRhoUAIC(), FlowModelSinglePhase::addSlopeReconstructionMaterial(), FlowModelGasMix::addSlopeReconstructionMaterial(), FlowModel1PhaseBase::addSpecificInternalEnergyAux(), FlowModel1PhaseBase::addSpecificInternalEnergyIC(), FlowModel1PhaseBase::addSpecificTotalEnthalpyAux(), FlowModel1PhaseBase::addSpecificTotalEnthalpyIC(), FlowModel1PhaseBase::addSpecificVolumeAux(), FlowModel1PhaseBase::addSpecificVolumeIC(), FlowModelSinglePhase::addTemperatureAux(), FlowModelGasMix::addTemperatureAux(), Closures1PhaseTHM::addTemperatureWallFromHeatFluxMaterial(), FlowModel1PhaseBase::addTimeDerivativeKernelIfTransient(), FlowChannelBase::addVariables(), FlowModel1PhaseBase::addVelocityAux(), FlowModel1PhaseBase::addVelocityIC(), VolumeJunction1Phase::addVolumeJunctionIC(), Closures1PhaseTHM::addWallFFMaterial(), addWallFrictionFunctionMaterial(), Closures1PhaseTHM::addWallHTCMaterial(), ClosuresBase::addWallTemperatureFromAuxMaterial(), Closures1PhaseSimple::addWallTemperatureFromHeatFluxMaterial(), FlowBoundary1Phase::addWeakBCs(), FlowBoundaryGasMix::addWeakBCs(), ClosuresBase::addWeightedAverageMaterial(), FlowModelGasMix::addXiRhoAIC(), ClosuresBase::addZeroMaterial(), Component2D::buildMesh(), FileMeshComponent::buildMesh(), Component1D::buildMesh(), HeatSourceBase::HeatSourceBase(), and Simulation::setupInitialConditionsFromFile().
|
inlineinherited |
Build a name from a prefix, 2 numbers and possible suffix.
Definition at line 41 of file NamingInterface.h.
|
inlineinherited |
|
inlineinherited |
Build a name from strings.
Definition at line 66 of file NamingInterface.h.
|
inlineinherited |
Build a name from strings that is safe to use in input files (i.e.
can be exposed to users)
Definition at line 80 of file NamingInterface.h.
Referenced by HSBoundaryAmbientConvection::addMooseObjects(), HSBoundaryRadiation::addMooseObjects(), HSBoundaryHeatFlux::addMooseObjects(), HSBoundaryExternalAppConvection::addMooseObjects(), and HSBoundaryExternalAppHeatFlux::addMooseObjects().
|
inlineinherited |
Logs an error for a component.
[in] | component_name | Name of the component |
Definition at line 47 of file LoggingInterface.h.
Referenced by Closures1PhaseSimple::checkFlowChannel(), Closures1PhaseSimple::checkHeatTransfer(), and Component::logError().
|
inlineinherited |
Logs a warning for a component.
[in] | component_name | Name of the component |
Definition at line 67 of file LoggingInterface.h.
Referenced by Component::logWarning().
|
inlineinherited |
Logs an error.
Definition at line 36 of file LoggingInterface.h.
Referenced by Simulation::addClosures(), Simulation::addComponent(), Simulation::controlDataIntegrityCheck(), Simulation::declareControlData(), Simulation::identifyLoops(), and Simulation::integrityCheck().
|
inlineinherited |
Logs a warning.
Definition at line 56 of file LoggingInterface.h.
|
static |
Definition at line 15 of file Closures1PhaseBase.C.
Referenced by WallTemperature1PhaseClosures::validParams(), Closures1PhaseNone::validParams(), Closures1PhaseSimple::validParams(), and Closures1PhaseTHM::validParams().
|
protectedinherited |
Factory associated with the MooseApp.
Definition at line 103 of file ClosuresBase.h.
Referenced by addAverageWallTemperatureMaterial(), FunctorClosures::addMooseObjectsFlowChannel(), Closures1PhaseSimple::addMooseObjectsHeatTransfer(), Closures1PhaseTHM::addTemperatureWallFromHeatFluxMaterial(), Closures1PhaseTHM::addWallFFMaterial(), addWallFrictionFunctionMaterial(), Closures1PhaseTHM::addWallHTCMaterial(), ClosuresBase::addWallTemperatureFromAuxMaterial(), Closures1PhaseSimple::addWallTemperatureFromHeatFluxMaterial(), ClosuresBase::addWeightedAverageMaterial(), and ClosuresBase::addZeroMaterial().
|
protectedinherited |
Definition at line 73 of file LoggingInterface.h.
Referenced by LoggingInterface::logComponentError(), LoggingInterface::logComponentWarning(), LoggingInterface::logError(), and LoggingInterface::logWarning().
|
protectedinherited |
Definition at line 100 of file ClosuresBase.h.
Referenced by addAverageWallTemperatureMaterial(), FunctorClosures::addMooseObjectsFlowChannel(), Closures1PhaseSimple::addMooseObjectsHeatTransfer(), Closures1PhaseTHM::addTemperatureWallFromHeatFluxMaterial(), Closures1PhaseTHM::addWallFFMaterial(), addWallFrictionFunctionMaterial(), Closures1PhaseTHM::addWallHTCMaterial(), ClosuresBase::addWallTemperatureFromAuxMaterial(), Closures1PhaseSimple::addWallTemperatureFromHeatFluxMaterial(), ClosuresBase::addWeightedAverageMaterial(), and ClosuresBase::addZeroMaterial().