### From SLangTNG

## Contents |

# 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

- Introduction: Flow Control
- Simple mathematical functions (PDF)
- Interpolation and visualization of surfaces (PDF)
- Monte Carlo simulation (PDF)
- Simple finite element analysis (PDF)
- Analysis of imported FE mesh (PDF)
- Optimization with constraints (PDF)
- Solution of initial value problems (PDF)
- Random fields on an FE mesh (PDF)
- Random process with given power spectral density (PDF)
- Creating a simple finite element structure
- Import a FEM mesh from GMSH
- Export postprocessed data on a FEM mesh to GMSH
- A static FE analysis
- Dynamic FE analysis using implicit midpoint rule
- Dynamic FE analysis using explicit Verlet
- A simple contact/impact problem using Decomposition Contact Response
- Asynchronous integration with variable time steps
- Asynchronous integration with contact/impact

## Documentation

Documentation for end users can be found here:

- User guide including examples (PDF)
- Command reference, generated documentation of C++ commands (HTML)

## Lua

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

- A Lua handbook, the first revision is available online.
- The Lua reference manual
- Overview on control structures, such as FOR, WHILE, etc.
- Overview on expressions, such as <,>, "and", "or", etc.