functionObjects::systemCall: Updated documentation
This commit is contained in:
parent
3809df37fa
commit
90e2f8d87b
2 changed files with 1 additions and 79 deletions
|
|
@ -1,78 +0,0 @@
|
||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \\ / O peration | Version: 4.x |
|
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class dictionary;
|
|
||||||
object controlDict;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
application icoFoam;
|
|
||||||
|
|
||||||
startFrom startTime;
|
|
||||||
|
|
||||||
startTime 0;
|
|
||||||
|
|
||||||
stopAt endTime;
|
|
||||||
|
|
||||||
endTime 0.5;
|
|
||||||
|
|
||||||
deltaT 0.005;
|
|
||||||
|
|
||||||
writeControl timeStep;
|
|
||||||
|
|
||||||
writeInterval 20;
|
|
||||||
|
|
||||||
purgeWrite 0;
|
|
||||||
|
|
||||||
writeFormat ascii;
|
|
||||||
|
|
||||||
writePrecision 6;
|
|
||||||
|
|
||||||
writeCompression off;
|
|
||||||
|
|
||||||
timeFormat general;
|
|
||||||
|
|
||||||
timePrecision 6;
|
|
||||||
|
|
||||||
runTimeModifiable true;
|
|
||||||
|
|
||||||
functions
|
|
||||||
{
|
|
||||||
systemCall1
|
|
||||||
{
|
|
||||||
type systemCall;
|
|
||||||
libs ("libsystemCall.so");
|
|
||||||
enabled true;
|
|
||||||
writeControl writeTime;
|
|
||||||
|
|
||||||
// called every time step
|
|
||||||
executeCalls
|
|
||||||
(
|
|
||||||
"echo execute"
|
|
||||||
);
|
|
||||||
|
|
||||||
// called at the end of the run
|
|
||||||
endCalls
|
|
||||||
(
|
|
||||||
"echo \*\*\* writing .bashrc \*\*\*"
|
|
||||||
"cat ~/.bashrc"
|
|
||||||
"echo \*\*\* done \*\*\*"
|
|
||||||
);
|
|
||||||
|
|
||||||
// called every ouput time
|
|
||||||
writeCalls
|
|
||||||
(
|
|
||||||
"echo \*\*\* writing data \*\*\*"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
|
|
@ -40,7 +40,7 @@ Description
|
||||||
systemCall1
|
systemCall1
|
||||||
{
|
{
|
||||||
type systemCall;
|
type systemCall;
|
||||||
libs ("libsystemCall.so");
|
libs ("libutilityFunctionObjects.so");
|
||||||
...
|
...
|
||||||
executeCalls
|
executeCalls
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue