energy equation problem
hello, eveybody
i'm a new in learning OpenFoam and have problems in reading the EEqn.H in the solver of buyoantSimpleFoam. what do the follwing secentences respect for? he.name() == "e" ? fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho)) : fvc::div(phi, volScalarField("K", 0.5*magSqr(U))) and i also doubt about the "fvOptions" followed. |
Hi Gary
Quote:
internal energy Code:
fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho)) Code:
fvc::div(phi, volScalarField("K", 0.5*magSqr(U))) Quote:
Hope this helps a bit. Cheers Fabian |
Thank you very much, Febian. Now i can completely understand it
Regard, Gary |
Quote:
Now i want to add a source term in the energy equation using the fvOptions. where can i get enough info about it? Regards! Gary |
Browse the tutorials and you will find everthing you need:
Code:
Code:
|
What "ekp" stands for in EEqn.h file in rhoPorousSimpleFoam
Hello Everybody,
I am trying to understand a rhoPorousSimpleFoam solver but stuck in the file EEqn.h at solvers directory. fvScalarMatrix EEqn ( fvm::div(phi, he) + ( he.name() == "e" ? fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho)) : fvc::div(phi, volScalarField("K", 0.5*magSqr(U))) ) - fvm::laplacian(turbulence->alphaEff(), he) == fvOptions(rho, he) ); In above code what is "Ekp" and "K" stands for . And one more question, how to get value in "fvOptions(rho, he)". Thanks in advance. Waiting for your reply. |
All times are GMT -4. The time now is 17:48. |