Support the following expansions when they occur at the start of a string: Short-form Equivalent ========= =========== <etc>/ ~OpenFOAM/ (as per foamEtcFile) <case>/ $FOAM_CASE/ <constant>/ $FOAM_CASE/constant/ <system>/ $FOAM_CASE/system/ These can be used in fileName expansions to improve clarity and reduce some typing "<constant>/reactions" vs "$FOAM_CASE/constant/reactions"
40 lines
876 B
C++
40 lines
876 B
C++
// -*- C++ -*-
|
|
|
|
// Control for external coupled simulation
|
|
externalCoupled
|
|
{
|
|
type externalCoupled;
|
|
libs ("libfieldFunctionObjects.so");
|
|
log true;
|
|
|
|
// Directory to use for communication
|
|
commsDir "<case>/comms";
|
|
|
|
// Does external process start first
|
|
initByExternal true;
|
|
|
|
// Frequency of coupling
|
|
calcFrequency 4;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|