MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
StructuredFQVariables Class Reference

#include <fvstructuredfqvariables.h>

Collaboration diagram for StructuredFQVariables:
[legend]

Public Member Functions

 StructuredFQVariables ()
 
 ~StructuredFQVariables ()
 
void activateFQField (MInt fqIndex, MInt currentPos, MBool writeOutput, MBool writeOutputBoxes)
 

Public Attributes

MInt AVG_U
 
MInt AVG_V
 
MInt AVG_W
 
MInt AVG_P
 
MInt AVG_RHO
 
MInt NU_T
 
MInt SPONGE_RHO
 
MInt SPONGE_RHO_E
 
MInt PRESSURE
 
MInt LAMBDA2
 
MInt VORTX
 
MInt VORTY
 
MInt VORTZ
 
MInt BLOCKID
 
MInt CELLID
 
MInt SPONGE_FACTOR
 
MIntVORTICITY
 
MInt SLOPEX
 
MInt SLOPEY
 
MInt SLOPEZ
 
MIntSLOPE
 
MInt MU_T
 
MInt WALLDISTANCE
 
MInt MU_L
 
MInt UTAU
 
MInt UTAU2
 
MInt POROSITY
 
MInt DARCY
 
MInt FORCH
 
MInt NORMALX
 
MInt NORMALY
 
MInt NORMALZ
 
MIntNORMAL
 
MInt LIMITERVISC
 
MInt POROUS_INDICATOR
 
MInt noFQVariables
 
MInt noFQBoxOutput
 
MInt maxNoFQVariables
 
MIntneededFQVariables = nullptr
 
MBooloutputFQVariables = nullptr
 
MBoolboxOutputFQVariables = nullptr
 
MBoolloadedFromRestartFile = nullptr
 
std::vector< MStringfqNames
 
std::vector< MBoolfqWriteOutput
 
std::vector< MBoolfqWriteOutputBoxes
 

Detailed Description

Definition at line 10 of file fvstructuredfqvariables.h.

Constructor & Destructor Documentation

◆ StructuredFQVariables()

StructuredFQVariables::StructuredFQVariables ( )
inline

Definition at line 12 of file fvstructuredfqvariables.h.

12 {
13 // this is the start configuration,
14 // depending on which fq fields are needed
15 // it will be altered later
16 AVG_U = 0;
17 AVG_V = 1;
18 AVG_W = 2;
19 AVG_P = 3;
20 AVG_RHO = 4;
21 NU_T = 5;
22 SPONGE_RHO = 6;
23 SPONGE_RHO_E = 7;
24 PRESSURE = 8;
25 LAMBDA2 = 9;
26 VORTX = 10;
27 VORTY = 11;
28 VORTZ = 12;
29 VORTICITY = new MInt[3];
30 VORTICITY[0] = VORTX;
31 VORTICITY[1] = VORTY;
32 VORTICITY[2] = VORTZ;
33 CELLID = 13;
34 BLOCKID = 14;
35 SPONGE_FACTOR = 15;
36 SLOPEX = 16;
37 SLOPEY = 17;
38 SLOPEZ = 18;
39 SLOPE = new MInt[3];
40 SLOPE[0] = SLOPEX;
41 SLOPE[1] = SLOPEY;
42 SLOPE[2] = SLOPEZ;
43 MU_T = 19;
44 WALLDISTANCE = 20;
45 MU_L = 21;
46 UTAU = 22;
47 // Porous
48 POROSITY = 23;
49 DARCY = 24;
50 FORCH = 25;
51 NORMALX = 26;
52 NORMALY = 27;
53 NORMALZ = 28;
54 NORMAL = new MInt[3];
55 NORMAL[0] = NORMALX;
56 NORMAL[1] = NORMALY;
57 NORMAL[2] = NORMALZ;
58 LIMITERVISC = 29;
60 UTAU2 = 31;
61
62 noFQVariables = 0;
64 noFQBoxOutput = 0;
65 }
int32_t MInt
Definition: maiatypes.h:62

◆ ~StructuredFQVariables()

StructuredFQVariables::~StructuredFQVariables ( )
inline

Definition at line 67 of file fvstructuredfqvariables.h.

67 {
68 delete[] VORTICITY;
69 delete[] SLOPE;
70 delete[] NORMAL;
71 }

Member Function Documentation

◆ activateFQField()

void StructuredFQVariables::activateFQField ( MInt  fqIndex,
MInt  currentPos,
MBool  writeOutput,
MBool  writeOutputBoxes 
)
inline

Definition at line 121 of file fvstructuredfqvariables.h.

121 {
122 fqWriteOutput.push_back(writeOutput);
123 fqWriteOutputBoxes.push_back(writeOutputBoxes);
124
125 switch(fqIndex) {
126 case 0:
127 AVG_U = currentPos;
128 fqNames.push_back("avgU");
129 m_log << "FQ-Field: AVG_U activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
130 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
131 break;
132 case 1:
133 AVG_V = currentPos;
134 fqNames.push_back("avgV");
135 m_log << "FQ-Field: AVG_V activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
136 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
137 break;
138 case 2:
139 AVG_W = currentPos;
140 fqNames.push_back("avgW");
141 m_log << "FQ-Field: AVG_P activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
142 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
143 break;
144 case 3:
145 AVG_P = currentPos;
146 fqNames.push_back("avgP");
147 m_log << "FQ-Field: AVG_P activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
148 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
149 break;
150 case 4:
151 AVG_RHO = currentPos;
152 fqNames.push_back("avgRho");
153 m_log << "FQ-Field: AVG_RHO activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
154 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
155 break;
156 case 5:
157 NU_T = currentPos;
158 fqNames.push_back("nu_t");
159 m_log << "FQ-Field: NU_T activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
160 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
161 break;
162 case 6:
163 SPONGE_RHO = currentPos;
164 fqNames.push_back("spongeRho");
165 m_log << "FQ-Field: SPONGE_RHO activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
166 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
167 break;
168 case 7:
169 SPONGE_RHO_E = currentPos;
170 fqNames.push_back("spongeRhoE");
171 m_log << "FQ-Field: SPONGE_RHO_E activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
172 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
173 break;
174 case 8:
175 PRESSURE = currentPos;
176 fqNames.push_back("pressure");
177 m_log << "FQ-Field: PRESSURE activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
178 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
179 break;
180 case 9:
181 LAMBDA2 = currentPos;
182 fqNames.push_back("lambda2");
183 m_log << "FQ-Field: LAMBDA_2 activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
184 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
185 break;
186 case 10:
187 VORTX = currentPos;
188 VORTICITY[0] = currentPos;
189 fqNames.push_back("vortX");
190 m_log << "FQ-Field: x-Vorticity activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
191 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
192 break;
193 case 11:
194 VORTY = currentPos;
195 VORTICITY[1] = currentPos;
196 fqNames.push_back("vortY");
197 m_log << "FQ-Field: y-Vorticity activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
198 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
199 break;
200 case 12:
201 VORTZ = currentPos;
202 VORTICITY[2] = currentPos;
203 fqNames.push_back("vortZ");
204 m_log << "FQ-Field: z-Vorticity activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
205 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
206 break;
207 case 13:
208 CELLID = currentPos;
209 fqNames.push_back("cellId");
210 m_log << "FQ-Field: cellId activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
211 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
212 break;
213 case 14:
214 BLOCKID = currentPos;
215 fqNames.push_back("blockId");
216 m_log << "FQ-Field: solverId activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
217 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
218 break;
219 case 15:
220 SPONGE_FACTOR = currentPos;
221 fqNames.push_back("spongeFactor");
222 m_log << "FQ-Field: SPONGE_FACTOR activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
223 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
224 break;
225 case 16:
226 SLOPEX = currentPos;
227 SLOPE[0] = currentPos;
228 fqNames.push_back("slopeX");
229 m_log << "FQ-Field: x-Slope activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
230 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
231 break;
232 case 17:
233 SLOPEY = currentPos;
234 SLOPE[1] = currentPos;
235 fqNames.push_back("slopeY");
236 m_log << "FQ-Field: y-Slope activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
237 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
238 break;
239 case 18:
240 SLOPEZ = currentPos;
241 SLOPE[2] = currentPos;
242 fqNames.push_back("slopeZ");
243 m_log << "FQ-Field: z-Slope activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
244 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
245 break;
246 case 19:
247 MU_T = currentPos;
248 fqNames.push_back("mu_t");
249 m_log << "FQ-Field: mu_t activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
250 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
251 break;
252 case 20:
253 WALLDISTANCE = currentPos;
254 fqNames.push_back("wallDistance");
255 m_log << "FQ-Field: wallDistance activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
256 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
257 break;
258 case 21:
259 MU_L = currentPos;
260 fqNames.push_back("mu_l");
261 m_log << "FQ-Field: mu_l activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
262 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
263 break;
264 case 22:
265 UTAU = currentPos;
266 fqNames.push_back("utau");
267 m_log << "FQ-Field: UTAU activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
268 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
269 break;
270 case 23:
271 POROSITY = currentPos;
272 fqNames.push_back("porosity");
273 m_log << "FQ-Field: POROSITY activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
274 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
275 break;
276 case 24:
277 DARCY = currentPos;
278 fqNames.push_back("darcy");
279 m_log << "FQ-Field: DARCY activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
280 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
281 break;
282 case 25:
283 FORCH = currentPos;
284 fqNames.push_back("forch");
285 m_log << "FQ-Field: FORCH activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
286 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
287 break;
288 case 26:
289 NORMALX = currentPos;
290 NORMAL[0] = currentPos;
291 fqNames.push_back("normalx");
292 m_log << "FQ-Field: x-NORMAL activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
293 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
294 break;
295 case 27:
296 NORMALY = currentPos;
297 NORMAL[1] = currentPos;
298 fqNames.push_back("normaly");
299 m_log << "FQ-Field: y-NORMAL activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
300 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
301 break;
302 case 28:
303 NORMALZ = currentPos;
304 NORMAL[2] = currentPos;
305 fqNames.push_back("normalz");
306 m_log << "FQ-Field: z-NORMAL activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
307 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
308 break;
309 case 29:
310 LIMITERVISC = currentPos;
311 fqNames.push_back("limitervisc");
312 m_log << "FQ-Field: LIMITERVISC activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
313 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
314 break;
315 case 30:
316 POROUS_INDICATOR = currentPos;
317 fqNames.push_back("porous_indicator");
318 m_log << "FQ-Field: POROUS_INDICATOR activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
319 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
320 break;
321 case 31:
322 UTAU2 = currentPos;
323 fqNames.push_back("utau2");
324 m_log << "FQ-Field: UTAU2 activated - Write Output: " << fqWriteOutput[fqWriteOutput.size() - 1]
325 << " , write BoxOutput: " << fqWriteOutputBoxes[fqWriteOutputBoxes.size() - 1] << std::endl;
326 break;
327 default:
328 mTerm(1, AT_, "Can't find the FQ field!");
329 break;
330 }
331 }
std::vector< MBool > fqWriteOutputBoxes
std::vector< MString > fqNames
std::vector< MBool > fqWriteOutput
void mTerm(const MInt errorCode, const MString &location, const MString &message)
Definition: functions.cpp:29
InfoOutFile m_log

Member Data Documentation

◆ AVG_P

MInt StructuredFQVariables::AVG_P

Definition at line 76 of file fvstructuredfqvariables.h.

◆ AVG_RHO

MInt StructuredFQVariables::AVG_RHO

Definition at line 77 of file fvstructuredfqvariables.h.

◆ AVG_U

MInt StructuredFQVariables::AVG_U

Definition at line 73 of file fvstructuredfqvariables.h.

◆ AVG_V

MInt StructuredFQVariables::AVG_V

Definition at line 74 of file fvstructuredfqvariables.h.

◆ AVG_W

MInt StructuredFQVariables::AVG_W

Definition at line 75 of file fvstructuredfqvariables.h.

◆ BLOCKID

MInt StructuredFQVariables::BLOCKID

Definition at line 86 of file fvstructuredfqvariables.h.

◆ boxOutputFQVariables

MBool* StructuredFQVariables::boxOutputFQVariables = nullptr

Definition at line 115 of file fvstructuredfqvariables.h.

◆ CELLID

MInt StructuredFQVariables::CELLID

Definition at line 87 of file fvstructuredfqvariables.h.

◆ DARCY

MInt StructuredFQVariables::DARCY

Definition at line 100 of file fvstructuredfqvariables.h.

◆ FORCH

MInt StructuredFQVariables::FORCH

Definition at line 101 of file fvstructuredfqvariables.h.

◆ fqNames

std::vector<MString> StructuredFQVariables::fqNames

Definition at line 117 of file fvstructuredfqvariables.h.

◆ fqWriteOutput

std::vector<MBool> StructuredFQVariables::fqWriteOutput

Definition at line 118 of file fvstructuredfqvariables.h.

◆ fqWriteOutputBoxes

std::vector<MBool> StructuredFQVariables::fqWriteOutputBoxes

Definition at line 119 of file fvstructuredfqvariables.h.

◆ LAMBDA2

MInt StructuredFQVariables::LAMBDA2

Definition at line 82 of file fvstructuredfqvariables.h.

◆ LIMITERVISC

MInt StructuredFQVariables::LIMITERVISC

Definition at line 106 of file fvstructuredfqvariables.h.

◆ loadedFromRestartFile

MBool* StructuredFQVariables::loadedFromRestartFile = nullptr

Definition at line 116 of file fvstructuredfqvariables.h.

◆ maxNoFQVariables

MInt StructuredFQVariables::maxNoFQVariables

Definition at line 111 of file fvstructuredfqvariables.h.

◆ MU_L

MInt StructuredFQVariables::MU_L

Definition at line 96 of file fvstructuredfqvariables.h.

◆ MU_T

MInt StructuredFQVariables::MU_T

Definition at line 94 of file fvstructuredfqvariables.h.

◆ neededFQVariables

MInt* StructuredFQVariables::neededFQVariables = nullptr

Definition at line 113 of file fvstructuredfqvariables.h.

◆ noFQBoxOutput

MInt StructuredFQVariables::noFQBoxOutput

Definition at line 110 of file fvstructuredfqvariables.h.

◆ noFQVariables

MInt StructuredFQVariables::noFQVariables

Definition at line 109 of file fvstructuredfqvariables.h.

◆ NORMAL

MInt* StructuredFQVariables::NORMAL

Definition at line 105 of file fvstructuredfqvariables.h.

◆ NORMALX

MInt StructuredFQVariables::NORMALX

Definition at line 102 of file fvstructuredfqvariables.h.

◆ NORMALY

MInt StructuredFQVariables::NORMALY

Definition at line 103 of file fvstructuredfqvariables.h.

◆ NORMALZ

MInt StructuredFQVariables::NORMALZ

Definition at line 104 of file fvstructuredfqvariables.h.

◆ NU_T

MInt StructuredFQVariables::NU_T

Definition at line 78 of file fvstructuredfqvariables.h.

◆ outputFQVariables

MBool* StructuredFQVariables::outputFQVariables = nullptr

Definition at line 114 of file fvstructuredfqvariables.h.

◆ POROSITY

MInt StructuredFQVariables::POROSITY

Definition at line 99 of file fvstructuredfqvariables.h.

◆ POROUS_INDICATOR

MInt StructuredFQVariables::POROUS_INDICATOR

Definition at line 107 of file fvstructuredfqvariables.h.

◆ PRESSURE

MInt StructuredFQVariables::PRESSURE

Definition at line 81 of file fvstructuredfqvariables.h.

◆ SLOPE

MInt* StructuredFQVariables::SLOPE

Definition at line 93 of file fvstructuredfqvariables.h.

◆ SLOPEX

MInt StructuredFQVariables::SLOPEX

Definition at line 90 of file fvstructuredfqvariables.h.

◆ SLOPEY

MInt StructuredFQVariables::SLOPEY

Definition at line 91 of file fvstructuredfqvariables.h.

◆ SLOPEZ

MInt StructuredFQVariables::SLOPEZ

Definition at line 92 of file fvstructuredfqvariables.h.

◆ SPONGE_FACTOR

MInt StructuredFQVariables::SPONGE_FACTOR

Definition at line 88 of file fvstructuredfqvariables.h.

◆ SPONGE_RHO

MInt StructuredFQVariables::SPONGE_RHO

Definition at line 79 of file fvstructuredfqvariables.h.

◆ SPONGE_RHO_E

MInt StructuredFQVariables::SPONGE_RHO_E

Definition at line 80 of file fvstructuredfqvariables.h.

◆ UTAU

MInt StructuredFQVariables::UTAU

Definition at line 97 of file fvstructuredfqvariables.h.

◆ UTAU2

MInt StructuredFQVariables::UTAU2

Definition at line 98 of file fvstructuredfqvariables.h.

◆ VORTICITY

MInt* StructuredFQVariables::VORTICITY

Definition at line 89 of file fvstructuredfqvariables.h.

◆ VORTX

MInt StructuredFQVariables::VORTX

Definition at line 83 of file fvstructuredfqvariables.h.

◆ VORTY

MInt StructuredFQVariables::VORTY

Definition at line 84 of file fvstructuredfqvariables.h.

◆ VORTZ

MInt StructuredFQVariables::VORTZ

Definition at line 85 of file fvstructuredfqvariables.h.

◆ WALLDISTANCE

MInt StructuredFQVariables::WALLDISTANCE

Definition at line 95 of file fvstructuredfqvariables.h.


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