ENDEPL

2. Materials and bodies

Materials: materials params#

When you need it. Every layer of a structure (brick, wool, concrete, a frame) needs a thermal conductivity λ. Take it from SP 50.13330.2024 (Russian building code for thermal protection of buildings), table M.1 (in the 2012 edition, table T.1; for Moscow, operating conditions B) or from the material data sheet.

If you get it wrong. A wrong λ is not a text error: the calculation will run and give a wrong result. Typical slips: a value for dry conditions instead of humid ones, λ in other units, swapped material numbers.

One line per material:

materials params
1  lambda 0.04  # thermal conductivity, W/(m·°C)
2  lambda 1.92
5  T 20  # material with a fixed temperature, °C
  • lambda <number> is the thermal conductivity λ, W/(m·°C). The fractional part is written with a point (the parser accepts a comma in λ too, but coordinates with a comma are not allowed; it is simpler to write a point everywhere).
  • T <number> is a material with a fixed temperature (for example, a heating element), °C.
  • desc "…" at the end is the description of the material: 1 lambda 0.04 desc "PSB 15-20 B" (a grade of expanded polystyrene). The text is in double quotes; inside it you can use \" and \\; # inside quotes is not a comment. It does not affect the calculation.
  • A material number is declared once.

More about T is in the Reference.

Bodies: materials objects#

When you need it. Almost any structure (a wall, a layer of insulation, a slab, a lintel, a frame) is built from rectangular pieces. A body in the text is such a piece made of one material.

If you get it wrong. A wrong coordinate shifts a layer or leaves a gap: the calculation will run, but the heat will flow differently. A body that touches nothing hangs in empty space and receives no heat; a cuboid (rectangular box) with corners “in the wrong axes” gives the wrong thickness.

A body is a cuboid (rectangular box, cuboid) of one material, given by two opposite corners:

<material>  cuboid  x0,y0,z0  x1,y1,z1

(Here <material> is the material number.) Corners can be written in any order: the parser itself takes the smallest and the largest coordinate on each axis. Usually the corner with the smaller coordinates is written first, because it is easier to read. The body 1 cuboid 0,0,0 250,1000,1000 occupies the points with 0 ≤ X < 250, 0 ≤ Y < 1000, 0 ≤ Z < 1000.

Bodies must touch each other: a body surrounded by emptiness on all sides exchanges heat with nothing, and there is no point in calculating it.

Cutout: empty#

When you need it. An opening, a hole, a gap, a shaft: places where there is no structure. A window in a wall is the typical case: the wall is laid whole, the opening is cut in it, then the frame is put in.

If you get it wrong. A cutout written above a body is painted back over by that body, and there will be no opening; a cutout written after the frame cuts out the frame too. The opening quietly disappears, and the calculation runs.

empty  cuboid  x0,y0,z0  x1,y1,z1

In the place of a cutout (empty) there is emptiness: there is no body, and thermal conductivity is not calculated. Everything that is not covered by any body is emptiness too. Air is not emptiness: an air gap or cavity is a material with its own λ, and it is written as a body.

Painting order#

When you need it. Bodies intersect: a slab passes through a wall, a frame stands in an opening. The order of lines decides whose material ends up at the intersection.

If you get it wrong. A reinforced concrete slab written before the wall ends up cut by the wall: you get a completely different junction, and there is no error (lesson 5).

Bodies are listed in painting order: each next one paints its place over the previous ones, like layers in a graphics editor. Bodies may overlap, and that is normal.

The material at a point is that of the last body in order that contains it. If the last one is empty, or there are no bodies, the point is empty. Do not stop at the first matching line: below it there may be a body that overlaps it.

Example: a wall with an opening and a frame box in the opening.

materials objects
    5  cuboid  -250, 500,-200   0,2520,1050
    9  cuboid     0, 500,-200  15,2520,1050
empty  cuboid  -250,1200, 300  15,1800, 900

The point X −100, Y 1500, Z 600 lies in the first body (material 5) and in the third one (empty). The last one is empty, so there is emptiness there.

  • empty below a body in the text is a cutout in it.
  • empty above a body means the body is painted over the cutout.

Lines can be freely swapped if the bodies that change places do not intersect, or are of the same material: the model does not change. Swapping two intersecting bodies of different materials changes the model, because a different body ends up on top.