Modules

A module is a predefined physics acting on variables of its model. Its properties are given per domain selection, by a value or a material; its conditions apply on boundary selections; its macros can be used in every expression of the model.

heat_conduction: Heat conduction

Key

Variable

Kind

Default name

May be imported

variable

temperature

scalar

T

Properties:

Property

Meaning

Unit (SI)

Default

k

thermal conductivity

W/(m·K)

1.0

rho

density

kg/m³

1.0

cp

specific heat capacity

J/(kg·K)

1.0

Option conductivity: isotropic, anisotropic.

With conductivity set to anisotropic, k is a matrix of the dimension of the space (a number stands for its multiple of the identity).

Sources: scalar values per domain selection.

Conditions:

Condition

Values

Fixes the solution

temperature

value (scalar)

yes

heat_flux

value (scalar)

convection

h (scalar), T_ext (scalar)

yes

Macros: q.

Exported fields: heat_flux (vector).

electrostatics: Electrostatics

Key

Variable

Kind

Default name

May be imported

variable

electric potential

scalar

V

Properties:

Property

Meaning

Unit (SI)

Default

eps_r

relative permittivity

1

1.0

Option permittivity: isotropic, anisotropic.

With permittivity set to anisotropic, eps_r is a matrix of the dimension of the space (a number stands for its multiple of the identity).

Sources: scalar values per domain selection.

Conditions:

Condition

Values

Fixes the solution

potential

value (scalar)

yes

ground

none

yes

surface_charge

value (scalar)

floating

charge (scalar)

Macros: E_field, D_field, eps0.

Exported fields: electric_field (vector), electric_displacement (vector).

electric_currents: Electric currents

Key

Variable

Kind

Default name

May be imported

variable

electric potential

scalar

V

Properties:

Property

Meaning

Unit (SI)

Default

sigma_e

electrical conductivity

S/m

1.0

Option conductivity: isotropic, anisotropic.

Option joule_heating: none, heat_conduction.

With conductivity set to anisotropic, sigma_e is a matrix of the dimension of the space (a number stands for its multiple of the identity).

Sources: scalar values per domain selection.

Conditions:

Condition

Values

Fixes the solution

potential

value (scalar)

yes

ground

none

yes

current_density

value (scalar)

terminal

current (scalar)

Macros: E_field, J_field, Q_joule.

Exported fields: electric_field (vector), current_density (vector).

linear_elasticity: Linear elasticity

Key

Variable

Kind

Default name

May be imported

variable

displacement

vector

u

Properties:

Property

Meaning

Unit (SI)

Default

E

Young’s modulus

Pa

1.0

nu

Poisson’s ratio

1

0.3

rho

density

kg/m³

1.0

alpha_M

mass damping (Rayleigh, 1/s)

0.0

beta_K

stiffness damping (Rayleigh, s)

0.0

Option plane: strain, stress (2D models only).

Sources: vector values per domain selection.

Conditions:

Condition

Values

Fixes the solution

fixed

none

yes

displacement

value (vector)

yes

roller

none

yes

traction

value (vector)

pressure

value (scalar)

Macros: eps, sigma, sigma_zz, von_mises, mu_L, lambda_L, beta_L, theta_L, nitsche_gamma0.

Exported fields: von_mises (scalar).

thermal_expansion: Thermal expansion

Key

Variable

Kind

Default name

May be imported

temperature

temperature

scalar

T

yes

displacement

displacement

vector

u

Properties:

Property

Meaning

Unit (SI)

Default

alpha

thermal expansion coefficient

1/K

1e-05

Value T_ref: scalar, default 0.0.

Requires a linear_elasticity module (on its displacement).

pde: PDE (coefficient or general form)

Its properties and their kinds depend on its options (see PDE module): K, b, j, v, r in coefficient form, F in general form; d at order 1 in time, m and d at order 2; the unknown, the source and the conditions scalar, or vectors with “unknown”: “vector”. In the expressions, a coefficient takes the name of the unknown: K_u for the K of an unknown u.

Key

Variable

Kind

Default name

May be imported

variable

unknown

scalar

u

Properties:

Property

Meaning

Unit (SI)

Default

K

diffusion

1.0

b

conservative convection

0.0

j

given flux

0.0

v

convection velocity

0.0

r

reaction

0.0

F

the flux

Grad_u

d

mass at order 1, damping at order 2

1.0

m

mass

1.0

Option form: coefficients, general.

Option unknown: scalar, vector.

Option time_order: 0, 1, 2.

Option diffusion: isotropic, anisotropic.

Option stabilization: none, supg.

Sources: scalar values per domain selection.

Conditions:

Condition

Values

Fixes the solution

imposed_value

value (scalar)

flux

value (scalar)

robin

q (scalar), value (scalar)

Generic conditions

Conditions on any variable of a model, besides those of the modules:

Condition

Values

Fixes the solution

dirichlet

value (of the kind of the variable)

yes

normal_dirichlet

value (scalar)

yes

neumann

value (of the kind of the variable)

robin

h (scalar), value (of the kind of the variable)

yes

Methods of the Dirichlet conditions: simplification, multiplier, penalization (normal_dirichlet: not simplification).