diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C index 3a1236fa0a..fa511dcacd 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C @@ -533,6 +533,11 @@ bool Foam::radiation::laserDTRM::read() return false; } +Foam::label Foam::radiation::laserDTRM::nBands() const +{ + return 1; +} + void Foam::radiation::laserDTRM::calculate() { diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.H b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.H index 4bdc470ade..71d78eff7d 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.H +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.H @@ -250,6 +250,9 @@ public: //- Read radiation properties dictionary bool read(); + //- Number of bands for this radiation model + virtual label nBands() const; + // Access diff --git a/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.H b/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.H index 8788ffda7a..8e00384d11 100644 --- a/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.H +++ b/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2016 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2018 OpenFOAM Foundation diff --git a/src/parallel/distributed/patchDistMethods/exact/exactPatchDistMethod.C b/src/parallel/distributed/patchDistMethods/exact/exactPatchDistMethod.C index be57dc7c96..671d765b44 100644 --- a/src/parallel/distributed/patchDistMethods/exact/exactPatchDistMethod.C +++ b/src/parallel/distributed/patchDistMethods/exact/exactPatchDistMethod.C @@ -77,6 +77,8 @@ Foam::patchDistMethods::exact::patchSurface() const Info<< "Triangulating local patch faces" << nl << endl; + labelList mapTriToGlobal; + patchSurfPtr_.reset ( new distributedTriSurfaceMesh @@ -93,7 +95,8 @@ Foam::patchDistMethods::exact::patchSurface() const triSurfaceTools::triangulate ( pbm, - patchIDs_ + patchIDs_, + mapTriToGlobal ), dict ) diff --git a/src/thermophysicalModels/radiation/radiationModels/solarLoad/faceReflecting/faceReflecting.C b/src/thermophysicalModels/radiation/radiationModels/solarLoad/faceReflecting/faceReflecting.C index 0337ed9f60..b44c20b723 100644 --- a/src/thermophysicalModels/radiation/radiationModels/solarLoad/faceReflecting/faceReflecting.C +++ b/src/thermophysicalModels/radiation/radiationModels/solarLoad/faceReflecting/faceReflecting.C @@ -125,9 +125,11 @@ void Foam::faceReflecting::initialise(const dictionary& coeffs) // global face index globalIndex globalNumbering(mesh_.nFaces()); + // Collect faces with t = 0, r = 0 and a > 0 to shoot rays // and patches to construct the triSurface DynamicList dynCf; + DynamicList dynNf; DynamicList