|
[Sponsors] |
June 30, 2011, 08:55 |
initialize pressure gradient
|
#1 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Dear Foamers
I am try to setup a Gaussian vortex case, which has a given velocity field and pressure gradient field. I am able to write a app to initialize the velocity across the flow domain by looping through each individual cells. However, I am having problem to initialize the pressure gradient as it requires more than one cell. Would anyone have some suggestions on how to implement this? Thank you. |
|
June 30, 2011, 10:25 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
my suggestion :
1) add to createFields.H volVectorField dpdx ( IOobject ( "dpdx", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); 2) add file dpdx with dimension of (p/length) in folder 0 3) use funkySetFields from openFoam wiki to initialize the field |
|
June 30, 2011, 10:36 |
|
#3 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Hi nimasam
It requires more cell points to calculate the pressure gradient but not sure how to convert pressure gradient to pressure? I came across the funkyFields but never used it before. Would you be able to elaborate a bit more on it? Thanks for the reply. |
|
June 30, 2011, 10:49 |
|
#5 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Sorry for the confusion. What I mean is you need more than one cell to calculate the pressure gradient. Is it possible to calculate the pressure at each cell if I know the pressure gradient? This is because I need to initialize the pressure field but I only have the information of the pressure gradient.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
steam flow in a pipe driven by a pressure gradient between inlet and outlet | SalvoCalvo | COMSOL | 0 | March 11, 2010 07:52 |
Inputting pressure gradient in Fluent | Josyula | FLUENT | 2 | December 23, 2009 08:26 |
Atmospheric pressure gradient | Luc3er | FLUENT | 1 | October 30, 2009 07:46 |
maximum pressure gradient | Rashmi | FLUENT | 0 | March 20, 2006 22:15 |
Flat plate with pressure gradient | Sheila | Main CFD Forum | 3 | September 24, 2005 14:58 |