Forms of the model nodes

The fields of the forms of the nodes of a model and of the global solvers; the key is relative to the object of the node in the model file.

Model

Field

Key

Value

Name

name

name

Description

description

text

VTU file

vtu

text. file of the exported fields

Variable

Field

Key

Value

Name

name

name

Mesh

mesh

one of mesh

Finite element

fem

one of lagrange (Lagrange (continuous)), lagrange_discontinuous (discontinuous Lagrange)

Degree

degree

one of 1, 2, 3, 4, 5, 6

Components

components

one of 1 (scalar), dim (vector)

Initial value (in time)

initial

number or GWFL expression

Import

Field

Key

Value

Name here

name

name

From the model

model

one of heat

Variable

variable

one of T

Module

Field

Key

Value

Conductivity

conductivity

one of isotropic, anisotropic. anisotropic: k is a dim x dim matrix (its values turned into matrices)

Temperature

variable

one of T

k (thermal conductivity)

properties.k.0

one of value (a value), material:steel (material steel). thermal conductivity

properties.k.0.value

number or GWFL expression. thermal conductivity

rho (density)

properties.rho.0.value

number or GWFL expression. density

cp (specific heat capacity)

properties.cp.0.value

number or GWFL expression. specific heat capacity

f (volume source)

sources.0.value

number or GWFL expression

Source of a module

Field

Key

Value

Domain

selection

one of all

Value

value

number or GWFL expression

Condition of a module

Field

Key

Value

Type

type

one of temperature, heat_flux (heat flux), convection

Boundary

selection

one of boundary, xmin, xmax, ymin, ymax

Value

value

number or GWFL expression

Term

Field

Key

Value

Name

name

name

Expression (GWFL)

expr

number or GWFL expression

Integrated on

selection

one of all, boundary, xmin, xmax, ymin, ymax

Linear

linear

one of auto (detected), true (yes), false (no)

Generic condition

Field

Key

Value

Type

type

one of dirichlet, normal_dirichlet (normal dirichlet), neumann, robin

Variable

variable

one of T

Boundary

selection

one of boundary, xmin, xmax, ymin, ymax

Value

value

number or GWFL expression

Method

method

one of simplification, multiplier, penalization

Penalty coefficient

penalty

number or expression of parameters

Solver of a model

Field

Key

Value

Type

type

one of auto (automatic (linear or Newton)), linear, newton (Newton)

Maximum iterations

max_iter

integer

Residual tolerance

max_res

number or expression of parameters

Linear solver

linear_solver

one of auto (automatic (GetFEM’s choice)), mumps (MUMPS (direct, parallel; SuperLU if not available)), superlu (SuperLU (direct)), dense_lu (dense LU (direct, small systems only)), cg/ildlt (conjugate gradient, ILDLT preconditioner (iterative; symmetric positive definite)), gmres/ilu (GMRES, ILU preconditioner (iterative)), gmres/ilut (GMRES, ILUT preconditioner (iterative)), gmres/ilutp (GMRES, ILUTP preconditioner (iterative)). The solver of the linear systems (at each Newton iteration): automatic, GetFEM chooses (direct up to a size, then iterative); a direct one (MUMPS, SuperLU, dense LU) or an iterative one, with an incomplete factorization: CG for a symmetric positive definite system only (no multiplier, and a Dirichlet condition by simplification makes the system non symmetric), GMRES otherwise

Output

Field

Key

Value

Name

name

name

Integrand (GWFL)

expr

number or GWFL expression

Integrated on

selection

one of all, boundary, xmin, xmax, ymin, ymax

Plot

Field

Key

Value

Name

name

name

Abscissa

type

one of line (along a line (the distance from its start)), time (in time). Along a segment (the distance from its start A), or in time (a transient solver: the saved times)

Title

title

text

Its curves: Add a curve. Each one a GWFL expression (scalar: Norm(u), u(1) for a vector), evaluated with the solution.

Curve along a line

Field

Key

Value

Label

label

text. In the legend (empty: the expression)

Expression (GWFL)

expr

number or GWFL expression. A scalar GWFL expression: T, von_mises, Norm(Grad_T), u(2), T - 20…

From A

from

numbers or expressions of parameters, one per coordinate, or a vector parameter

To B

to

numbers or expressions of parameters, one per coordinate, or a vector parameter

Number of points

points

integer

Times

times

text. In time: last (the end), all (each saved time), or a list of times (0.5, 1: the nearest saved ones), a curve each; stationary: the solution

Curve in time

Field

Key

Value

Label

label

text. In the legend (empty: the expression)

Expression (GWFL)

expr

number or GWFL expression. A scalar GWFL expression: T, von_mises, Norm(Grad_T), u(2), T - 20…

Value

at

one of point (the value at a point), integral (the integral on a selection), average (the average on a selection)

Point

point

numbers or expressions of parameters, one per coordinate, or a vector parameter

Parameter

Field

Key

Value

Name

name

name

Value

value

number or GWFL expression. number, vector [1, 0, 0], matrix [1, 0; 0, 2] (by rows), or expression: + - * /, pi, components C(1), K(1, 2) (from 1), dot product u.v, Det, Id, Inv, Norm, Norm_sqr, Trace, Transpose, abs, acos, asin, atan, atan2, cos, cosh, exp, log, log10, max, min, pow, sin, sinh, sqr, sqrt, tan, tanh

Description

description

text

Material

Field

Key

Value

Name

name

name

Description

description

text

k (W/(m·K))

properties.k

number or GWFL expression. thermal conductivity

Field

Field

Key

Value

Name

name

name

Description

description

text

Geometry

geometry

one of geometry

Kind

kind

one of scalar, vector, matrix (matrix (dim x dim))

Domain 1

values.0.selection

one of all

Value 1

values.0.value

number or GWFL expression

Global solver

Field

Key

Value

Name

name

name

Type

type

one of sequence, staggered (staggered iterations), transient (transient (in time)), modal (modal analysis (eigenmodes))

Steps, in order

steps

list of names. Each step solves a model, or some of its variables (model/u: u solved, the other variables of the model given; each variable solved by one step at least)

Maximum iterations

max_iter

integer

Tolerance (relative change)

tolerance

number or expression of parameters

Relaxation

relaxation

number or expression of parameters

Transient global solver

Field

Key

Value

Name

name

name

Start from

start

one of initial (the initial values), previous (the state left by the previous solver). The initial values of the variables (the solver can run alone), or the state left by the solver before it (the values of the variables, the velocities of those in time: a preload, then a dynamics)

Type

type

one of sequence, staggered (staggered iterations), transient (transient (in time)), modal (modal analysis (eigenmodes))

Steps, in order

steps

list of names. Each step solves a model, or some of its variables (model/u: u solved, the other variables of the model given; each variable solved by one step at least)

Start time

time.start

number or GWFL expression

End time

time.end

number or GWFL expression

Time step

time.step

number or GWFL expression

Save every (steps)

save.every

integer

Coupling at each step

coupling

one of sequence (the models in turn), staggered (staggered iterations)

Scheme of T (heat)

schemes.heat/T.type

one of stationary (stationary (no time derivative: quasi-static)), theta (theta-method (1: implicit Euler, 0.5: Crank-Nicolson)), bdf2 (BDF2 (second order; its first step: implicit Euler, or Crank-Nicolson)), rk2 (explicit Runge-Kutta 2 (Heun)), rk4 (explicit Runge-Kutta 4 (classical)). The time scheme of the variable: stationary (no time derivative, the equation solved at each time), or a scheme of the order of its time derivative (theta-method, BDF2; explicit: RK2, RK4)

Theta of T

schemes.heat/T.theta

number or expression of parameters. The theta-method: 1, implicit Euler (robust, first order); 0.5, Crank-Nicolson (second order, may oscillate) (]0, 1])

Scheme of S (other)

schemes.other/S.type

one of stationary (stationary (no time derivative: quasi-static)), theta (theta-method (1: implicit Euler, 0.5: Crank-Nicolson)), bdf2 (BDF2 (second order; its first step: implicit Euler, or Crank-Nicolson)), rk2 (explicit Runge-Kutta 2 (Heun)), rk4 (explicit Runge-Kutta 4 (classical)). The time scheme of the variable: stationary (no time derivative, the equation solved at each time), or a scheme of the order of its time derivative (theta-method, BDF2; explicit: RK2, RK4)

At each time step, the models are solved in turn (or by staggered iterations), every equation written at the new time; the scheme of each variable in time gives its time derivative (Dot_T for T) from its value and the previous ones; the time t may appear in the expressions. The variables start from their initial value; the results are saved every few steps (a VTU file each, a .pvd collection).