Bug fix: update surface normal velocity on a moving mesh: normal may be changing

This commit is contained in:
Hrvoje Jasak 2010-10-15 19:56:26 +01:00
parent 4c38814d3f
commit 1d67c3b2bd
2 changed files with 17 additions and 0 deletions

View file

@ -129,6 +129,18 @@ void surfaceNormalFixedValueFvPatchVectorField::rmap
} }
void surfaceNormalFixedValueFvPatchVectorField::updateCoeffs()
{
if (updated())
{
return;
}
// Bug fix: update for moving mesh. HJ, 15/Oct/2010
operator==(refValue_*patch().nf());
}
void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const
{ {
fvPatchVectorField::write(os); fvPatchVectorField::write(os);

View file

@ -151,6 +151,11 @@ public:
); );
// Member functions
//- Update the coefficients associated with the patch field
virtual void updateCoeffs();
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
}; };