mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Minor reformatting.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user