functionObjects: Renamed dictionary entry 'functionObjectLibs' -> 'libs'

This changes simplifies the specification of functionObjects in
controlDict and is consistent with the 'libs' option in controlDict to
load special solver libraries.

Support for the old 'functionObjectLibs' name is supported for backward compatibility.
This commit is contained in:
Henry Weller
2016-05-16 22:09:01 +01:00
parent 4ba3463052
commit 18725ed3ac
128 changed files with 191 additions and 166 deletions

View File

@ -55,7 +55,7 @@ functions
type writeVTK; type writeVTK;
// Where to load it from // Where to load it from
functionObjectLibs ("libfoamToVTK.so"); libs ("libfoamToVTK.so");
// When to write: // When to write:
// timeStep (with optional writeInterval) // timeStep (with optional writeInterval)

View File

@ -40,7 +40,7 @@ Description
writeVTK1 writeVTK1
{ {
type writeVTK; type writeVTK;
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
... ...
objectNames (obj1 obj2); objectNames (obj1 obj2);
} }

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type Lambda2; type Lambda2;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type Q; type Q;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type forces; type forces;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets; type sets;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type cellSource; type cellSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type fieldMinMax; type fieldMinMax;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type residuals; type residuals;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type fieldValueDelta; type fieldValueDelta;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
operation subtract; operation subtract;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type pressureTools; type pressureTools;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets; type sets;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type probes; type probes;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type scalarTransport; type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type streamLine; type streamLine;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -34,7 +34,7 @@ Description
FUNCTIONOBJECT1 FUNCTIONOBJECT1
{ {
type FUNCTIONOBJECT; type FUNCTIONOBJECT;
functionObjectLibs ("libFUNCTIONOBJECTFunctionObject.so"); libs ("libFUNCTIONOBJECTFunctionObject.so");
... ...
wordData someWord; wordData someWord;
scalarData 1.0; scalarData 1.0;

View File

@ -17,7 +17,7 @@ FoamFile
graph graph
{ {
type sets; type sets;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;
interpolationScheme cellPointFace; interpolationScheme cellPointFace;

View File

@ -61,12 +61,24 @@ Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
Info<< "Selecting function " << functionType << endl; Info<< "Selecting function " << functionType << endl;
} }
const_cast<Time&>(t).libs().open if (dict.found("functionObjectLibs"))
( {
dict, const_cast<Time&>(t).libs().open
"functionObjectLibs", (
dictionaryConstructorTablePtr_ dict,
); "functionObjectLibs",
dictionaryConstructorTablePtr_
);
}
else
{
const_cast<Time&>(t).libs().open
(
dict,
"libs",
dictionaryConstructorTablePtr_
);
}
if (!dictionaryConstructorTablePtr_) if (!dictionaryConstructorTablePtr_)
{ {

View File

@ -46,7 +46,7 @@ Description
myFunctionObject // Name of functionObject entry myFunctionObject // Name of functionObject entry
{ {
type functionObjectType; type functionObjectType;
functionObjectLibs ("libMyFunctionObjectlib.so"); libs ("libMyFunctionObjectlib.so");
region defaultRegion; region defaultRegion;
enabled yes; enabled yes;
timeStart 0; timeStart 0;
@ -62,7 +62,7 @@ Description
\table \table
Property | Description | Required | Default value Property | Description | Required | Default value
type | Type of function object | yes | type | Type of function object | yes |
functionObjectLibs | Libraries containing implementation | yes | libs | Libraries containing implementation | yes |
region | Name of region for multi-region cases | no | region | Name of region for multi-region cases | no |
enabled | On/off switch | no | yes enabled | On/off switch | no | yes
timeStart| Start time | no | timeStart| Start time | no |

View File

@ -64,12 +64,6 @@ void Foam::functionObjects::writeFiles::createFiles()
} }
void Foam::functionObjects::writeFiles::write()
{
createFiles();
}
void Foam::functionObjects::writeFiles::resetNames(const wordList& names) void Foam::functionObjects::writeFiles::resetNames(const wordList& names)
{ {
names_.clear(); names_.clear();
@ -200,4 +194,12 @@ Foam::OFstream& Foam::functionObjects::writeFiles::file(const label i)
} }
bool Foam::functionObjects::writeFiles::write(const bool postProcess)
{
createFiles();
return true;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -74,9 +74,6 @@ protected:
//- Create the output file //- Create the output file
virtual void createFiles(); virtual void createFiles();
//- Write function
virtual void write();
//- Reset the list of names from a wordList //- Reset the list of names from a wordList
virtual void resetNames(const wordList& names); virtual void resetNames(const wordList& names);
@ -130,6 +127,9 @@ public:
//- Return file 'i' //- Return file 'i'
OFstream& file(const label i); OFstream& file(const label i);
//- Write function
virtual bool write(const bool postProcess = false);
}; };

View File

@ -52,7 +52,7 @@ functions
type fieldAverage; type fieldAverage;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Function object enabled flag // Function object enabled flag
enabled true; enabled true;

View File

@ -67,7 +67,7 @@ Description
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
restartOnRestart false; restartOnRestart false;
restartOnOutput false; restartOnOutput false;

View File

@ -37,7 +37,7 @@ Description
fieldCoordinateSystemTransform1 fieldCoordinateSystemTransform1
{ {
type fieldCoordinateSystemTransform; type fieldCoordinateSystemTransform;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
fields fields
( (

View File

@ -22,7 +22,7 @@ functions
type fieldCoordinateSystemTransform; type fieldCoordinateSystemTransform;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Function object enabled flag // Function object enabled flag
enabled true; enabled true;

View File

@ -52,7 +52,7 @@ functions
type fieldMinMax; type fieldMinMax;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Function object enabled flag // Function object enabled flag
enabled true; enabled true;

View File

@ -39,7 +39,7 @@ Description
fieldMinMax1 fieldMinMax1
{ {
type fieldMinMax; type fieldMinMax;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
write yes; write yes;
log yes; log yes;

View File

@ -39,7 +39,7 @@ Description
cellSource1 cellSource1
{ {
type cellSource; type cellSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
log true; log true;
valueOutput true; valueOutput true;

View File

@ -49,7 +49,7 @@ functions
faceObj1 faceObj1
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
@ -91,7 +91,7 @@ functions
faceObj2 faceObj2
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
log true; log true;
@ -109,7 +109,7 @@ functions
cellObj1 cellObj1
{ {
type cellSource; type cellSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
log true; log true;

View File

@ -42,7 +42,7 @@ Description
faceSource1 faceSource1
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
log yes; log yes;
valueOutput true; valueOutput true;

View File

@ -36,7 +36,7 @@ Description
fieldValueDelta1 fieldValueDelta1
{ {
type fieldValueDelta; type fieldValueDelta;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
operation subtract; operation subtract;
fieldValue1 fieldValue1

View File

@ -36,7 +36,7 @@ Description
{ {
type histogram; type histogram;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
field p; field p;
nBins 100; nBins 100;

View File

@ -49,7 +49,7 @@ functions
near near
{ {
// Where to load it from // Where to load it from
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type nearWallFields; type nearWallFields;

View File

@ -43,7 +43,7 @@ Description
nearWallFields1 nearWallFields1
{ {
type nearWallFields; type nearWallFields;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
fields ((p pNear)(U UNear)); fields ((p pNear)(U UNear));
patches (movingWall); patches (movingWall);

View File

@ -22,7 +22,7 @@ functions
type processorField; type processorField;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Function object enabled flag // Function object enabled flag
enabled true; enabled true;

View File

@ -36,7 +36,7 @@ Description
processorField1 processorField1
{ {
type processorField; type processorField;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
} }
\endverbatim \endverbatim

View File

@ -19,7 +19,7 @@ functions
readFields1 readFields1
{ {
type readFields; type readFields;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
@ -33,7 +33,7 @@ functions
faceObj2 faceObj2
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;

View File

@ -36,7 +36,7 @@ Description
readFields1 readFields1
{ {
type readFields; type readFields;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
fields fields
( (

View File

@ -59,7 +59,7 @@ Description
regionSizeDistribution1 regionSizeDistribution1
{ {
type regionSizeDistribution; type regionSizeDistribution;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
field alpha; field alpha;
patches (inlet); patches (inlet);

View File

@ -51,7 +51,7 @@ functions
type streamLine; type streamLine;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Output every // Output every
writeControl writeTime; writeControl writeTime;

View File

@ -37,7 +37,7 @@ Description
streamLine1 streamLine1
{ {
type streamLine; type streamLine;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
setFormat vtk; setFormat vtk;
UName U; UName U;

View File

@ -43,7 +43,7 @@ Description
surfaceInterpolateFields1 surfaceInterpolateFields1
{ {
type surfaceInterpolateFields; type surfaceInterpolateFields;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
fields ((p pNear)(U UNear)); fields ((p pNear)(U UNear));
} }

View File

@ -49,7 +49,7 @@ functions
readFields readFields
{ {
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type readFields; type readFields;
fields (p U k); fields (p U k);
@ -58,7 +58,7 @@ functions
near near
{ {
// Where to load it from // Where to load it from
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type nearWallFields; type nearWallFields;
@ -82,7 +82,7 @@ functions
streamLines streamLines
{ {
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type wallBoundedStreamLine; type wallBoundedStreamLine;
// Output every // Output every

View File

@ -37,7 +37,7 @@ Description
wallBoundedStreamLine1 wallBoundedStreamLine1
{ {
type wallBoundedStreamLine; type wallBoundedStreamLine;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
... ...
setFormat vtk; setFormat vtk;
UName UNear; UName UNear;

View File

@ -37,7 +37,7 @@ Description
forceCoeffs1 forceCoeffs1
{ {
type forceCoeffs; type forceCoeffs;
functionObjectLibs ("libforces.so"); libs ("libforces.so");
... ...
log yes; log yes;
patches (walls); patches (walls);

View File

@ -40,7 +40,7 @@ Description
forces1 forces1
{ {
type forces; type forces;
functionObjectLibs ("libforces.so"); libs ("libforces.so");
... ...
log yes; log yes;
patches (walls); patches (walls);

View File

@ -81,7 +81,7 @@ Description
pressureTools1 pressureTools1
{ {
type pressureTools; type pressureTools;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
... ...
calcTotal no; calcTotal no;
calcCoeff yes; calcCoeff yes;

View File

@ -51,7 +51,7 @@ Description
wallShearStress1 wallShearStress1
{ {
type wallShearStress; type wallShearStress;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
... ...
patches (".*Wall"); patches (".*Wall");
} }

View File

@ -1,3 +1,4 @@
cloudInfo/cloudInfo.C cloudInfo/cloudInfo.C
icoUncoupledKinematicCloud/icoUncoupledKinematicCloud.C
LIB = $(FOAM_LIBBIN)/liblagrangianFunctionObjects LIB = $(FOAM_LIBBIN)/liblagrangianFunctionObjects

View File

@ -1,9 +1,19 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lincompressibleTransportModels \
-lmeshTools \
-llagrangian \ -llagrangian \
-llagrangianIntermediate -llagrangianIntermediate \
-llagrangianTurbulence \
-lregionModels \
-lsurfaceFilmModels

View File

@ -38,7 +38,7 @@ Description
cloudInfo1 cloudInfo1
{ {
type cloudInfo; type cloudInfo;
functionObjectLibs ("libcloudFunctionObjects.so"); libs ("libcloudFunctionObjects.so");
... ...
clouds clouds
( (

View File

@ -19,7 +19,7 @@ functions
cloudInfo1 cloudInfo1
{ {
type cloudInfo; type cloudInfo;
functionObjectLibs ("libcloudFunctionObjects.so"); libs ("libcloudFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;

View File

@ -48,7 +48,7 @@ Description
\verbatim \verbatim
difference difference
{ {
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
type coded; type coded;
// Name of on-the-fly generated functionObject // Name of on-the-fly generated functionObject

View File

@ -58,7 +58,7 @@ functions
type partialWrite; type partialWrite;
// Where to load it from // Where to load it from
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
// Optional mesh region to operate on. Only one partialWrite per // Optional mesh region to operate on. Only one partialWrite per
// region allowed. // region allowed.
@ -91,7 +91,7 @@ functions
type writeRegisteredObject; type writeRegisteredObject;
// Where to load it from // Where to load it from
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
// When to write: // When to write:
// timeStep (with optional writeInterval) // timeStep (with optional writeInterval)

View File

@ -37,7 +37,7 @@ Description
partialWrite1 partialWrite1
{ {
type partialWrite; type partialWrite;
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
... ...
objectNames (p U T); objectNames (p U T);
writeInterval 100; writeInterval 100;

View File

@ -35,7 +35,7 @@ Description
removeRegisteredObject1 removeRegisteredObject1
{ {
type removeRegisteredObject; type removeRegisteredObject;
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
... ...
objectNames (obj1 obj2); objectNames (obj1 obj2);
} }

View File

@ -49,7 +49,7 @@ functions
systemCall1 systemCall1
{ {
type systemCall; type systemCall;
functionObjectLibs ("libsystemCall.so"); libs ("libsystemCall.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -40,7 +40,7 @@ Description
systemCall1 systemCall1
{ {
type systemCall; type systemCall;
functionObjectLibs ("libsystemCall.so"); libs ("libsystemCall.so");
... ...
executeCalls executeCalls
( (

View File

@ -49,7 +49,7 @@ functions
fileUpdate1 fileUpdate1
{ {
type timeActivatedFileUpdate; type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
fileToUpdate "$FOAM_CASE/system/fvSolution"; fileToUpdate "$FOAM_CASE/system/fvSolution";

View File

@ -37,7 +37,7 @@ Description
fileUpdate1 fileUpdate1
{ {
type timeActivatedFileUpdate; type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
fileToUpdate "$FOAM_CASE/system/fvSolution"; fileToUpdate "$FOAM_CASE/system/fvSolution";

View File

@ -19,7 +19,7 @@ functions
turbulenceFields1 turbulenceFields1
{ {
type turbulenceFields; type turbulenceFields;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;

View File

@ -43,7 +43,7 @@ Description
turbulenceFields1 turbulenceFields1
{ {
type turbulenceFields; type turbulenceFields;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
... ...
fields fields
( (

View File

@ -58,7 +58,7 @@ functions
type partialWrite; type partialWrite;
// Where to load it from // Where to load it from
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
// Optional mesh region to operate on. Only one partialWrite per // Optional mesh region to operate on. Only one partialWrite per
// region allowed. // region allowed.
@ -91,7 +91,7 @@ functions
type writeRegisteredObject; type writeRegisteredObject;
// Where to load it from // Where to load it from
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
// When to write: // When to write:
// timeStep (with optional writeInterval) // timeStep (with optional writeInterval)

View File

@ -44,7 +44,7 @@ Description
writeRegisteredObject1 writeRegisteredObject1
{ {
type writeRegisteredObject; type writeRegisteredObject;
functionObjectLibs ("libIOFunctionObjects.so"); libs ("libIOFunctionObjects.so");
exclusiveWriting true; exclusiveWriting true;
... ...
objectNames (obj1 obj2); objectNames (obj1 obj2);

View File

@ -50,7 +50,7 @@ functions
difference difference
{ {
// Load the library containing the 'coded' functionObject // Load the library containing the 'coded' functionObject
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
type coded; type coded;

View File

@ -56,7 +56,7 @@ functions
timeStep timeStep
{ {
type coded; type coded;
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
redirectType setDeltaT; redirectType setDeltaT;
code code

View File

@ -9,7 +9,7 @@
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;

View File

@ -53,7 +53,7 @@ functions
{ {
probes probes
{ {
functionObjectLibs ( "libsampling.so" ); libs ( "libsampling.so" );
type probes; type probes;
name probes; name probes;
writeControl timeStep; writeControl timeStep;

View File

@ -54,7 +54,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -9,7 +9,7 @@
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;

View File

@ -50,7 +50,7 @@ functions
forces forces
{ {
type forceCoeffs; type forceCoeffs;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;

View File

@ -52,7 +52,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;
fields fields
@ -116,7 +116,7 @@ functions
dsmcFields1 dsmcFields1
{ {
type dsmcFields; type dsmcFields;
functionObjectLibs ( "libutilityFunctionObjects.so" ); libs ( "libutilityFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
} }

View File

@ -52,7 +52,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;
restartOnOutput off; restartOnOutput off;
@ -117,7 +117,7 @@ functions
dsmcFields1 dsmcFields1
{ {
type dsmcFields; type dsmcFields;
functionObjectLibs ( "libutilityFunctionObjects.so" ); libs ( "libutilityFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
} }

View File

@ -52,7 +52,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;
fields fields
@ -116,7 +116,7 @@ functions
dsmcFields1 dsmcFields1
{ {
type dsmcFields; type dsmcFields;
functionObjectLibs ( "libutilityFunctionObjects.so" ); libs ( "libutilityFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
} }

View File

@ -52,7 +52,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;
fields fields
@ -117,7 +117,7 @@ functions
dsmcFields1 dsmcFields1
{ {
type dsmcFields; type dsmcFields;
functionObjectLibs ( "libutilityFunctionObjects.so" ); libs ( "libutilityFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
} }
@ -126,7 +126,7 @@ functions
{ {
type forces; type forces;
enabled true; enabled true;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl writeTime; writeControl writeTime;
patches ( obstacle ); patches ( obstacle );
directForceDensity true; directForceDensity true;

View File

@ -9,7 +9,7 @@
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;

View File

@ -10,7 +10,7 @@
Q Q
{ {
// Where to load it from // Where to load it from
functionObjectLibs ("libutilityFunctionObjects.so"); libs ("libutilityFunctionObjects.so");
type Q; type Q;

View File

@ -10,7 +10,7 @@ forces
{ {
type forces; type forces;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
timeInterval 1; timeInterval 1;

View File

@ -9,7 +9,7 @@
surfaces surfaces
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;
surfaceFormat vtk; surfaceFormat vtk;

View File

@ -50,7 +50,7 @@ functions
forces forces
{ {
type forces; type forces;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
writeInterval 10; writeInterval 10;
patches (wing); patches (wing);

View File

@ -54,7 +54,7 @@ functions
probes probes
{ {
// Where to load it from // Where to load it from
functionObjectLibs ( "libsampling.so" ); libs ( "libsampling.so" );
type probes; type probes;

View File

@ -54,7 +54,7 @@ functions
probes probes
{ {
// Where to load it from // Where to load it from
functionObjectLibs ( "libsampling.so" ); libs ( "libsampling.so" );
type probes; type probes;

View File

@ -50,7 +50,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" ); libs ( "libfieldFunctionObjects.so" );
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -73,7 +73,7 @@ functions
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ( "libsampling.so" ); libs ( "libsampling.so" );
writeControl writeTime; writeControl writeTime;
surfaceFormat vtk; surfaceFormat vtk;
fields ( p U ); fields ( p U );
@ -96,7 +96,7 @@ functions
forces forces
{ {
type forceCoeffs; type forceCoeffs;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
patches ( "motorBike.*" ); patches ( "motorBike.*" );

View File

@ -9,7 +9,7 @@
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;
surfaceFormat vtk; surfaceFormat vtk;

View File

@ -9,7 +9,7 @@
forces forces
{ {
type forceCoeffs; type forceCoeffs;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;

View File

@ -50,7 +50,7 @@ functions
probes probes
{ {
type probes; type probes;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
@ -76,7 +76,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
@ -105,7 +105,7 @@ functions
type surfaces; type surfaces;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -50,7 +50,7 @@ functions
probes probes
{ {
type probes; type probes;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl timeStep; writeControl timeStep;
writeInterval 1; writeInterval 1;
@ -76,7 +76,7 @@ functions
fieldAverage1 fieldAverage1
{ {
type fieldAverage; type fieldAverage;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;
@ -105,7 +105,7 @@ functions
type surfaces; type surfaces;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
enabled true; enabled true;
writeControl writeTime; writeControl writeTime;

View File

@ -9,7 +9,7 @@
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
functionObjectLibs ("libsampling.so"); libs ("libsampling.so");
writeControl writeTime; writeControl writeTime;
surfaceFormat vtk; surfaceFormat vtk;

View File

@ -10,7 +10,7 @@ forceCoeffs1
{ {
type forceCoeffs; type forceCoeffs;
functionObjectLibs ( "libforces.so" ); libs ( "libforces.so" );
writeControl timeStep; writeControl timeStep;
timeInterval 1; timeInterval 1;

View File

@ -9,7 +9,7 @@
streamLines streamLines
{ {
// Where to load it from // Where to load it from
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type streamLine; type streamLine;

View File

@ -10,7 +10,7 @@
near near
{ {
// Where to load it from // Where to load it from
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type nearWallFields; type nearWallFields;
@ -39,7 +39,7 @@ near
wallBoundedStreamLines wallBoundedStreamLines
{ {
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
type wallBoundedStreamLine; type wallBoundedStreamLine;
// Output every // Output every

View File

@ -52,7 +52,7 @@ functions
type streamLine; type streamLine;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Output every // Output every
writeControl writeTime; writeControl writeTime;

View File

@ -52,7 +52,7 @@ functions
type streamLine; type streamLine;
// Where to load it from (if not already in solver) // Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
// Output every // Output every
writeControl writeTime; writeControl writeTime;

View File

@ -56,7 +56,7 @@ functions
faceSource1 faceSource1
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled yes; enabled yes;
writeControl writeTime; writeControl writeTime;
log yes; log yes;

View File

@ -51,7 +51,7 @@ functions
faceSource1 faceSource1
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled yes; enabled yes;
writeControl writeTime; writeControl writeTime;
log yes; log yes;

View File

@ -51,7 +51,7 @@ functions
faceSource1 faceSource1
{ {
type faceSource; type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
enabled yes; enabled yes;
writeControl writeTime; writeControl writeTime;
log yes; log yes;

Some files were not shown because too many files have changed in this diff Show More