mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
30 lines
528 B
C
30 lines
528 B
C
{
|
|
volScalarField rhoEff
|
|
(
|
|
IOobject
|
|
(
|
|
"rhoEff",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
1.0 - beta*(T - TRef)
|
|
);
|
|
rhoEff.write();
|
|
|
|
volScalarField p
|
|
(
|
|
IOobject
|
|
(
|
|
"p",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
pd + rhoEff*(g & mesh.C()) + pRef
|
|
);
|
|
p.write();
|
|
}
|