|
[Sponsors] |
SimpleFOAM how to plot the real pressures (not adimensionalized by density) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 2, 2012, 04:37 |
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 |
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 |
|
November 2, 2012, 05:23 |
|
#2 |
Senior Member
Vieri Abolaffio
Join Date: Jul 2010
Location: Always on the move.
Posts: 308
Rep Power: 16 |
add the filter calculator, there you can multiply your pressure by the density
|
|
June 10, 2016, 03:51 |
|
#3 |
New Member
Nan
Join Date: Feb 2015
Posts: 6
Rep Power: 11 |
So the pressure p we see in paraview is indeed p divided by density for the simulations done in OpenFOAM.
Can someone confirm this? Thanks. |
|
June 10, 2016, 04:56 |
|
#4 | |
New Member
Lorena Fernández Fernández
Join Date: May 2016
Location: Spain
Posts: 21
Rep Power: 9 |
Quote:
Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0.2"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; #.... The numbers are the exponent that we have for each dimension. The place of the numbers is associated with the dimensions specified below: Nº Property Dimension 1 Mass kg 2 Length m 3 Time s 4 Temperature K 5 Quantity mol 6 Current A 7 Luminous intensity cd And for the previous case of p we have the units [kg / (m*s²) = Pa]. Best regards, Lorena |
||
June 10, 2016, 05:35 |
|
#5 |
New Member
Nan
Join Date: Feb 2015
Posts: 6
Rep Power: 11 |
Thanks for your reply Lorena2fdez
My p file looks something as follows: Code:
FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam How to specify density | sebastiank | OpenFOAM Running, Solving & CFD | 3 | July 27, 2023 09:45 |
[OpenFOAM] How to get density color plot in twoPhaseEulerFoam | ploceus | ParaView | 2 | February 19, 2020 13:38 |
Please help me run UDF code for source | Suga | FLUENT | 1 | February 3, 2006 03:40 |
udf error | Rashmi | FLUENT | 0 | December 27, 2005 05:35 |
Optimizing UDF Code | Cebeci | FLUENT | 18 | September 6, 2003 03:40 |