This class allows us to have a section of the input file like the following which automatically adds variables, kernels, aux kernels, bcs for setting up the Navier-Stokes equation. More...
#include <CNSAction.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
CNSAction (const InputParameters ¶meters) | |
virtual void | act () override |
void | timedAct () |
virtual void | addRelationshipManagers (Moose::RelationshipManagerType when_type) |
MooseObjectName | uniqueActionName () const |
const std::string & | specificTaskName () const |
const std::set< std::string > & | getAllTasks () const |
void | appendTask (const std::string &task) |
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 |
PerfGraph & | perfGraph () |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Static Public Member Functions | |
static InputParameters | validParams () |
Public Attributes | |
const ConsoleStream | _console |
Static Public Attributes | |
static constexpr auto | SYSTEM |
static constexpr auto | NAME |
Protected Member Functions | |
void | setKernelCommonParams (InputParameters ¶ms) |
void | setBCCommonParams (InputParameters ¶ms) |
void | setStagnationBCCommonParams (InputParameters ¶ms, unsigned int i) |
void | coupleVelocities (InputParameters ¶ms) |
void | coupleMomentums (InputParameters ¶ms) |
void | addNSTimeKernels () |
void | addNSMassInviscidFlux () |
void | addNSMomentumInviscidFlux (unsigned int component) |
void | addNSEnergyInviscidFlux () |
void | addNSSUPGMass () |
void | addNSSUPGMomentum (unsigned int component) |
void | addNSSUPGEnergy () |
void | addPressureOrTemperatureAux (const std::string &kernel_type) |
void | addNSVelocityAux (unsigned int component) |
void | addSpecificTotalEnthalpyAux () |
void | addNSMachAux () |
void | addNSInternalEnergyAux () |
void | addSpecificVolumeComputation () |
void | addNSMassWeakStagnationBC () |
void | addNSEnergyWeakStagnationBC () |
void | addNSMomentumWeakStagnationBC (unsigned int component) |
void | addNoPenetrationBC (unsigned int component) |
void | addNSMassUnspecifiedNormalFlowBC () |
void | addNSEnergyInviscidSpecifiedPressureBC () |
void | addNSMomentumInviscidSpecifiedPressureBC (unsigned int component) |
bool | addRelationshipManagers (Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars) |
void | associateWithParameter (const std::string ¶m_name, InputParameters ¶ms) const |
void | associateWithParameter (const InputParameters &from_params, const std::string ¶m_name, InputParameters ¶ms) const |
const T & | getMeshProperty (const std::string &data_name, const std::string &prefix) |
const T & | getMeshProperty (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 §ion_name, const unsigned int level) const |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const |
std::string | timedSectionName (const std::string §ion_name) const |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
MooseEnum | _type |
Equation type, transient or steady-state. More... | |
UserObjectName | _fp_name |
Name of the FluidProperties object to pass on to Kernels. More... | |
std::vector< SubdomainName > | _blocks |
Subdomains Navier-Stokes equation is defined on. More... | |
std::vector< BoundaryName > | _stagnation_boundary |
Boundaries stagnation BC applies. More... | |
std::vector< Real > | _stagnation_pressure |
Pressures on stagnation boundaries. More... | |
std::vector< Real > | _stagnation_temperature |
Temperatures on stagnation boundaries. More... | |
std::vector< Real > | _stagnation_direction |
Flow directions on stagnation boundaries. More... | |
std::vector< BoundaryName > | _no_penetration_boundary |
Boundaries no-penetration BC applies. More... | |
std::vector< BoundaryName > | _static_pressure_boundary |
Boundaries static pressure BC applies. More... | |
std::vector< Real > | _static_pressure |
Pressures on static pressure boundaries. More... | |
libMesh::FEType | _fe_type |
FE type for various variables. More... | |
Real | _initial_pressure |
Initial value for pressure. More... | |
Real | _initial_temperature |
Initial value for temperature. More... | |
RealVectorValue | _initial_velocity |
Initial value for velocity. More... | |
unsigned int | _dim |
Mesh dimension. More... | |
std::set< SubdomainID > | _block_ids |
Subdomain IDs. More... | |
const std::string | _pressure_variable_name |
pressure variable name More... | |
std::string | _registered_identifier |
std::string | _specific_task_name |
std::set< std::string > | _all_tasks |
ActionWarehouse & | _awh |
const std::string & | _current_task |
std::shared_ptr< MooseMesh > & | _mesh |
std::shared_ptr< MooseMesh > & | _displaced_mesh |
std::shared_ptr< FEProblemBase > & | _problem |
PerfID | _act_timer |
MooseApp & | _app |
const std::string | _name |
const InputParameters & | _pars |
Factory & | _factory |
ActionFactory & | _action_factory |
MooseApp & | _pg_moose_app |
const std::string | _prefix |
const Parallel::Communicator & | _communicator |
This class allows us to have a section of the input file like the following which automatically adds variables, kernels, aux kernels, bcs for setting up the Navier-Stokes equation.
[Modules] [CompressibleNavierStokes] [] []
Definition at line 28 of file CNSAction.h.
CNSAction::CNSAction | ( | const InputParameters & | parameters | ) |
Definition at line 97 of file CNSAction.C.
|
overridevirtual |
Implements Action.
Definition at line 130 of file CNSAction.C.
Definition at line 600 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 510 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 656 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 541 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 396 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 414 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 483 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 618 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 525 of file CNSAction.C.
Referenced by act().
Definition at line 493 of file CNSAction.C.
Referenced by act().
Definition at line 633 of file CNSAction.C.
Referenced by act().
Definition at line 556 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 363 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 328 of file CNSAction.C.
Referenced by act().
Definition at line 343 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 301 of file CNSAction.C.
Referenced by act().
Definition at line 450 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 468 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 434 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 378 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 733 of file CNSAction.C.
Referenced by setBCCommonParams(), and setKernelCommonParams().
|
protected |
Definition at line 721 of file CNSAction.C.
Referenced by addNSInternalEnergyAux(), addNSMachAux(), setBCCommonParams(), and setKernelCommonParams().
|
protected |
Definition at line 691 of file CNSAction.C.
Referenced by addNoPenetrationBC(), addNSEnergyInviscidSpecifiedPressureBC(), addNSEnergyWeakStagnationBC(), addNSMassUnspecifiedNormalFlowBC(), addNSMassWeakStagnationBC(), addNSMomentumInviscidSpecifiedPressureBC(), and addNSMomentumWeakStagnationBC().
|
protected |
Definition at line 674 of file CNSAction.C.
Referenced by addNSEnergyInviscidFlux(), addNSMassInviscidFlux(), addNSMomentumInviscidFlux(), addNSSUPGEnergy(), addNSSUPGMass(), and addNSSUPGMomentum().
|
protected |
Definition at line 706 of file CNSAction.C.
Referenced by addNSEnergyWeakStagnationBC(), addNSMassWeakStagnationBC(), and addNSMomentumWeakStagnationBC().
|
static |
Definition at line 32 of file CNSAction.C.
|
protected |
|
protected |
Subdomains Navier-Stokes equation is defined on.
Definition at line 87 of file CNSAction.h.
Referenced by act(), addNSTimeKernels(), and setKernelCommonParams().
|
protected |
Mesh dimension.
Definition at line 111 of file CNSAction.h.
Referenced by act(), addNSTimeKernels(), coupleMomentums(), coupleVelocities(), and setStagnationBCCommonParams().
|
protected |
|
protected |
Name of the FluidProperties object to pass on to Kernels.
Definition at line 85 of file CNSAction.h.
Referenced by act(), addNSMachAux(), addNSVelocityAux(), addPressureOrTemperatureAux(), setBCCommonParams(), and setKernelCommonParams().
|
protected |
|
protected |
|
protected |
|
protected |
Boundaries no-penetration BC applies.
Definition at line 97 of file CNSAction.h.
Referenced by act(), and addNoPenetrationBC().
|
protected |
pressure variable name
Definition at line 115 of file CNSAction.h.
Referenced by act(), addNoPenetrationBC(), addNSMomentumInviscidFlux(), addPressureOrTemperatureAux(), and addSpecificTotalEnthalpyAux().
|
protected |
Boundaries stagnation BC applies.
Definition at line 89 of file CNSAction.h.
Referenced by act(), addNSEnergyWeakStagnationBC(), addNSMassWeakStagnationBC(), addNSMomentumWeakStagnationBC(), CNSAction(), and setStagnationBCCommonParams().
|
protected |
Flow directions on stagnation boundaries.
Definition at line 95 of file CNSAction.h.
Referenced by act(), and setStagnationBCCommonParams().
|
protected |
Pressures on stagnation boundaries.
Definition at line 91 of file CNSAction.h.
Referenced by CNSAction(), and setStagnationBCCommonParams().
|
protected |
Temperatures on stagnation boundaries.
Definition at line 93 of file CNSAction.h.
Referenced by CNSAction(), and setStagnationBCCommonParams().
|
protected |
Pressures on static pressure boundaries.
Definition at line 101 of file CNSAction.h.
Referenced by addNSEnergyInviscidSpecifiedPressureBC(), addNSMassUnspecifiedNormalFlowBC(), addNSMomentumInviscidSpecifiedPressureBC(), and CNSAction().
|
protected |
Boundaries static pressure BC applies.
Definition at line 99 of file CNSAction.h.
Referenced by act(), addNSEnergyInviscidSpecifiedPressureBC(), addNSMassUnspecifiedNormalFlowBC(), addNSMomentumInviscidSpecifiedPressureBC(), and CNSAction().
|
protected |
Equation type, transient or steady-state.
Definition at line 83 of file CNSAction.h.
Referenced by act().