7. Editing the text
Shifting coordinates#
When you need it. The thickness of a layer or the position of a window has changed: everything that lies farther away shifts.
If you get it wrong. A forgotten boundary condition point hangs in empty space (the error “the point does not lie on the open surface of the bodies”), and a forgotten body coordinate leaves a gap or an overlap: the calculation runs, but the junction is different.
Each number is edited independently. A body has two corners, x0,y0,z0 x1,y1,z1. To raise, for example, everything
above Z = 1050 by 50 mm:
- in every corner of every body, compare the third coordinate with the threshold separately;
0,0,1030 300,1000,1100becomes0,0,1030 300,1000,1150: the lower corner is below the threshold and does not move;- a number equal to the threshold is shifted;
- the points (
points) of boundary conditions (ambients) are edited the same way (the needed coordinate of each point), and so are rectangles (rect: the needed coordinate of both corners).
You shift not only “everything above a threshold” but also individual bodies: for example, to move the frame and the glazing unit 70 mm
outward, subtract 70 from X at their corners and at the points on their faces. The frame 150,1000,0 220,1060,1000 becomes
80,1000,0 150,1060,1000, and the point 220,1030,500 on its end face becomes 150,1030,500. Do not touch the other bodies and points.
The number of lines does not change when you shift.
Adding or removing a body#
When you need it. A new layer, an insert or a cutout has appeared in the junction; or you need a variant without the slab.
If you get it wrong. A body in the wrong place in the list paints over another body or gets painted over by it; a body with an undeclared material is an error; a body that touches nothing hangs in empty space.
- Add a new body as a line in
materials objects. Remember the order: a body paints its place over everything above it in the text, and is painted over by everything below it. - Declare a new material first, in
materials params. - A cutout is a line
empty cuboid …below the bodies it is meant to cut.
Putting boundary condition N on the area where point Q lies#
When you need it. Part of a surface has to be given to a different condition: a reveal gets its own row in the result table, an area under furniture, an area with a shifted boundary.
If you get it wrong. A forgotten old point in a neighboring condition will touch the area: the error “the point touches a face already painted by boundary condition K (line M)”; a forgotten new point means the area silently goes to
defaultand becomes a cut.
Example. In the window model from lesson 7 the inner reveal lies under the point 160,1000,500. Suppose
it is first written in the common line of the room (boundary condition 2). To see the temperature of the reveal as a separate row
of the result table, as in the lesson:
- remove
160,1000,500from line 2:2 t 20 alpha 8.7 points 250,500,500 70,1060,500 52,1300,500; - add the line
4 t 20 alpha 8.7 points 160,1000,500: the same t and α, but its own number.
The calculation will not change, and the “Surface temperature” table will get a row for BC 4, the reveal.
General rule. Point Q sits in one boundary condition; to give its area to condition N:
- strike Q out of the old line and add it to line N (if there is no
points, add it at the end of the line); - if the old point also touched neighboring areas (an edge, a corner), put a new point of the old condition for each of them
strictly inside the area, not on an edge; an area with
defaultneeds no point; - if N is
defaultand there are no other points on the area, it is enough to strike out Q.
A rectangle (rect) is needed only when a boundary condition has to be set on a part of an area.
Check yourself#
When you need it. Always, after an edit.
If you get it wrong. A manual edit is the most common place for a silent error: a coordinate that was not shifted or a point that stayed on the surface but is no longer on the right face.
After editing, reread the original and the edited texts and compare them line by line. In the “FRS” tab an edit is visible on the model at once: select a line and the model highlights what it describes (see Editor).