Difference between revisions of "Elmer"

From ONELAB
Jump to: navigation, search
(Getting started)
 
(103 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Getting started ==
 +
 
[http://www.csc.fi/english/pages/elmer Elmer] is an open source (GPL) computational tool for multi-physics problems.  
 
[http://www.csc.fi/english/pages/elmer Elmer] is an open source (GPL) computational tool for multi-physics problems.  
 
It is developed by CSC in collaboration with Finnish universities, research laboratories and industry.
 
It is developed by CSC in collaboration with Finnish universities, research laboratories and industry.
 +
To test ONELAB models working with Elmer, you shall need a working installation of the code.
 +
The easiest way to do so, is to install the [[ONELAB virtual machine|ONELAB virtual machine]] on your system
 +
by following [[ONELAB virtual machine|these instructions]].
  
<!-- Do not delete
+
The ONELAB Virtual machine is distributed with Gmsh and Elmer preinstalled.
[[ONELAB metamodels with Elmer]]
+
When done with the installation, log in (username: olvm, passwd: olvm)
[[Fluid Dynamics]]
+
and proceed by downloading benchmark ONELAB models. You have to be online.
-->
+
* Open a terminal from the left menu bar.
 
+
* Issue the command <code>getElmerModels.sh -test</code> at the prompt. The model examples listed in the next section are then downloaded in the directory <code>ELMERMODELS</code>.  Always execute this command in a new terminal. This command overwrite an eventual already existing <code>ELMERMODELS</code> directory. Valuable data in the latter directory should therefore be copied elsewhere before executing the command.  
Two complete metamodels using Elmer are available on the read-only svn distribution of gmsh, which can be downloaded from http://www.geuz.org/gmsh.  
+
* The option <code>-test</code> asks for an automatic check on the downloaded models, which are solved immediately after being downloaded. The result the check is given in the file <code>ELMERMODELS/report.txt</code>.
You also need a working recent (nightly-build) version of gmsh to be executable on your system.
 
 
 
First take a look at this [[Tutorial|tutorial]] to see how ONELAB can be installed.
 
 
 
== LASER ==
 
 
 
The metamodel "LASER" is launched as follows:
 
<code>
 
# cd <nowiki>$</nowiki>GMSH_DIR/projects/onelab/METAMODELS/LASER (the variable ''GMSH_DIR'' refers to the home directory of your Gmsh installation)
 
# gmsh lab_peau.geo -s
 
</code>
 
  
The shell variable ''GMSH_DIR'' refers to the home directory of your Gmsh installation, see [[Tutorial]].
+
Information about the individual models are given in the next section.
The "-s" option amounts to click on "Tool/Onelab" in the Gmsh menu.  
+
For beginners, a detailed tutorial that leading through the successive steps of a first session with the ONELAB-laser model is available [http://onelab.info/files/laser/laser_tuto.pdf here].
  
The physical background of this model is the laser stimulation of skin in order to measure the density of [[http://en.wikipedia.org/wiki/Nociceptionreceptors|nociceptive]] receptors.
+
== ONELAB models ==
For a correct interpretation of the experimental data, an accurate nowledge of the temperature distribution in time and across the skin is needed.
 
The metamodel allows selecting various models of stimulation (imposed flux, imposed temperature and controlled temperature)
 
and various laser types (Gaussian or flat-top).
 
Each simulation generates a Matlab or Gnuplot graphical output that is directly interpretable by clinicians.
 
Check in the "lab_peau.ol" file how the switch between Matlab and Gnuplot is done,
 
and modify the file if necessary according to your system settings.
 
  
== CRYO ==
+
[[Cryotherapy|Cryotherapy]] : Thermal analysis of the cryogenic treatment of warts
  
The cryo-engineering metamodel "CRYO" is launched as follows:
+
[[Beam3D|Beam3D]] : Didactical model of a 3D cantilever elastic beam
<code>
 
# cd <nowiki>$</nowiki>GMSH_DIR/projects/onelab/METAMODELS/CRYO
 
# gmsh cryo.geo -s
 
</code>
 
  
The shell variable ''GMSH_DIR'' refers to the home directory of your Gmsh installation, see [[Tutorial]].
+
[[Laser|Laser]] : Thermal analysis of laser skin stimulation
The "-s" option amounts to click on "Tool/Onelab" in the Gmsh menu.
 
  
The physical background is the cryogenic treatment of warts by application of a cryogenic fluid.
+
[[Patch|Drug patch]] : Analysis of drug diffusion from a patch into the skin
The idea is to maximize the destruction of wart tissue cells while minimizing damages done to healthy skin tissue.
 
An damage function depending on temperature distribution and time is built to represent this trade-off and the purpose of the modeling
 
is to determine the application time that minimizes this damage function.
 
  
Various geometrical and modeling parameters can be interactively modified in the ONELAB window.
 
After execution, a plot of the damage function displayed and the optimum application time <code>tmoin</code> is uploaded to the ONELAB window.
 
  
[[File:CryoEngineering.png|CryoEngineering.png|300px|thumb|right|Cryo-engineering metamodel]]
+
<!--
 +
This metamodel illustrates the possibility of running clients on a '''remote host'''.
 +
Remote solving uses <code>ssh</code> and <code>rsync</code>, and is thus available on Linux and Mac-OS systems only.
  
This metamodel illustrates also the possibility of running a client on a remote host.
+
After selecting the option ''remote'' of the parameter ''host'' and clicking on ''Check'', empty boxes will appear
After selecting the option "remote" of the parameter "host" and clicking on "Check", empty boxes will appear
 
 
to be filled in with information about a remote host (''user@remote''), a remote working directory,
 
to be filled in with information about a remote host (''user@remote''), a remote working directory,
 
and a remote bin directory where the executable of the remote client can be found.  
 
and a remote bin directory where the executable of the remote client can be found.  
Line 60: Line 39:
 
Alternatively, if entered directly in the file <code>cryo.ol</code> in the definition of the variables ''HOST'', ''REMDIR'' and ''ELMERDIR'', they will be available for all ONELAB sessions.
 
Alternatively, if entered directly in the file <code>cryo.ol</code> in the definition of the variables ''HOST'', ''REMDIR'' and ''ELMERDIR'', they will be available for all ONELAB sessions.
 
As long as ''HOST'' and ''REMDIR'' are empty, the client is solved on the local machine, whatever the value of the flag ''host''.
 
As long as ''HOST'' and ''REMDIR'' are empty, the client is solved on the local machine, whatever the value of the flag ''host''.
 +
 +
In order to automize the task, an automatic login from host A  to host B is needed so as to avoid entering constantly the password
 +
as explained here: http://linuxproblem.org/art_9.html
 +
-->

Latest revision as of 11:57, 23 January 2015

Getting started

Elmer is an open source (GPL) computational tool for multi-physics problems. It is developed by CSC in collaboration with Finnish universities, research laboratories and industry. To test ONELAB models working with Elmer, you shall need a working installation of the code. The easiest way to do so, is to install the ONELAB virtual machine on your system by following these instructions.

The ONELAB Virtual machine is distributed with Gmsh and Elmer preinstalled. When done with the installation, log in (username: olvm, passwd: olvm) and proceed by downloading benchmark ONELAB models. You have to be online.

  • Open a terminal from the left menu bar.
  • Issue the command getElmerModels.sh -test at the prompt. The model examples listed in the next section are then downloaded in the directory ELMERMODELS. Always execute this command in a new terminal. This command overwrite an eventual already existing ELMERMODELS directory. Valuable data in the latter directory should therefore be copied elsewhere before executing the command.
  • The option -test asks for an automatic check on the downloaded models, which are solved immediately after being downloaded. The result the check is given in the file ELMERMODELS/report.txt.

Information about the individual models are given in the next section. For beginners, a detailed tutorial that leading through the successive steps of a first session with the ONELAB-laser model is available here.

ONELAB models

Cryotherapy : Thermal analysis of the cryogenic treatment of warts

Beam3D : Didactical model of a 3D cantilever elastic beam

Laser : Thermal analysis of laser skin stimulation

Drug patch : Analysis of drug diffusion from a patch into the skin