|
[Sponsors] |
July 9, 2017, 15:47 |
Running external application in solver
|
#1 |
New Member
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10 |
Hi all,
I'm trying to write a new solver for FSI applications. I was able to use the OF libraries to map the pressure and shear stress on the structural solver. I would like to know if it is possible to write a new solver in OF that can call the structural solver (in a way that everything is automatic), avoiding the interaction of the user through the command line. Thanks |
|
July 10, 2017, 04:53 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21 |
You could use a system call to execute your other application from your OF solver. I'm not sure whether this will "freeze" your OF solver until the structural solver returns, but I suppose that it will.
Disadvantage: portability. Advantage: if the user can execute it, your OF solver can also execute it very easily Alternatively, you can link your OF solver to your structural solver by importing the appropriate headers of the structural code in your OF solver and then you can call the main function of your structural solver to get it rolling. Advantage: portability. Disadvantage: more work, and requires access to the source of the structural solver |
|
July 10, 2017, 09:52 |
|
#3 |
New Member
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10 |
thanks for the help, I'll try this!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
Can't get data from OpenFoam to external solver using externalCoupled | perry | OpenFOAM Running, Solving & CFD | 4 | May 26, 2014 09:09 |
Problems running customized solver for diffusion | mmkr825 | OpenFOAM Running, Solving & CFD | 1 | August 30, 2012 15:01 |
BC evaluation by means of external lists allocated in the solver | shrina | OpenFOAM Running, Solving & CFD | 2 | January 18, 2007 12:29 |
application error during solver run | MKP | CFX | 1 | May 18, 2006 09:49 |