CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Visualizing mesh regions with high courant number?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Bernhard

LinkBack Thread Tools Display Modes
Old   August 19, 2013, 09:29
Default Visualizing mesh regions with high courant number?
New Member
Join Date: Sep 2012
Posts: 13
Rep Power: 8
Endel is on a distinguished road
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,

Last edited by Endel; August 20, 2013 at 10:12.
Endel is offline   Reply With Quote

Old   August 19, 2013, 09:38
Senior Member
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 15
Bernhard is on a distinguished road
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).
ykanani likes this.
Bernhard is offline   Reply With Quote

Old   August 20, 2013, 03:57
New Member
Join Date: Sep 2012
Posts: 13
Rep Power: 8
Endel is on a distinguished road
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 is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 13:52
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
snappyHexMesh aborting Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 0 November 10, 2010 04:23
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37

All times are GMT -4. The time now is 18:58.