Skip to content
Snippets Groups Projects
Commit 65c98f27 authored by Henry Weller's avatar Henry Weller
Browse files

externalCoupledMixedFvPatchField.H: Updated documentation

Patch provided by Bruno Santos
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1961
parent 779aa398
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -32,40 +32,52 @@ Description ...@@ -32,40 +32,52 @@ Description
Values are transferred as plain text files, where OpenFOAM data is written Values are transferred as plain text files, where OpenFOAM data is written
as: as:
# Patch: \<patch name\> \verbatim
\<magSf1\> \<value1\> \<surfaceNormalGradient1\> # Patch: <patch name>
\<magSf2\> \<value2\> \<surfaceNormalGradient2\> <magSf1> <value1> <surfaceNormalGradient1>
\<magSf3\> \<value3\> \<surfaceNormalGradient3\> <magSf2> <value2> <surfaceNormalGradient2>
<magSf3> <value3> <surfaceNormalGradient3>
... ...
\<magSfN\> \<valueN\> \<surfaceNormalGradientN\> <magSfN> <valueN> <surfaceNormalGradientN>
\endverbatim
and received as the constituent pieces of the `mixed' condition, i.e. and received as the constituent pieces of the `mixed' condition, i.e.
# Patch: \<patch name\> \verbatim
\<value1\> \<gradient1\> \<valueFracion1\> # Patch: <patch name>
\<value2\> \<gradient2\> \<valueFracion2\> <value1> <gradient1> <valueFracion1>
\<value3\> \<gradient3\> \<valueFracion3\> <value2> <gradient2> <valueFracion2>
<value3> <gradient3> <valueFracion3>
... ...
\<valueN\> \<gradientN\> \<valueFracionN\> <valueN> <gradientN> <valueFracionN>
\endverbatim
Data is sent/received as a single file for all patches from the directory Data is sent/received as a single file for all patches from the directory
$FOAM_CASE/\<commsDir\> \verbatim
$FOAM_CASE/<commsDir>
\endverbatim
At start-up, the boundary creates a lock file, i.e.. At start-up, the boundary creates a lock file, i.e..
\verbatim
OpenFOAM.lock OpenFOAM.lock
\endverbatim
... to signal the external source to wait. During the boundary condition ... to signal the external source to wait. During the boundary condition
update, boundary values are written to file, e.g. update, boundary values are written to file, e.g.
\<fileName\>.out \verbatim
<fileName>.out
\endverbatim
The lock file is then removed, instructing the external source to take The lock file is then removed, instructing the external source to take
control of the program execution. When ready, the external program control of the program execution. When ready, the external program
should create the return values, e.g. to file should create the return values, e.g. to file
\<fileName\>.in \verbatim
<fileName>.in
\endverbatim
... and then re-instate the lock file. The boundary condition will then ... and then re-instate the lock file. The boundary condition will then
read the return values, and pass program execution back to OpenFOAM. read the return values, and pass program execution back to OpenFOAM.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment