Minor reformatting.

This commit is contained in:
henry
2009-07-14 21:11:36 +01:00
parent bb11fcdbad
commit ce79182495
2 changed files with 30 additions and 28 deletions

View File

@ -63,21 +63,22 @@ void Foam::fieldAverage::addMeanField
const fieldType& baseField = const fieldType& baseField =
obr_.lookupObject<fieldType>(fieldName); obr_.lookupObject<fieldType>(fieldName);
fieldType* fPtr = new fieldType
(
IOobject
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
baseField
);
// Store on registry // Store on registry
fPtr->store(); obr_.store
(
new fieldType
(
IOobject
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
1*baseField
)
);
meanFieldList[fieldI] = meanFieldName; meanFieldList[fieldI] = meanFieldName;
} }
@ -121,22 +122,22 @@ void Foam::fieldAverage::addPrime2MeanField
const fieldType1& meanField = const fieldType1& meanField =
obr_.lookupObject<fieldType1>(meanFieldList[fieldI]); obr_.lookupObject<fieldType1>(meanFieldList[fieldI]);
fieldType2* fPtr = new fieldType2 obr_.store
( (
IOobject new fieldType2
( (
meanFieldName, IOobject
obr_.time().timeName(), (
obr_, meanFieldName,
IOobject::READ_IF_PRESENT, obr_.time().timeName(),
IOobject::NO_WRITE obr_,
), IOobject::READ_IF_PRESENT,
sqr(baseField) - sqr(meanField) IOobject::NO_WRITE
),
sqr(baseField) - sqr(meanField)
)
); );
// Store on registry
fPtr->store();
prime2MeanFieldList[fieldI] = meanFieldName; prime2MeanFieldList[fieldI] = meanFieldName;
} }
} }

View File

@ -102,12 +102,13 @@ void fixedEnthalpyFvPatchScalarField::updateCoeffs()
( (
"thermophysicalProperties" "thermophysicalProperties"
); );
const label patchi = patch().index(); const label patchi = patch().index();
fvPatchScalarField& Tw = fvPatchScalarField& Tw =
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]); const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
Tw.evaluate(); Tw.evaluate();
operator==(thermo.h(Tw, patchi)); operator==(thermo.h(Tw, patchi));
fixedValueFvPatchScalarField::updateCoeffs(); fixedValueFvPatchScalarField::updateCoeffs();