Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
abb59735
Commit
abb59735
authored
Jun 22, 2018
by
Andrew Heather
Browse files
ENH: Updated the boundaryDataSurfaceWriter to use a plain list for the points file
parent
b68fe2c7
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C
View file @
abb59735
...
...
@@ -190,22 +190,17 @@ Foam::turbulentDFSEMInletFvPatchVectorField::patchMapper() const
// Initialise interpolation (2D planar interpolation by triangulation)
if
(
mapperPtr_
.
empty
())
{
//
vectorGlobalIOField samplePoints
vectorIOField
samplePoints
// Reread values and interpolate
fileName
samplePoints
File
(
IOobject
(
"points"
,
this
->
db
().
time
().
caseConstant
(),
"boundaryData"
/
this
->
patch
().
name
(),
this
->
db
(),
IOobject
::
MUST_READ
,
IOobject
::
AUTO_WRITE
,
false
)
this
->
db
().
time
().
path
()
/
this
->
db
().
time
().
caseConstant
()
/
"boundaryData"
/
this
->
patch
().
name
()
/
"points"
);
const
fileName
samplePoints
File
=
samplePoints
.
f
ile
Path
(
);
pointField
samplePoints
((
IFstream
(
samplePoints
F
ile
)())
);
if
(
debug
)
{
...
...
src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriter.C
View file @
abb59735
...
...
@@ -88,9 +88,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::write
mkDir
(
pts
.
path
());
OFstream
os
(
pts
.
objectPath
());
pts
.
writeHeader
(
os
);
//
pts.writeHeader(os);
pts
.
writeData
(
os
);
pts
.
writeEndDivider
(
os
);
//
pts.writeEndDivider(os);
}
return
baseDir
;
...
...
src/sampling/sampledSurface/writers/boundaryData/boundaryDataSurfaceWriterTemplates.C
View file @
abb59735
...
...
@@ -106,9 +106,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::writeTemplate
mkDir
(
pts
.
path
());
OFstream
os
(
pts
.
objectPath
());
pts
.
writeHeader
(
os
);
//
pts.writeHeader(os);
pts
.
writeData
(
os
);
pts
.
writeEndDivider
(
os
);
//
pts.writeEndDivider(os);
}
...
...
tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/constant/boundaryData/inlet/points
View file @
abb59735
/*--------------------------------*- 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 7.5298e-05 0)
...
...
Mark Olesen
@mark
mentioned in issue
#1595 (closed)
·
Feb 18, 2020
mentioned in issue
#1595 (closed)
mentioned in issue #1595
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment