Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
Public Member Functions | Public Attributes | List of all members
sierra::nalu::EnthalpyEquationSystem Class Reference

#include <EnthalpyEquationSystem.h>

Inheritance diagram for sierra::nalu::EnthalpyEquationSystem:
sierra::nalu::EquationSystem

Public Member Functions

 EnthalpyEquationSystem (EquationSystems &equationSystems, const double minT, const double maxT, const bool outputClippingDiag)
 
virtual ~EnthalpyEquationSystem ()
 
virtual void register_nodal_fields (stk::mesh::Part *part)
 
void register_interior_algorithm (stk::mesh::Part *part)
 
void register_inflow_bc (stk::mesh::Part *part, const stk::topology &theTopo, const InflowBoundaryConditionData &inflowBCData)
 
void register_open_bc (stk::mesh::Part *part, const stk::topology &theTopo, const OpenBoundaryConditionData &openBCData)
 
void register_wall_bc (stk::mesh::Part *part, const stk::topology &theTopo, const WallBoundaryConditionData &wallBCData)
 
virtual void register_symmetry_bc (stk::mesh::Part *part, const stk::topology &theTopo, const SymmetryBoundaryConditionData &symmetryBCData)
 
virtual void register_non_conformal_bc (stk::mesh::Part *part, const stk::topology &theTopo)
 
virtual void register_overset_bc ()
 
void initialize ()
 
void reinitialize_linear_system ()
 
virtual void register_initial_condition_fcn (stk::mesh::Part *part, const std::map< std::string, std::string > &theNames, const std::map< std::string, std::vector< double > > &theParams)
 
void predict_state ()
 
void solve_and_update ()
 Assemble the LHS and RHS and perform linear solve for prescribed number of iterations. More...
 
void post_iter_work_dep ()
 Deprecated post iteration work logic. More...
 
void post_adapt_work ()
 
void extract_temperature ()
 
void post_converged_work ()
 
void initial_work ()
 
void temperature_bc_setup (UserData userData, stk::mesh::Part *part, ScalarFieldType *temperatureBc, ScalarFieldType *enthalpyBc, const bool isInterface=false, const bool copyBcVal=true)
 
void manage_projected_nodal_gradient (EquationSystems &eqSystems)
 
void compute_projected_nodal_gradient ()
 
- Public Member Functions inherited from sierra::nalu::EquationSystem
 EquationSystem (EquationSystems &eqSystems, const std::string name="no_name", const std::string eqnTypeName="no_eqn_type_name")
 
virtual ~EquationSystem ()
 
void set_nodal_gradient (const std::string &dofName)
 
virtual void populate_derived_quantities ()
 
virtual void register_edge_fields (stk::mesh::Part *part)
 
virtual void register_element_fields (stk::mesh::Part *part, const stk::topology &theTopo)
 
virtual void pre_iter_work ()
 Perform setup tasks before entering the solve and update step. More...
 
virtual void post_iter_work ()
 Perform setup tasks after he solve and update step. More...
 
virtual void assemble_and_solve (stk::mesh::FieldBase *deltaSolution)
 
virtual void provide_output ()
 
virtual void pre_timestep_work ()
 
virtual void dump_eq_time ()
 
virtual double provide_scaled_norm ()
 
virtual double provide_norm ()
 
virtual double provide_norm_increment ()
 
virtual bool system_is_converged ()
 
virtual void register_periodic_bc (stk::mesh::Part *partMaster, stk::mesh::Part *partSlave, const stk::topology &theTopoMaster, const stk::topology &theTopoSlave, const PeriodicBoundaryConditionData &periodicBCData)
 
virtual void create_constraint_algorithm (stk::mesh::FieldBase *theField)
 
virtual void register_surface_pp_algorithm (const PostProcessingData &theData, stk::mesh::PartVector &partVector)
 
virtual void evaluate_properties ()
 
PecletFunctioncreate_peclet_function (const std::string dofName)
 
virtual void load (const YAML::Node &node)
 
Simulationroot ()
 
EquationSystemsparent ()
 
void report_invalid_supp_alg_names ()
 
void report_built_supp_alg_names ()
 
bool supp_alg_is_requested (std::string name)
 
bool supp_alg_is_requested (std::vector< std::string >)
 
bool nodal_src_is_requested ()
 
void update_iteration_statistics (const int &iters)
 
bool bc_data_specified (const UserData &, std::string &name)
 
UserDataType get_bc_data_type (const UserData &, std::string &name)
 
std::string get_bc_function_name (const UserData &, std::string &name)
 
std::vector< double > get_bc_function_params (const UserData &, std::string &name)
 
std::vector< std::string > get_bc_function_string_params (const UserData &, std::string &name)
 

Public Attributes

const double minimumT_
 
const double maximumT_
 
const bool managePNG_
 
const bool outputClippingDiag_
 
ScalarFieldTypeenthalpy_
 
ScalarFieldTypetemperature_
 
VectorFieldTypedhdx_
 
ScalarFieldTypehTmp_
 
ScalarFieldTypevisc_
 
ScalarFieldTypetvisc_
 
ScalarFieldTypeevisc_
 
ScalarFieldTypethermalCond_
 
ScalarFieldTypespecHeat_
 
ScalarFieldTypedivQ_
 
ScalarFieldTypepOld_
 
AssembleNodalGradAlgorithmDriverassembleNodalGradAlgDriver_
 
AlgorithmDriverdiffFluxCoeffAlgDriver_
 
AssembleWallHeatTransferAlgorithmDriverassembleWallHeatTransferAlgDriver_
 
bool pmrCouplingActive_
 
bool lowSpeedCompressActive_
 
ProjectedNodalGradientEquationSystemprojectedNodalGradEqs_
 
bool isInit_
 
std::vector< TemperaturePropAlgorithm * > enthalpyFromTemperatureAlg_
 
std::vector< Algorithm * > bdf2CopyStateAlg_
 
std::vector< TemperaturePropAlgorithm * > bcEnthalpyFromTemperatureAlg_
 
std::vector< Algorithm * > bcCopyStateAlg_
 
- Public Attributes inherited from sierra::nalu::EquationSystem
EquationSystemsequationSystems_
 
Realmrealm_
 
std::string name_
 
std::string userSuppliedName_
 
const std::string eqnTypeName_
 
int maxIterations_
 
double convergenceTolerance_
 
SolverAlgorithmDriversolverAlgDriver_
 
double timerAssemble_
 
double timerLoadComplete_
 
double timerSolve_
 
double timerMisc_
 
double timerInit_
 
double timerPrecond_
 
double avgLinearIterations_
 
double maxLinearIterations_
 
double minLinearIterations_
 
int nonLinearIterationCount_
 
bool reportLinearIterations_
 
bool firstTimeStepSolve_
 
bool edgeNodalGradient_
 
std::vector< AuxFunctionAlgorithm * > bcDataAlg_
 
std::vector< Algorithm * > bcDataMapAlg_
 
std::vector< Algorithm * > copyStateAlg_
 
LinearSystemlinsys_
 
size_t num_graph_entries_
 
std::vector< Algorithm * > propertyAlg_
 
std::vector< AlgorithmDriver * > preIterAlgDriver_
 List of tasks to be performed before each solve_and_update of this equation system. More...
 
std::vector< AlgorithmDriver * > postIterAlgDriver_
 List of tasks to be performed after each solve_and_update of this equation system. More...
 

Constructor & Destructor Documentation

sierra::nalu::EnthalpyEquationSystem::EnthalpyEquationSystem ( EquationSystems equationSystems,
const double  minT,
const double  maxT,
const bool  outputClippingDiag 
)
sierra::nalu::EnthalpyEquationSystem::~EnthalpyEquationSystem ( )
virtual

Member Function Documentation

void sierra::nalu::EnthalpyEquationSystem::compute_projected_nodal_gradient ( )
void sierra::nalu::EnthalpyEquationSystem::extract_temperature ( )
void sierra::nalu::EnthalpyEquationSystem::initial_work ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::initialize ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::manage_projected_nodal_gradient ( EquationSystems eqSystems)
void sierra::nalu::EnthalpyEquationSystem::post_adapt_work ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::post_converged_work ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::post_iter_work_dep ( )
virtual

Deprecated post iteration work logic.

Deprecated:
This method is there to support some tasks in EnthalpyEquationSystem that should be eventually moved to EquationSystems::post_iter_work.

Reimplemented from sierra::nalu::EquationSystem.

References assembleWallHeatTransferAlgDriver_, bcCopyStateAlg_, bcEnthalpyFromTemperatureAlg_, sierra::nalu::AlgorithmDriver::execute(), and extract_temperature().

void sierra::nalu::EnthalpyEquationSystem::predict_state ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::register_inflow_bc ( stk::mesh::Part *  part,
const stk::topology &  theTopo,
const InflowBoundaryConditionData inflowBCData 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_initial_condition_fcn ( stk::mesh::Part *  part,
const std::map< std::string, std::string > &  theNames,
const std::map< std::string, std::vector< double > > &  theParams 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_interior_algorithm ( stk::mesh::Part *  part)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_nodal_fields ( stk::mesh::Part *  part)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_non_conformal_bc ( stk::mesh::Part *  part,
const stk::topology &  theTopo 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_open_bc ( stk::mesh::Part *  part,
const stk::topology &  theTopo,
const OpenBoundaryConditionData openBCData 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_overset_bc ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::register_symmetry_bc ( stk::mesh::Part *  part,
const stk::topology &  theTopo,
const SymmetryBoundaryConditionData symmetryBCData 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::register_wall_bc ( stk::mesh::Part *  part,
const stk::topology &  theTopo,
const WallBoundaryConditionData wallBCData 
)
virtual
void sierra::nalu::EnthalpyEquationSystem::reinitialize_linear_system ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::solve_and_update ( )
virtual
void sierra::nalu::EnthalpyEquationSystem::temperature_bc_setup ( UserData  userData,
stk::mesh::Part *  part,
ScalarFieldType temperatureBc,
ScalarFieldType enthalpyBc,
const bool  isInterface = false,
const bool  copyBcVal = true 
)

Member Data Documentation

AssembleNodalGradAlgorithmDriver* sierra::nalu::EnthalpyEquationSystem::assembleNodalGradAlgDriver_
AssembleWallHeatTransferAlgorithmDriver* sierra::nalu::EnthalpyEquationSystem::assembleWallHeatTransferAlgDriver_
std::vector<Algorithm *> sierra::nalu::EnthalpyEquationSystem::bcCopyStateAlg_
std::vector<TemperaturePropAlgorithm *> sierra::nalu::EnthalpyEquationSystem::bcEnthalpyFromTemperatureAlg_
std::vector<Algorithm *> sierra::nalu::EnthalpyEquationSystem::bdf2CopyStateAlg_
VectorFieldType* sierra::nalu::EnthalpyEquationSystem::dhdx_
AlgorithmDriver* sierra::nalu::EnthalpyEquationSystem::diffFluxCoeffAlgDriver_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::divQ_

Referenced by register_nodal_fields().

ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::enthalpy_
std::vector<TemperaturePropAlgorithm *> sierra::nalu::EnthalpyEquationSystem::enthalpyFromTemperatureAlg_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::evisc_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::hTmp_
bool sierra::nalu::EnthalpyEquationSystem::isInit_

Referenced by solve_and_update().

bool sierra::nalu::EnthalpyEquationSystem::lowSpeedCompressActive_
const bool sierra::nalu::EnthalpyEquationSystem::managePNG_
const double sierra::nalu::EnthalpyEquationSystem::maximumT_

Referenced by extract_temperature().

const double sierra::nalu::EnthalpyEquationSystem::minimumT_

Referenced by extract_temperature().

const bool sierra::nalu::EnthalpyEquationSystem::outputClippingDiag_

Referenced by extract_temperature().

bool sierra::nalu::EnthalpyEquationSystem::pmrCouplingActive_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::pOld_
ProjectedNodalGradientEquationSystem* sierra::nalu::EnthalpyEquationSystem::projectedNodalGradEqs_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::specHeat_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::temperature_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::thermalCond_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::tvisc_
ScalarFieldType* sierra::nalu::EnthalpyEquationSystem::visc_

Referenced by register_nodal_fields().


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