From 980027bd607b2c01205d3019ad7e296d7627e4e8 Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 24 Apr 2012 10:43:44 +0100 Subject: [PATCH] BUG: Delay the call to solidThermo in Radiation BC constructor in case the solid region has not being constructed yet --- .../greyDiffusiveRadiationMixedFvPatchScalarField.C | 4 +++- .../system/bottomAir/changeDictionaryDict | 2 -- .../system/topAir/changeDictionaryDict | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/thermophysicalModels/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C b/src/thermophysicalModels/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C index 57acb81533..02637c203a 100644 --- a/src/thermophysicalModels/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C +++ b/src/thermophysicalModels/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C @@ -102,8 +102,10 @@ greyDiffusiveRadiationMixedFvPatchScalarField const scalarField& Tp = patch().lookupPatchField(TName_); + //NOTE: Assumes emissivity = 1 as the solidThermo might + // not be constructed yet refValue() = - 4.0*physicoChemical::sigma.value()*pow4(Tp)*emissivity()/pi; + 4.0*physicoChemical::sigma.value()*pow4(Tp)/pi; refGrad() = 0.0; valueFraction() = 1.0; diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict index 7fc53289cc..f08a1ebff8 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict @@ -174,7 +174,6 @@ dictionaryReplacement type greyDiffusiveRadiation; T T; emissivityMode lookup; - Qro uniform 0; emissivity uniform 1.0; value uniform 0; } @@ -184,7 +183,6 @@ dictionaryReplacement type greyDiffusiveRadiation; T T; emissivityMode solidThermo; - Qro uniform 0; value uniform 0; } } diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict index 6647732e8f..4c78380972 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict @@ -221,7 +221,6 @@ dictionaryReplacement type greyDiffusiveRadiation; T T; emissivityMode lookup; - Qro uniform 0; emissivity uniform 1.0; value uniform 0; } @@ -231,7 +230,6 @@ dictionaryReplacement type greyDiffusiveRadiation; T T; emissivityMode solidThermo; - Qro uniform 0; value uniform 0; } }