CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   A doubt (http://www.cfd-online.com/Forums/openfoam-pre-processing/62156-doubt.html)

Alberto Passalacqua (Alberto) January 26, 2005 04:44

Hi, I'm starting to study ho
 
Hi,
I'm starting to study how to write solvers using OpenFOAM.
Will my solver be available under FoamX, like icoFoam and others, or will I have to configure it manually?

Thanks in advance,
Alberto

Mattijs Janssens (Mattijs) January 26, 2005 06:06

Hello Alberto, you will ha
 
Hello Alberto,

you will have to write configuration files (.cfg) yourself but that is fairly straightforward.

Take the config file (under $FOAMX_SYSTEM_CONFIG) of the application that behaves most like yours. Say I have written myFoam which is almost like icoFoam.

Take

$FOAMX_SYSTEM_CONFIG/applications/incompressible/icoFoam

and copy it to

$FOAMX_USER_CONFIG/applications/incompressible/myFoam

In there move the icoFoam.cfg to myFoam.cfg and make your changes.

Now create a case (right click on the root directory in the case browser) and voila you will have myFoam to choose from.

Alberto Passalacqua (Alberto) January 26, 2005 06:26

Thank you Mattijs. Regards
 
Thank you Mattijs.

Regards,
Alberto

mss November 27, 2006 07:51

Hej, I have problems with a
 
Hej,

I have problems with adding a user application class.
When typing "echo $FOAM_USER_CONFIG" I just receive a empty line as
answer....?
Also if I type $FOAMX_SYSTEM_CONFIG/applications/incompressible/icoFoam
I get: No such file or directory

(I have OpenFoam solvers in the: OpenFOAM/OpenFOAM-1.3/applications/solvers)

What I should do to add my solver and in which path I should put it?

thank you,
Rita

mattijs November 27, 2006 14:21

Have a look at the (just updat
 
Have a look at the (just updated)

http://openfoamwiki.net/index.php/Ho...olver_to_foamX

mss November 28, 2006 10:22

Hej, Thank you for the link.
 
Hej,
Thank you for the link. Now I can choose my class in FoamX.
I have one question more:
After I did this changes as you sad. I wanted to recompile .C file.... why it gives error? (I didn't make changes, just name of files (.cfg and .C))

thank u for help.


All times are GMT -4. The time now is 23:02.