mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding pressure work terms for compressibleInterFoam
Removing temporary fix from compressibleInterDyFOAM to re-calculte Uf with morphing mesh
This commit is contained in:
@ -1,16 +1,15 @@
|
|||||||
{
|
{
|
||||||
fvScalarMatrix TEqn
|
fvScalarMatrix TEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, T) + fvm::div(rhoPhi, T)
|
fvm::ddt(rho, T) + fvm::div(rhoPhi, T) - fvm::Sp(contErr, T)
|
||||||
- fvm::Sp(contErr, T)
|
|
||||||
- fvm::laplacian(turbulence.alphaEff(), T)
|
- fvm::laplacian(turbulence.alphaEff(), T)
|
||||||
+ (
|
+ (
|
||||||
divU*p
|
(divU*p)() - contErr/rho*p
|
||||||
+ fvc::ddt(rho, K) + fvc::div(rhoPhi, K)
|
+ (fvc::ddt(rho, K) + fvc::div(rhoPhi, K))() - contErr*K
|
||||||
)
|
)
|
||||||
*(
|
*(
|
||||||
alpha1/mixture.thermo1().Cv()
|
alpha1()/mixture.thermo1().Cv()()
|
||||||
+ alpha2/mixture.thermo2().Cv()
|
+ alpha2()/mixture.thermo2().Cv()()
|
||||||
)
|
)
|
||||||
==
|
==
|
||||||
fvOptions(rho, T)
|
fvOptions(rho, T)
|
||||||
|
|||||||
@ -119,12 +119,8 @@ int main(int argc, char *argv[])
|
|||||||
ghf = (g & mesh.Cf()) - ghRef;
|
ghf = (g & mesh.Cf()) - ghRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mesh.changing() && correctPhi) || mesh.topoChanging())
|
if ((mesh.changing() && correctPhi))
|
||||||
{
|
{
|
||||||
// Calculate absolute flux from the mapped surface velocity
|
|
||||||
// Note: temporary fix until mapped Uf is assessed
|
|
||||||
Uf = fvc::interpolate(U);
|
|
||||||
|
|
||||||
// Calculate absolute flux from the mapped surface velocity
|
// Calculate absolute flux from the mapped surface velocity
|
||||||
phi = mesh.Sf() & Uf;
|
phi = mesh.Sf() & Uf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user