|
[Sponsors] |
Visualizing mesh regions with high courant number? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 19, 2013, 10:29 |
Visualizing mesh regions with high courant number?
|
#1 |
New Member
Join Date: Sep 2012
Posts: 13
Rep Power: 15 |
Hello everyone,
first of all: sorry, if this is a trivial question, I am still new to OpenFOAM. I'm using OpenFOAM to simulate supersonic gas flow in complex 3D geometries with the sonicFoam solver - which brings us right to the point: as my geometries are quite complex, the mesh generation with snappyHexMesh is too. There are of course always regions where cells are small and such where cells are bigger. The cases usually run quite well, but I noticed that my average courant number differs strongly from my "max" courant number (at least i think, that the difference is large - I don't really know similar cases to compare these numbers with). For Example: "Courant Number mean: 0.00134741 max: 1.59488" My question: Is there a possibility to (for example) visualize the courant number inside your mesh in paraview, to identify regions, where the courant number is high? This would give me the opportunity to tailor the mesh accordingly and maybe save computational time. If you have any suggestions about how to deal with this or maybe identify the cells with high courant number, I would be very grateful. It would even be helpful if anyone knew a possibility to show/highlight/identify the smallest cells in a mesh in paraview - this might as well give me a hint. Thank you very much, Endel Last edited by Endel; August 20, 2013 at 11:12. |
|
August 19, 2013, 10:38 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
You can write the Courant number as a volScalarField using the "Co" utility. Then, you can either select the values with largest Courant number in paraview, or you can make a cellSet using the "topoSet" utility and the fieldToCell source (see the topoSetDict example on how to do this).
|
|
August 20, 2013, 04:57 |
|
#3 |
New Member
Join Date: Sep 2012
Posts: 13
Rep Power: 15 |
Perfect, thank you very much, that helped a lot.
Just in case anyone else is interested in this: After running the Co utility you can plot Co in paraview. Select all cells through, apply the "Threshold" filter and select the upper and lower boundaries you are interested in - done. I am goint to look into the topoSet utility too, but the above solution already helped. Thanks again! Endel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
Sudden jump in Courant number | NJG | OpenFOAM Running, Solving & CFD | 7 | May 15, 2014 14:52 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
Unaligned accesses on IA64 | andre | OpenFOAM | 5 | June 23, 2008 11:37 |