mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'feature-externalFileCoupler' into 'develop'
Feature external file coupler See merge request !126
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
Test-externalCoupler.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-externalCoupler
|
||||
@ -1,7 +0,0 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/lumpedPointMotion/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-llumpedPointMotion
|
||||
3
applications/test/externalFileCoupler/Make/files
Normal file
3
applications/test/externalFileCoupler/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
Test-externalFileCoupler.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-externalFileCoupler
|
||||
5
applications/test/externalFileCoupler/Make/options
Normal file
5
applications/test/externalFileCoupler/Make/options
Normal file
@ -0,0 +1,5 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume
|
||||
@ -22,14 +22,14 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
Test-externalCoupler
|
||||
Test-externalFileCoupler
|
||||
|
||||
Description
|
||||
Test of master/slave communication etc.
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
#include "externalCoupler.H"
|
||||
#include "externalFileCoupler.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
@ -47,7 +47,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
const label maxCount = args.optionLookupOrDefault<label>("max", 1000);
|
||||
|
||||
externalCoupler coupler;
|
||||
externalFileCoupler coupler;
|
||||
|
||||
if (args.optionFound("slave"))
|
||||
{
|
||||
@ -29,7 +29,7 @@ Description
|
||||
points/rotations and the corresponding movement of the building surfaces.
|
||||
Uses the tabulated responses from the specified file.
|
||||
Optionally, it can also be used to a dummy responder for the
|
||||
externalCoupler logic, which makes it useful as a debugging facility
|
||||
externalFileCoupler logic, which makes it useful as a debugging facility
|
||||
as well demonstrating how an external application could communicate
|
||||
with the lumpedPointMovement point-patch boundary condition.
|
||||
|
||||
@ -131,7 +131,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
Info<< "Running as slave responder" << endl;
|
||||
|
||||
externalCoupler& coupler = movement().coupler();
|
||||
externalFileCoupler& coupler = movement().coupler();
|
||||
|
||||
label count = 0;
|
||||
for (label index = 0; index < responseTable.size(); index += span)
|
||||
|
||||
Reference in New Issue
Block a user