GRINS-0.6.0
|
Physics class for Axisymmetric Heat Transfer. More...
#include <axisym_heat_transfer.h>
Public Member Functions | |
AxisymmetricHeatTransfer (const std::string &physics_name, const GetPot &input) | |
~AxisymmetricHeatTransfer () | |
virtual void | read_input_options (const GetPot &input) |
Read options from GetPot input file. More... | |
virtual void | init_variables (libMesh::FEMSystem *system) |
Initialization AxisymmetricHeatTransfer variables. More... | |
virtual void | set_time_evolving_vars (libMesh::FEMSystem *system) |
Sets velocity variables to be time-evolving. More... | |
virtual void | init_context (AssemblyContext &context) |
Initialize context for added physics variables. More... | |
virtual void | element_time_derivative (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Time dependent part(s) of physics for element interiors. More... | |
virtual void | side_time_derivative (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Time dependent part(s) of physics for boundaries of elements on the domain boundary. More... | |
virtual void | mass_residual (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiPointer< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
virtual bool | enabled_on_elem (const libMesh::Elem *elem) |
Find if current physics is active on supplied element. More... | |
void | set_is_steady (bool is_steady) |
Sets whether this physics is to be solved with a steady solver or not. More... | |
bool | is_steady () const |
Returns whether or not this physics is being solved with a steady solver. More... | |
virtual void | auxiliary_init (MultiphysicsSystem &system) |
Any auxillary initialization a Physics class may need. More... | |
virtual void | register_postprocessing_vars (const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing) |
Register name of postprocessed quantity with PostProcessedQuantities. More... | |
virtual void | nonlocal_time_derivative (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Time dependent part(s) of physics for scalar variables. More... | |
virtual void | element_constraint (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Constraint part(s) of physics for element interiors. More... | |
virtual void | side_constraint (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Constraint part(s) of physics for boundaries of elements on the domain boundary. More... | |
virtual void | nonlocal_constraint (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Constraint part(s) of physics for scalar variables. More... | |
virtual void | nonlocal_mass_residual (bool compute_jacobian, AssemblyContext &context, CachedValues &cache) |
Mass matrix part(s) for scalar variables. More... | |
void | init_bcs (libMesh::FEMSystem *system) |
void | init_ics (libMesh::FEMSystem *system, libMesh::CompositeFunction< libMesh::Number > &all_ics) |
void | attach_neumann_bound_func (GRINS::NBCContainer &neumann_bcs) |
void | attach_dirichlet_bound_func (const GRINS::DBCContainer &dirichlet_bc) |
virtual void | compute_element_time_derivative_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_side_time_derivative_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_nonlocal_time_derivative_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_element_constraint_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_side_constraint_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_nonlocal_constraint_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_mass_residual_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_nonlocal_mass_residual_cache (const AssemblyContext &context, CachedValues &cache) |
virtual void | compute_postprocessed_quantity (unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value) |
BCHandlingBase * | get_bc_handler () |
ICHandlingBase * | get_ic_handler () |
virtual void | set_parameter (libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default) |
Each subclass can simultaneously read a parameter value from. More... | |
Protected Attributes | |
unsigned int | _dim |
Physical dimension of problem. More... | |
VariableIndex | _T_var |
Index for temperature field. More... | |
VariableIndex | _u_r_var |
Index for r-velocity field. More... | |
VariableIndex | _u_z_var |
Index for z-velocity field. More... | |
std::string | _T_var_name |
Name for temperature variable. More... | |
std::string | _u_r_var_name |
Name of r-velocity. More... | |
std::string | _u_z_var_name |
Name of z-velocity. More... | |
GRINSEnums::FEFamily | _T_FE_family |
Element type, read from input. More... | |
GRINSEnums::FEFamily | _V_FE_family |
GRINSEnums::Order | _T_order |
Temperature element order, read from input. More... | |
GRINSEnums::Order | _V_order |
libMesh::Number | _rho |
Material parameters, read from input. More... | |
libMesh::Number | _Cp |
Conductivity | _k |
const PhysicsName | _physics_name |
Name of the physics object. Used for reading physics specific inputs. More... | |
GRINS::BCHandlingBase * | _bc_handler |
GRINS::ICHandlingBase * | _ic_handler |
std::set< libMesh::subdomain_id_type > | _enabled_subdomains |
Subdomains on which the current Physics class is enabled. More... | |
bool | _is_axisymmetric |
Static Protected Attributes | |
static bool | _is_steady = false |
Caches whether or not the solver that's being used is steady or not. More... | |
Private Member Functions | |
AxisymmetricHeatTransfer () | |
Physics class for Axisymmetric Heat Transfer.
Definition at line 46 of file axisym_heat_transfer.h.
GRINS::AxisymmetricHeatTransfer< Conductivity >::AxisymmetricHeatTransfer | ( | const std::string & | physics_name, |
const GetPot & | input | ||
) |
Definition at line 47 of file axisym_heat_transfer.C.
References GRINS::Physics::_bc_handler, GRINS::Physics::_ic_handler, and GRINS::AxisymmetricHeatTransfer< Conductivity >::read_input_options().
GRINS::AxisymmetricHeatTransfer< Conductivity >::~AxisymmetricHeatTransfer | ( | ) |
Definition at line 62 of file axisym_heat_transfer.C.
|
private |
|
inherited |
Definition at line 150 of file physics.C.
References GRINS::Physics::_bc_handler, and GRINS::BCHandlingBase::attach_dirichlet_bound_func().
|
inherited |
Definition at line 144 of file physics.C.
References GRINS::Physics::_bc_handler, and GRINS::BCHandlingBase::attach_neumann_bound_func().
|
virtualinherited |
Any auxillary initialization a Physics class may need.
This is called after all variables are added, so this method can safely query the MultiphysicsSystem about variable information.
|
virtualinherited |
Definition at line 185 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::element_constraint().
|
virtualinherited |
Reimplemented in GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >, and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >.
Definition at line 167 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::element_time_derivative().
|
virtualinherited |
Definition at line 203 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::mass_residual().
|
virtualinherited |
Definition at line 197 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_constraint().
|
virtualinherited |
Definition at line 209 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_mass_residual().
|
virtualinherited |
Definition at line 179 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_time_derivative().
|
virtualinherited |
Reimplemented in GRINS::IncompressibleNavierStokes< Viscosity >, GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >, GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >, GRINS::HeatTransfer< Conductivity >, GRINS::ParsedVelocitySource< Viscosity >, GRINS::VelocityPenalty< Viscosity >, GRINS::ElasticMembrane< StressStrainLaw >, and GRINS::ElasticCable< StressStrainLaw >.
|
virtualinherited |
Definition at line 191 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::side_constraint().
|
virtualinherited |
Reimplemented in GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >.
Definition at line 173 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::side_time_derivative().
|
virtualinherited |
Constraint part(s) of physics for element interiors.
Reimplemented in GRINS::IncompressibleNavierStokes< Viscosity >, GRINS::AveragedTurbineAdjointStabilization< Viscosity >, GRINS::VelocityDragAdjointStabilization< Viscosity >, GRINS::AveragedFanAdjointStabilization< Viscosity >, GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >, GRINS::ElasticMembrane< StressStrainLaw >, GRINS::Stokes< Viscosity >, GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >, GRINS::ParsedVelocitySourceAdjointStabilization< Viscosity >, GRINS::VelocityPenaltyAdjointStabilization< Viscosity >, GRINS::IncompressibleNavierStokesAdjointStabilization< Viscosity >, and GRINS::IncompressibleNavierStokesSPGSMStabilization< Viscosity >.
Definition at line 236 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::element_constraint().
|
virtual |
Time dependent part(s) of physics for element interiors.
Reimplemented from GRINS::Physics.
Definition at line 146 of file axisym_heat_transfer.C.
|
virtualinherited |
Find if current physics is active on supplied element.
Definition at line 83 of file physics.C.
References GRINS::Physics::_enabled_subdomains.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 118 of file physics.C.
References GRINS::Physics::_bc_handler, GRINS::BCHandlingBase::init_bc_data(), GRINS::BCHandlingBase::init_dirichlet_bc_func_objs(), GRINS::BCHandlingBase::init_dirichlet_bcs(), and GRINS::BCHandlingBase::init_periodic_bcs().
|
virtual |
Initialize context for added physics variables.
Reimplemented from GRINS::Physics.
Definition at line 124 of file axisym_heat_transfer.C.
|
inherited |
Definition at line 133 of file physics.C.
References GRINS::Physics::_ic_handler, and GRINS::ICHandlingBase::init_ic_data().
|
virtual |
Initialization AxisymmetricHeatTransfer variables.
Add velocity and pressure variables to system.
Implements GRINS::Physics.
Definition at line 101 of file axisym_heat_transfer.C.
|
inherited |
Returns whether or not this physics is being solved with a steady solver.
Definition at line 103 of file physics.C.
References GRINS::Physics::_is_steady.
Referenced by GRINS::Physics::set_is_steady().
|
virtual |
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part.
Reimplemented from GRINS::Physics.
Definition at line 299 of file axisym_heat_transfer.C.
|
virtualinherited |
Constraint part(s) of physics for scalar variables.
Reimplemented in GRINS::ScalarODE.
Definition at line 250 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_constraint().
|
virtualinherited |
Mass matrix part(s) for scalar variables.
Reimplemented in GRINS::ScalarODE, and GRINS::AveragedTurbine< Viscosity >.
Definition at line 264 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_mass_residual().
|
virtualinherited |
Time dependent part(s) of physics for scalar variables.
Reimplemented in GRINS::AveragedTurbine< Viscosity >, and GRINS::ScalarODE.
Definition at line 229 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::nonlocal_time_derivative().
|
virtual |
Read options from GetPot input file.
Reimplemented from GRINS::Physics.
Definition at line 68 of file axisym_heat_transfer.C.
References GRINS::axisymmetric_heat_transfer, GRINS::incompressible_navier_stokes, GRINS::T_var_name_default, GRINS::u_r_var_name_default, and GRINS::u_z_var_name_default.
Referenced by GRINS::AxisymmetricHeatTransfer< Conductivity >::AxisymmetricHeatTransfer().
|
virtual |
Each subclass will register its copy of an independent.
Reimplemented from GRINS::ParameterUser.
Definition at line 372 of file axisym_heat_transfer.C.
References GRINS::ParameterUser::register_parameter().
|
virtualinherited |
Register name of postprocessed quantity with PostProcessedQuantities.
Each Physics class will need to cache an unsigned int corresponding to each postprocessed quantity. This will be used in computing the values and putting them in the CachedVariables object.
Reimplemented in GRINS::ParsedVelocitySource< Viscosity >, GRINS::VelocityPenalty< Viscosity >, GRINS::IncompressibleNavierStokes< Viscosity >, GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >, GRINS::HeatTransfer< Conductivity >, GRINS::ElasticCable< StressStrainLaw >, GRINS::ElasticMembrane< StressStrainLaw >, and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >.
|
inherited |
Sets whether this physics is to be solved with a steady solver or not.
Since the member variable is static, only needs to be called on a single physics.
Definition at line 97 of file physics.C.
References GRINS::Physics::_is_steady, and GRINS::Physics::is_steady().
|
virtualinherited |
Each subclass can simultaneously read a parameter value from.
Definition at line 35 of file parameter_user.C.
References GRINS::ParameterUser::_my_name, and GRINS::ParameterUser::_my_parameters.
Referenced by GRINS::AveragedFanAdjointStabilization< Viscosity >::AveragedFanAdjointStabilization(), GRINS::AveragedTurbineAdjointStabilization< Viscosity >::AveragedTurbineAdjointStabilization(), GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >::BoussinesqBuoyancyAdjointStabilization(), GRINS::BoussinesqBuoyancyBase::BoussinesqBuoyancyBase(), GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::BoussinesqBuoyancySPGSMStabilization(), GRINS::ConstantConductivity::ConstantConductivity(), GRINS::ConstantPrandtlConductivity::ConstantPrandtlConductivity(), GRINS::ConstantSourceFunction::ConstantSourceFunction(), GRINS::ConstantSourceTerm::ConstantSourceTerm(), GRINS::ConstantSpecificHeat::ConstantSpecificHeat(), GRINS::ConstantViscosity::ConstantViscosity(), GRINS::ElasticCable< StressStrainLaw >::ElasticCable(), GRINS::ElasticCableConstantGravity::ElasticCableConstantGravity(), GRINS::ElasticMembrane< StressStrainLaw >::ElasticMembrane(), GRINS::ElasticMembraneConstantPressure::ElasticMembraneConstantPressure(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransferBase< Conductivity >::HeatTransferBase(), GRINS::IncompressibleNavierStokesBase< Viscosity >::IncompressibleNavierStokesBase(), GRINS::AverageNusseltNumber::init(), GRINS::MooneyRivlin::MooneyRivlin(), GRINS::ReactingLowMachNavierStokesBase< Mixture, Evaluator >::ReactingLowMachNavierStokesBase(), GRINS::HookesLaw1D::read_input_options(), GRINS::HookesLaw::read_input_options(), GRINS::AxisymmetricBoussinesqBuoyancy::read_input_options(), and GRINS::VelocityDragAdjointStabilization< Viscosity >::VelocityDragAdjointStabilization().
|
virtual |
Sets velocity variables to be time-evolving.
Reimplemented from GRINS::Physics.
Definition at line 116 of file axisym_heat_transfer.C.
|
virtualinherited |
Constraint part(s) of physics for boundaries of elements on the domain boundary.
Reimplemented in GRINS::IncompressibleNavierStokes< Viscosity >, GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >, and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >.
Definition at line 243 of file physics.C.
Referenced by GRINS::MultiphysicsSystem::side_constraint().
|
virtual |
Time dependent part(s) of physics for boundaries of elements on the domain boundary.
Reimplemented from GRINS::Physics.
Definition at line 273 of file axisym_heat_transfer.C.
|
protectedinherited |
Definition at line 256 of file physics.h.
Referenced by GRINS::Physics::attach_dirichlet_bound_func(), GRINS::Physics::attach_neumann_bound_func(), GRINS::AxisymmetricHeatTransfer< Conductivity >::AxisymmetricHeatTransfer(), GRINS::ElasticCable< StressStrainLaw >::ElasticCable(), GRINS::ElasticMembrane< StressStrainLaw >::ElasticMembrane(), GRINS::Physics::get_bc_handler(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransfer< Conductivity >::HeatTransfer(), GRINS::IncompressibleNavierStokes< Viscosity >::IncompressibleNavierStokes(), GRINS::Physics::init_bcs(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::LowMachNavierStokes(), GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::ReactingLowMachNavierStokes(), GRINS::SpalartAllmaras< Viscosity >::SpalartAllmaras(), GRINS::Stokes< Viscosity >::Stokes(), and GRINS::Physics::~Physics().
|
protected |
Definition at line 130 of file axisym_heat_transfer.h.
|
protected |
Physical dimension of problem.
Definition at line 97 of file axisym_heat_transfer.h.
|
protectedinherited |
Subdomains on which the current Physics class is enabled.
Definition at line 261 of file physics.h.
Referenced by GRINS::Physics::enabled_on_elem(), and GRINS::Physics::read_input_options().
|
protectedinherited |
Definition at line 258 of file physics.h.
Referenced by GRINS::AveragedTurbine< Viscosity >::AveragedTurbine(), GRINS::AxisymmetricHeatTransfer< Conductivity >::AxisymmetricHeatTransfer(), GRINS::ElasticCable< StressStrainLaw >::ElasticCable(), GRINS::ElasticMembrane< StressStrainLaw >::ElasticMembrane(), GRINS::Physics::get_ic_handler(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransfer< Conductivity >::HeatTransfer(), GRINS::IncompressibleNavierStokes< Viscosity >::IncompressibleNavierStokes(), GRINS::Physics::init_ics(), GRINS::LowMachNavierStokes< Viscosity, SpecificHeat, ThermalConductivity >::LowMachNavierStokes(), GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::ReactingLowMachNavierStokes(), GRINS::ScalarODE::ScalarODE(), GRINS::SpalartAllmaras< Viscosity >::SpalartAllmaras(), GRINS::Stokes< Viscosity >::Stokes(), and GRINS::Physics::~Physics().
|
protectedinherited |
Definition at line 268 of file physics.h.
Referenced by GRINS::HeatTransfer< Conductivity >::HeatTransfer(), GRINS::IncompressibleNavierStokes< Viscosity >::IncompressibleNavierStokes(), GRINS::Physics::Physics(), and GRINS::ReactingLowMachNavierStokes< Mixture, Evaluator >::ReactingLowMachNavierStokes().
|
staticprotectedinherited |
Caches whether or not the solver that's being used is steady or not.
This is need, for example, in flow stabilization as the tau terms change depending on whether the solver is steady or unsteady.
Definition at line 266 of file physics.h.
Referenced by GRINS::Physics::is_steady(), and GRINS::Physics::set_is_steady().
|
protected |
Definition at line 132 of file axisym_heat_transfer.h.
|
protectedinherited |
Name of the physics object. Used for reading physics specific inputs.
We use a reference because the physics names are const global objects in GRINS namespace
No, we use a copy, because otherwise as soon as the memory in std::set<std::string> requested_physics gets overwritten we get in trouble.
Definition at line 254 of file physics.h.
Referenced by GRINS::SourceTermBase::parse_var_info(), and GRINS::Physics::read_input_options().
|
protected |
Material parameters, read from input.
Definition at line 130 of file axisym_heat_transfer.h.
|
protected |
Element type, read from input.
Definition at line 120 of file axisym_heat_transfer.h.
|
protected |
Temperature element order, read from input.
Definition at line 123 of file axisym_heat_transfer.h.
|
protected |
Index for temperature field.
Definition at line 101 of file axisym_heat_transfer.h.
|
protected |
Name for temperature variable.
Definition at line 111 of file axisym_heat_transfer.h.
|
protected |
Index for r-velocity field.
Definition at line 104 of file axisym_heat_transfer.h.
|
protected |
Name of r-velocity.
Definition at line 114 of file axisym_heat_transfer.h.
|
protected |
Index for z-velocity field.
Definition at line 107 of file axisym_heat_transfer.h.
|
protected |
Name of z-velocity.
Definition at line 117 of file axisym_heat_transfer.h.
|
protected |
Definition at line 120 of file axisym_heat_transfer.h.
|
protected |
Definition at line 123 of file axisym_heat_transfer.h.