|
[Sponsors] |
Is there any code or function to know if simulation is running in 2D or 3D? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 9, 2020, 08:15 |
Is there any code or function to know if simulation is running in 2D or 3D?
|
#1 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
Do you know if there is any kind of command to understand if the simulation is 2D or 3D? I was thinking about a patch loop and search for empty, but I don't know if there is something else to deal with this.
Thank you for your help! Agustinvo |
|
October 9, 2020, 10:14 |
|
#2 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
The mesh has a function called "nSolutionD()", as for example in GradientDispersionRAS.C it is used to check if is a 2D-simulation:
Code:
if (this->owner().mesh().nSolutionD() == 2) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 01:27 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
Replacing mesh while running a simulation | akultane | CFX | 1 | November 15, 2009 13:46 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |