|
[Sponsors] |
Script to obtain "real" static pressure (pressure times density) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 6, 2015, 12:43 |
Script to obtain "real" static pressure (pressure times density)
|
#1 | |
New Member
Join Date: May 2013
Posts: 23
Rep Power: 13 |
Hello,
I am struggling with making the really easy scripting line which I am sure is very useful for all OpenFOAM users ! How to obtain the "real" static pressure from an openfoam incompressible solver ? So performing p*density on the relevant lines. Let's say in a bash line, it would be perfect ! for example, my "p" file looks like PHP Code:
Quote:
PHP Code:
PHP Code:
Any idea how to set this condition in awk ? Or using sed ? Or running something in openfoam ? |
||
May 5, 2021, 10:22 |
|
#2 |
New Member
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 11 |
If anybody comes to find solution here like me. I have tried out the simple way in OF2012
Code:
postProcess -func "staticPressure(p, pRef=**, rho=rhoInf, rhoInf=**)" |
|
Tags |
density, incompressible, script, static pressure |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure Inlet VS velocity Inlet difference | Mohsin | FLUENT | 9 | January 4, 2021 11:34 |
Static pressure problem | Kiat110616 | CFX | 0 | April 12, 2011 14:11 |
UDF to control Static Pressure (in cylinder) | James | FLUENT | 0 | July 20, 2004 08:54 |
Static vs Total Pressure | Alfonso Ferrandez | FLUENT | 2 | May 23, 2000 09:53 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 14:19 |