9#ifndef vtkFLUENTCFFUtilities_h
10#define vtkFLUENTCFFUtilities_h
13#include <unordered_map>
33const std::unordered_map<std::string, std::string>
FieldsNamesMap = { {
"R",
"density" },
34 {
"P",
"pressure" }, {
"U",
"u velocity" }, {
"V",
"v velocity" }, {
"W",
"w velocity" },
35 {
"T",
"temperature" }, {
"H",
"enthalpy" }, {
"K",
"turb. kinetic energy" },
36 {
"NUT",
"turbulent viscosity for Spalart-Allmaras" },
37 {
"D",
"turb. kinetic energy dissipation rate" }, {
"O",
"specific dissipation rate" },
38 {
"YI",
"species mass fraction" }, {
"IGNITE",
"ignition mass fraction" },
39 {
"PREMIXC_T",
"premixed combustion temperature" },
40 {
"STORAGE_R",
"value of variable nv (generic flow variable)" },
41 {
"POR",
"porosity of fluid cell" },
42 {
"DUAL_ZN_POROSITY",
"porosity of fluid at the dual cell zone region" },
43 {
"STRESS_RATE_MAG",
"strain rate magnitude" }, {
"DUDX",
"velocity derivative" },
44 {
"DUDY",
"velocity derivative" }, {
"DUDZ",
"velocity derivative" },
45 {
"DVDX",
"velocity derivative" }, {
"DVDY",
"velocity derivative" },
46 {
"DVDZ",
"velocity derivative" }, {
"DWDX",
"velocity derivative" },
47 {
"DWDY",
"velocity derivative" }, {
"DWDZ",
"velocity derivative" },
48 {
"MU_L",
"laminar viscosity" }, {
"MU_T",
"turbulent viscosity" },
49 {
"MU_EFF",
"effective viscosity" }, {
"K_L",
"thermal conductivity" },
50 {
"K_T",
"turbulent thermal conductivity" }, {
"K_EFF",
"effective thermal conductivity" },
51 {
"DIFF_L",
"laminar species diffusivity" }, {
"DIFF_EFF",
"effective species diffusivity" },
52 {
"CP",
"specific heat" }, {
"RGAS",
"universal gas constant/molecular weight" },
53 {
"FMEAN",
"primary mean mixture fraction" }, {
"FMEAN2",
"secondary mean mixture fraction" },
54 {
"FVAR",
"primary mixture fraction variance" },
55 {
"FVAR2",
"secondary mixture fraction variance" }, {
"PREMIXC",
"reaction progress variable" },
56 {
"LAM_FLAME_SPEED",
"laminar flame speed" }, {
"SCAT_COEFF",
"scattering coefficient" },
57 {
"ABS_COEFF",
"absorption coefficient" }, {
"CRITICAL_STRAIN_RATE",
"critical strain rate" },
58 {
"LIQF",
"liquid fraction in a cell" }, {
"POLLUT",
"pollutant species mass fraction" },
59 {
"RUU",
"uu Reynolds stress" }, {
"RVV",
"vv Reynolds stress" }, {
"RWW",
"ww Reynolds stress" },
60 {
"RUV",
"uv Reynolds stress" }, {
"RVW",
"vw Reynolds stress" }, {
"RUW",
"uw Reynolds stress" },
61 {
"VOF",
"volume fraction" }, {
"PHI",
"potential value" },
62 {
"ELEC_COND",
"electrical conductivity" },
63 {
"OVER_POTENTIAL",
"over-potential for Butler-Volmer equation in electrolysis model (V)" },
64 {
"OSMOTIC_DRAG",
"osmotic drag source terms (kg/m3 s)" },
65 {
"WATERCONTENT",
"water content (-)" }, {
"TRANSFER_CURRENT",
"transfer current rate (A/m3)" },
66 {
"DUAL_ELEC_COND",
"ionic conductivity" }, {
"JOULE_HEATING",
"Joule heating rate (W/m3)" },
67 {
"DPMS_MOM_S",
"momentum source explicit" }, {
"DPMS_MOM_AP",
"momentum source implicit" },
68 {
"DPMS_WSWIRL_S",
"momentum source swirl component explicit" },
69 {
"DPMS_WSWIRL_AP",
"momentum source swirl component implicit" },
70 {
"DPMS_ENERGY",
"energy source explicit" }, {
"DPMS_ENERGY_AP",
"energy source implicit" },
71 {
"DPMS_YI",
"species mass source explicit" }, {
"DPMS_YI_AP",
"species mass source implicit" },
72 {
"DPMS_REACTION_RATE_POST",
"reaction rates of particle" },
73 {
"DPMS_VAP_PER_MAT",
"vaporization mass source" },
74 {
"DPMS_DEVOL_PER_MAT",
"devolatilization mass source" },
75 {
"DPMS_BURN_PER_MAT",
"burnout mass source" }, {
"DPMS_PDF",
"mass source of pdf stream 1" },
76 {
"DPMS_EMISS",
"particles emissivity" }, {
"DPMS_ABS",
"particles absorption coefficient" },
77 {
"DPMS_SCAT",
"particles scattering coefficient" }, {
"DPMS_BURNOUT",
"burnout mass source" },
78 {
"DPMS_CONCENTRATION",
"concentration of particles" },
79 {
"DPMS_SURF_YI",
"concentration of particle surface species" }, {
"UDSI",
"UDS variables" },
80 {
"UDSI",
"UDS" }, {
"UDSI_DIFF",
"UDS diffusivity" }, {
"DT_CG",
"center of gravity vector" },
81 {
"DT_VEL_CG",
"cg velocity vector" }, {
"DT_OMEGA_CG",
"angular velocity vector" },
82 {
"DT_THETA",
"orientation of body-fixed axis vector" }, {
"TP_POS",
"position" },
83 {
"TP_VEL",
"velocity" }, {
"TP_DIAM",
"diameter" }, {
"TP_T",
"temperature" },
84 {
"TP_RHO",
"density" }, {
"TP_MASS",
"mass" }, {
"TP_TIME",
"current particle time" },
85 {
"TP_DT",
"time step" }, {
"TP_FLOW_RATE",
"flow rate of particles in a stream" },
86 {
"TP_LMF",
"liquid mass fraction" }, {
"TP_LF",
"liquid volume fraction" },
87 {
"TP_VF",
"volatile fraction" }, {
"TP_CF",
"char mass fraction" },
88 {
"TP_VFF",
"volatile fraction remaining" }, {
"DPM_BOILING_TEMPERATURE",
"boiling temperature" },
89 {
"DPM_DIFFUSION_COEFF",
"Binary diffusion coefficient" },
90 {
"DPM_BINARY_DIFFUSIVITY",
"Binary diffusion coefficient" },
91 {
"DPM_EMISSIVITY",
"emissivity factor for the radiation model" },
92 {
"DPM_SCATT_FACTOR",
"scattering factor for the radiation model" },
93 {
"DPM_KTC",
"thermal conductivity" }, {
"DPM_HEAT_OF_PYROLYSIS",
"heat of pyrolysis" },
94 {
"DPM_HEAT_OF_REACTION",
"heat of reaction" }, {
"DPM_LATENT_HEAT",
"latent heat" },
95 {
"DPM_LIQUID_SPECIFIC_HEAT",
96 "specific heat of material used for liquid associated with particle" },
97 {
"DPM_MU",
"dynamic viscosity of liquid part of particle" }, {
"DPM_RHO",
"particle density" },
98 {
"DPM_SPECIFIC_HEAT",
"specific heat" },
99 {
"DPM_SWELLING_COEFF",
"swelling coefficient for devolatilization" },
100 {
"DPM_SURFTEN",
"surface tension of liquid part of particles" },
101 {
"DPM_VAPOR_PRESSURE",
"vapor pressure of liquid part of particle" },
102 {
"DPM_VAPOR_TEMP",
"vaporization temperature" },
103 {
"DPM_EVAPORATION_TEMPERATURE",
"vaporization temperature" }, {
"BF",
"boundary face" },
104 {
"BF_V",
"boundary face velocity" }, {
"CFF_0",
"CFF" }, {
"DENSITY",
"density of fluid" },
105 {
"DPM_PARTITION",
"DPM domaine partition" }, {
"DPMS_DS_BURNOUT",
"DPM burnout rate source" },
106 {
"DPMS_DS_ENERGY",
"DPM energy source" }, {
"DPMS_DS_MASS",
"DPM mass source" },
107 {
"DPMS_DS_MOM_S",
"DPM momentum source" }, {
"DPMS_DS_SPECIES",
"DPM species source" },
108 {
"DPMS_DS_VAP_PER_MAT",
"DPM vaporization per material" },
109 {
"DPMS_DS_WSWIRL_S",
"DPM swirl source" }, {
"DPMS_MASS",
"DPM mass" },
110 {
"DPMS_SPECIES",
"DPM species mass" }, {
"DPMS_VAP_PER_MAT_0",
"DPM vaporization per material" },
111 {
"ENERGY",
"energy" }, {
"MU_LAM",
"laminar dynamic viscosity" },
112 {
"PHASE_MASS",
"phase mass in multiphase flow" }, {
"THIN_FILM",
"thin film model quantity" },
113 {
"WALL_DIST",
"distance to nearest wall" }, {
"Y",
"mass fraction" } };
internal utilities for vtkFLUENTCFFReader
bool RemoveTrailingIndex(std::string &fieldName)
Remove the trailing index of the string if it ends by "_1" or any other digit.
std::string GetMatchingFieldName(const std::string &strSectionName)
Retrieve the correct field name.
bool RemoveSuffixIfPresent(std::string &fieldName, const std::string &suffix)
Remove the suffix passed in argument if it is prensent in the field name.
const std::unordered_map< std::string, std::string > FieldsNamesMap