From 3ce1bdb63dfc15762fb18138b9a50e06f4dd013c Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 13 Aug 2015 19:08:52 +0100 Subject: [PATCH] uniformFixedGradientFvPatchField: Corrected constructor Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1827 --- .../uniformFixedGradient/uniformFixedGradientFvPatchField.C | 2 ++ .../uniformFixedGradientFvPatchFieldsFwd.H | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C index 566093591a..0a5a113d90 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C @@ -90,6 +90,8 @@ Foam::uniformFixedGradientFvPatchField::uniformFixedGradientFvPatchField const scalar t = this->db().time().timeOutputValue(); this->gradient() = uniformGradient_->value(t); } + + fixedGradientFvPatchField::evaluate(); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchFieldsFwd.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchFieldsFwd.H index 9eaa07e2a6..d76a6080e2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchFieldsFwd.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchFieldsFwd.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -37,7 +37,7 @@ namespace Foam template class uniformFixedGradientFvPatchField; -makePatchTypeFieldTypedefs(uniform); +makePatchTypeFieldTypedefs(uniformFixedGradient); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //