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

Coupling OpenFoam with Fortran codes

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 17, 2011, 12:31
Default Coupling OpenFoam with Fortran codes
  #1
Member
 
Join Date: Sep 2010
Posts: 31
Rep Power: 7
anfho is on a distinguished road
Dear All,
I need to couple a Fortran code with OpenFoam (I am using OF 1.7.1). Has anyone done that before? It is even hard to find threads on this topic. If some of you know threads and documentation could you please share the links here? Any help is greatly appreciated.
Thanks very much. Regards, Andreas
anfho is offline   Reply With Quote

Old   January 17, 2011, 13:26
Default
  #2
Member
 
Join Date: Sep 2010
Posts: 31
Rep Power: 7
anfho is on a distinguished road
Here are some:

(1) Call Fortran program from OpenFoam

(2) How to interface a Fortran thermodynamic tool with OpenFOAM?

(3) http://owen.sj.ca.us/rkowen/howto/FandC/FandC.call.html

Apparently "fortran c++ mixing" are the key words to look for.
But I would be thankful for more information. I will specify my question more later down the road. -Andreas
anfho is offline   Reply With Quote

Old   October 29, 2015, 10:38
Default
  #3
New Member
 
Talat
Join Date: Oct 2015
Posts: 3
Rep Power: 2
foroutan_t is on a distinguished road
Did you find any way or program to couple Fortran with OpenFOAM? I will be grateful if you help me.

Last edited by foroutan_t; October 29, 2015 at 10:39. Reason: mistake
foroutan_t is offline   Reply With Quote

Old   October 29, 2015, 15:21
Default
  #4
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 330
Rep Power: 11
mkraposhin is on a distinguished road
Hi, yes i did it and there was nothing hard

I done it in two steps:

1) Implementation of Fortran to C interface
2) Implementation of C++ classes that can call C procedures
__________________
Winter OpenFOAM days in Moscow - http://www.opencloudconf.ru/en/oscome.html
mkraposhin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fortran codes for ausmpw+ dhawal817 Main CFD Forum 3 April 3, 2010 02:06
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
BOOK ON OPTIMIZATION OF FORTRAN CODES Alberto Main CFD Forum 3 November 10, 2008 07:07
FEM fortran codes for coupled mass momentum energy Amit Main CFD Forum 1 May 17, 2005 20:38
fortran codes in windows? Thorsten Main CFD Forum 0 September 24, 1998 07:51


All times are GMT -4. The time now is 16:37.