Main class for simulation (the driver of the simulation) More...
#include <Simulation.h>
Classes | |
struct | ICInfo |
struct | VariableInfo |
Variable information. More... | |
Public Member Functions | |
Simulation (FEProblemBase &fe_problem, const InputParameters ¶ms) | |
virtual | ~Simulation () |
const libMesh::FEType & | getFlowFEType () const |
Gets the FE type for the flow in this simulation. More... | |
virtual void | setupQuadrature () |
Sets up quadrature rules. More... | |
virtual void | initSimulation () |
Initialize this simulation. More... | |
virtual void | initComponents () |
Initialize this simulation's components. More... | |
void | identifyLoops () |
Identifies the component loops. More... | |
void | printComponentLoops () const |
Prints the component loops. More... | |
virtual void | run () |
Run the simulation. More... | |
virtual void | addComponent (const std::string &type, const std::string &name, InputParameters params) |
Add a component into this simulation. More... | |
bool | hasComponent (const std::string &name) const |
Find out if simulation has a component with the given name. More... | |
template<typename T > | |
bool | hasComponentOfType (const std::string &name) const |
Find out if simulation has a component with the given name and specified type. More... | |
template<typename T > | |
const T & | getComponentByName (const std::string &name) const |
Get component by its name. More... | |
const std::vector< std::shared_ptr< Component > > & | getComponents () |
Return list of components available in the simulation. More... | |
virtual void | addClosures (const std::string &type, const std::string &name, InputParameters params) |
Add a closures object into this simulation. More... | |
bool | hasClosures (const std::string &name) const |
Return whether the simulation has a closures object. More... | |
std::shared_ptr< ClosuresBase > | getClosures (const std::string &name) const |
Get a pointer to a closures object. More... | |
void | addSimVariable (bool nl, const VariableName &name, libMesh::FEType fe_type, Real scaling_factor=1.0) |
Queues a variable of type MooseVariableScalar to be added to the nonlinear or aux system. More... | |
void | addSimVariable (bool nl, const VariableName &name, libMesh::FEType fe_type, const std::vector< SubdomainName > &subdomain_names, Real scaling_factor=1.0) |
Queues a variable of type MooseVariable to be added to the nonlinear or aux system. More... | |
void | addSimVariable (bool nl, const std::string &var_type, const VariableName &name, const InputParameters ¶ms) |
Queues a generic variable to be added to the nonlinear or aux system. More... | |
void | checkVariableNameLength (const std::string &name) const |
Reports an error if the variable name is too long. More... | |
void | addConstantIC (const VariableName &var_name, Real value, const std::vector< SubdomainName > &block_names) |
void | addFunctionIC (const VariableName &var_name, const std::string &func_name, const std::vector< SubdomainName > &block_names) |
void | addConstantScalarIC (const VariableName &var_name, Real value) |
void | addComponentScalarIC (const VariableName &var_name, const std::vector< Real > &value) |
void | addSimInitialCondition (const std::string &type, const std::string &name, InputParameters params) |
void | addControl (const std::string &type, const std::string &name, InputParameters params) |
Add a control. More... | |
void | addFileOutputter (const std::string &name) |
void | addScreenOutputter (const std::string &name) |
std::vector< OutputName > | getOutputsVector (const std::string &key) const |
Gets the vector of output names corresponding to a 1-word key string. More... | |
virtual void | buildMesh () |
Create mesh for this simulation. More... | |
virtual void | addVariables () |
Add variables involved in this simulation. More... | |
virtual void | addMooseObjects () |
Add component MOOSE objects. More... | |
virtual void | setupMesh () |
Perform mesh setup actions such as setting up the coordinate system(s) and creating ghosted elements. More... | |
ThermalHydraulicsApp & | getApp () |
Get the ThermalHydraulicsApp. More... | |
virtual void | integrityCheck () const |
Check the integrity of the simulation. More... | |
virtual void | advanceState () |
Advance all of the state holding vectors / datastructures so that we can move to the next timestep. More... | |
virtual void | controlDataIntegrityCheck () |
Check the integrity of the control data. More... | |
virtual void | couplingMatrixIntegrityCheck () const |
Check integrity of coupling matrix used by the preconditioner. More... | |
template<typename T > | |
bool | hasControlData (const std::string &name) |
Query if control data with name 'name' exists. More... | |
template<typename T > | |
ControlData< T > * | getControlData (const std::string &name) |
Get control data of type T and name 'name', if it does not exist it will be created. More... | |
template<typename T > | |
ControlData< T > * | declareControlData (const std::string &name, THMControl *ctrl) |
Declare control data of type T and name 'name', if it does not exist it will be created. More... | |
const bool & | getImplicitTimeIntegrationFlag () |
Gets the flag indicating whether an implicit time integration scheme is being used. More... | |
bool | hasInitialConditionsFromFile () const |
Are initial conditions specified from a file. More... | |
Logger & | log () |
void | setCheckJacobian (bool state) |
Enable Jacobian checking. More... | |
virtual void | augmentSparsity (const dof_id_type &elem_id1, const dof_id_type &elem_id2) |
Hint how to augment sparsity pattern between two elements. More... | |
bool | getVectorValuedVelocity () |
Is velocity output as vector-valued field. More... | |
void | setVectorValuedVelocity (bool vector_velocity) |
Set if velocity is being output as a vector-valued field. More... | |
void | addRelationshipManagers () |
Add additional relationship managers to run the simulation. More... | |
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 void | setComponentVariableOrder (const VariableName &var, int index) |
Sets a component variable order index. More... | |
Public Attributes | |
Real | _zero |
Protected Member Functions | |
void | setupEquations () |
Setup equations to be solved in this simulation. More... | |
void | setupInitialConditionsFromFile () |
Setup reading initial conditions from a specified file, see 'initial_from_file' and 'initial_from_file_timestep' parameters. More... | |
void | setupInitialConditionObjects () |
void | setupCoordinateSystem () |
Sets the coordinate system for each subdomain. More... | |
void | setupCriticalHeatFluxTable () |
Setup ctirical heat flux table user object. More... | |
Protected Attributes | |
THMMesh & | _thm_mesh |
THM mesh. More... | |
FEProblemBase & | _fe_problem |
Pointer to FEProblem representing this simulation. More... | |
ThermalHydraulicsApp & | _thm_app |
The application this is associated with. More... | |
Factory & | _thm_factory |
The Factory associated with the MooseApp. More... | |
std::vector< std::shared_ptr< Component > > | _components |
List of components in this simulation. More... | |
std::map< std::string, std::shared_ptr< Component > > | _comp_by_name |
Map of components by their names. More... | |
std::map< std::string, std::string > | _component_name_to_loop_name |
Map of component name to component loop name. More... | |
std::map< std::string, THM::FlowModelID > | _loop_name_to_model_id |
Map of loop name to model type. More... | |
std::map< std::string, std::shared_ptr< ClosuresBase > > | _closures_by_name |
Map of closures by their names. More... | |
std::map< VariableName, VariableInfo > | _vars |
variables for this simulation (name and info about the var) More... | |
std::map< std::string, ICInfo > | _ics |
const InputParameters & | _thm_pars |
"Global" of this simulation More... | |
libMesh::FEType | _flow_fe_type |
finite element type for the flow in the simulation More... | |
std::vector< OutputName > | _outputters_all |
std::vector< OutputName > | _outputters_file |
std::vector< OutputName > | _outputters_screen |
std::map< std::string, ControlDataValue * > | _control_data |
Control data created in the control logic system. More... | |
bool | _implicit_time_integration |
true if using implicit time integration scheme More... | |
Logger | _log |
bool | _check_jacobian |
True if checking jacobian. More... | |
std::map< dof_id_type, std::vector< dof_id_type > > | _sparsity_elem_augmentation |
Additional sparsity pattern that needs to be added into the Jacobian matrix. More... | |
bool | _output_vector_velocity |
Flag indicating if velocity is output as vector-valued field. More... | |
const Parallel::Communicator & | _communicator |
Private Member Functions | |
std::vector< VariableName > | sortAddedComponentVariables () const |
Returns a sorted list of the variables added by components. More... | |
Static Private Attributes | |
static std::map< VariableName, int > | _component_variable_order_map |
Component variable order map; see setComponentVariableOrder for more info. More... | |
Main class for simulation (the driver of the simulation)
Definition at line 29 of file Simulation.h.
Simulation::Simulation | ( | FEProblemBase & | fe_problem, |
const InputParameters & | params | ||
) |
Definition at line 45 of file Simulation.C.
|
virtual |
Definition at line 64 of file Simulation.C.
|
virtual |
Add a closures object into this simulation.
[in] | type | Closures class name |
[in] | name | Closures object name |
[in] | params | Input parameters |
Definition at line 1009 of file Simulation.C.
Referenced by AddClosuresAction::act().
|
virtual |
Add a component into this simulation.
type | Type (the registered class name) of the component |
name | Name of the component |
params | Input parameters |
Definition at line 991 of file Simulation.C.
Referenced by AddComponentAction::act().
void Simulation::addComponentScalarIC | ( | const VariableName & | var_name, |
const std::vector< Real > & | value | ||
) |
Definition at line 565 of file Simulation.C.
void Simulation::addConstantIC | ( | const VariableName & | var_name, |
Real | value, | ||
const std::vector< SubdomainName > & | block_names | ||
) |
Definition at line 512 of file Simulation.C.
Referenced by FlowModel::addCommonInitialConditions(), VolumeJunction1Phase::addJunctionIC(), and HeatTransferFromExternalAppHeatFlux1Phase::addVariables().
Definition at line 552 of file Simulation.C.
Referenced by VolumeJunction1Phase::addJunctionIC(), Shaft::addVariables(), and TotalPower::addVariables().
void Simulation::addControl | ( | const std::string & | type, |
const std::string & | name, | ||
InputParameters | params | ||
) |
Add a control.
type | Type (registered name) of the control |
name | Name of the control |
params | Input parameters |
Definition at line 487 of file Simulation.C.
void Simulation::addFileOutputter | ( | const std::string & | name | ) |
void Simulation::addFunctionIC | ( | const VariableName & | var_name, |
const std::string & | func_name, | ||
const std::vector< SubdomainName > & | block_names | ||
) |
Definition at line 532 of file Simulation.C.
Referenced by FlowModel::addCommonInitialConditions(), HeatTransferBase::addHeatedPerimeter(), FlowModelSinglePhase::addInitialConditions(), HeatConductionModel::addInitialConditions(), HeatTransferFromExternalAppTemperature1Phase::addVariables(), HeatTransferFromSpecifiedTemperature1Phase::addVariables(), HeatTransferFromHeatStructure3D1Phase::addVariables(), and HeatTransferFromHeatStructure1Phase::addVariables().
|
virtual |
Add component MOOSE objects.
Definition at line 738 of file Simulation.C.
Referenced by AddComponentMooseObjectsAction::act().
void Simulation::addRelationshipManagers | ( | ) |
Add additional relationship managers to run the simulation.
Definition at line 745 of file Simulation.C.
Referenced by THMAddRelationshipManagersAction::act().
void Simulation::addScreenOutputter | ( | const std::string & | name | ) |
Definition at line 1042 of file Simulation.C.
Referenced by THMSetupOutputAction::act().
void Simulation::addSimInitialCondition | ( | const std::string & | type, |
const std::string & | name, | ||
InputParameters | params | ||
) |
Definition at line 495 of file Simulation.C.
Referenced by FlowModel::addCommonInitialConditions(), addComponentScalarIC(), addConstantIC(), addConstantScalarIC(), addFunctionIC(), FlowModelSinglePhase::addInitialConditions(), and FlowChannelBase::addVariables().
void Simulation::addSimVariable | ( | bool | nl, |
const VariableName & | name, | ||
libMesh::FEType | fe_type, | ||
Real | scaling_factor = 1.0 |
||
) |
Queues a variable of type MooseVariableScalar to be added to the nonlinear or aux system.
[in] | nl | True if this is a nonlinear (solution) variable |
[in] | name | Name of the variable |
[in] | fe_type | FEType of the variable |
[in] | scaling_factor | Scaling factor for the variable |
Definition at line 271 of file Simulation.C.
Referenced by FlowModel::addCommonVariables(), HeatTransferBase::addHeatedPerimeter(), HeatTransferFromTemperature1Phase::addVariables(), FormLossFromExternalApp1Phase::addVariables(), HSBoundaryExternalAppTemperature::addVariables(), Shaft::addVariables(), TotalPowerBase::addVariables(), HeatTransferFromExternalAppHeatFlux1Phase::addVariables(), FlowModelSinglePhase::addVariables(), HSBoundaryExternalAppConvection::addVariables(), HeatTransferFromHeatStructure3D1Phase::addVariables(), HSBoundaryExternalAppHeatFlux::addVariables(), and HeatConductionModel::addVariables().
void Simulation::addSimVariable | ( | bool | nl, |
const VariableName & | name, | ||
libMesh::FEType | fe_type, | ||
const std::vector< SubdomainName > & | subdomain_names, | ||
Real | scaling_factor = 1.0 |
||
) |
Queues a variable of type MooseVariable to be added to the nonlinear or aux system.
[in] | nl | True if this is a nonlinear (solution) variable |
[in] | name | Name of the variable |
[in] | fe_type | FEType of the variable |
[in] | subdomain_names | List of subdomain names to add the variable to |
[in] | scaling_factor | Scaling factor for the variable |
Definition at line 314 of file Simulation.C.
void Simulation::addSimVariable | ( | bool | nl, |
const std::string & | var_type, | ||
const VariableName & | name, | ||
const InputParameters & | params | ||
) |
Queues a generic variable to be added to the nonlinear or aux system.
[in] | nl | True if this is a nonlinear (solution) variable |
[in] | var_type | Type (class) of the variable |
[in] | name | Name of the variable |
[in] | params | Input parameters for the variable |
Definition at line 405 of file Simulation.C.
|
virtual |
Add variables involved in this simulation.
Definition at line 634 of file Simulation.C.
Referenced by THMAddVariablesAction::act().
|
virtual |
Advance all of the state holding vectors / datastructures so that we can move to the next timestep.
Reimplemented in THMProblem.
Definition at line 1076 of file Simulation.C.
Referenced by THMProblem::advanceState(), and THMProblem::copySolutionsBackwards().
|
virtual |
Hint how to augment sparsity pattern between two elements.
The augmentation will be symmetric
Definition at line 71 of file Simulation.C.
Referenced by HeatStructure2DCouplerBase::setupMesh(), GateValve1Phase::setupMesh(), HSCoupler2D2DRadiation::setupMesh(), HSCoupler2D3D::setupMesh(), JunctionOneToOne1Phase::setupMesh(), HeatTransferFromHeatStructure1Phase::setupMesh(), VolumeJunction1Phase::setupMesh(), and HeatTransferFromHeatStructure3D1Phase::setupMesh().
|
virtual |
Create mesh for this simulation.
Definition at line 87 of file Simulation.C.
Referenced by THMBuildMeshAction::act().
void Simulation::checkVariableNameLength | ( | const std::string & | name | ) | const |
Reports an error if the variable name is too long.
Definition at line 479 of file Simulation.C.
Referenced by addSimVariable().
|
virtual |
Check the integrity of the control data.
Definition at line 911 of file Simulation.C.
Referenced by ControlDataIntegrityCheckAction::act().
|
virtual |
Check integrity of coupling matrix used by the preconditioner.
Definition at line 807 of file Simulation.C.
Referenced by THMPreconditioningIntegrityCheckAction::act().
|
inline |
Declare control data of type T and name 'name', if it does not exist it will be created.
name | The unique name of the control data |
Definition at line 311 of file Simulation.h.
Referenced by THMControl::declareComponentControlData(), and THMControl::declareControlData().
|
inlineinherited |
Build a name from a prefix, number and possible suffix.
Definition at line 29 of file NamingInterface.h.
Referenced by Closures1PhaseBase::addAverageWallTemperatureMaterial(), FlowModel::addCommonInitialConditions(), FlowModel::addCommonMooseObjects(), FlowChannelBase::addCommonObjects(), addComponentScalarIC(), HeatStructureBase::addConstantDensitySolidPropertiesMaterial(), addConstantIC(), addConstantScalarIC(), addFunctionIC(), HeatTransferBase::addHeatedPerimeter(), HeatConductionModel::addHeatEquationRZ(), HeatConductionModel::addHeatEquationXYZ(), HeatTransferFromTemperature1Phase::addHeatTransferKernels(), FlowChannel1Phase::addHydraulicDiameterMaterial(), FlowModelSinglePhase::addInitialConditions(), HeatConductionModel::addMaterials(), FormLossFromFunction1Phase::addMooseObjects(), HeatSourceFromPowerDensity::addMooseObjects(), HeatSourceFromTotalPower::addMooseObjects(), HeatStructure2DCoupler::addMooseObjects(), HeatStructure2DRadiationCouplerRZ::addMooseObjects(), HSBoundarySpecifiedTemperature::addMooseObjects(), HeatTransferFromHeatFlux1Phase::addMooseObjects(), HSBoundaryAmbientConvection::addMooseObjects(), HSBoundaryHeatFlux::addMooseObjects(), HSBoundaryRadiation::addMooseObjects(), InletVelocityTemperature1Phase::addMooseObjects(), GateValve1Phase::addMooseObjects(), HeatSourceVolumetric1Phase::addMooseObjects(), HeatTransferFromSpecifiedTemperature1Phase::addMooseObjects(), HSBoundaryExternalAppTemperature::addMooseObjects(), Shaft::addMooseObjects(), FormLossFromExternalApp1Phase::addMooseObjects(), TotalPower::addMooseObjects(), VolumeJunction1Phase::addMooseObjects(), FormLoss1PhaseBase::addMooseObjects(), ShaftConnectedCompressor1Phase::addMooseObjects(), ShaftConnectedPump1Phase::addMooseObjects(), ShaftConnectedTurbine1Phase::addMooseObjects(), HeatTransferFromExternalAppHeatFlux1Phase::addMooseObjects(), HSBoundaryExternalAppConvection::addMooseObjects(), HSCoupler2D3D::addMooseObjects(), HeatTransferBase::addMooseObjects(), FlowModelSinglePhase::addMooseObjects(), SimpleTurbine1Phase::addMooseObjects(), HeatTransferFromHeatStructure3D1Phase::addMooseObjects(), HSCoupler2D2DRadiation::addMooseObjects(), HeatTransferFromHeatStructure1Phase::addMooseObjects(), HSBoundaryExternalAppHeatFlux::addMooseObjects(), JunctionOneToOne1Phase::addMooseObjects(), FlowChannelBase::addMooseObjects(), FunctorClosures::addMooseObjectsFlowChannel(), Closures1PhaseSimple::addMooseObjectsHeatTransfer(), FlowModelSinglePhase::addRDGAdvectionDGKernels(), FlowModelSinglePhase::addRDGMooseObjects(), Closures1PhaseTHM::addTemperatureWallFromHeatFluxMaterial(), FlowChannelBase::addVariables(), Closures1PhaseTHM::addWallFFMaterial(), Closures1PhaseBase::addWallFrictionFunctionMaterial(), Closures1PhaseTHM::addWallHTCMaterial(), ClosuresBase::addWallTemperatureFromAuxMaterial(), Closures1PhaseSimple::addWallTemperatureFromHeatFluxMaterial(), FlowBoundary1Phase::addWeakBC3Eqn(), ClosuresBase::addWeightedAverageMaterial(), ClosuresBase::addZeroMaterial(), Component2D::buildMesh(), FileMeshComponent::buildMesh(), Component1D::buildMesh(), HeatSourceBase::HeatSourceBase(), VolumeJunction1Phase::junctionVariableName(), and 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().
|
inline |
Get the ThermalHydraulicsApp.
Definition at line 245 of file Simulation.h.
Referenced by addVariables().
std::shared_ptr< ClosuresBase > Simulation::getClosures | ( | const std::string & | name | ) | const |
Get a pointer to a closures object.
[in] | name | Closures object name |
Definition at line 1025 of file Simulation.C.
const T & Simulation::getComponentByName | ( | const std::string & | name | ) | const |
Get component by its name.
T | the type of the component we are requesting |
name | The name of the component |
Definition at line 504 of file Simulation.h.
Referenced by Component::getComponentByName(), FlowBoundary1Phase::init(), FlowJunction1Phase::init(), FlowBoundary::init(), FlowJunction::init(), and Component1DConnection::init().
|
inline |
Return list of components available in the simulation.
Definition at line 117 of file Simulation.h.
Referenced by ParaviewComponentAnnotationMap::output().
|
inline |
Get control data of type T and name 'name', if it does not exist it will be created.
name | The unique name of the control data |
Definition at line 290 of file Simulation.h.
Referenced by BoolControlDataValuePostprocessor::BoolControlDataValuePostprocessor(), THMControl::getControlDataByName(), THMControl::getControlDataOldByName(), THMParsedFunctionWrapper::initialize(), and RealControlDataValuePostprocessor::RealControlDataValuePostprocessor().
|
inline |
Gets the FE type for the flow in this simulation.
Definition at line 48 of file Simulation.h.
Referenced by setupQuadrature().
|
inline |
Gets the flag indicating whether an implicit time integration scheme is being used.
Definition at line 329 of file Simulation.h.
Referenced by GateValve1Phase::addMooseObjects(), VolumeJunction1Phase::addMooseObjects(), JunctionOneToOne1Phase::addMooseObjects(), FlowModelSinglePhase::addRDGAdvectionDGKernels(), FlowModelSinglePhase::addRDGMooseObjects(), and FlowBoundary1Phase::addWeakBC3Eqn().
std::vector< OutputName > Simulation::getOutputsVector | ( | const std::string & | key | ) | const |
Gets the vector of output names corresponding to a 1-word key string.
[in] | key | string key that corresponds to an output names vector |
Definition at line 1049 of file Simulation.C.
|
inline |
Is velocity output as vector-valued field.
Definition at line 359 of file Simulation.h.
Referenced by FlowChannel1Phase::buildFlowModel().
bool Simulation::hasClosures | ( | const std::string & | name | ) | const |
Return whether the simulation has a closures object.
[in] | name | Closures object name |
Definition at line 1019 of file Simulation.C.
bool Simulation::hasComponent | ( | const std::string & | name | ) | const |
Find out if simulation has a component with the given name.
name | The name of the component |
Definition at line 1002 of file Simulation.C.
Referenced by Component::checkComponentExistsByName(), Component::checkComponentOfTypeExistsByName(), and initSimulation().
bool Simulation::hasComponentOfType | ( | const std::string & | name | ) | const |
Find out if simulation has a component with the given name and specified type.
T | the type of the component we are requesting |
name | The name of the component |
Definition at line 493 of file Simulation.h.
Referenced by Component::checkComponentOfTypeExistsByName(), and Component::hasComponentByName().
|
inline |
Query if control data with name 'name' exists.
name | The unique name of the control data |
Definition at line 275 of file Simulation.h.
Referenced by THMParsedFunctionWrapper::initialize().
bool Simulation::hasInitialConditionsFromFile | ( | ) | const |
Are initial conditions specified from a file.
Definition at line 1070 of file Simulation.C.
Referenced by addComponentScalarIC(), addConstantIC(), addConstantScalarIC(), addFunctionIC(), addSimInitialCondition(), addVariables(), Shaft::check(), VolumeJunction1Phase::check(), FlowChannel1Phase::check(), and HeatStructureInterface::check().
void Simulation::identifyLoops | ( | ) |
Identifies the component loops.
Definition at line 164 of file Simulation.C.
Referenced by IdentifyLoopsAction::act().
|
virtual |
Initialize this simulation's components.
Definition at line 151 of file Simulation.C.
Referenced by THMInitComponentsAction::act().
|
virtual |
Initialize this simulation.
Definition at line 135 of file Simulation.C.
Referenced by THMInitSimulationAction::act().
|
virtual |
Check the integrity of the simulation.
Definition at line 846 of file Simulation.C.
Referenced by IntegrityCheckAction::act().
|
inline |
|
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 addClosures(), addComponent(), controlDataIntegrityCheck(), declareControlData(), identifyLoops(), and integrityCheck().
|
inlineinherited |
Logs a warning.
Definition at line 56 of file LoggingInterface.h.
void Simulation::printComponentLoops | ( | ) | const |
Prints the component loops.
Definition at line 248 of file Simulation.C.
Referenced by THMPrintComponentLoopsAction::act().
|
virtual |
|
inline |
Enable Jacobian checking.
state | True for Jacobian checking, otherwise false |
Definition at line 345 of file Simulation.h.
Referenced by THMDebugAction::act().
Sets a component variable order index.
See Component system documentation for more information.
[in] | var | Variable to order |
[in] | index | Order index |
Definition at line 40 of file Simulation.C.
Referenced by ThermalHydraulicsApp::registerAll().
|
protected |
Sets the coordinate system for each subdomain.
Definition at line 770 of file Simulation.C.
Referenced by setupMesh().
|
protected |
Setup ctirical heat flux table user object.
|
protected |
Setup equations to be solved in this simulation.
|
protected |
Definition at line 727 of file Simulation.C.
Referenced by addVariables().
|
protected |
Setup reading initial conditions from a specified file, see 'initial_from_file' and 'initial_from_file_timestep' parameters.
Definition at line 686 of file Simulation.C.
Referenced by addVariables().
|
virtual |
Perform mesh setup actions such as setting up the coordinate system(s) and creating ghosted elements.
Definition at line 798 of file Simulation.C.
Referenced by THMSetupMeshAction::act().
|
virtual |
Sets up quadrature rules.
Definition at line 98 of file Simulation.C.
Referenced by THMSetupQuadratureAction::act().
|
inline |
Set if velocity is being output as a vector-valued field.
Definition at line 364 of file Simulation.h.
Referenced by THMOutputVectorVelocityAction::act().
|
private |
Returns a sorted list of the variables added by components.
See Component system documentation for more information.
Definition at line 578 of file Simulation.C.
Referenced by addVariables().
|
protected |
True if checking jacobian.
Definition at line 468 of file Simulation.h.
Referenced by controlDataIntegrityCheck(), integrityCheck(), and setCheckJacobian().
|
protected |
Map of closures by their names.
Definition at line 409 of file Simulation.h.
Referenced by addClosures(), getClosures(), and hasClosures().
|
protected |
Map of components by their names.
Definition at line 402 of file Simulation.h.
Referenced by addComponent(), getComponentByName(), hasComponent(), hasComponentOfType(), and initSimulation().
|
protected |
Map of component name to component loop name.
Definition at line 404 of file Simulation.h.
Referenced by identifyLoops(), and printComponentLoops().
|
staticprivate |
Component variable order map; see setComponentVariableOrder for more info.
Definition at line 488 of file Simulation.h.
Referenced by sortAddedComponentVariables().
|
protected |
List of components in this simulation.
Definition at line 400 of file Simulation.h.
Referenced by addComponent(), addMooseObjects(), addRelationshipManagers(), addVariables(), buildMesh(), getComponents(), identifyLoops(), initComponents(), initSimulation(), integrityCheck(), setupCoordinateSystem(), setupMesh(), and setupQuadrature().
|
protected |
Control data created in the control logic system.
Definition at line 460 of file Simulation.h.
Referenced by advanceState(), controlDataIntegrityCheck(), getControlData(), hasControlData(), and ~Simulation().
|
protected |
Pointer to FEProblem representing this simulation.
Definition at line 391 of file Simulation.h.
Referenced by addControl(), addRelationshipManagers(), addVariables(), controlDataIntegrityCheck(), couplingMatrixIntegrityCheck(), setupCoordinateSystem(), setupInitialConditionObjects(), setupInitialConditionsFromFile(), and setupQuadrature().
|
protected |
finite element type for the flow in the simulation
Definition at line 430 of file Simulation.h.
Referenced by getFlowFEType().
|
protected |
Definition at line 424 of file Simulation.h.
Referenced by addSimInitialCondition(), and setupInitialConditionObjects().
|
protected |
true if using implicit time integration scheme
Definition at line 463 of file Simulation.h.
Referenced by addVariables(), and getImplicitTimeIntegrationFlag().
|
protected |
Definition at line 465 of file Simulation.h.
Referenced by controlDataIntegrityCheck(), integrityCheck(), and log().
|
protected |
Map of loop name to model type.
Definition at line 406 of file Simulation.h.
Referenced by identifyLoops().
|
protected |
Flag indicating if velocity is output as vector-valued field.
Definition at line 474 of file Simulation.h.
Referenced by getVectorValuedVelocity(), and setVectorValuedVelocity().
|
protected |
Definition at line 455 of file Simulation.h.
Referenced by addFileOutputter(), addScreenOutputter(), and getOutputsVector().
|
protected |
Definition at line 456 of file Simulation.h.
Referenced by addFileOutputter(), and getOutputsVector().
|
protected |
Definition at line 457 of file Simulation.h.
Referenced by addScreenOutputter(), and getOutputsVector().
|
protected |
Additional sparsity pattern that needs to be added into the Jacobian matrix.
Definition at line 471 of file Simulation.h.
Referenced by addRelationshipManagers(), and augmentSparsity().
|
protected |
The application this is associated with.
Definition at line 394 of file Simulation.h.
Referenced by addRelationshipManagers(), getApp(), and getControlData().
|
protected |
The Factory associated with the MooseApp.
Definition at line 397 of file Simulation.h.
Referenced by addClosures(), addComponent(), addComponentScalarIC(), addConstantIC(), addConstantScalarIC(), addControl(), addFunctionIC(), addRelationshipManagers(), addSimVariable(), and setupInitialConditionsFromFile().
|
protected |
|
protected |
"Global" of this simulation
Definition at line 427 of file Simulation.h.
Referenced by hasInitialConditionsFromFile(), and setupInitialConditionsFromFile().
|
protected |
variables for this simulation (name and info about the var)
Definition at line 412 of file Simulation.h.
Referenced by addSimVariable(), addVariables(), setupInitialConditionsFromFile(), and sortAddedComponentVariables().
Real Simulation::_zero |
Definition at line 477 of file Simulation.h.