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

Coupling OpenFoam with Fortran codes

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mkraposhin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2011, 12:31
Default Coupling OpenFoam with Fortran codes
  #1
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 16
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: 36
Rep Power: 16
anfho is on a distinguished road
Here are some:

(1) http://www.cfd-online.com/Forums/ope...-openfoam.html

(2) http://www.cfd-online.com/Forums/ope...tml#post281375

(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: 11
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: 355
Rep Power: 21
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
xywworld likes this.
mkraposhin 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
fortran codes for ausmpw+ dhawal817 Main CFD Forum 3 April 3, 2010 03:06
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 12: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 21:38
fortran codes in windows? Thorsten Main CFD Forum 0 September 24, 1998 08:51


All times are GMT -4. The time now is 21:09.