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

How to plot Mach contour in OF 4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By PeterShi
  • 2 Post By deepbandivadekar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2017, 12:13
Default How to plot Mach contour in OF 4.0
  #1
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Hello all,

I wanna to plot Mach contour in OF 4.0, using postProcess.

I know the syntax is like postProcess -func "MachNo(U)", and then input this line in the terminal.

However, the same error always occur, and I have no ideas what to do, please help me:

Time = 8000

Reading fields:
volVectorFields: U

Executing functionObjects
--> FOAM Warning : functionObject MachNo: Cannot find required field U

End


Thanks in advance.
Best,
Peter
PeterShi is offline   Reply With Quote

Old   February 26, 2017, 18:44
Default
  #2
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Hello all,

I am here to solve my own question again.

First of all, for OpenFOAM 4.1 the warning message of MachNo is misleading. And this has been reported and revised by someone, please have a look at links below:
https://bugs.openfoam.org/view.php?id=2352
https://github.com/OpenFOAM/OpenFOAM...a50f0a044ffd79

Next, for incompressible cases, plotting Mach Number contour is impossible, since OpenFOAM misses many thermodynamic parameters. As such, magnitude of velocity's contour is okay, considering the speed of sound is infinite when the medium is incompressible.

I hope this post will help someone later.

Best,
Peter
deepbandivadekar likes this.
PeterShi is offline   Reply With Quote

Old   April 20, 2018, 11:55
Default
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by PeterShi View Post
Hello all,

I am here to solve my own question again.

First of all, for OpenFOAM 4.1 the warning message of MachNo is misleading. And this has been reported and revised by someone, please have a look at links below:
https://bugs.openfoam.org/view.php?id=2352
https://github.com/OpenFOAM/OpenFOAM...a50f0a044ffd79

Next, for incompressible cases, plotting Mach Number contour is impossible, since OpenFOAM misses many thermodynamic parameters. As such, magnitude of velocity's contour is okay, considering the speed of sound is infinite when the medium is incompressible.

I hope this post will help someone later.



Best,
Peter

Thank you.This helped for OF5.0 case of mine.
This was giving me error:
Code:
postProcess -func MachNo
Error for the record:
Code:
Reading fields:
    volVectorFields: U

Executing functionObjects
--> FOAM Warning :     functionObjects::MachNo MachNo cannot find required object thermophysicalProperties of type fluidThermo
--> FOAM Warning :     functionObjects::MachNo MachNo failed to execute.
The correct command at least for 5.x version is:
Code:
sonicFoam -postProcess -func MachNo

P.S. Although I have no idea how this error, as also mentioned in the development note here helps one to identify the source of error. Or maybe am missing to read something?
deepbandivadekar 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
generating 2d-planar contour plots from a contour plot on a curved surface alinik CFX 3 May 21, 2016 06:17
How to plot velocity and Mach contour on a blade surface in spanwise direction? Saima Tecplot 1 April 22, 2014 10:59
contour plot help jesse@uconn FLUENT 0 February 15, 2010 19:05
to plot Mach contour using GNUPLOT killtimm Main CFD Forum 2 December 28, 2009 11:15
non-dimensional analysis in Fluent Endee FLUENT 8 September 7, 2005 16:16


All times are GMT -4. The time now is 19:07.