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
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2017-2018 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -26,11 +26,10 @@ License
|
|||||||
#include "faceShading.H"
|
#include "faceShading.H"
|
||||||
#include "fvMesh.H"
|
#include "fvMesh.H"
|
||||||
#include "boundaryRadiationProperties.H"
|
#include "boundaryRadiationProperties.H"
|
||||||
#include "OFstream.H"
|
|
||||||
#include "cyclicAMIPolyPatch.H"
|
#include "cyclicAMIPolyPatch.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "distributedTriSurfaceMesh.H"
|
#include "distributedTriSurfaceMesh.H"
|
||||||
|
#include "OBJstream.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -49,25 +48,14 @@ void Foam::faceShading::writeRays
|
|||||||
const pointField& myFc
|
const pointField& myFc
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
OFstream str(fName);
|
OBJstream os(fName);
|
||||||
label vertI = 0;
|
|
||||||
|
|
||||||
Pout<< "Dumping rays to " << str.name() << endl;
|
Pout<< "Dumping rays to " << os.name() << endl;
|
||||||
|
|
||||||
forAll(myFc, faceI)
|
forAll(myFc, faceI)
|
||||||
{
|
{
|
||||||
meshTools::writeOBJ(str, myFc[faceI]);
|
os.write(linePointRef(myFc[faceI], endCf[faceI]));
|
||||||
vertI++;
|
|
||||||
meshTools::writeOBJ(str, endCf[faceI]);
|
|
||||||
vertI++;
|
|
||||||
str << "l " << vertI-1 << ' ' << vertI << nl;
|
|
||||||
}
|
}
|
||||||
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
|
cleanCase0
|
||||||
|
|
||||||
rm -rf VTK
|
|
||||||
rm -rf constant/cellToRegion
|
rm -rf constant/cellToRegion
|
||||||
rm -rf constant/*/polyMesh # region meshes
|
rm -rf constant/*/polyMesh # region meshes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user