From 9e0e9fd37f83621d8e130e44d3ca76be6c6d68cc Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 24 Feb 2016 16:01:40 +0000 Subject: [PATCH] calculatedFvPatchField: 'value' entry is now required to avoid problems with non-initialization --- .../fvPatchFields/basic/calculated/calculatedFvPatchField.H | 4 ++-- tutorials/combustion/fireFoam/les/smallPoolFire2D/0/soot | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H index 1afb39929..d4b01de32 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H @@ -39,7 +39,7 @@ Description myPatch { type calculated; - value uniform (0 0 0); // optional value entry + value uniform (0 0 0); // Required value entry } \endverbatim @@ -89,7 +89,7 @@ public: const fvPatch&, const DimensionedField&, const dictionary&, - const bool valueRequired=false + const bool valueRequired=true ); //- Construct by mapping given patchField onto a new patch diff --git a/tutorials/combustion/fireFoam/les/smallPoolFire2D/0/soot b/tutorials/combustion/fireFoam/les/smallPoolFire2D/0/soot index cc500661a..1ceda2d91 100644 --- a/tutorials/combustion/fireFoam/les/smallPoolFire2D/0/soot +++ b/tutorials/combustion/fireFoam/les/smallPoolFire2D/0/soot @@ -24,6 +24,7 @@ boundaryField ".*" { type calculated; + value $internalField; } frontAndBack