ENH: use meshedSurf API for surface writers (issue #104)

- Allows passing of additional information (per-face zone ids) or possibly
  other things, while reducing the number of arguments to pass.

- In sampledTriSurfaceMesh, preserve the region information that was
  read in, passing it onwards via the UnsortedMeshSurface content.

  The Nastran surface writer is currently the only writer making use
  of this per-face zone information.
  Passing it through as a PSHELL attribute, which should retain the
  distinction for parts. (issue #204)
This commit is contained in:
Mark Olesen
2016-08-10 15:41:24 +02:00
parent eee0dd02c5
commit 1fc2a73213
58 changed files with 456 additions and 399 deletions

View File

@ -328,8 +328,11 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::writeValues
(
outputDir(),
regionTypeNames_[regionType_] + ("_" + regionName_),
points,
faces,
meshedSurfRef
(
points,
faces
),
fieldName,
allValues,
false