CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Coupling OpenFoam with Fortran codes (https://www.cfd-online.com/Forums/openfoam-programming-development/83990-coupling-openfoam-fortran-codes.html)

anfho January 17, 2011 11:31

Coupling OpenFoam with Fortran codes
 
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 January 17, 2011 12:26

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

foroutan_t October 29, 2015 09:38

Did you find any way or program to couple Fortran with OpenFOAM? I will be grateful if you help me.

mkraposhin October 29, 2015 14:21

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


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