3. Shapes
When you need it. The part is not rectangular: a sloped steel plate, an insulation wedge for a slope, a brace, a skewed wall corner, a roof pitch, a reveal at an angle. A cuboid (rectangular box,
cuboid) cannot describe such a part, because all faces of a cuboid are parallel to the axes.If you get it wrong. Cuboids in a “staircase” instead of a shape give a different surface: the steps and inner corners are colder, and the result for the part is distorted without any error. A shape with the wrong vertex order or the wrong material: the calculation runs, but the part is not where it should be.
A shape (shape) is a body that cannot be described by a cuboid. A shape can be flat (a polygon extended by one thickness)
or solid (a body between two outlines).
Table 1. Shape records (shape)
| Record | What it sets |
|---|---|
shape XY x,y … Z from,to | a polygon in the XY plane, extended along Z |
shape XZ x,z … Y from,to | a polygon in the XZ plane, extended along Y |
shape YZ y,z … X from,to | a polygon in the YZ plane, extended along X |
shape XYZ1 x,y,z … XYZ2 x,y,z … | a body between two flat outlines: vertex i of the first is joined to vertex i of the second |
A flat shape has two coordinates per vertex and a thickness along the third axis. A solid one has three coordinates; in the first version, the vertices XYZ1 and XYZ2 differ pairwise along one axis (the side walls of the body run along it, the caps are sloped planes), the outlines are flat with the same number of vertices, and the caps do not intersect.
<material> shape XY x,y x,y x,y … Z from,to
(In the code blocks, <material> is the material number.)
18 shape XY 185,-30 585,-4 585,6 185,-20 Z 0,1000
- Vertices follow the outline of the polygon (the last is joined to the first), at least three.
Z from,tois the height over which the polygon is extended; “from” must be less than “to”.- A shape is painted in order, like a cuboid: the material at a point is that of the last body (cuboid or shape) that contains it.
- A boundary condition on a sloped face is set only by a point (
points): a sloped face cannot be given by direction (side).
A solid shape is an insulation wedge for a slope: the bottom at Z = 0, the top from 30 mm at X = 0 to 80 mm at X = 100:
frs 7.4 name "wedge"
materials params
1 lambda 0.04
2 lambda 0.035
materials objects
1 cuboid 0,0,0 100,100,100
2 shape XYZ1 0,0,0 100,0,0 100,50,0 0,50,0 XYZ2 0,0,30 100,0,80 100,50,80 0,50,30
ambients
1 t -20 alpha 23 points 50,100,50
2 adiabat default
A shape on top of cuboids#
When you need it. The junction is mostly rectangular, and only one part is sloped, such as a plate or a bevel: everything around it is simpler and more reliable to write with cuboids.
If you get it wrong. A shape written above the cuboids is painted back over by them where they intersect, and the sloped part will not be in the junction.
Usually everything around the sloped body is written with ordinary cuboids, and only the sloped body itself is a shape, written below the cuboids in the text:
materials objects
4 cuboid 111,-20,0 385,10,1000 # insulation
5 cuboid 385, -7,0 565,10,1000 # concrete
18 shape XY 185, -30 385,-17 565,-5 585, -4 # steel plate
585, 6 565, 5 385,-7 185,-20
Z 0,1000
(The comments mean insulation, concrete, steel plate.)
Plate 18 is painted over the insulation and the concrete where it intersects them.
Emptiness as a shape: empty shape#
When you need it. A reveal at an angle: an empty triangle cuts off the corner of the brick (lesson 8). Or a cuboid reaches into a place where there is no body, under a sloped plate.
If you get it wrong. If you write the cutout above the body, it will cut nothing. If you forget the cutout, the cuboid material stays in the place of the bevel, and there is no bevel in the calculation.
empty shape XY x,y x,y … Z from,to
A cutout as a shape: in its place there is emptiness, as with empty cuboid. It is needed when a cuboid reaches into a place where there is no body
(for example, the insulation cuboid reaches Y = −20, but the lower edge of the plate runs higher):
4 cuboid 111,-20,0 385,10,1000
18 shape XY 185,-30 585,-4 585,6 185,-20 Z 0,1000
empty shape XY 185,-40 585,-14 585,-4 185,-30 Z 0,1000
Emptiness is not air. An air gap or cavity is a material with its own thermal conductivity, and it is written as a body (a cuboid or a shape) with a material number.
The text is read literally: what is written is what is in the model. If, in a calculation opened with sloped faces, the text gives a material in the place of emptiness, the program reports an error with a line number.
What you can change#
When you need it. A calculation with sloped faces is open in the “FRS” tab, and you need to understand what in it can be edited.
If you get it wrong. Changed vertices of a sloped shape in such a calculation are an error: the program does not recalculate its mesh.
- The material of a shape and the boundary conditions (
ambients) on its faces can be changed, as for any body. - A new shape can be added: the program builds the mesh for it itself. The mesh always has only quadrilateral faces (no triangles and no wedges) and no hanging nodes; if it cannot be built this way, the program reports an error with the line number of the shape.
- The vertices of shapes in a calculation opened with sloped faces cannot be changed in the current version: the mesh of sloped bodies is taken by the program from the original calculation, and a changed shape is an error, “the shape does not match the sloped body of the original model”. Free editing of such shapes by text is under development.
In the editor#
In the “FRS” tab a long shape is shown on several lines, four vertices each, with the height on a separate line:
18 shape XY 185,-30 385,-17 565,-5 585,-4
585, 6 565, 5 385,-7 185,-20
Z 0,1000
This is only a display: a shape is one record, however its lines are wrapped (for the parser, a line break is the same as a space). Each line has its own number, and when you select one, all lines of the shape are highlighted.