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 |
|---|---|---|---|---|
|
temperature |
scalar |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
thermal conductivity |
W/(m·K) |
|
|
density |
kg/m³ |
|
|
specific heat capacity |
J/(kg·K) |
|
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 |
|---|---|---|
|
|
yes |
|
|
|
|
|
yes |
Macros: q.
Exported fields: heat_flux (vector).
electrostatics: Electrostatics¶
Key |
Variable |
Kind |
Default name |
May be imported |
|---|---|---|---|---|
|
electric potential |
scalar |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
relative permittivity |
1 |
|
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 |
|---|---|---|
|
|
yes |
|
none |
yes |
|
|
|
|
|
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 |
|---|---|---|---|---|
|
electric potential |
scalar |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
electrical conductivity |
S/m |
|
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 |
|---|---|---|
|
|
yes |
|
none |
yes |
|
|
|
|
|
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 |
|---|---|---|---|---|
|
displacement |
vector |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
Young’s modulus |
Pa |
|
|
Poisson’s ratio |
1 |
|
|
density |
kg/m³ |
|
|
mass damping (Rayleigh, 1/s) |
|
|
|
stiffness damping (Rayleigh, s) |
|
Option plane: strain, stress (2D models only).
Sources: vector values per domain selection.
Conditions:
Condition |
Values |
Fixes the solution |
|---|---|---|
|
none |
yes |
|
|
yes |
|
none |
yes |
|
|
|
|
|
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 |
scalar |
|
yes |
|
displacement |
vector |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
thermal expansion coefficient |
1/K |
|
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 |
|---|---|---|---|---|
|
unknown |
scalar |
|
Properties:
Property |
Meaning |
Unit (SI) |
Default |
|---|---|---|---|
|
diffusion |
|
|
|
conservative convection |
|
|
|
given flux |
|
|
|
convection velocity |
|
|
|
reaction |
|
|
|
the flux |
|
|
|
mass at order 1, damping at order 2 |
|
|
|
mass |
|
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 |
|---|---|---|
|
|
|
|
|
|
|
|
Generic conditions¶
Conditions on any variable of a model, besides those of the modules:
Condition |
Values |
Fixes the solution |
|---|---|---|
|
|
yes |
|
|
yes |
|
|
|
|
|
yes |
Methods of the Dirichlet conditions: simplification, multiplier, penalization (normal_dirichlet: not simplification).
