Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
tutorials
tutorials
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • documentation
  • tutorialstutorials
  • Wiki
  • Home

Last edited by Christophe Geuzaine May 24, 2019
Page history

Home

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.

Warning: these tutorials require the very latest Gmsh and GetDP versions (the stable versions will not work): simply download the ONELAB bundle to get up-to-date versions

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

  1. Electrostatic microstrip line
  • Physical regions and Abstract regions
  • Stiffness term of a Laplacian problem
  • Browse model files
  1. Magnetostatic electromagnet
  • Right-hand-side term of a Poisson problem
  • ONELAB variables
  • Boundary conditions at infinity
  • Browse model files
  1. Linear elasticity - wrench2D
  • \nabla u GetDP specific formulation for linear elasticity
  • First and second order elements
  • Triangular and quadrangular elements
  • Browse model files
  1. Electrostatic microstrip with floating potentials
  • 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
  1. Thermal contact resistance and floating temperature
  • 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
  1. 2D potential flow with computation of the lift force
  • 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
  1. 2D magnetodynamics - electromagnet and transformer
  • Eddy current problems in frequency- and time-domain
  • Complex-valued solutions (phasors)
  • Use of a template library containing generic formulations
  • Browse model files
  1. Coupled finite element and circuit equations
  • 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
  1. 3D Magnetostatics and magnetic rigid-body forces
  • 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 syntax guide for Python.)

  1. Double pendulum in Python
  • Python ONELAB client
  • Browse model files

ONELAB tutorial for C++

  1. Double pendulum in C++
  • C++ ONELAB client
  • Browse model files
Clone repository
  • Circuit coupling
  • Double pendulum model in Cpp
  • Double pendulum model in Python
  • Elasticity
  • Electrostatics with floating potentials
  • Electrostatics
  • Magnetic forces
  • Magnetodynamics
  • Magnetostatics
  • Mobile app
  • ONELAB JSON interface
  • ONELAB graphical user interface tips and tricks
  • ONELAB onelab.py module
  • ONELAB syntax for Gmsh and GetDP
  • Potential flow
View All Pages