https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PNSFVSolidHeatTransferPhysics.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
14#include "NSFVBase.h"
15
17registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_variable");
19registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_fv_kernel");
20registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_fv_bc");
21registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_material");
22registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_preconditioning");
23
26{
28 params.addClassDescription("Define the Navier Stokes porous media solid energy equation");
29
30 // These boundary conditions parameters are not implemented yet
31 params.suppressParameter<std::vector<BoundaryName>>("fixed_convection_boundaries");
32 params.suppressParameter<std::vector<MooseFunctorName>>("fixed_convection_T_fluid");
33 params.suppressParameter<std::vector<MooseFunctorName>>("fixed_convection_htc");
34
35 // Swap out some parameters, base class is not specific to porous media
36 // Variables
37 params.renameParam("temperature_name",
38 "solid_temperature_variable",
39 "Name of the solid phase temperature variable");
40 params.set<VariableName>("solid_temperature_variable") = NS::T_solid;
41 params.addParam<NonlinearVariableName>(
42 "fluid_temperature_variable", NS::T_fluid, "Name of the fluid temperature variable");
43 MooseEnum face_interpol_types("average skewness-corrected", "average");
44 params.addParam<MooseEnum>(
45 "solid_temperature_face_interpolation",
46 face_interpol_types,
47 "The numerical scheme to interpolate the temperature/energy to the "
48 "face for conduction (separate from the advected quantity interpolation).");
49 params.addParam<bool>(
50 "solid_temperature_two_term_bc_expansion",
51 true,
52 "If a two-term Taylor expansion is needed for the determination of the boundary values"
53 "of the temperature/energy.");
54
55 // Porous media parameters
56 // TODO: ensure consistency with fluid energy physics
57 params.transferParam<MooseFunctorName>(NSFVBase::validParams(), "porosity");
58
59 // Material properties
60 params.suppressParameter<MaterialPropertyName>("specific_heat");
61 params.addParam<MooseFunctorName>("cp_solid", NS::cp + "_solid", "Specific heat functor");
62 params.suppressParameter<MaterialPropertyName>("density");
63 params.addParam<MooseFunctorName>("rho_solid", NS::density + "_solid", "Density functor");
64 params.addParam<std::vector<std::vector<SubdomainName>>>(
65 "thermal_conductivity_blocks", "Blocks which each thermal conductivity is defined");
66 params.suppressParameter<MooseFunctorName>("thermal_conductivity_functor");
67 params.addRequiredParam<std::vector<MooseFunctorName>>(
68 "thermal_conductivity_solid",
69 "Thermal conductivity, which may have different names depending on the subdomain");
70
71 // Ambient convection with the liquid phase parameters
72 params.addParam<std::vector<std::vector<SubdomainName>>>(
73 "ambient_convection_blocks", {}, "The blocks where the ambient convection is present.");
74 params.addParam<std::vector<MooseFunctorName>>(
75 "ambient_convection_alpha",
76 {},
77 "The heat exchange coefficients for each block in 'ambient_convection_blocks'.");
78 params.addParam<std::vector<MooseFunctorName>>(
79 "ambient_convection_temperature",
81 "The fluid temperature for each block in 'ambient_convection_blocks'.");
82
83 // Heat source in solid porous medium parameters
84 params.addParam<std::vector<SubdomainName>>("external_heat_source_blocks",
85 std::vector<SubdomainName>(),
86 "The blocks where the heat source is present.");
87 params.addParam<MooseFunctorName>(
88 "external_heat_source",
89 "The name of a functor which contains the external heat source for the energy equation.");
90 params.addParam<Real>(
91 "external_heat_source_coeff", 1.0, "Multiplier for the coupled heat source term.");
92 params.addParam<bool>("use_external_enthalpy_material",
93 false,
94 "To indicate if the enthalpy material is set up outside of the action.");
95
96 params.suppressParameter<VariableName>("heat_source_var");
97 params.suppressParameter<std::vector<SubdomainName>>("heat_source_blocks");
98
99 // Numerical scheme
100 params.addParam<unsigned short>(
101 "ghost_layers", 2, "Number of layers of elements to ghost near process domain boundaries");
102 // Preconditioning has not been derived for NSFV + porous heat transfer at this point
103 MooseEnum pc_options("default none", "none");
104 params.set<MooseEnum>("preconditioning") = pc_options;
105 params.suppressParameter<MooseEnum>("preconditioning");
106
107 // Parameter groups
108 params.addParamNamesToGroup("rho_solid cp_solid thermal_conductivity_solid "
109 "thermal_conductivity_blocks use_external_enthalpy_material",
110 "Material properties");
111 params.addParamNamesToGroup("ambient_convection_alpha ambient_convection_blocks "
112 "ambient_convection_temperature",
113 "Ambient convection");
115 "external_heat_source_blocks external_heat_source external_heat_source_coeff",
116 "Solid porous medium heat source");
118 "solid_temperature_face_interpolation solid_temperature_two_term_bc_expansion",
119 "Numerical scheme");
120 params.addParamNamesToGroup("ghost_layers", "Advanced");
121
122 return params;
123}
124
126 : HeatConductionFV(parameters),
127 _solid_temperature_name(getParam<VariableName>("solid_temperature_variable")),
128 _fluid_temperature_name(getParam<NonlinearVariableName>("fluid_temperature_variable")),
129 _porosity_name(getParam<MooseFunctorName>(NS::porosity)),
130 _density_name(getParam<MooseFunctorName>("rho_solid")),
131 _specific_heat_name(getParam<MooseFunctorName>("cp_solid")),
132 _thermal_conductivity_blocks(
133 parameters.isParamValid("thermal_conductivity_blocks")
134 ? getParam<std::vector<std::vector<SubdomainName>>>("thermal_conductivity_blocks")
135 : std::vector<std::vector<SubdomainName>>()),
136 _thermal_conductivity_name(
137 getParam<std::vector<MooseFunctorName>>("thermal_conductivity_solid")),
138 _ambient_convection_blocks(
139 getParam<std::vector<std::vector<SubdomainName>>>("ambient_convection_blocks")),
140 _ambient_convection_alpha(getParam<std::vector<MooseFunctorName>>("ambient_convection_alpha")),
141 _ambient_temperature(getParam<std::vector<MooseFunctorName>>("ambient_convection_temperature"))
142{
144
145 // Parameter checks
146 if (getParam<std::vector<MooseFunctorName>>("ambient_convection_temperature").size() != 1)
147 checkVectorParamsSameLengthIfSet<MooseFunctorName, MooseFunctorName>(
148 "ambient_convection_alpha", "ambient_convection_temperature");
149 checkSecondParamSetOnlyIfFirstOneSet("external_heat_source", "external_heat_source_coeff");
151 paramError("solid_temperature_variable",
152 "Solid and fluid cannot share the same temperature variable");
153 // More parameter checks in ambient convection creation
154}
155
156void
158{
159 // Dont add if the user already defined the variable
161 /*error_if_aux=*/true))
163 getProblem().getVariable(0, _solid_temperature_name).blocks());
164 else
165 {
166 auto params = getFactory().getValidParams("INSFVEnergyVariable");
167 params.set<std::vector<Real>>("scaling") = {getParam<Real>("temperature_scaling")};
168 params.set<MooseEnum>("face_interp_method") =
169 getParam<MooseEnum>("solid_temperature_face_interpolation");
170 params.set<bool>("two_term_boundary_expansion") =
171 getParam<bool>("solid_temperature_two_term_bc_expansion");
172 addSharedSolverVariable("INSFVEnergyVariable", _solid_temperature_name, params);
173 }
174}
175
176void
178{
179 // Check this physics against others
181
182 if (isTransient())
184
186 if (getParam<std::vector<MooseFunctorName>>("ambient_convection_alpha").size())
188 if (isParamValid("external_heat_source"))
190}
191
192void
194{
195 const auto kernel_type = "PINSFVEnergyTimeDerivative";
196 const auto kernel_name = prefix() + "pins_solid_energy_time";
197
198 InputParameters params = getFactory().getValidParams(kernel_type);
199 assignBlocks(params, _blocks);
200 params.set<NonlinearVariableName>("variable") = _solid_temperature_name;
201 params.set<MooseFunctorName>(NS::density) = _density_name;
202
203 // The '_solid' suffix has been declared when creating the INSFVEnthalpyMaterial
204 // only for thermal functor material properties
205 // Using this derivative we can model non-constant specific heat
207 /*thread_id=*/0))
208 params.set<MooseFunctorName>(NS::time_deriv(NS::specific_enthalpy)) =
210 else
211 params.set<MooseFunctorName>(NS::cp) = _specific_heat_name;
212
213 params.set<MooseFunctorName>(NS::porosity) = _porosity_name;
214 // If modeling a variable density
216 /*thread_id=*/0))
217 {
218 params.set<MooseFunctorName>(NS::time_deriv(NS::density)) = NS::time_deriv(_density_name);
219 params.set<MooseFunctorName>(NS::specific_enthalpy) = NS::specific_enthalpy + "_solid";
220 }
221 params.set<bool>("is_solid") = true;
222
223 getProblem().addFVKernel(kernel_type, kernel_name, params);
224}
225
226void
228{
229 const auto vector_conductivity = processThermalConductivity();
230
231 // The solid conductivity is an effective conductivity which already includes the solid fraction,
232 // so the conduction term does not involve the porosity
233 const auto kernel_type = vector_conductivity ? "FVAnisotropicDiffusion" : "FVDiffusion";
234
235 InputParameters params = getFactory().getValidParams(kernel_type);
236 params.set<NonlinearVariableName>("variable") = _solid_temperature_name;
237
238 // Set block restrictions
239 const bool combined = _thermal_conductivity_blocks.size() > 1;
240 std::vector<SubdomainName> thermal_conductivity_blocks;
241 for (const auto & block_group : _thermal_conductivity_blocks)
242 thermal_conductivity_blocks.insert(thermal_conductivity_blocks.end(),
243 std::make_move_iterator(block_group.begin()),
244 std::make_move_iterator(block_group.end()));
245 const auto block_names =
246 _thermal_conductivity_blocks.size() ? thermal_conductivity_blocks : _blocks;
247 assignBlocks(params, block_names);
248
249 // Set thermal conductivity
250 if (combined)
251 params.set<MooseFunctorName>("coeff") = prefix() + "combined_thermal_conductivity";
252 else
253 params.set<MooseFunctorName>("coeff") = _thermal_conductivity_name[0];
254
255 getProblem().addFVKernel(kernel_type, prefix() + "pins_energy_diffusion", params);
256}
257
258void
260{
261 const auto num_convection_blocks = _ambient_convection_blocks.size();
262 const auto num_used_blocks = num_convection_blocks ? num_convection_blocks : 1;
264
265 const auto kernel_type = "PINSFVEnergyAmbientConvection";
266 InputParameters params = getFactory().getValidParams(kernel_type);
267 params.set<NonlinearVariableName>("variable") = _solid_temperature_name;
268 params.set<MooseFunctorName>(NS::T_solid) = _solid_temperature_name;
269 params.set<bool>("is_solid") = true;
270
271 for (const auto block_i : make_range(num_used_blocks))
272 {
273 std::string block_name = "";
274 if (num_convection_blocks)
275 {
276 params.set<std::vector<SubdomainName>>("block") = _ambient_convection_blocks[block_i];
277 block_name = Moose::stringify(_ambient_convection_blocks[block_i]);
278 }
279 else
280 {
281 assignBlocks(params, _blocks);
282 block_name = std::to_string(block_i);
283 }
284
285 params.set<MooseFunctorName>("h_solid_fluid") = _ambient_convection_alpha[block_i];
286 if (_ambient_temperature.size() > 1)
287 params.set<MooseFunctorName>(NS::T_fluid) = _ambient_temperature[block_i];
288 else
289 params.set<MooseFunctorName>(NS::T_fluid) = _ambient_temperature[0];
290
291 getProblem().addFVKernel(kernel_type, prefix() + "ambient_convection_" + block_name, params);
292 }
293}
294
295void
297{
298 const std::string kernel_type = "FVCoupledForce";
299 InputParameters params = getFactory().getValidParams(kernel_type);
300 params.set<NonlinearVariableName>("variable") = _solid_temperature_name;
301 const auto & source_blocks = getParam<std::vector<SubdomainName>>("external_heat_source_blocks");
302 if (source_blocks.size())
303 assignBlocks(params, source_blocks);
304 else
305 assignBlocks(params, _blocks);
306 params.set<MooseFunctorName>("v") = getParam<MooseFunctorName>("external_heat_source");
307 params.set<Real>("coef") = getParam<Real>("external_heat_source_coeff");
308
309 getProblem().addFVKernel(kernel_type, prefix() + "external_heat_source", params);
310}
311
312void
314{
315 const auto num_convection_blocks = _ambient_convection_blocks.size();
316 const auto num_used_blocks = num_convection_blocks ? num_convection_blocks : 1;
317
318 // Check parameter. Late check in case the block was added by a Component
319 if (num_used_blocks != _ambient_convection_alpha.size())
320 paramError("ambient_convection_alpha",
321 "Number of ambient convection heat transfer coefficients (" +
322 std::to_string(_ambient_convection_alpha.size()) +
323 ") should match the number of "
324 "blocks (" +
325 std::to_string(num_convection_blocks) + ") each HTC is defined on.");
326}
327
328bool
330{
331 if (isParamValid("thermal_conductivity_blocks"))
332 checkBlockwiseConsistency<MooseFunctorName>("thermal_conductivity_blocks",
333 {"thermal_conductivity_solid"});
334 bool have_scalar = false;
335 bool have_vector = false;
336
337 for (const auto i : index_range(_thermal_conductivity_name))
338 {
339 // First, check if the name is just a number (only in case of isotropic conduction)
341 have_scalar = true;
342 // Now we determine what kind of functor we are dealing with
343 else
344 {
346 /*thread_id=*/0))
347 have_scalar = true;
348 else
349 {
351 /*thread_id=*/0))
352 have_vector = true;
354 /*thread_id=*/0))
355 paramError("thermal_conductivity_solid",
356 "We only allow functor of type (AD)Real or (AD)RealVectorValue for thermal "
357 "conductivity! Functor '" +
358 _thermal_conductivity_name[i] + "' is not of the requested type.");
359 else
360 // If another Physics is creating this functor, we could be running into an order of
361 // creation problem
362 paramWarning("thermal_conductivity_solid",
363 "Functor '" + _thermal_conductivity_name[i] +
364 "' was not found in the Problem. Did you mispell it?");
365 }
366 }
367 }
368
369 if (have_vector && (have_vector == have_scalar))
370 paramError("thermal_conductivity_solid",
371 "The entries on thermal conductivity shall either be scalars or vectors, mixing "
372 "them is not supported!");
373 return have_vector;
374}
375
376void
378{
379 if (!getParam<bool>("use_external_enthalpy_material"))
380 {
381 InputParameters params = getFactory().getValidParams("INSFVEnthalpyFunctorMaterial");
382 assignBlocks(params, _blocks);
383
384 params.set<MooseFunctorName>(NS::density) = _density_name;
385 params.set<MooseFunctorName>(NS::cp) = _specific_heat_name;
386 params.set<MooseFunctorName>("temperature") = _solid_temperature_name;
387 params.set<MaterialPropertyName>("declare_suffix") = "solid";
388
390 "INSFVEnthalpyFunctorMaterial", prefix() + "ins_enthalpy_material", params);
391 }
392
393 // Combine the functors (combining scalars and vectors is not currently supported)
394 if (_thermal_conductivity_name.size() > 1)
395 {
396 const auto vector_conductivity = processThermalConductivity();
397 const auto combiner_functor = vector_conductivity ? "PiecewiseByBlockVectorFunctorMaterial"
398 : "PiecewiseByBlockFunctorMaterial";
399 InputParameters params = getFactory().getValidParams(combiner_functor);
400 params.set<MooseFunctorName>("prop_name") = prefix() + "combined_thermal_conductivity";
401 std::vector<SubdomainName> blocks_list;
402 std::map<std::string, std::string> blocks_to_functors;
403 for (const auto i : index_range(_thermal_conductivity_name))
404 {
405 for (const auto & block : _thermal_conductivity_blocks[i])
406 {
407 blocks_list.push_back(block);
408 blocks_to_functors.insert(
409 std::pair<std::string, std::string>(block, _thermal_conductivity_name[i]));
410 }
411 }
412 params.set<std::vector<SubdomainName>>("block") = blocks_list;
413 params.set<std::map<std::string, std::string>>("subdomain_to_prop_value") = blocks_to_functors;
414 getProblem().addMaterial(combiner_functor, prefix() + "thermal_conductivity_combiner", params);
415 }
416}
417
420{
421 unsigned short necessary_layers = getParam<unsigned short>("ghost_layers");
422 if (getParam<MooseEnum>("solid_temperature_face_interpolation") == "skewness-corrected")
423 necessary_layers = std::max(necessary_layers, (unsigned short)3);
424
425 // Just an object that has a ghost_layers parameter and performs geometric, algebraic, and
426 // coupling ghosting
427 const std::string kernel_type = "INSFVMixingLengthReynoldsStress";
428 InputParameters params = getFactory().getValidParams(kernel_type);
429 params.template set<unsigned short>("ghost_layers") = necessary_layers;
430
431 return params;
432}
433
434void
436{
437 // Get a pointer to a flow physics and a heat transfer physics on the same blocks, if it exists
438 const WCNSFVFlowPhysicsBase * flow_physics = nullptr;
439 const WCNSFVFluidHeatTransferPhysicsBase * fluid_energy_physics = nullptr;
440 const auto all_flow_physics = getCoupledPhysics<const WCNSFVFlowPhysicsBase>(/*allow_fail=*/true);
441 for (const auto physics : all_flow_physics)
443 physics->name(), physics->blocks(), /*error_if_not_identical=*/false))
444 {
445 if (flow_physics)
446 mooseError("Two Fluid flow physics detected on the same blocks as the solid heat transfer "
447 "physics");
448 flow_physics = physics;
449 }
450 const auto all_fluid_energy_physics =
451 getCoupledPhysics<const WCNSFVFluidHeatTransferPhysicsBase>(/*allow_fail=*/true);
452 for (const auto physics : all_fluid_energy_physics)
454 physics->name(), physics->blocks(), /*error_if_not_identical=*/false))
455 {
456 if (fluid_energy_physics)
457 mooseError("Two fluid heat transfer physics detected on the same blocks as the solid heat "
458 "transfer physics");
459 fluid_energy_physics = physics;
460 }
461
462 if (!fluid_energy_physics && !flow_physics)
463 return;
464
465 // Check that the parameters seem reasonable
466 // Different material properties
467 // TODO: Does this error on numbers?
468 if (flow_physics && flow_physics->densityName() == _density_name)
469 paramError("rho_solid", "Fluid and solid density should be different");
470 if (fluid_energy_physics && fluid_energy_physics->getSpecificHeatName() == _specific_heat_name)
471 paramError("cp_solid", "Fluid and solid specific heat should be different");
472
473 // Check ambient convection parameters
474 if (fluid_energy_physics)
475 {
476 // The blocks should match
477 // We only use a warning in case the blocks are matching, just specified differently
478 // in the vector of vectors
479 auto fluid_convection_blocks = fluid_energy_physics->getAmbientConvectionBlocks();
480 std::sort(fluid_convection_blocks.begin(), fluid_convection_blocks.end());
481 std::vector<std::vector<SubdomainName>> copy_solid_blocks = _ambient_convection_blocks;
482 std::sort(copy_solid_blocks.begin(), copy_solid_blocks.end());
483 if (fluid_convection_blocks != _ambient_convection_blocks)
484 paramWarning("Ambient convection blocks in the solid phase :" +
485 Moose::stringify(_ambient_convection_blocks) + " and in the fluid phase " +
486 Moose::stringify(fluid_convection_blocks) + " do not seem to match.");
487
488 // The coefficients should also match
489 auto fluid_convection_coeffs = fluid_energy_physics->getAmbientConvectionHTCs();
490 fluid_convection_blocks = fluid_energy_physics->getAmbientConvectionBlocks();
491 for (const auto i : index_range(fluid_energy_physics->getAmbientConvectionBlocks()))
492 for (const auto j : index_range(_ambient_convection_blocks))
493 if (fluid_convection_blocks[i] == _ambient_convection_blocks[j] &&
494 fluid_convection_coeffs[i] != _ambient_convection_alpha[j])
495 paramWarning("Ambient convection HTCs in the solid phase :" +
496 Moose::stringify(_ambient_convection_alpha) + " and in the fluid phase " +
497 Moose::stringify(fluid_convection_coeffs) + " do not seem to match.");
498 }
499}
DualNumber< Real, DNDerivativeType, true > ADReal
registerPhysicsBaseTasks("NavierStokesApp", PNSFVSolidHeatTransferPhysics)
registerMooseAction("NavierStokesApp", PNSFVSolidHeatTransferPhysics, "add_variable")
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters &parameters)
virtual void addFVKernel(const std::string &kernel_name, const std::string &name, InputParameters &parameters)
InputParameters getValidParams(const std::string &name) const
Creates all the objects needed to solve the heat conduction equations with a finite volume discretiza...
static InputParameters validParams()
void checkSecondParamSetOnlyIfFirstOneSet(const std::string &param1, const std::string &param2) const
void suppressParameter(const std::string &name)
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
void renameParam(const std::string &old_name, const std::string &new_name, const std::string &new_docstring)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void transferParam(const InputParameters &source_param, const std::string &name, const std::string &new_name="", const std::string &new_description="")
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
void paramWarning(const std::string &param, Args... args) const
void paramError(const std::string &param, Args... args) const
void mooseError(Args &&... args) const
const T & getParam(const std::string &name) const
bool isParamValid(const std::string &name) const
static InputParameters validParams()
Definition NSFVBase.C:378
Creates all the objects needed to solve the porous media solid energy equation.
const MooseFunctorName _porosity_name
Name of the porosity functor (usually material property)
const NonlinearVariableName _fluid_temperature_name
Fluid temperature name.
std::vector< MooseFunctorName > _thermal_conductivity_name
Name of the thermal conductivity functor for each block-group.
std::vector< MooseFunctorName > _ambient_temperature
Name of the solid domain temperature for each block-group.
std::vector< std::vector< SubdomainName > > _ambient_convection_blocks
Vector of subdomain groups where we want to have different ambient convection.
bool processThermalConductivity()
Process thermal conductivity (multiple functor input options are available).
std::vector< std::vector< SubdomainName > > _thermal_conductivity_blocks
Vector of subdomain groups where we want to have different thermal conduction.
virtual InputParameters getAdditionalRMParams() const override
PNSFVSolidHeatTransferPhysics(const InputParameters &parameters)
const NonlinearVariableName _solid_temperature_name
Solid temperature name.
const MooseFunctorName _specific_heat_name
Name of the specific heat functor (usually material property)
std::vector< MooseFunctorName > _ambient_convection_alpha
Name of the ambient convection heat transfer coefficients for each block-group.
const MooseFunctorName _density_name
Name of the density functor (usually material property)
void addPINSSolidEnergyTimeKernels()
Functions adding kernels for the solid energy equation.
void checkAmbientConvectionParameters() const
Check the number of ambient convection heat transfer coefficients against the blocks.
void checkFluidAndSolidHeatTransferPhysicsParameters() const
Battery of additional checks on parameters.
virtual FEProblemBase & getProblem()
Factory & getFactory()
bool checkBlockRestrictionIdentical(const std::string &object_name, const std::vector< SubdomainName > &blocks, const bool error_if_not_identical=true) const
void assignBlocks(InputParameters &params, const std::vector< SubdomainName > &blocks) const
void saveSolverVariableName(const VariableName &var_name)
std::string prefix() const
bool variableExists(const VariableName &var_name, bool error_if_aux) const
void addSharedSolverVariable(const std::string &var_type, const VariableName &var_name, InputParameters params)
bool isTransient() const
std::vector< SubdomainName > _blocks
const std::vector< SubdomainName > & blocks() const
bool hasFunctor(const std::string &name, const THREAD_ID tid) const
bool hasFunctorWithType(const std::string &name, const THREAD_ID tid) const
Base class for Physics which create the Navier Stokes flow equations.
const MooseFunctorName & densityName() const
Return the name of the density functor.
Creates all the objects needed to solve the Navier Stokes energy equation.
const std::vector< MooseFunctorName > & getAmbientConvectionHTCs() const
Name of the ambient convection heat transfer coefficients for each block-group.
const std::vector< std::vector< SubdomainName > > & getAmbientConvectionBlocks() const
Get the ambient convection parameters for parameter checking.
const MooseFunctorName & getSpecificHeatName() const
Get the name of the specific heat material property.
bool parsesToReal(const std::string &input, Real *parsed_real)
std::string stringify(const T &t)
static const std::string density
Definition NS.h:34
static const std::string T_fluid
Definition NS.h:110
static const std::string cp
Definition NS.h:125
static const std::string T_solid
Definition NS.h:111
static const std::string specific_enthalpy
Definition NS.h:69
static const std::string porosity
Definition NS.h:108
std::string time_deriv(const std::string &var)
Definition NS.h:98