mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2016-2017 Wikki Ltd
|
||||
@ -173,6 +173,12 @@ Foam::faBoundaryMesh::faBoundaryMesh
|
||||
|
||||
void Foam::faBoundaryMesh::calcGeometry()
|
||||
{
|
||||
// processorFaPatch geometry triggers calculation of pointNormals.
|
||||
// This uses parallel comms and hence will not be trigggered
|
||||
// on processors that do not have a processorFaPatch so instead
|
||||
// force construction.
|
||||
(void)mesh_.pointAreaNormals();
|
||||
|
||||
forAll(*this, patchi)
|
||||
{
|
||||
operator[](patchi).initGeometry();
|
||||
@ -377,6 +383,12 @@ bool Foam::faBoundaryMesh::checkDefinition(const bool report) const
|
||||
|
||||
void Foam::faBoundaryMesh::movePoints(const pointField& p)
|
||||
{
|
||||
// processorFaPatch geometry triggers calculation of pointNormals.
|
||||
// This uses parallel comms and hence will not be trigggered
|
||||
// on processors that do not have a processorFaPatch so instead
|
||||
// force construction.
|
||||
(void)mesh_.pointAreaNormals();
|
||||
|
||||
faPatchList& patches = *this;
|
||||
|
||||
forAll(patches, patchi)
|
||||
|
||||
@ -2,10 +2,8 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -28,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 * * * * * * * * * * * * * //
|
||||
|
||||
@ -51,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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user