Difference between revisions of "Howto adding a new solver to foamX"
From OpenFOAMWiki
m |
|||
Line 2: | Line 2: | ||
The easiest way is to take the configuration (<tt>.cfg</tt>) file of a standard application which behaves similarly to the one you want to add from <tt>$FOAMX_SYSTEM_CONFIG</tt> and to copy it to <tt>FOAMX_USER_CONFIG/applications/incompressible/myFoam</tt>, where <tt>myFoam</tt> is the name of your solver. | The easiest way is to take the configuration (<tt>.cfg</tt>) file of a standard application which behaves similarly to the one you want to add from <tt>$FOAMX_SYSTEM_CONFIG</tt> and to copy it to <tt>FOAMX_USER_CONFIG/applications/incompressible/myFoam</tt>, where <tt>myFoam</tt> is the name of your solver. | ||
+ | |||
Adapt the configuration file and the dictionaries to your needs and change <tt>/Make/files</tt> to match your application name. | Adapt the configuration file and the dictionaries to your needs and change <tt>/Make/files</tt> to match your application name. | ||
+ | |||
Create a case (right click on the root directory in the case browser) and you will have <tt>myFoam</tt> to choose from. | Create a case (right click on the root directory in the case browser) and you will have <tt>myFoam</tt> to choose from. | ||
(Sources: [http://openfoam.cfd-online.com/forum/messages/1/156.html?1106735185][http://openfoam.cfd-online.com/forum/messages/1/371.html]) | (Sources: [http://openfoam.cfd-online.com/forum/messages/1/156.html?1106735185][http://openfoam.cfd-online.com/forum/messages/1/371.html]) |
Revision as of 22:50, 22 June 2005
To add a new solver to FoamX you have to write the corresponding configuration file.
The easiest way is to take the configuration (.cfg) file of a standard application which behaves similarly to the one you want to add from $FOAMX_SYSTEM_CONFIG and to copy it to FOAMX_USER_CONFIG/applications/incompressible/myFoam, where myFoam is the name of your solver.
Adapt the configuration file and the dictionaries to your needs and change /Make/files to match your application name.
Create a case (right click on the root directory in the case browser) and you will have myFoam to choose from.