ENDEPL

1. Overview and the first model

What the text consists of#

When you need it. To understand where to write what: dimensions, materials, boundary conditions are three different sections.

If you get it wrong. An entry in the wrong section gives an error with a line number; the program does not guess.

The model text is a list of entries, usually one per line. A line break and any number of spaces mean the same thing: a long entry can be wrapped anywhere, and several short ones can be written on one line (when the text is aligned, each one gets its own line). A line break matters only for the # comment and in the frs and units lines. From top to bottom:

Table 1. Lines and sections of the model text

Line or sectionWhat it sets
frs 7.4 name "<name>"the language version and the model name in double quotes; the name may be omitted: frs 7.4
units cmthe coordinate units, if not millimeters; with no line, millimeters
materials paramsmaterials (materials params): thermal conductivity or a fixed temperature
materials objectsbodies (materials objects): cuboids (rectangular boxes, cuboid), shapes (shape), cutouts (empty), in painting order
ambientsboundary conditions (ambients): air with a temperature and a surface heat transfer coefficient, or a surface with no heat exchange (adiabat), and where they are placed

Empty lines between sections are for convenience; the parser ignores them. The words of the language are English.

Units and numbers#

When you need it. You build a model from a drawing: dimensions in mm, in cm, sometimes in meters. Thermal numbers are taken from codes and handbooks, and there the decimal comma is common.

If you get it wrong. Coordinates in meters with a units line (or none) in millimeters give a wall 1000 times thinner; a comma inside coordinates splits one number into two. The program often catches dangerous cases with an error, but a wall of the wrong size is not a text error: the calculation will run.

  • All coordinates are absolute, along the three axes X, Y, Z, in model units (usually mm; other units are set by the units line: cm, m, 0.1mm).
  • A point is written with commas and no spaces: 250,0,1000. The fractional part in coordinates is written only with a point: 12.5,0,300, because a comma in coordinates separates the numbers of a point.
  • Thermal numbers (λ, α, t) do not depend on the coordinate units. The parser accepts a comma in them too (lambda 0,81 is read as 0.81), but it is better to write a point everywhere: then the same entry looks and works the same everywhere.
  • Units: thermal conductivity λ in W/(m·°C), surface heat transfer coefficient α in W/(m²·°C), temperature t in °C. Thermal resistance R in m²·°C/W (the interface shows m²·K/W, which is the same thing: for a temperature difference, one degree Celsius equals one kelvin).
  • The Z axis is the height of shapes (see Shapes): the polygon of a shape lies in the XY plane.
  • The typographic minus sign (U+2212) and the en dash (U+2013) are read as an ordinary minus.

Numbers of materials and boundary conditions#

When you need it. Numbers link bodies to materials and points to boundary conditions; you will see the same numbers in the calculation result and in the “Materials” and “Boundary conditions” tabs.

If you get it wrong. A body that refers to an undeclared material gives an error; swapped numbers of two declared materials are not an error, and the calculation will run with the wrong thermal conductivity.

The number of a material (materials params) or of a boundary condition is a label, the same as in the calculation report (.mnm). Numbers start from 1 and may skip values. A number is declared once; a number that a body refers to must be declared in the parameters.

Comments#

When you need it. To label where the brick is and where the wool is, so that a month later you can still understand your own model.

If you get it wrong. A comment does not affect the calculation; but # inside desc "…" is not a comment, it is part of the text.

Everything from # to the end of the line is a comment, and the parser does not read it. A comment may take a whole line or follow an entry:

2  cuboid  250,0,0  300,1000,1000   # plaster

Example: a building corner#

When you need it. An outside corner is the most common junction that gets damp in winter: heat leaves through two walls at once. The model of a corner shows what parts any model is built from.

If you get it wrong. A mistake in the boundary conditions gives a plausible but wrong result: the calculation runs, and the numbers are wrong. More in the chapter Boundary conditions.

Two brick walls 250 mm thick, with 150 mm of mineral wool outside. The coordinate origin is at the outside corner of the brick: the brick lies at X, Y from 0 to 250, and the wool outside goes into the negative range (from −150 to 0). X is across the first wall, Y is along it, Z is up. We calculate a fragment: from the inside corner each wall goes 1500 mm, that is, the arms are 1750 mm from the outside corner of the brick, and the height is 1 m (why this size is explained in the chapter Fragment). The model is calculated in lesson 4.

frs 7.4 name "corner 2D, arms 1750 mm"

materials params
1  lambda 0.81   desc "brick"
2  lambda 0.045  desc "mineral wool"

materials objects
2  cuboid  -150,-150,0     0,1750,1000
2  cuboid  -150,-150,0  1750,   0,1000
1  cuboid     0,   0,0   250,1750,1000
1  cuboid     0,   0,0  1750, 250,1000

ambients
1  t -23  alpha 23  side -X -Y
2  t 20   alpha 8.7  points  250,1000,500  1000,250,500
3  adiabat  default

Breakdown by section:

  1. Materials (materials params). Material 1 is brick with λ = 0.81, material 2 is wool with λ = 0.045 W/(m·°C); desc is a label for a person and does not affect the calculation.
  2. Bodies (materials objects). Four cuboids, each given by two opposite corners. The wool of the first wall is X from −150 to 0, Y from −150 to 1750; the wool of the second is Y from −150 to 0, X from −150 to 1750; the brick of the first wall is X from 0 to 250, the brick of the second is Y from 0 to 250, both up to 1750. The cuboids touch each other: none hangs in empty space. In the corner, cuboids of the same material overlap, but at that place the material is the same, so the order of bodies does not matter here.
  3. Boundary conditions (ambients). Boundary condition 1 is outside air (−23 °C, α = 23): side -X -Y gives it all faces that look to the minus side of X and of Y, which are the two outer faces of the wool. Boundary condition 2 is room air (+20 °C, α = 8.7) on the two inner faces: X = 250 and Y = 250; each needs its own point (250,1000,500 and 1000,250,500). You can manage with one point 250,250,500 on the inner edge of the corner: a point on an edge sets the condition for both faces, and the result is the same. The height Z = 500 is the middle of the fragment, so that the point does not touch the top and bottom, which are cuts.
  4. Cuts. The line 3 adiabat default gives all the remaining faces (the wall ends Y = 1750 and X = 1750, and the top and bottom of the fragment) to a surface with no heat exchange: here the fragment is cut off from the rest of the building.

The result of this model is in lesson 4 and in the chapter Result: the heat flow at the input is 39.31 W, and the coldest point of the inner surface is 16.76 °C (for a flat wall it is 18.70 °C).

What the program checks#

When you need it. To learn in advance which errors the program catches by itself and which only you can catch.

If you get it wrong. The program checks the entries and references, but not the meaning: the size of the fragment, the values of λ and t, and the place of the cuts are checked by you.

Each line is parsed by the rules of its section. An unknown word, an extra number, a reference to an undeclared material gives an error with a line number. The point of a boundary condition must lie on the surface of the bodies. Every outer face must have a boundary condition; faces without one are highlighted, and such a model cannot be calculated. All messages are in the Reference.