Page 1 of 1
Calculating gradient of pressure
Posted: Fri Apr 20, 2012 10:49 am
by JamesMcNaughton
Hi,
I am having problems calculating the pressure gradient in v2.2. Should I be using grdcel or grdpot? What is the difference between these subroutines?
Thanks,
James
Re: Calculating gradient of pressure
Posted: Fri Apr 20, 2012 6:12 pm
by Martin FERRAND
Hello James,
to compute the gradient of any potential field (such as the pressure field) use grdpot, to compute the gradient of any scalar field which is not a potential (such as the Temperature) use grdcel, and to compute the gradient of vector fields (such as the velocity or the mesh velocity) use grdvec.
The difference reads on the fact that for a potential field we do specific treatment (for instance we could add a linear field to it...).
Cheers,
Martin
Re: Calculating gradient of pressure
Posted: Wed Apr 25, 2012 1:02 pm
by JamesMcNaughton
Thanks Martin it all makes more sense now!