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/)
-   -   Can Poissonbs equation be solved in FOAM like this (https://www.cfd-online.com/Forums/openfoam-solving/60605-can-poissonbs-equation-solved-foam-like.html)

luckyluke May 1, 2005 19:20

For transient problem, we can
 
For transient problem, we can achieve the solution as following:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
);

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

Then, if I want to solve a arbitrary Poisson's equation or elliptic equation in my solver code, I can do it with the similar code lines shown above?

Thanks.
BTW, I have successfully include VTK libs in my OpenFOAM solver. Thanks.


All times are GMT -4. The time now is 09:04.