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 |
| const std::string & | name () const |
| std::string | typeAndName () const |
| MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
| MooseObjectName | uniqueName () const |
| const InputParameters & | parameters () const |
| const hit::Node * | getHitNode () const |
| bool | hasBase () const |
| const std::string & | getBase () 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 &name) const |
| void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
| void | paramError (const std::string ¶m, Args... args) const |
| void | paramWarning (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 |
| 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 ¶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 () |
| static void | callMooseError (MooseApp *const app, const InputParameters ¶ms, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true) |
Public Attributes | |
| usingCombinedWarningSolutionWarnings | |
| const ConsoleStream | _console |
Static Public Attributes | |
| static const std::string | unique_action_name_param |
| 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 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 |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) 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. | |
| UserObjectName | _fp_name |
| Name of the FluidProperties object to pass on to Kernels. | |
| std::vector< SubdomainName > | _blocks |
| Subdomains Navier-Stokes equation is defined on. | |
| std::vector< BoundaryName > | _stagnation_boundary |
| Boundaries stagnation BC applies. | |
| std::vector< Real > | _stagnation_pressure |
| Pressures on stagnation boundaries. | |
| std::vector< Real > | _stagnation_temperature |
| Temperatures on stagnation boundaries. | |
| std::vector< Real > | _stagnation_direction |
| Flow directions on stagnation boundaries. | |
| std::vector< BoundaryName > | _no_penetration_boundary |
| Boundaries no-penetration BC applies. | |
| std::vector< BoundaryName > | _static_pressure_boundary |
| Boundaries static pressure BC applies. | |
| std::vector< Real > | _static_pressure |
| Pressures on static pressure boundaries. | |
| libMesh::FEType | _fe_type |
| FE type for various variables. | |
| Real | _initial_pressure |
| Initial value for pressure. | |
| Real | _initial_temperature |
| Initial value for temperature. | |
| RealVectorValue | _initial_velocity |
| Initial value for velocity. | |
| unsigned int | _dim |
| Mesh dimension. | |
| std::set< SubdomainID > | _block_ids |
| Subdomain IDs. | |
| const std::string | _pressure_variable_name |
| pressure variable name | |
| 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 |
| Factory & | _factory |
| ActionFactory & | _action_factory |
| const std::string & | _name |
| const InputParameters & | _pars |
| MooseApp & | _pg_moose_app |
| const std::string | _prefix |
| const Parallel::Communicator & | _communicator |
Private Member Functions | |
| bool | addRelationshipManager (Moose::RelationshipManagerType input_rm_type, const InputParameters &moose_object_pars, std::string rm_name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback rm_input_parameter_func, Moose::RMSystemType sys_type=Moose::RMSystemType::NONE) |
| virtual std::string | meshPropertyPrefix (const std::string &data_name) const |
| const RestartableDataValue & | getMeshPropertyInternal (const std::string &data_name, const std::string &prefix) const |
| void | mooseErrorInternal (Args &&... args) const |
Static Private Member Functions | |
| static const hit::Node * | getHitNode (const InputParameters ¶ms) |
| static std::string | messagePrefix (const InputParameters ¶ms, const bool hit_prefix) |
Private Attributes | |
| const ParallelParamObject & | _parent |
| MooseApp & | _meta_data_app |
| const MooseObject *const | _meta_data_object |
| const MooseBase & | _si_moose_base |
| const FEProblemBase * | _si_problem |
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.
|
protected |
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().
|
protected |
Definition at line 493 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 633 of file CNSAction.C.
Referenced by act().
|
protected |
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().
|
protected |
Definition at line 343 of file CNSAction.C.
Referenced by act().
|
protected |
Definition at line 301 of file CNSAction.C.
Referenced by act().
|
protected |
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().