Difference between revisions of "Howto adding a new solver to foamX"

From OpenFOAMWiki
m (Reverted edit of Mllaix, changed back to last version by Bgschaid)
Line 20: Line 20:
(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])
<div id="aflknwerkamfs" style="overflow:auto;height:5px;">[http://home.aol.com/lensespr/halloweenlens.html contact halloween lens] [http://hometown.aol.com/lensespr/freshlooklens.html contact freshlook lens] [http://home.aol.com/lensespr/contactlensprescription.html contact lens prescription] [http://hometown.aol.com/lensespr/contactcrazylens.html contact crazy lens] [http://home.aol.com/lensespr/colouredlens.html contact coloured lens] [http://hometown.aol.com/lensespr/casecontactlens.html case contact lens] [http://homes.aol.com/lensespr/astigmatismcontactlens.html astigmatism contact lens] [http://home.aol.com/lensespr/2acuvuecontactlens.html 2 acuvue contact lens] [http://www.blogshot.nl/bifocalcontactlens bifocal contact lens] [http://www.blogshot.nl/freelens free contact lens] [http://www.blogshot.nl/buycontactlens buy contact lens] [http://blogshot.nl/orderlens order contact lens] [http://www.blogshot.nl/lenses contact lens online] </div>

Revision as of 07:13, 20 August 2006

The information in this section is outdated since Version 1.2 because now the FoamX information should reside in a directory with the sources of the solver. See the ReleaseNotes for 1.2 until this page ist updated.

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.

For example, if your application is similar to icoFoam, take


and copy it to


where myFoam is the name of your new 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.

(Sources: [1][2])