mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Corrected for SP.
This commit is contained in:
@ -28,7 +28,7 @@
|
|||||||
),
|
),
|
||||||
// Divergence term is handled explicitly to be
|
// Divergence term is handled explicitly to be
|
||||||
// consistent with the explicit transport solution
|
// consistent with the explicit transport solution
|
||||||
divU*min(alpha1, 1.0)
|
divU*min(alpha1, scalar(1))
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(dgdt, celli)
|
forAll(dgdt, celli)
|
||||||
|
|||||||
@ -140,7 +140,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
volScalarField dgdt =
|
volScalarField dgdt =
|
||||||
pos(alpha2)*fvc::div(phi)/max(alpha2, 0.0001);
|
pos(alpha2)*fvc::div(phi)/max(alpha2, scalar(0.0001));
|
||||||
|
|
||||||
// Construct interface from alpha1 distribution
|
// Construct interface from alpha1 distribution
|
||||||
interfaceProperties interface(alpha1, U, twoPhaseProperties);
|
interfaceProperties interface(alpha1, U, twoPhaseProperties);
|
||||||
|
|||||||
@ -40,7 +40,10 @@
|
|||||||
|
|
||||||
solve
|
solve
|
||||||
(
|
(
|
||||||
(max(alpha1, 0.0)*(psi1/rho1) + max(alpha2, 0.0)*(psi2/rho2))
|
(
|
||||||
|
max(alpha1, scalar(0))*(psi1/rho1)
|
||||||
|
+ max(alpha2, scalar(0))*(psi2/rho2)
|
||||||
|
)
|
||||||
*pdEqnComp()
|
*pdEqnComp()
|
||||||
+ pdEqnIncomp
|
+ pdEqnIncomp
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user