diff --git a/src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.C b/src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.C index 7e23a2a14f..683f2a9c66 100644 --- a/src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.C +++ b/src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.C @@ -185,6 +185,7 @@ Foam::tmp Foam::SRF::SRFModel::U() const const int oldLocal = volVectorField::Boundary::localConsistency; volVectorField::Boundary::localConsistency = 0; tmp relPos(mesh_.C() - origin_); + tmp tU ( new volVectorField @@ -197,7 +198,7 @@ Foam::tmp Foam::SRF::SRFModel::U() const IOobject::NO_READ, IOobject::NO_WRITE ), - omega_ ^ (relPos - axis_*(axis_ & relPos)) + omega_ ^ (relPos() - axis_*(axis_ & relPos())) ) ); volVectorField::Boundary::localConsistency = oldLocal; diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H index fd05d9ee4f..6237d679d8 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H @@ -102,8 +102,7 @@ class fvPatchFieldBase word patchType_; -//protected: -public: +protected: // Protected Member Functions @@ -111,6 +110,9 @@ public: // Useful when initially constructed without a dictionary virtual void readDict(const dictionary& dict); + +public: + //- Set updated state void setUpdated(bool state) noexcept {