initialize pressure gradient
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?
my suggestion :
1) add to createFields.H
2) add file dpdx with dimension of (p/length) in folder 0
3) use funkySetFields from openFoam wiki to initialize the field
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.
i can't understand, whats ur mean ? ;)
im not sure! it would be compilicated but maybe you can look at streamFunction and use similar method!
|All times are GMT -4. The time now is 09:49.|