This wiki contains simple tutorial models designed to get you acquainted step by step with the concepts and the syntax of ONELAB models.
The list below gives the main new concepts introduced by each tutorial. Explanations are given as comments directly in the models files, which you can browse directly from the list. Useful tips for using the graphical user interface are also available.
You can download all the tutorials on your computer with the command:
git clone https://gitlab.onelab.info/doc/tutorials.git
Additional examples highlighting various physical models and numerical techniques are available here.
ONELAB tutorial for Gmsh and GetDP
The following examples introduce new features gradually, starting with the Electrostatic microstrip line model. Make sure to read the model files: each new feature is explained directly where it is used in the form of inline comments. See also the ONELAB syntax guide for Gmsh and GetDP and the tutorial on managing variables in Onelab models
- Physical regions and Abstract regions
- Stiffness term of a Laplacian problem
- Browse model files
- Right-hand-side term of a Poisson problem
- ONELAB variables
- Boundary conditions at infinity
- Browse model files
-
\nabla u
GetDP specific formulation for linear elasticity - First and second order elements
- Triangular and quadrangular elements
- Browse model files
- Global quantities and their special shape functions
- Computation of the energy dual, i.e. of the armature charge of the electrode
- More on ONELAB parameters (flags, model options, check boxes, menus, ...)
- Browse model files
- Contact thermal resistance (idealised thin region with hign thermal conductivity)
- Thermal electrode (floating temperature in a region of high thermal conductivity)
- Computation of heat flux through surfaces
- Import of a source field from a file
- Browse model files
- Potential flow, irrotational flow
- Multivalued scalar field
- Lift and Magnus effect, stagnation points
- Run-time variables
- Elementary algorithms in the Resolution section
- Non-linear iteration to achieve Kutta's condition
- Browse model files
- Eddy current problems in frequency- and time-domain
- Complex-valued solutions (phasors)
- Use of a template library containing generic formulations
- Browse model files
- Coupling of finite elements and electric circuits
- Definition of lumped circuit elements
- Creation of netlists combining lumped elements and global finite element quantities
- Browse model files
- 3D Magnetostatics
- Dual vector and scalar magnetic potentials formulations
- Boundary condition at infinity with infinite elements
- Maxwell stress tensor and rigid-body magnetic forces
- Browse model files
ONELAB tutorial for Python
(See also the onelab.py Python module.)
- Python ONELAB client
- Browse model files
ONELAB tutorial for C++
- C++ ONELAB client
- Browse model files