diff --git a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C index 335fa31068..3a3ec81cf4 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C +++ b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C @@ -45,6 +45,8 @@ Description #include "fixedValueFvPatchFields.H" #include "distributedTriSurfaceMesh.H" #include "cyclicAMIPolyPatch.H" +#include "symmetryPolyPatch.H" +#include "symmetryPlanePolyPatch.H" #include "wedgePolyPatch.H" #include "meshTools.H" #include "uindirectPrimitivePatch.H" @@ -254,11 +256,17 @@ int main(int argc, char *argv[]) forAll(patches, patchi) { const polyPatch& pp = patches[patchi]; - if (isA(pp) || isA(pp)) + if + ( + isA(pp) + || isA(pp) + || isA(pp) + || isA(pp) + ) { FatalErrorIn(args.executable()) << args.executable() - << " does not currently support transforming patches, " - "cyclic and wedge." + << " does not currently support transforming patches: " + "cyclic, symmetry and wedge." << exit(FatalError); } } diff --git a/src/radiationModels/radiationModels/fvDOM/fvDOM.C b/src/radiationModels/radiationModels/fvDOM/fvDOM.C index f5e958cbab..c47875c1b3 100644 --- a/src/radiationModels/radiationModels/fvDOM/fvDOM.C +++ b/src/radiationModels/radiationModels/fvDOM/fvDOM.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,6 +28,7 @@ License #include "scatterModel.H" #include "constants.H" #include "fvm.H" +#include "wedgePolyPatch.H" #include "addToRunTimeSelectionTable.H" using namespace Foam::constant; @@ -49,6 +50,25 @@ namespace radiationModels void Foam::radiationModels::fvDOM::initialise() { + forAll(mesh_.boundaryMesh(), patchi) + { + const polyPatch& pp = mesh_.boundaryMesh()[patchi]; + if + ( + ( + isA(pp) + && refCast(pp).transform().rotates() + ) + || isA(pp) + ) + { + FatalErrorInFunction << type() + << " radiation model does not currently support" + " rotationally transforming patches: cyclic and wedge." + << exit(FatalError); + } + } + // 3D if (mesh_.nSolutionD() == 3) {