CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Visualizing mesh regions with high courant number?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By Bernhard
  • 1 Post By Endel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2013, 09:29
Default Visualizing mesh regions with high courant number?
  #1
New Member
 
Join Date: Sep 2012
Posts: 13
Rep Power: 14
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,
Endel

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

Old   August 19, 2013, 09:38
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
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).
LuckyTran, ykanani and rarnaunot like this.
Bernhard is offline   Reply With Quote

Old   August 20, 2013, 03:57
Default
  #3
New Member
 
Join Date: Sep 2012
Posts: 13
Rep Power: 14
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
Clément_G likes this.
Endel is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 13:52
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03: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 00:36.