Difference between revisions of "GetDP"

From ONELAB
Jump to: navigation, search
(Getting started)
Line 8: Line 8:
 
# Uncompress the 2 archives (no installation necessary; you can move them to any directory)
 
# Uncompress the 2 archives (no installation necessary; you can move them to any directory)
 
# Double-click on the Gmsh executable ('''gmsh.exe''' [[File:GmshIcon.png|GmshIcon.png]] on Windows); a graphic window and a command window will open
 
# Double-click on the Gmsh executable ('''gmsh.exe''' [[File:GmshIcon.png|GmshIcon.png]] on Windows); a graphic window and a command window will open
# Load one of the geometries through the '''File->Open''' menu (e.g. the file '''magnet.geo''' for the first example below); the geometry will appear in the graphic window
+
# Load one of the geometries through the '''File/Open''' menu (e.g. the file '''magnet.geo''' for the first example below); the geometry will appear in the graphic window
 
# Go to the '''Solver''' module (by clicking on the '''Geometry''' button in the command window, then selecting '''Solver''')
 
# Go to the '''Solver''' module (by clicking on the '''Geometry''' button in the command window, then selecting '''Solver''')
 
# Click on the '''GetDP''' button (the first time you you will need to specify the location of the GetDP executable, e.g. '''getdp.exe''' on Windows; this depends on where you uncompressed the archives in step 2.)
 
# Click on the '''GetDP''' button (the first time you you will need to specify the location of the GetDP executable, e.g. '''getdp.exe''' on Windows; this depends on where you uncompressed the archives in step 2.)
Line 16: Line 16:
 
Give it a try on the [http://onelab.info/files/getdp/Magnetostatics/magnet.zip C-shaped magnetic core] example (the underlying model is explained in more details in the [[Magnetostatics]] section).
 
Give it a try on the [http://onelab.info/files/getdp/Magnetostatics/magnet.zip C-shaped magnetic core] example (the underlying model is explained in more details in the [[Magnetostatics]] section).
  
<gallery widths=150px perrow=5>
+
<gallery widths=200px perrow=5>
Image:magnet-1.png|Graphic (left) and command (right) window on MacOS X
+
Image:magnet-2.png|Graphic (left) and command (right) window on MacOS X; Load '''magnet.geo''' with the '''File/Open''' menu
Image:magnet-2.png|Open file and choose '''magnet.geo'''
 
 
Image:magnet-3.png|With the '''magnet.geo''' geometry loaded, go to the solver module
 
Image:magnet-3.png|With the '''magnet.geo''' geometry loaded, go to the solver module
Image:magnet-4.png|The GetDP solver button
+
Image:magnet-4.png|Click on the GetDP solver button
Image:magnet-5.png|The result of pressing '''Compute'''
+
Image:magnet-5.png|Click on '''Compute''' in the solver window: this will run GetDP and display the results. You can change any parameter and run '''Compute''' again.
 
</gallery>
 
</gallery>
  

Revision as of 10:05, 8 April 2012

GetDP is a rather general open source finite element solver using mixed elements to discretize de Rham-type complexes in one, two and three dimensions. GetDP is developed by the ACE group from the Montefiore Institute at the University of Liège, and is released under the GNU GPL.

Getting started

ONELAB allows to use GetDP as a black-box solver: you don't need to know anything about finite elements or de Rham complexes in order to run your first simulations:

  1. Download the latest nightly builds of Gmsh (for Windows, MacOS X or Linux) and GetDP (for Windows 32 bit/64 bit, MacOS X 32 bit/64 bit or Linux 32 bit/64 bit)
  2. Uncompress the 2 archives (no installation necessary; you can move them to any directory)
  3. Double-click on the Gmsh executable (gmsh.exe
    Error creating thumbnail: Unable to save thumbnail to destination
    on Windows); a graphic window and a command window will open
  4. Load one of the geometries through the File/Open menu (e.g. the file magnet.geo for the first example below); the geometry will appear in the graphic window
  5. Go to the Solver module (by clicking on the Geometry button in the command window, then selecting Solver)
  6. Click on the GetDP button (the first time you you will need to specify the location of the GetDP executable, e.g. getdp.exe on Windows; this depends on where you uncompressed the archives in step 2.)
  7. Click on Compute
  8. ... that's it!

Give it a try on the C-shaped magnetic core example (the underlying model is explained in more details in the Magnetostatics section).

Electromagnetics

Acoustics

Heat transfer

Generic PDEs

The following examples explain the fundamental concepts used in GetDP '.pro' files