CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   GradP in channeloodles (https://www.cfd-online.com/Forums/openfoam-solving/59456-gradp-channeloodles.html)

nikos_fb16 September 11, 2007 04:28

Hi, I have some questions a
 
Hi,

I have some questions about adding a source to the momentum eqn:

1. Is there a difference between the two following formulations a) and b)?

a) fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
);

solve(UEqn == -fvc::grad(p))

b) fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)==-fvc::grad(p)
);

UEqn.solve();

2: ChannelOodles:

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ sgsModel->divB(U)
==
flowDirection*gradP
);

The RHS is treated explicitly, can somebody tell me where in the code I see that the RHS-term is multiplied with the cell-Volume?


Sorry for that basic questions, but I havent found answers in other threads yet.

Thanks in advance


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