mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
IOOutputFilter - can create from IOobject directly
- useful when using alternative dictionary names/locations
This commit is contained in:
@ -29,6 +29,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class OutputFilter>
|
||||||
|
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
|
||||||
|
(
|
||||||
|
const word& outputFilterName,
|
||||||
|
const IOobject& ioDict,
|
||||||
|
const bool readFromFiles
|
||||||
|
)
|
||||||
|
:
|
||||||
|
IOdictionary(ioDict),
|
||||||
|
OutputFilter(outputFilterName, ioDict.db(), *this, readFromFiles)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class OutputFilter>
|
template<class OutputFilter>
|
||||||
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
|
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
|
||||||
(
|
(
|
||||||
|
|||||||
@ -29,6 +29,11 @@ Description
|
|||||||
IOdictionary wrapper around OutputFilter to allow them to read from
|
IOdictionary wrapper around OutputFilter to allow them to read from
|
||||||
their associated dictionaries.
|
their associated dictionaries.
|
||||||
|
|
||||||
|
Note
|
||||||
|
The IOobject or the objectRegistry will normally have to be
|
||||||
|
derived from a fvMesh for a subsequent cast (within OutputFilter)
|
||||||
|
to work correctly.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
IOOutputFilter.C
|
IOOutputFilter.C
|
||||||
|
|
||||||
@ -69,6 +74,15 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct from an IOobject for IOdictionary
|
||||||
|
// Allow the possibility to load fields from files
|
||||||
|
IOOutputFilter
|
||||||
|
(
|
||||||
|
const word& outputFilterName,
|
||||||
|
const IOobject& ioDict,
|
||||||
|
const bool loadFromFile = false
|
||||||
|
);
|
||||||
|
|
||||||
//- Construct for given objectRegistry and dictionary
|
//- Construct for given objectRegistry and dictionary
|
||||||
// Allow dictionary to be optional
|
// Allow dictionary to be optional
|
||||||
// Allow the possibility to load fields from files
|
// Allow the possibility to load fields from files
|
||||||
|
|||||||
Reference in New Issue
Block a user