|
[Sponsors] |
November 23, 2010, 06:16 |
Conditional statement over the entire mesh
|
#1 |
Member
|
Dear All,
I want to do an if conditional statement for two variables witch are surfaceScalarFields (MR_N and ML_N). The code compile without erros, on the other and this will result in a infinite loop. Code:
forAll(mesh.faces(),faceI) { if(mag(MR_N[faceI]) >= scalar(1.0)) { surfaceScalarField M4_neg = M1_neg; surfaceScalarField P5_neg = 1.0/(2.0*MR_N)*(MR_N-mag(MR_N)); if(mag(ML_N[faceI]) >= scalar(1.0)) / { surfaceScalarField M4_pos = M1_pos; surfaceScalarField P5_pos = 1.0/(2.0*ML_N)*(ML_N+mag(ML_N)); } } Cheers Carlos |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh Problem. | Tom Clark | FLUENT | 10 | June 21, 2021 04:27 |
[ICEM] Hexa Mesh Smoothing | Jules | ANSYS Meshing & Geometry | 6 | December 4, 2010 18:00 |
2d irregular grid | Remy | Main CFD Forum | 1 | December 22, 2008 04:49 |
basic of mesh refinement | arya | CFX | 4 | June 19, 2007 12:21 |
Mesh Refinement | JY | Siemens | 7 | September 19, 2002 13:37 |