mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected debug output for solarLoad. Fixes #1195
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user