Update of surface normal evaluation, write and mapping

This commit is contained in:
Hrvoje Jasak 2014-08-19 20:27:04 +01:00 committed by Dominik Christ
parent 3a22faaa90
commit aa0e39703f

View file

@ -56,11 +56,9 @@ surfaceNormalFixedValueFvPatchVectorField
const fvPatchFieldMapper& mapper
)
:
fixedValueFvPatchVectorField(p, iF),
fixedValueFvPatchVectorField(ptf, p, iF, mapper),
refValue_(ptf.refValue_, mapper)
{
fvPatchVectorField::operator=(refValue_*patch().nf());
}
{}
surfaceNormalFixedValueFvPatchVectorField::
@ -71,11 +69,9 @@ surfaceNormalFixedValueFvPatchVectorField
const dictionary& dict
)
:
fixedValueFvPatchVectorField(p, iF),
fixedValueFvPatchVectorField(p, iF, dict),
refValue_("refValue", dict, p.size())
{
fvPatchVectorField::operator=(refValue_*patch().nf());
}
{}
surfaceNormalFixedValueFvPatchVectorField::
@ -142,9 +138,8 @@ void surfaceNormalFixedValueFvPatchVectorField::updateCoeffs()
void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
fixedValueFvPatchVectorField::write(os);
refValue_.writeEntry("refValue", os);
writeEntry("value", os);
}