CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Adding transport equation in simpleFoam (http://www.cfd-online.com/Forums/openfoam-programming-development/113484-adding-transport-equation-simplefoam.html)

iqbalsk8 February 20, 2013 10:01

Adding transport equation for tangential velocity in simpleFoam
 
1 Attachment(s)
Hello everyone.

I am simulating an 2D-axisymmetric case with simpleFoam. The simulation worked fine with simpleFoam.

But now I want to add a new equation for tangential component to the solver.

the transport equation for "w" is,

div(phi, w) = Laplacian(nu, w) + nu/y*(dw/dy) -nu/y*(w/y)

Can anybody give me an idea how to put the second and third
term in the code....
fvScalarMatrix UwEqn
(

fvm::div(phi, w)
- fvm::laplacian(nu, w)
.............. second term
.............. third term
);
I have attached a file for convenience. any suggestion would be welcomed!

Best regards,

Sohail Iqbal


All times are GMT -4. The time now is 02:28.