Commit 49eeeff6 authored by Andrew Heather's avatar Andrew Heather

BUG: Corrected debug output for solarLoad. Fixes #1195

parent 8577ea1f
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2017-2018 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2017-2019 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -26,11 +26,10 @@ License
#include "faceShading.H"
#include "fvMesh.H"
#include "boundaryRadiationProperties.H"
#include "OFstream.H"
#include "cyclicAMIPolyPatch.H"
#include "volFields.H"
#include "distributedTriSurfaceMesh.H"
#include "OBJstream.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
......@@ -49,25 +48,14 @@ void Foam::faceShading::writeRays
const pointField& myFc
)
{
OFstream str(fName);
label vertI = 0;
OBJstream os(fName);
Pout<< "Dumping rays to " << str.name() << endl;
Pout<< "Dumping rays to " << os.name() << endl;
forAll(myFc, faceI)
{
meshTools::writeOBJ(str, myFc[faceI]);
vertI++;
meshTools::writeOBJ(str, endCf[faceI]);
vertI++;
str << "l " << vertI-1 << ' ' << vertI << nl;
os.write(linePointRef(myFc[faceI], endCf[faceI]));
}
str.flush();
Pout<< "cmd: objToVTK " << fName.c_str() << endl;
stringList cmd({"objToVTK", fName, fName.lessExt().ext("vtk")});
Foam::system(cmd);
}
......
......@@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm -rf VTK
rm -rf constant/cellToRegion
rm -rf constant/*/polyMesh # region meshes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment