|
[Sponsors] |
Regarding the energy equation(Internal energy equation) in the sonicFoam solver. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 15, 2023, 23:26 |
Regarding the energy equation(Internal energy equation) in the sonicFoam solver.
|
#1 |
New Member
Join Date: Jul 2022
Posts: 18
Rep Power: 4 |
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 ) 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) ); 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. |
|
May 16, 2023, 04:11 |
|
#2 | ||
Senior Member
|
Quote:
Quote:
|
|||
May 16, 2023, 05:53 |
|
#3 | |
New Member
Join Date: Jul 2022
Posts: 18
Rep Power: 4 |
Quote:
Is this solver mainly used for supersonic flow? (So OpenFOAM defaults to a relatively low viscosity dissipation). |
||
May 16, 2023, 09:55 |
|
#4 | |
Senior Member
|
Quote:
Yes, sonicFoam is intended mainly for supersonic flows (hence the name). No, however, rhoS/PimpleFoam also excluded viscous dissipation by default. |
||
May 16, 2023, 10:52 |
|
#5 | |
New Member
Join Date: Jul 2022
Posts: 18
Rep Power: 4 |
Quote:
I have seen some OpenFOAM code where solvers sometimes lack some terms in discrete equations, which has been bothering me for a while. Thank you very much for your answer !!! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How is strength value used in the Energy Equation of XiFoam solver? | Manideep304 | OpenFOAM Running, Solving & CFD | 3 | August 30, 2022 03:20 |
foam-extend-4.1 release | hjasak | OpenFOAM Announcements from Other Sources | 19 | July 16, 2021 06:02 |
Fail to converge when solving with a fabricated solution | zizhou | FLUENT | 0 | March 22, 2021 07:33 |
modify a solver to account for energy equation. | Yanci | OpenFOAM Running, Solving & CFD | 0 | November 11, 2014 10:23 |
Why FVM for high-Re flows? | Zhong Lei | Main CFD Forum | 23 | May 14, 1999 14:22 |