ddtSchemes: Name meshPhi "meshPhi" and do not register

This commit is contained in:
Henry
2014-06-19 16:27:35 +01:00
committed by Andrew Heather
parent ad317db793
commit 9f6053c69e
6 changed files with 47 additions and 6 deletions

View File

@ -843,7 +843,9 @@ tmp<surfaceScalarField> CoEulerDdtScheme<Type>::meshPhi
(
"meshPhi",
mesh().time().timeName(),
mesh()
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh(),
dimensionedScalar("0", dimVolume/dimTime, 0.0)

View File

@ -1426,7 +1426,22 @@ tmp<surfaceScalarField> CrankNicolsonDdtScheme<Type>::meshPhi
coef0_(meshPhi0)*mesh().phi().oldTime() - offCentre_(meshPhi0());
}
return coef_(meshPhi0)*mesh().phi() - offCentre_(meshPhi0());
return tmp<surfaceScalarField>
(
new surfaceScalarField
(
IOobject
(
mesh().phi().name(),
mesh().time().timeName(),
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
coef_(meshPhi0)*mesh().phi() - offCentre_(meshPhi0())
)
);
}

View File

@ -845,7 +845,10 @@ tmp<surfaceScalarField> SLTSDdtScheme<Type>::meshPhi
(
"meshPhi",
mesh().time().timeName(),
mesh()
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
mesh(),
dimensionedScalar("0", dimVolume/dimTime, 0.0)

View File

@ -976,7 +976,22 @@ tmp<surfaceScalarField> backwardDdtScheme<Type>::meshPhi
// Coefficient for t-1/2 (between times n and 0)
scalar coefftn_0 = 1 + coefft0_00;
return coefftn_0*mesh().phi() - coefft0_00*mesh().phi().oldTime();
return tmp<surfaceScalarField>
(
new surfaceScalarField
(
IOobject
(
mesh().phi().name(),
mesh().time().timeName(),
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
coefftn_0*mesh().phi() - coefft0_00*mesh().phi().oldTime()
)
);
}

View File

@ -740,7 +740,10 @@ tmp<surfaceScalarField> localEulerDdtScheme<Type>::meshPhi
(
"meshPhi",
mesh().time().timeName(),
mesh()
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
mesh(),
dimensionedScalar("0", dimVolume/dimTime, 0.0)

View File

@ -412,7 +412,10 @@ tmp<surfaceScalarField> steadyStateDdtScheme<Type>::meshPhi
(
"meshPhi",
mesh().time().timeName(),
mesh()
mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
mesh(),
dimensionedScalar("0", dimVolume/dimTime, 0.0)