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,7 +63,10 @@ void Foam::fieldAverage::addMeanField
|
|||||||
const fieldType& baseField =
|
const fieldType& baseField =
|
||||||
obr_.lookupObject<fieldType>(fieldName);
|
obr_.lookupObject<fieldType>(fieldName);
|
||||||
|
|
||||||
fieldType* fPtr = new fieldType
|
// Store on registry
|
||||||
|
obr_.store
|
||||||
|
(
|
||||||
|
new fieldType
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -73,12 +76,10 @@ void Foam::fieldAverage::addMeanField
|
|||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
baseField
|
1*baseField
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Store on registry
|
|
||||||
fPtr->store();
|
|
||||||
|
|
||||||
meanFieldList[fieldI] = meanFieldName;
|
meanFieldList[fieldI] = meanFieldName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -121,7 +122,9 @@ 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
|
||||||
|
(
|
||||||
|
new fieldType2
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -132,11 +135,9 @@ void Foam::fieldAverage::addPrime2MeanField
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
sqr(baseField) - sqr(meanField)
|
sqr(baseField) - sqr(meanField)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Store on registry
|
|
||||||
fPtr->store();
|
|
||||||
|
|
||||||
prime2MeanFieldList[fieldI] = meanFieldName;
|
prime2MeanFieldList[fieldI] = meanFieldName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -108,6 +108,7 @@ void fixedEnthalpyFvPatchScalarField::updateCoeffs()
|
|||||||
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