From SLangTNG


Getting started with Lua and SLangTNG

General concept

This document describes the basic features of SLangTNG by solving a selected set of simple problems related to stochastic structural mechanics.

It is assumed that an executable program (SLangTNG-application) with the name TNGQT is available (TNGQT is the default frontend - 'driver' - with graphial user interface based on Qt). From a terminal, you can run a script, say intro.tng with the command

TNGQT  intro.tng

Depending on your system configuration you may need to provide the full path to the TNG-application.

Script examples

  1. Introduction: Flow Control
  2. Simple mathematical functions (PDF)
  3. Interpolation and visualization of surfaces (PDF)
  4. Monte Carlo simulation (PDF)
  5. Simple finite element analysis (PDF)
  6. Analysis of imported FE mesh (PDF)
  7. Optimization with constraints (PDF)
  8. Solution of initial value problems (PDF)
  9. Random fields on an FE mesh (PDF)
  10. Random process with given power spectral density (PDF)
  11. Creating a simple finite element structure
  12. Import a FEM mesh from GMSH
  13. Export postprocessed data on a FEM mesh to GMSH
  14. A static FE analysis
  15. Dynamic FE analysis using implicit midpoint rule
  16. Dynamic FE analysis using explicit Verlet
  17. A simple contact/impact problem using Decomposition Contact Response
  18. Asynchronous integration with variable time steps
  19. Asynchronous integration with contact/impact


Documentation for end users can be found here:


Overviews on concepts of the Lua language can be found here:

  1. A Lua handbook, the first revision is available online.
  2. The Lua reference manual
  3. Overview on control structures, such as FOR, WHILE, etc.
  4. Overview on expressions, such as <,>, "and", "or", etc.
Information for users
Personal tools