ENDEPL

9. Reference

All the records of the language, in the order of the sections. Each has: the syntax, what it means, an example, and two lines: “When you need it” and “If you get it wrong”. Examples of complete models can be copied into the “FRS” tab as they are.

Notation: <…> is a value, […] is optional, … is a repeat. A number is -12.5 or 1e3; a point is x,y,z (in a shape, x,y), without spaces. Fields are separated by spaces or line breaks, any number of them; a record ends where the next one begins (a number with its own word, empty, a section heading…). A line break is significant only for a comment # and in the lines frs and units.

Decimal comma and point. In coordinates the fractional part is written only with a point (12.5,0,300): a comma separates the numbers of a point, and 12,5,0,300 will not be read. In parameter numbers (λ, t, α) the parser also accepts a comma (lambda 0,81 means 0.81), but write a point everywhere: one notation for all numbers, and a coordinate with a comma will not slip into the text out of habit.

Units. λ is in W/(m·K); α is in W/(m²·K); t is in °C; thermal resistance R is in m²·K/W (the same as m²·°C/W). Coordinates are in millimeters unless there is a units line.

Corners of a cuboid (rectangular parallelepiped). A cuboid and a rectangle are given by two opposite corners; the parser accepts them in any order. Usually the corner with the smaller coordinates is written first.

Grammar of one page#

# grammar
frs 7.4 name "[<name>]"
[units <units>]

materials params
<number>  lambda <λ>
<number>  T <t>

materials objects
<material>  cuboid <x,y,z> <x,y,z>
empty       cuboid <x,y,z> <x,y,z>
<material>  shape XY <x,y> <x,y> <x,y> … Z <from>,<to>
empty       shape XY <x,y> <x,y> <x,y> … Z <from>,<to>

ambients
<number>  t <t> alpha <α> [side <±X…>] [default] [points <x,y,z> …] [rect <x,y,z> <x,y,z> …]
<number>  adiabat  [side <±X…>] [default] [points <x,y,z> …] [rect <x,y,z> <x,y,z> …]

Records for files from old calculations (element, internal and others) are in the appendix.


frs#

When you need it. The first line of any model: without it the text cannot be read.

If you get it wrong. If the version is not 7.4, the model does not open: “model version … is not supported, rebuild the model from the source files”.

# syntax
frs 7.4 name "[<name>]"

The first line of the text: the word frs, the language version and, if needed, the word name with the model name. The name is written in double quotes, can be anything, can contain spaces and can be absent (then name is not written). The language version is 7.4; text of another version is not read.

# example lines
frs 7.4 name "aerated concrete wall"
frs 7.4

units#

When you need it. The drawing is in centimeters or meters, and you do not want to convert to millimeters.

If you get it wrong. If you forget the line with coordinates in meters, the wall will turn out 1000 times thinner. There will be no error.

# syntax
units <units>

The coordinate units, if not millimeters: cm, m, 0.1mm. With no line, the unit is the millimeter. Thermophysical quantities do not depend on the units: λ is always in W/(m·K), α in W/(m²·K), t in °C.

The comment ##

When you need it. To label a layer or a face, or to mark a variant.

If you get it wrong. # inside desc "…" is not a comment. The parser does not read anything after #: a record commented out by accident disappears from the model without a message.

Everything from # to the end of the line is a comment. It can take a whole line or follow a record.


The materials params section#

lambda: thermal conductivity#

When you need it. Every layer of a structure has a thermal conductivity: brick 0.81, mineral wool 0.045 (brick: SP 50.13330.2012 (Russian building code for thermal protection of buildings), table T.1, item 180, conditions B; in the 2024 edition: SP 50.13330.2024, table M.1, item 197; wool: the value from the example in appendix I of SP 50.13330.2024, table I.1).

If you get it wrong. A wrong λ is not a text error: the calculation runs, and the result belongs to another material. A number declared twice is an error.

# syntax
<number> lambda <λ>

λ is in W/(m·K). The number is the label of the material, starting from 1, and may have gaps; it is declared once.

desc: material description#

When you need it. To remember in a month where the brick is and where the wool is.

If you get it wrong. If you do not close the quote, you get the error “description: the closing quote is missing”. The description does not affect the calculation.

# syntax
<number> lambda <λ> desc "<description>"
<number> T <t> desc "<description>"

The name or grade of the material, for a human. The text is in double quotes; inside you can use \" (a quote) and \\ (a backslash); # inside quotes is not a comment.

If no description is given and the λ is in the material catalog, the program fills in a short name itself.

# example line
1  lambda 0.04  desc "PSB 15-20 B"

T: fixed temperature#

When you need it. The structure has a body with a known temperature: a pipe with coolant, a heating cable.

If you get it wrong. A fixed temperature has no thermal conductivity: if you put T where lambda is needed (an ordinary layer), the layer becomes a source of fixed temperature, and the heat goes completely differently. There will be no error.

# syntax
<number> T <t>

A material with a fixed temperature, °C: for example, a pipe with coolant.

An example, a wall with a heating pipe:

frs 7.4 name "wall with a tube"

materials params
1  lambda 1.5
2  T 45

materials objects
1  cuboid   0,  0,0  200,1000,1000
2  cuboid  80,450,0  120, 490,1000

ambients
1  t 20  alpha 8  points  0,500,500  200,500,500
2  adiabat  default

The materials objects section#

cuboid: a cuboid#

When you need it. Almost any structure (a wall, an insulation layer, a slab, a lintel, a frame) is assembled from cuboids.

If you get it wrong. A wrong coordinate leaves a gap or an overlap, and the calculation runs. A cuboid that touches nothing hangs in empty space, and there is no point in calculating it.

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

A cuboid is given by two opposite corners; the order of the corners is arbitrary (the parser takes the smallest and the largest coordinate on each axis), and usually the corner with the smaller coordinates is written first.

materials objects
1  cuboid  0,0,0  250,1000,1000

Here is a cuboid of material 1: 250 mm along X, 1000 mm along Y and Z, with one corner at the origin.

empty: a cutout#

When you need it. An opening, a hole, a gap, a shaft.

If you get it wrong. A cutout above a body in the text will not cut it; a cutout below a frame will cut the frame too.

# syntax
empty cuboid <x0,y0,z0> <x1,y1,z1>

If something has to be cut out (an opening, a hole, a gap), you write an ordinary cuboid, only with the word empty (“empty”) instead of the material number. Emptiness remains in its place. A cutout acts on the bodies written above it; a body written below it fills its place again.

materials objects
    1  cuboid  0,  0,  0  380,1000,1000
empty  cuboid  0,300,300  380, 700, 800

A wall with a 400 × 500 mm opening all the way through.

Painting order#

When you need it. Bodies intersect: a slab in a wall, a frame in an opening.

If you get it wrong. Swapping two intersecting bodies of different materials changes the model, silently.

Bodies are painted in order, each next one over the previous ones. The material at a point belongs to the last body that contains it; if that is empty or there are no bodies, it is empty.

An example, a slab with a hole for utilities, one wall of the hole insulated. The walls of the hole are washed by room air:

frs 7.4 name "slab"

materials params
1  lambda 0.7
2  lambda 0.04

materials objects
    1  cuboid    0,  0,0  1000,1000,200
empty  cuboid  400,400,0   600, 600,200
    2  cuboid  400,400,0   450, 600,200

ambients
1  t -20  alpha 23  points  500,700,0
2  t 20   alpha 8   points  600,400,200  450,600,200
3  adiabat  default
  1. A 1000×1000×200 slab of material 1.
  2. A 200×200 hole all the way through.
  3. Insulation of material 2, 50 mm thick, along the wall of the hole at X = 400; the rest of the hole is empty. The insert touches the slab: a body surrounded by emptiness on all sides exchanges no heat with anything, and there is no point in calculating it.
  4. Room air is on the top face and on the four walls of the hole: two points are enough, because each one stands in an upper corner of the hole and paints three faces at once (the top and two walls); outdoor air is on the bottom; the four side faces of the slab are cuts, given by adiabat default.

shape: a shape#

When you need it. An inclined plate, a wedge, a slanted reveal: anything that is not a cuboid.

If you get it wrong. A staircase of cuboids instead of a shape gives a different surface, and vertices not in walk order give the wrong part. “Z from,to”: “from” must be less than “to”.

# syntax
<material> shape XY <x,y> <x,y> <x,y> … Z <from>,<to>
<material> shape XZ <x,z> <x,z> <x,z> … Y <from>,<to>
<material> shape YZ <y,z> <y,z> <y,z> … X <from>,<to>
<material> shape XYZ1 <x,y,z> <x,y,z> <x,y,z> … XYZ2 <x,y,z> <x,y,z> <x,y,z> …

A flat shape: a polygon in a plane (vertices in walk order), extruded along the third axis from and to. A volumetric shape: a body between two flat outlines with the same number of vertices, vertex i of the first connected to vertex i of the second; for now only when the vertex pairs differ along one axis. It is painted in order, like a cuboid. Details are in Shapes.

# example line: an inclined steel plate 10 mm thick, 1000 mm high
18  shape XY 185,-30 585,-4 585,6 185,-20  Z 0,1000

empty shape: a cutout with a shape#

When you need it. A slanted reveal, a cuboid that goes under an inclined plate.

If you get it wrong. A cutout above a body cuts nothing; a forgotten cutout leaves the cuboid material in place of the slant.

# syntax
empty shape XY <x,y> <x,y> <x,y> … Z <from>,<to>

Emptiness in a polygon. It is needed when a cuboid enters a place where there should be no body.

# example line: a void under plate 18 (its copy shifted down by 10 mm)
empty  shape XY 185,-40 585,-14 585,-4 185,-30  Z 0,1000

The ambients section#

t … alpha …: a boundary condition with a temperature#

When you need it. Air outside and in the room: the temperature from climate codes, α (the surface heat transfer coefficient) from codes.

If you get it wrong. Mixed-up t or α is not a text error: the calculation runs, and the result is for different air.

# syntax
<number> t <t> alpha <α>

A boundary condition (ambients; usually outdoor air or room air) with the temperature t (°C) and the surface heat transfer coefficient α (W/(m²·K)).

adiabat: no heat exchange#

When you need it. Cuts: the edges of a fragment, planes of symmetry (Fragment).

If you get it wrong. adiabat on a face open to air silently switches off heat exchange where it exists (usually this is a forgotten point with default).

# syntax
<number> adiabat

Cuts of the calculation domain: planes of symmetry, boundaries of a fragment.

points: points#

When you need it. To put air on a specific face.

If you get it wrong. A point on an edge or in a corner touches the neighboring faces too, and one of them may be a cut.

# syntax
<number> … points <x,y,z> <x,y,z> …

Each point paints with the boundary condition the areas it lies on: inside an area, one; on an edge, two; in a corner, three or more. An area is a flat connected piece of surface facing outward in one direction. Details are in Boundary conditions.

default: by default#

When you need it. All cuts at once: ends, top, bottom.

If you get it wrong. A forgotten point on a face with air silently turns the face into a cut.

# syntax
<number> … default

A boundary condition on all areas that nothing else has painted. One per model.

side: directions#

When you need it. One condition on all faces of one side: the outer and inner planes of a wall, four ends.

If you get it wrong. A direction catches both an opening reveal and a ledge facing the same way.

# syntax
<number> … side <±X> [<±Y> …]

A boundary condition on all areas whose outer side faces the given directions (-X +X -Y +Y -Z +Z). One direction belongs to one boundary condition.

An example, a wall fragment cut from a building: the outer face X = 0 faces −X, the inner face X = 400 faces +X; the ends of the fragment are adiabatic:

frs 7.4 name "wall fragment"

materials params
1  lambda 0.04
2  lambda 0.12

materials objects
1  cuboid    0,0,0  100,1000,1000
2  cuboid  100,0,0  400,1000,1000

ambients
1  t -26  alpha 23   side -X
2  t 20   alpha 8.7  side +X
3  adiabat  default

Order of records in a boundary condition line#

<number> <t … alpha … | adiabat>  [side …]  [default]  [points …]  [rect …]

rect: part of a face#

When you need it. A condition on part of a face: behind a cabinet, a radiator, a curtain.

If you get it wrong. If more or fewer than one coordinate matches at the corners, you get the error “rectangle: two corners must share exactly one coordinate, the plane of the face (matched …)”; a rectangle not on an open face gives “surface not found in the geometry”.

# syntax
<number> … rect <x,y,z> <x,y,z> [<x,y,z> <x,y,z> …]

A boundary condition on part of an area: a rectangle given by two opposite corners, as in cuboid. At the two corners one coordinate matches: this is the plane of the face; along the other two axes is the extent. You do not need to write the side: an open face in a plane exists on only one side. There can be several rectangles, as pairs of corners. It overrides points, directions and default.

An example: on the inner face of a wall there is a strip with a different boundary condition (behind a radiator the air is warmer):

frs 7.4 name "wall with a radiator"

materials params
1  lambda 0.7

materials objects
1  cuboid  0,0,0  300,1000,2700

ambients
1  t -26  alpha 23  side -X
2  t 20   alpha 8   side +X
3  t 35   alpha 10  rect 300,200,100 300,800,700
4  adiabat  default

What overrides what (BC)#

From general to specific: each next record overrides the previous ones.

Table 1. What overrides what in boundary conditions

RecordOverrides
defaultnothing
sidedefault
pointsside, default
rectall

Keywords#

Table 2. Keywords of the language

WordSectionMeaning
frs, nameheaderlanguage version, model name
unitsheadercoordinate units
materials paramsnonethe materials section
lambda, Tmaterialsthermal conductivity, fixed temperature
descmaterialsdescription
materials objectsnonethe bodies section
cuboidbodiescuboid
emptybodiescutout
shape, XY, XZ, YZ, XYZ1, XYZ2, Z, Y, Xbodiesshape: plane, outlines, thickness axis
ambientsnonethe boundary conditions section
t, alphaboundary conditionstemperature of the boundary condition and heat transfer
adiabatboundary conditionsno heat exchange
sideboundary conditionsface directions
defaultboundary conditionsby default
pointsboundary conditionspoints
rectboundary conditionspart of a face as a rectangle

Error messages#

Before the message the program writes “line N: ” (the line number in the text); in tables 3-8 below this prefix is omitted, and an ellipsis replaces what the program fills in itself (a word, a number, coordinates). The messages are given as the program shows them.

The record cannot be read#

Table 3. Messages: the record cannot be read

MessageWhat is wrongWhat to do
unexpected "…" (did you mean "…"?); expected …a word or number is not what the record expects; “did you mean” is a hint if the word resembles a keywordfix it using the hint; after “expected” it names what should stand there
missing token: expected …the record is cut shortadd what is named after “expected”
description: the closing quote is missingthe quote of desc "…" is not closed (or there is a \ before the closing one)close the quote
a shape is written without "cuboid": "<material> shape XY x,y ... Z from,to"cuboid stands between the material and shaperemove cuboid

What exactly the program expects after “expected”:

Table 4. What the program expects after “expected”

After “expected”What should stand there
material numbera section line starts with a number
material number, "empty" or "element"a body line starts with a material number or with empty
"lambda <conductivity>" or "T <temperature>"after the material number, lambda or T
numberthe value of λ or of the temperature
quoted description: desc "...", end of line or 'desc "<description>"'text in double quotes after desc; nothing extra after it
"cuboid x,y,z x,y,z" or "shape ..."a cuboid or a shape
corner of the cuboid "x,y,z" (decimal point, not comma), second corner of the cuboid "x,y,z"two corners of three numbers each, without spaces; a comma in fractions is an error
boundary condition numbera boundary condition line starts with a number
"t <temperature> alpha <coefficient>" or "adiabat"after the number, t … alpha … or adiabat
temperature, "alpha <heat transfer coefficient>", heat transfer coefficientan unfinished t … alpha …
face direction after "side": "-X +X -Y +Y -Z +Z"a direction after side
point "x,y,z" after "points" (decimal point, not comma)a point of three numbers after points
two rectangle corners "x,y,z x,y,z" after "rect" (as for cuboid)a pair of corners after rect
end of line, "side <directions>", "default", "points <points>", "rect <corner> <corner>" or "internal ..."an extra word after a boundary condition line
shape plane: XY, XZ, YZ or "XYZ1 ... XYZ2 ..."a plane after shape
thickness of the XY shape along Z: "Z from,to" (for XZ along Y, for YZ along X)the height of the shape after the vertices
at least three vertices "x,y" (for XZ “x,z”, for YZ “y,z”)a shape has at least three vertices
at least three vertices "x,y,z" of contour XYZ1 (and XYZ2)each outline has at least three vertices
"XYZ2" and the vertices of the second contour "x,y,z"after the first outline, the word XYZ2 and the vertices of the second
version number, units, for example cman unfinished version or units
section heading or "model", "units", "planes", section recorda record outside a section or of an unknown kind

The meaning of the record#

Table 5. Messages: the meaning of the record

MessageWhat is wrongWhat to do
material K is already declared on line Ma material number is declared twicekeep one declaration
boundary condition K is already declared on line Ma boundary condition number is declared twicekeep one
material K is not declared in "materials params"a body refers to an undeclared materialdeclare the material or fix the number
material and boundary condition numbers start at 1, not "0"the number is less than 1number from 1
model version … is not supported, rebuild the model from the source filesthe version in the first line is not 7.4put frs 7.4 on the first line
Z: the start of the shape is not less than its end (or Y:, X:)in a shape, “from” is not less than “to”make “from” less than “to”
contours XYZ1 and XYZ2 have different numbers of vertices: A and B (vertex i of the first is joined to vertex i of the second)the outlines have different lengthsmake the number of vertices equal
contour XYZ1 is not flat: a vertex is … away from the contour plane (or XYZ2)the vertices of the outline are not in one planefix the vertices
contour XYZ1 is degenerate: the vertices are collinear (or XYZ2)the outline has no areafix the vertices
rectangle: two corners must share exactly one coordinate, the plane of the face (matched …)in a rect, more or fewer than one number matchedset the corners so that one coordinate matches, the plane of the face
"default" is allowed on one boundary condition only, already on Kdefault on two boundary conditionskeep one mark
direction ±X is already on boundary condition K (line M)one direction on two boundary conditionskeep it on one

Geometry and assembly#

Table 6. Messages: geometry and assembly

MessageWhat is wrongWhat to do
the first line is missing: frs 7.4 name "<name>"the text has no frs lineadd frs 7.4 name "name" as the first line
the model is empty along one of the axes: there are no bodiesthere are no bodies or all are emptyadd bodies
the point X … Y … Z … does not lie on the open surface of the bodiesthe point is not on a surfaceput the point on a face: one coordinate is the plane of the face
the point touches a face already painted by boundary condition K (line M)the point is on an area of another boundary condition or on an edge shared with itmove the point inside its own area
surface not found in the geometry: "…" (no open face of a body with such a plane and extent)a rect rectangle does not lie on an open facecheck the corners: the matching coordinate is the plane of the open face, the extent is inside it
XYZ shape: so far only when the vertices of XYZ1 and XYZ2 differ pairwise along one axis (a body with sloped caps, walls along this axis)the vertex pairs differ along two or three axessplit the body into parts or align the pairs
XYZ shape: the contour stands edge-on to the column axis (the plan is degenerate)the outline is parallel to the extrusion axisfix the vertices
XYZ shape: caps XYZ1 and XYZ2 intersect (some vertices of the second contour are above the first, others below)the caps of the body intersectswap the outlines or split the body
shapes of planes … touch the same mesh cell: not supported yetshapes of different planes are too closeseparate them by at least one mesh cell
an XYZ shape touches a mesh cell that already has …: not supported yetan XYZ shape is right next to another shapeseparate them
shape mesh: … cells with a repeated vertex (triangle, wedge): the generator does not build such a mesh without triangles yetthe shape has an acute angle, and the mesh needs trianglesfix the shape
shape mesh: hanging node at … (and … more): the generator does not stitch such a mesh yetthe mesh around the shape does not stitch togetherfix the shape or its position

A calculation opened with inclined faces#

Table 7. Messages: a calculation opened with inclined faces

MessageWhat is wrongWhat to do
the shape does not match the sloped body of the source model: changing shape vertices in a calculation with sloped faces is not supported yetthe vertices of a shape were changedrestore the vertices
XYZ1 ... XYZ2 shapes are supported so far only in a model whose mesh is built by the text (not allowed in a calculation whose source model has sloped faces)a new volumetric shape in a calculation with inclined facesnot allowed for now: return the model to the original
XZ and YZ shapes are supported so far only in a model whose mesh is built by the text (not allowed in a calculation whose source model has sloped faces)the same for XZ and YZ shapesthe same
no body covers the shape prism (or it is covered by "empty"): the shape must have a materialthere is no body under the shapegive the shape a material
the shape cuts a void in a sloped body off the grid of the source model: changing shape vertices in a calculation with sloped faces is not supported yetthe cutout at an inclined body was changedrestore the cutout
the sloped body has a void outside its prisms, but the text has material K here: cut it out with an "empty shape ..." row (changing shape vertices in a calculation with sloped faces is not supported yet)a cuboid enters the emptiness at an inclined bodycut it out with a line empty shape …
the point touches a face of a sloped body already painted by boundary condition K (line M)the same as for an ordinary face, but on an inclined onemove the point

The warning under the text#

Table 8. Messages: the warning under the text

MessageWhat is wrongWhat to do
Faces without a boundary condition: N. They are unpainted in the scene. The model cannot be calculated this way: assign a boundary condition to them or mark a boundary condition as "default".some outer faces have no boundary conditionadd a point or mark a boundary condition default

An example of an error: a body refers to an undeclared material:

# error: material 3 is not declared
frs 7.4 name "error"

materials params
1  lambda 0.7

materials objects
3  cuboid  0,0,0  100,100,100

ambients
1  adiabat  default

For files from old calculations#

The program writes the records below itself when it converts a calculation from files of old versions (Temper-3D 6) into text. You do not need to write them yourself; they do not appear in a new model.

element: a cuboid as one element#

# syntax
element <material> cuboid <x0,y0,z0> <x1,y1,z1>

Lines that the program writes for elements of old Temper-3D 6 calculations; the mesh does not split them. The message when a shape stands instead of a cuboid: "element" takes only a cuboid: "element <material> cuboid x,y,z x,y,z".

internal: a face between bodies#

# syntax
<number> … internal <axis> <plane> <u0> <u1> <v0> <v1>

A face between bodies (numbers in the model lattice). The program writes it when it converts a model from a calculation file into text. The program expects six integers after "internal": axis, plane, u0 u1 v0 v1 there (the message shows it after “expected”).

Table and service lines#

elements-table, free-faces-table, prisms-table are lines with calculation data in JSON format (the error message is the table is not valid JSON); planes <axis> <coordinate> … are additional planes of the shape mesh; element-raw is a line of integers (on error: integers). The program writes them; you do not need to edit them. If shape shapes and a prisms-table line are given together, the program reports: sloped bodies are written both as "shape" rows and as a "prisms-table" row: keep only one.

How the program writes bodies#

When the text is built by the program (from a calculation or after an edit), the bodies of one material go in a row, and materials in ascending order of number, except for intersecting bodies of different materials: for them the painting order is kept. Cuboids are trimmed to what remains visible of them, so the text is shorter and the model is the same.

How the program writes boundary conditions#

When the text is built by the program, it picks as few records as possible: points, directions and rectangles. A direction is written only if it replaces more than one point. It chooses the default boundary condition so that there are as few records as possible; in a tie, the adiabatic one.

Extent#

The extent of a structure along an axis runs from the smallest “from” coordinate to the largest “to” coordinate among all bodies.