CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Can Poissonbs equation be solved in FOAM like this (

luckyluke May 1, 2005 19:20

For transient problem, we can
For transient problem, we can achieve the solution as following:
fvVectorMatrix UEqn
+ 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?

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

All times are GMT -4. The time now is 00:24.