Loading

     

Demo Codes

Here is a collection of demo programs with increasing complexity to illustrate the main functionalities of the library .

1-D problems

A two-point boundary value problem
A 1-D heat equation
A 1-D linear transport equation

The Laplace equation

The 2-D Laplace equation with P1 finite elements
The 2-D Laplace equation with P2 finite elements
The 3-D Laplace equation with P1 finite elements
The 2-D Steklov-Poincaré problem using P0 boundary elements

Heat Transfer

A 2-D steady state diffusion convection code
A 2-D transient heat transfer code
A 3-D steady state heat transfer code

Solid and Structural Mechanics

A linear elasticity code with planar deformations
A 3-D linear elasticity code
A linear elasticity code with planar deformations and contact
An elastic beam code
A planar truss code

Fluid Dynamics

A 2-D incompressible fluid flow problem using quadrilateral finite elements
A 2-D incompressible fluid flow problem using triangular finite elements and a projection method

The Linear Solver

Solve a linear system by a direct method
Solve a linear system issued from a PDE by a preconditioned iterative method

The ODE solver

A nonlinear first-order ode given by a regular expression
A first-order nonlinear ode given numerically
A system of first-order linear ode's given numerically
A simple nonlinear ode given by regular expressions

The Time Stepping solver

Solution of a transient heat transfer problem by the BDF2 scheme
Solution of a problem of elastodynamics by the Newmark method

The Eigen Problem solver

Eigenvalues of a given symmetric matrix
Solve an eigenvalue problem for the Laplace equation

The Optimization solver

A one variable problem
A mutivariable problem
Solution of the Laplace equation as an optimization problem

The Nonlinear solver

A one variable problem where the function is given by a C-function
A one variable problem where the function is given by a regular expression
Solution of a system of two algebraic equations, the system being defined by regular expressions
Solution of the same system as above, where the functions are given by C-functions

Mesh adaptation

A one variable problem with the objective function given by an algebraic expression
A 2-D mesh adaptation example where the mesh is adapted to a given solution vector

 

Copyright © 1998-2020 Rachid Touzani