Commit ce791824 authored by henry's avatar henry
Browse files

Minor reformatting.

parent bb11fcdb
......@@ -63,22 +63,23 @@ void Foam::fieldAverage::addMeanField
const fieldType& baseField =
obr_.lookupObject<fieldType>(fieldName);
fieldType* fPtr = new fieldType
// Store on registry
obr_.store
(
IOobject
new fieldType
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
baseField
IOobject
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
1*baseField
)
);
// Store on registry
fPtr->store();
meanFieldList[fieldI] = meanFieldName;
}
}
......@@ -121,22 +122,22 @@ void Foam::fieldAverage::addPrime2MeanField
const fieldType1& meanField =
obr_.lookupObject<fieldType1>(meanFieldList[fieldI]);
fieldType2* fPtr = new fieldType2
obr_.store
(
IOobject
new fieldType2
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
sqr(baseField) - sqr(meanField)
IOobject
(
meanFieldName,
obr_.time().timeName(),
obr_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
sqr(baseField) - sqr(meanField)
)
);
// Store on registry
fPtr->store();
prime2MeanFieldList[fieldI] = meanFieldName;
}
}
......
......@@ -102,12 +102,13 @@ void fixedEnthalpyFvPatchScalarField::updateCoeffs()
(
"thermophysicalProperties"
);
const label patchi = patch().index();
fvPatchScalarField& Tw =
fvPatchScalarField& Tw =
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
Tw.evaluate();
operator==(thermo.h(Tw, patchi));
fixedValueFvPatchScalarField::updateCoeffs();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment