CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   icofoam doubt (https://www.cfd-online.com/Forums/openfoam/107231-icofoam-doubt.html)

Rocky4 September 20, 2012 18:32

icofoam doubt
 
Hello all,
I am new to openfoam and was just trying to understand icofoam code.
in the follwing portion of the code
set up the pressure equation
fvScalarMatrix pEqn
(
fvm::laplacian(rUA, p) == fvc::div(phi)
);
for setting pr eqn divergence of phi is used. if phi is scalar field(inner product of face velocity and surface area normal) then how can its divergence be defined ?
thanks in advance.

chegdan September 26, 2012 09:00

Quote:

Originally Posted by Rocky4 (Post 382879)
if phi is scalar field(inner product of face velocity and surface area normal) then how can its divergence be defined ?
thanks in advance.

phi is actually a surfaceScalarField, which is a scalar (as you have noted) defined at each face of the particular cell. The divergence of this is then the summation of this surfaceScalar over the owner and neighbor faces. If you want to learn more about this, have a look at Dr. Jasak's Thesis here .

Rocky4 October 5, 2012 22:22

Thanks for ur kind response.


All times are GMT -4. The time now is 13:03.