|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
tom
Join Date: Jun 2010
Posts: 1
Rep Power: 0 ![]() |
Hello all,
I am a CFD person but have no experince with OPENFOAM at all. Could you please let me know the following? 1) How long it takes to learn and be able to run a simple flow problem (e.g., flow past cylinder), including mesh making? 2) Can I use a Fortran code to call OPENFOAM? Your input is greatly appreciated. Go and see |
|
![]() |
![]() |
![]() |
![]() |
#2 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 37 ![]() ![]() |
Quote:
The story changes if you have to change the code, and at that point I would recommend to either take a course from OpenFOAM developers or be prepared to spend a good amount of time exploring and learning the code details. Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. ![]() |
|||
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Evren
Join Date: Mar 2010
Posts: 20
Rep Power: 17 ![]() |
Quote:
I mean to call executables, this post is from me to thread " How to interface a Fortran thermodynamic tool with OpenFOAM?" __________________________________________________ _______ Hi, I have couple of fortran.90 subroutines which I would like to call from OpenFOAM1.6. What I know direct call of fortran subroutine from c++ is not good. Thus, one has to have C interface to routines and some more technical difficulties as, fortran stores rowwise C stores columnwise ![]() 1) What should be the compiled fortran source codes, dynamic library, shared objects (.so), objects (.o) ... ? If more than one is good, which one performs better? 2) How should be this "executables" (compiled files) linked to OpenFOAM, let's say scalarFoam? How should the <file> and <options> in Make folder be modified? Please no suggestion like "why don't you rewrite your subroutines in C++" ;-) All the best, @ Cyp: You see, I am chasing you ;-) __________________________________________________ _______ Any idea? Cheers, ![]() ![]() ![]() ![]() ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 19 ![]() |
Hi Evren,
You can call Fortran routines from within C++ code using the extern directive. There are some general hints here, here, and here. Also, check this and this OF related threads.
__________________
Regards, Gijs |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beginner Question | me.ouda | FLOW-3D | 2 | May 3, 2010 17:47 |
Beginner question :(. Turning on and off zones? | Cjlaumans | FLUENT | 6 | September 2, 2009 15:44 |
LES beginner question | Shuo | Main CFD Forum | 4 | July 9, 2007 08:40 |
Question from a beginner | Arun K | Main CFD Forum | 4 | August 13, 2004 07:17 |
Beginner question – mesh generation. | Oleg Melnik | Siemens | 2 | February 26, 2001 02:39 |