CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Running external application in solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2017, 15:47
Default Running external application in solver
  #1
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
dariodario32 is on a distinguished road
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
dariodario32 is offline   Reply With Quote

Old   July 10, 2017, 04:53
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
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
floquation is offline   Reply With Quote

Old   July 10, 2017, 09:52
Default
  #3
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
dariodario32 is on a distinguished road
thanks for the help, I'll try this!
dariodario32 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:51.