Commit f99880cb authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add nodeValues option for ensightWrite function object (closes #734)

parent b24bd516
......@@ -111,30 +111,32 @@ bool Foam::functionObjects::ensightWrite::read(const dictionary& dict)
if (dict.found("patches"))
{
wordRes lst(dict.lookup("patches"));
lst.uniq();
wordRes list(dict.lookup("patches"));
list.uniq();
writeOpts_.patchSelection(lst);
writeOpts_.patchSelection(list);
}
if (dict.found("faceZones"))
{
wordRes lst(dict.lookup("faceZones"));
lst.uniq();
wordRes list(dict.lookup("faceZones"));
list.uniq();
writeOpts_.faceZoneSelection(lst);
writeOpts_.faceZoneSelection(list);
}
//
// case options
//
caseOpts_.nodeValues(dict.lookupOrDefault("nodeValues", false));
caseOpts_.width(dict.lookupOrDefault<label>("width", 8));
// remove existing output directory
caseOpts_.overwrite(dict.lookupOrDefault("overwrite", false));
//
// other options
//
......
......@@ -66,6 +66,7 @@ Description
patches | Select patches to write | no |
faceZones | Select faceZones to write | no |
consecutive | Consecutive output numbering | no | false
nodeValues | Write values at nodes | no | false
\endtable
Note that if the \c patches entry is an empty list, this will select all
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -49,7 +49,8 @@ int Foam::functionObjects::ensightWrite::writeVolField
(
lookupObject<VolFieldType>(inputName),
ensMesh(),
os
os,
caseOpts_.nodeValues()
);
Log << " " << inputName;
......
......@@ -7,6 +7,8 @@ ensightWrite
libs ("libutilityFunctionObjects.so");
log true;
nodeValues true;
// Fields to output (words or regex)
fields (U p "(k|epsilon|omega)");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment