- This provides a mechanism for the external code to detect when OpenFOAM is done. - Adjust tutorial to use the mechanism. Also test in parallel.
44 lines
1010 B
C++
44 lines
1010 B
C++
// -*- C++ -*-
|
|
|
|
// control for external coupled simulation
|
|
externalCoupled
|
|
{
|
|
// Where to load it from (if not already in solver)
|
|
functionObjectLibs ("libjobControl.so");
|
|
|
|
type externalCoupled;
|
|
|
|
// Directory to use for communication
|
|
commsDir "${FOAM_CASE}/comms";
|
|
|
|
// Does external process start first
|
|
initByExternal true;
|
|
|
|
// Cleanup behaviour on termination (remove|done)
|
|
stateEnd done;
|
|
|
|
// Additional output
|
|
log true;
|
|
|
|
regions
|
|
{
|
|
// Region name (wildcards allowed)
|
|
"(topAir|heater)"
|
|
{
|
|
// In topAir adjust the minX patch (fixedValue)
|
|
|
|
// Patch or patchGroup
|
|
coupleGroup
|
|
{
|
|
// Fields to output in commsDir
|
|
writeFields (T);
|
|
// Fields to read from commsDir
|
|
readFields (T);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|