mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: consolidate 'formatOptions' handling for coordSetWriter/surfaceWriter
- replaced ad hoc handling of formatOptions with coordSetWriter and
surfaceWriter helpers.
Accompanying this change, it is now possible to specify "default"
settings to be inherited, format-specific settings and have a
similar layering with surface-specific overrides.
- snappyHexMesh now conforms to setFormats
Eg,
formatOptions
{
default
{
verbose true;
format binary;
}
vtk
{
precision 10;
}
}
surfaces
{
surf1
{
...
formatOptions
{
ensight
{
scale 1000;
}
}
}
}
This commit is contained in:
committed by
Andrew Heather
parent
b7592c1ee8
commit
5b29ff0e42
@ -96,6 +96,14 @@ plane
|
||||
|
||||
surfaceFormat vtk;
|
||||
|
||||
formatOptions
|
||||
{
|
||||
default
|
||||
{
|
||||
verbose true;
|
||||
}
|
||||
}
|
||||
|
||||
surfaces
|
||||
{
|
||||
zNormal
|
||||
|
||||
@ -44,6 +44,15 @@ __surfaceFieldValue
|
||||
|
||||
writeFields false;
|
||||
surfaceFormat vtk;
|
||||
|
||||
formatOptions
|
||||
{
|
||||
default
|
||||
{
|
||||
verbose true;
|
||||
}
|
||||
}
|
||||
|
||||
// writeArea true;
|
||||
|
||||
// resetOnStartUp true;
|
||||
|
||||
@ -44,6 +44,15 @@ __surfaceFieldValue
|
||||
|
||||
writeFields false;
|
||||
surfaceFormat vtk;
|
||||
|
||||
formatOptions
|
||||
{
|
||||
default
|
||||
{
|
||||
verbose true;
|
||||
}
|
||||
}
|
||||
|
||||
// writeArea true;
|
||||
|
||||
// resetOnStartUp true;
|
||||
|
||||
Reference in New Issue
Block a user