mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Create surface writer with additional dictionary options
This commit is contained in:
@ -191,7 +191,12 @@ void Foam::FacePostProcessing<CloudType>::write()
|
|||||||
|
|
||||||
autoPtr<surfaceWriter> writer
|
autoPtr<surfaceWriter> writer
|
||||||
(
|
(
|
||||||
surfaceWriter::New(surfaceFormat_)
|
surfaceWriter::New
|
||||||
|
(
|
||||||
|
surfaceFormat_,
|
||||||
|
this->coeffDict().subOrEmptyDict("formatOptions").
|
||||||
|
subOrEmptyDict(surfaceFormat_)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
writer->write
|
writer->write
|
||||||
|
|||||||
@ -457,9 +457,16 @@ void Foam::fieldValues::faceSource::initialise(const dictionary& dict)
|
|||||||
|
|
||||||
if (valueOutput_)
|
if (valueOutput_)
|
||||||
{
|
{
|
||||||
|
const word surfaceFormat(dict.lookup("surfaceFormat"));
|
||||||
|
|
||||||
surfaceWriterPtr_.reset
|
surfaceWriterPtr_.reset
|
||||||
(
|
(
|
||||||
surfaceWriter::New(dict.lookup("surfaceFormat")).ptr()
|
surfaceWriter::New
|
||||||
|
(
|
||||||
|
surfaceFormat,
|
||||||
|
dict.subOrEmptyDict("formatOptions").
|
||||||
|
subOrEmptyDict(surfaceFormat)
|
||||||
|
).ptr()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user