Line data Source code
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 : 10 : #pragma once 11 : 12 : namespace THM 13 : { 14 : static const std::string AREA = "A"; 15 : static const std::string AREA_LINEAR = "A_linear"; 16 : static const std::string DENSITY = "rho"; 17 : static const std::string DIRECTION = "direction"; 18 : static const std::string DYNAMIC_VISCOSITY = "mu"; 19 : static const std::string FRICTION_FACTOR_DARCY = "f_D"; 20 : static const std::string HEAT_FLUX_WALL = "q_wall"; 21 : static const std::string HEAT_FLUX_PERIMETER = "P_hf"; 22 : static const std::string HEAT_TRANSFER_COEFFICIENT_WALL = "Hw"; 23 : static const std::string HYDRAULIC_DIAMETER = "D_h"; 24 : static const std::string MASS_DIFFUSION_COEFFICIENT = "mass_diffusion_coefficient"; 25 : static const std::string MASS_FRACTION = "mass_fraction"; 26 : static const std::string NUSSELT_NUMBER = "Nu"; 27 : static const std::string PRESSURE = "p"; 28 : static const std::string REYNOLDS_NUMBER = "Re"; 29 : static const std::string RHOA = "rhoA"; 30 : static const std::string RHOEA = "rhoEA"; 31 : static const std::string RHOUA = "rhouA"; 32 : static const std::string SOUND_SPEED = "c"; 33 : static const std::string SPECIFIC_ENTHALPY = "h"; 34 : static const std::string SPECIFIC_HEAT_CONSTANT_PRESSURE = "cp"; 35 : static const std::string SPECIFIC_HEAT_CONSTANT_VOLUME = "cv"; 36 : static const std::string SPECIFIC_INTERNAL_ENERGY = "e"; 37 : static const std::string SPECIFIC_TOTAL_ENTHALPY = "H"; 38 : static const std::string SPECIFIC_VOLUME = "v"; 39 : static const std::string TEMPERATURE = "T"; 40 : static const std::string TEMPERATURE_WALL = "T_wall"; 41 : static const std::string THERMAL_CONDUCTIVITY = "k"; 42 : static const std::string UNITY = "unity"; 43 : static const std::string VELOCITY = "vel"; 44 : static const std::string VELOCITY_X = "vel_x"; 45 : static const std::string VELOCITY_Y = "vel_y"; 46 : static const std::string VELOCITY_Z = "vel_z"; 47 : static const std::string XIRHOA = "xirhoA"; 48 : 49 : template <bool is_ad> 50 : std::string 51 : functorMaterialPropertyName(const std::string & base) 52 : { 53 : if constexpr (is_ad) 54 : return base + "_ad"; 55 : else 56 26754 : return base + "_nonad"; 57 : } 58 : }