CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   EEqn to TEqn (https://www.cfd-online.com/Forums/openfoam-programming-development/153618-eeqn-teqn.html)

jishnuhari25 May 30, 2015 04:30

EEqn to TEqn
 
Hi all,
Does any one here know how to convert EEqn to Teqn. I have the following EEqn. Please tell me a way to convert it into TEqn.

/********************************EEqn.H************ *****************************/
fvScalarMatrix EEqn
(

fvm::ddt(H2) + fvm::div(phi2, H2)

+ fvm::laplacian(K2/(rho2*Cp2), H2)

==

DpDt/rho2
// + (mcond*Cp2*Tsat)/alpha2*rho2
+ fvm::Sp(mEvap/(alpha2*rho2),H2)
+ Qw/(rho2*alpha2*z*0.5)

);


EEqn.relax();
EEqn.solve();
******************************/**************************************************

sharonyue June 4, 2015 11:06

Hello JISHNU

Look at the buoyantPimpleFoam and buoyantBoussinesqPimpleFoam, the spirit with this two solves are how to do EEqn to TEqn. U can use their idea to make your own solver.

Best,


All times are GMT -4. The time now is 23:56.