applekiller |
May 15, 2023 22:26 |
Regarding the energy equation(Internal energy equation) in the sonicFoam solver.
Hello,every Foamer, This is my first time posting a question in this community, and I am looking forward to everyone's answers.
I have a question about solving the energy equation (internal energy equation) in sonicFoam.
In EEqn.H of sonicFoam(I added some comments :D)
HTML Code:
fvScalarMatrix EEqn
(
fvm::ddt(rho, e) + fvm::div(phi, e)
+ fvc::ddt(rho, K) + fvc::div(phi, K)
+ fvc::div(fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)") // fvc::absolute does nothing for static mesh
- fvm::laplacian(turbulence->alphaEff(), e) // turbulence->alphaEff() returns lambda/c_p or lambda/c_v depending on the solution variable e or h
==
fvOptions(rho, e)
);
The equation represented by this code seems to be
In above equation
But if the total energy equation
is expanded into the form of an internal energy equation, then the internal energy equation is like this.
By comparing the internal energy equation represented in the code in OpenFOAM with the internal energy equation we derived, it can be seen that the internal energy equation solved in OpenFOAM lacks the viscous term .
So my question is,
1) Why does OpenFOAM omit the viscous term in solving the internal energy equation?
2) Does this handling have a significant impact on the results? (After all, the viscous term is missing from the internal energy equation)
I am looking forward to everyone's answer to this question and best wishes for everyone. :)
|