mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated the boundaryDataSurfaceWriter to use a plain list for the points file
This commit is contained in:
@ -190,22 +190,17 @@ Foam::turbulentDFSEMInletFvPatchVectorField::patchMapper() const
|
|||||||
// Initialise interpolation (2D planar interpolation by triangulation)
|
// Initialise interpolation (2D planar interpolation by triangulation)
|
||||||
if (mapperPtr_.empty())
|
if (mapperPtr_.empty())
|
||||||
{
|
{
|
||||||
// vectorGlobalIOField samplePoints
|
// Reread values and interpolate
|
||||||
vectorIOField samplePoints
|
fileName samplePointsFile
|
||||||
(
|
(
|
||||||
IOobject
|
this->db().time().path()
|
||||||
(
|
/this->db().time().caseConstant()
|
||||||
"points",
|
/"boundaryData"
|
||||||
this->db().time().caseConstant(),
|
/this->patch().name()
|
||||||
"boundaryData"/this->patch().name(),
|
/"points"
|
||||||
this->db(),
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const fileName samplePointsFile = samplePoints.filePath();
|
pointField samplePoints((IFstream(samplePointsFile)()));
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -88,9 +88,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::write
|
|||||||
mkDir(pts.path());
|
mkDir(pts.path());
|
||||||
OFstream os(pts.objectPath());
|
OFstream os(pts.objectPath());
|
||||||
|
|
||||||
pts.writeHeader(os);
|
//pts.writeHeader(os);
|
||||||
pts.writeData(os);
|
pts.writeData(os);
|
||||||
pts.writeEndDivider(os);
|
//pts.writeEndDivider(os);
|
||||||
}
|
}
|
||||||
|
|
||||||
return baseDir;
|
return baseDir;
|
||||||
|
|||||||
@ -106,9 +106,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::writeTemplate
|
|||||||
mkDir(pts.path());
|
mkDir(pts.path());
|
||||||
OFstream os(pts.objectPath());
|
OFstream os(pts.objectPath());
|
||||||
|
|
||||||
pts.writeHeader(os);
|
//pts.writeHeader(os);
|
||||||
pts.writeData(os);
|
pts.writeData(os);
|
||||||
pts.writeEndDivider(os);
|
//pts.writeEndDivider(os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +1,3 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*| ========= | |
|
|
||||||
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \ / O peration | Version: plus |
|
|
||||||
| \ / A nd | Web: www.OpenFOAM.com |
|
|
||||||
| \/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class vectorField;
|
|
||||||
object points;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
(
|
(
|
||||||
(0 0.0000e+00 0)
|
(0 0.0000e+00 0)
|
||||||
(0 7.5298e-05 0)
|
(0 7.5298e-05 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user