Skip to main content

ensightWrite

Overview

The ensightWrite function object writes OpenFOAM fields in EnSight format.

Usage

Example of function object specification:

ensightWrite1
{
// Mandatory entries
type ensightWrite;
libs (utilityFunctionObjects);
fields (<wordRes>);

// Optional entries
blockFields (<wordRes>);
boundary <bool>;
internal <bool>;
nodeValues <bool>;

format <word>;
width <label>;
directory <fileName>;
overwrite <bool>;
consecutive <bool>;

faceZones (<wordRes>);
patches (<wordRes>);
excludePatches (<wordRes>);

selection
{
<selection-1>
{
action <action-type>;
source <source-type>;
<source-entries>
}
<selection-2>
{
action <action-type>;
source <source-type>;
<source-entries>
}
...
<selection-3>
{
action <action-type>;
source <source-type>;
<source-entries>
}
}

// Inherited entries
...
}


PropertyDescriptionTypeRequiredDefault
typeType name: ensightWritewordyes-
libsLibrary name: fieldFunctionObjectswordyes-
fieldsNames of operand fieldswordResyes-
blockFieldsExcluded fields from outputwordResno-
boundaryConvert boundary fieldsboolnotrue
internalConvert internal fieldsboolnotrue
nodeValuesWrite values at nodesboolnofalse
formatascii or binary formatwordnosame as simulation
widthMask width for \c data/XXXXlabelno8
directoryThe output directory namewordnopostProcessing/NAME
overwriteRemove existing directoryboolnofalse
consecutiveConsecutive output numberingboolnofalse
faceZonesNames of operand face zoneswordResno-
patchesNames of operand patcheswordResno-
excludePatchesNames of excluded patcheswordResno-

The inherited entries are elaborated in:

Further information

Tutorial:

Source code:

API:

History: Introduced in version v1612+