From af4f1f42e5a2a8b64d9021a2ae0574cf5b3b376c Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 3 Oct 2012 14:07:43 +0100 Subject: [PATCH] ENH: pointPatchField: added fixesValue --- .../basic/fixedValue/fixedValuePointPatchField.H | 13 ++++++++++++- .../pointPatchField/pointPatchField.H | 8 +++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H index 5c8f1466bd..d739bc239f 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -121,6 +121,17 @@ public: } + // Member functions + + // Access + + //- Return true if this patch field fixes a value + virtual bool fixesValue() const + { + return true; + } + + // Member operators // Disable assignment operators diff --git a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H index 5c3b19d8e7..39b1c9e551 100644 --- a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -278,6 +278,12 @@ public: return internalField_; } + //- Return true if this patch field fixes a value + virtual bool fixesValue() const + { + return false; + } + //- Return true if this patch field is coupled virtual bool coupled() const {