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

SimpleFOAM how to plot the real pressures (not adimensionalized by density)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 2, 2012, 05:37
Default SimpleFOAM how to plot the real pressures (not adimensionalized by density)
  #1
New Member
 
edy
Join Date: Jul 2012
Location: Tokyo
Posts: 6
Rep Power: 0
alsdia is on a distinguished road
Hello,

I was making a comparison between StarCCM+ and simpleFOAM using a sphere.
In simpleFoam dimensions of pressure become pressure divided by density.
But I would like to obtain in Paraview a plot with the real pressures.

1) is there a way in Paraview to multiply all the pressure field by the density?
or
2) is it possible to customize simpleFOAM in such a way that before results are written, all pressures are multiplied by the density? Which file should be modified simpleFoam.C or createFields.H or something else and how?
or other ideas?

-----------------------------------------------------------------------------------------------------------------------
reference
(http://openfoamwiki.net/index.php/Ma...ble_solvers.3F
=> simpleFoam sphere max pressure * 1.205 = 106.399 * 1.205 =128.2108Pa ~ 129.1Pa of StarCCM)
sphere case @
https://www.dropbox.com/sh/gg1ypj0c1...vYI_k/OpenFOAM
Attached Images
File Type: jpeg simpleFoam.sphere.pressure.jpeg (88.4 KB, 17 views)
File Type: jpg simpleFoam.sphere.streamlines.jpg (56.7 KB, 16 views)
File Type: jpeg starccm.sphere.pressure.jpeg (88.5 KB, 14 views)
alsdia is offline   Reply With Quote

Old   November 2, 2012, 06:23
Default
  #2
Senior Member
 
sail's Avatar
 
Vieri Abolaffio
Join Date: Jul 2010
Location: Always on the move.
Posts: 308
Rep Power: 7
sail is on a distinguished road
Quote:
Originally Posted by alsdia View Post
Hello,

1) is there a way in Paraview to multiply all the pressure field by the density?
or
add the filter calculator, there you can multiply your pressure by the density
__________________
http://www.leadingedge.it/
Naval architecture and CFD consultancy
sail is offline   Reply With Quote

Reply

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
SimpleFoam How to specify density sebastiank OpenFOAM Running, Solving & CFD 2 October 31, 2008 10:39
Please help me run UDF code for source Suga FLUENT 1 February 3, 2006 04:40
How to get density color plot in twoPhaseEulerFoam ploceus OpenFOAM Paraview & paraFoam 1 January 5, 2006 08:22
udf error Rashmi FLUENT 0 December 27, 2005 06:35
Optimizing UDF Code Cebeci FLUENT 18 September 6, 2003 03:40


All times are GMT -4. The time now is 13:43.