mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
43 lines
917 B
C++
43 lines
917 B
C++
// -*- C++ -*-
|
|
|
|
// control for external coupled simulation
|
|
externalCoupled
|
|
{
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
type externalCoupled;
|
|
|
|
// Directory to use for communication
|
|
commsDir "${FOAM_CASE}/comms";
|
|
|
|
// Does external process start first
|
|
initByExternal true;
|
|
|
|
// Frequency of coupling
|
|
calcFrequency 4;
|
|
|
|
// 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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|