compressibleTwoPhaseEulerFoam: Corrected pressure work due to interface motion in EEqns

This commit is contained in:
Henry
2013-05-06 22:25:57 +01:00
parent 2caa044ad6
commit 15e553b881
3 changed files with 9 additions and 26 deletions

View File

@ -28,8 +28,8 @@
+ ( + (
he1.name() == thermo1.phasePropertyName("e") he1.name() == thermo1.phasePropertyName("e")
? fvc::div(alphaPhi1, p) ? fvc::ddt(alpha1)*p + fvc::div(alphaPhi1, p)
: -dalpha1pdt : -alpha1*dpdt
)/rho1 )/rho1
- fvm::laplacian(k1, he1) - fvm::laplacian(k1, he1)
@ -50,8 +50,8 @@
+ ( + (
he2.name() == thermo2.phasePropertyName("e") he2.name() == thermo2.phasePropertyName("e")
? fvc::div(alphaPhi2, p) ? fvc::ddt(alpha2)*p + fvc::div(alphaPhi2, p)
: -dalpha2pdt : -alpha2*dpdt
)/rho2 )/rho2
- fvm::laplacian(k2, he2) - fvm::laplacian(k2, he2)

View File

@ -275,8 +275,8 @@
); );
Info<< "Creating field dalpha1pdt\n" << endl; Info<< "Creating field dpdt\n" << endl;
volScalarField dalpha1pdt volScalarField dpdt
( (
IOobject IOobject
( (
@ -285,21 +285,9 @@
mesh mesh
), ),
mesh, mesh,
dimensionedScalar("dalpha1pdt", p.dimensions()/dimTime, 0) dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
); );
Info<< "Creating field dalpha2pdt\n" << endl;
volScalarField dalpha2pdt
(
IOobject
(
"dpdt",
runTime.timeName(),
mesh
),
mesh,
dimensionedScalar("dalpha2pdt", p.dimensions()/dimTime, 0)
);
Info<< "Creating field kinetic energy K\n" << endl; Info<< "Creating field kinetic energy K\n" << endl;
volScalarField K1("K" + phase1Name, 0.5*magSqr(U1)); volScalarField K1("K" + phase1Name, 0.5*magSqr(U1));

View File

@ -208,13 +208,8 @@
K1 = 0.5*magSqr(U1); K1 = 0.5*magSqr(U1);
K2 = 0.5*magSqr(U2); K2 = 0.5*magSqr(U2);
if (thermo1.dpdt()) if (thermo1.dpdt() || thermo2.dpdt())
{ {
dalpha1pdt = fvc::ddt(alpha1, p); dpdt = fvc::ddt(p);
}
if (thermo2.dpdt())
{
dalpha2pdt = fvc::ddt(alpha2, p);
} }
} }