Lesson 10. Editing with AI
The answer of the lesson: a simple edit of the model, mineral wool 200 mm instead of 150 mm, is done by hand: two numbers change. A complex edit, where a dozen numbers are scattered over the body and the points, can be handed to a language model: it rewrites the text, and Temper still calculates the heat. Check the answer yourself in a minute.
The task#
The window from lesson 7 sits in the wall opening: the frame is on the border of the wool and the brick, the double-glazed unit is behind it. The customer asks for a variant: 200 mm of wool instead of 150 mm, and the window inside the wool layer, as in lesson 8, so the frame moves outward by 70 mm. The inner reveal must be shown as a separate line, so that we can see its temperature.
How many numbers will have to change? It depends on the edit, and the honest answer of the lesson is this: some edits are one number, and some are more than ten. The first kind is done by hand, the second kind can be handed to a language model: ChatGPT, Claude, GigaChat or any other. A language model is a program that continues a text, like word suggestions on a phone, only at the level of whole documents. It does not calculate heat, Temper does; its job is to rewrite the numbers.
What changes in the model#
The window model from lesson 7 (brick from 0 to 250, wool outside, in the minus):
frs 7.4 name "window in the opening"
materials params
1 lambda 0.81 desc "brick"
2 lambda 0.045 desc "mineral wool"
4 lambda 0.12 desc "PVC frame, equivalent"
5 lambda 0.043 desc "double-glazed unit, equivalent"
materials objects
2 cuboid -150, 0,0 0,1000,1000
1 cuboid 0, 0,0 250,1000,1000
4 cuboid 0,1000,0 70,1060,1000
5 cuboid 20,1060,0 52,1600,1000
ambients
1 t -23 alpha 23 points -150,1000,500 0,1060,500 20,1300,500
2 t 20 alpha 8.7 points 250,1000,500 70,1060,500 52,1300,500
3 adiabat default
One coordinate convention is used for the whole tutorial: the brick 0…250 does not move, the wool outside lies in the minus, and the material numbers are fixed. Because of this, simple edits became very simple.
Table 1. Model edits: by hand and with a neural network
| No. | Edit | What changes | Numbers | Done with |
|---|---|---|---|---|
| 1 | Wool 200 mm instead of 150 mm | start of the wool -150 → -200; outer point on the wool edge -150,1000,500 → -200,1000,500 | 2 | by hand |
| 2 | Frame 90 mm instead of 70 mm | end of the frame 70 → 90; inner point of the end face 70,1060,500 → 90,1060,500 | 2 | by hand |
| 3 | Window in the wool layer (frame and glass moved 70 mm outward), reveal as a separate boundary condition 4 | frame 2 numbers, glass 2, points on their faces 4, wall point 1; plus a new boundary condition 4 line with a point on the reveal | 9 and a new line | neural network |
| 4 | Wool 200 and the window in the wool layer together (rows 1 and 3) | total | 11 and a new line | neural network |
The first two edits are quicker to make by hand than to explain to a neural network: while you word the request, the number is already fixed. A neural network is needed where there are many numbers, they sit in different lines, and they are easy to mix up: row 4 has eleven numbers and a new line in three sections of the model.
Before you send#
The model text is your project: sizes, materials, sometimes the name of the building in the first line. If the project
is closed or under a non-disclosure agreement, do not send it to an external service. Remove the name of the building
and the address from the frs line, and brands and supplier names from the material descriptions (desc). Or use a
model that your organization has approved for such data.
How to set the task#
A language model does not know Temper and remembers only what you wrote to it, like a craftsman to whom you sent a letter. So the request (in English, a “prompt”) must be complete. Give it three things:
- The writing rules. The shortest option is the reference section “Grammar on one page” (find it yourself, it is at the start of the reference). Paste its text into the request: the model may not open a link.
- The whole text of the model.
- What to change, in an engineer’s words, not in coordinates: “insulation 200 mm instead of 150 mm, the brick stays in place; move the window outward by 70 mm, into the wool layer: frame and double-glazed unit together, the inner end of the frame must be on the border of the wool and the brick; move the boundary condition points on the faces of the frame and the glass together with them; put the inner reveal into a separate boundary condition 4 with the same t and α as the room, and put the wall point at the middle of its face”.
And ask it to return the whole text, with no explanations inside.
Do it yourself#
Set the task as described above and get a variant of row 4 of table 1.
Check the answer, always#
A language model writes plausibly, but it can mix up one number out of eleven. The check takes a minute:
- The “FRS” tab. Paste the answer: there are no errors, and no “Faces without boundary conditions” warning.
- Look at the model. Put the cursor on the
adiabat defaultline: the faces it got are highlighted. They should be only the cuts: the edge of the wall (Y = 0), the middle of the window (Y = 1600), the top and the bottom. - Compare with the original text. Only the lines from table 1 above should change: wool, frame, glass, points and the new boundary condition 4 line. Everything else, including the λ of the materials, must stay as it was.
- Common sense in the result. There is more insulation and the window is hidden under the wool, so the losses are lower and the reveal is warmer. If it came out the other way, look for a mistake in the model, not in physics.
- Calculation. After the start, look at two lines on the “Calculation” tab: the “Balance” converges and the “ISO 10211 criterion” is met. Otherwise it is too early to trust the number.
There are two kinds of mistakes. A safe one: the neural network did not move a point, and it stayed in the air or inside a body. Temper will say “the point does not lie on an open surface of the bodies”. A silent one: the text is valid, but the number is wrong. For example, the neural network “while at it” changed the λ of the wool to 0.048, or moved the glass but not the frame. The program notices nothing; only the comparison with the original (step 3) and a look at the model will catch it.
The correct answer and the result
Model
frs 7.4 name "window in a 200 mm mineral wool layer"
materials params
1 lambda 0.81 desc "brick"
2 lambda 0.045 desc "mineral wool"
4 lambda 0.12 desc "PVC frame, equivalent"
5 lambda 0.043 desc "double-glazed unit, equivalent"
materials objects
2 cuboid -200, 0,0 0,1000,1000
1 cuboid 0, 0,0 250,1000,1000
4 cuboid -70,1000,0 0,1060,1000
5 cuboid -50,1060,0 -18,1600,1000
ambients
1 t -23 alpha 23 points -200,1000,500 -70,1060,500 -50,1300,500
2 t 20 alpha 8.7 points 250,500,500 0,1060,500 -18,1300,500
3 adiabat default
4 t 20 alpha 8.7 points 125,1000,500The result: “Input” is 39.39 W per 1 m of junction height (it was 46.82 in the model of lesson 7); the reveal (boundary condition 4, Min) is 17.04 °C (it was 12.84); the coldest place in the room (boundary condition 2, Min) is 10.61 °C, at the edge of the double-glazed unit, 0.09 °C below the dew point of 10.7: this is the borderline, as in lesson 8. The same calculation is given by the model of the window in 200 mm of wool from lesson 8 (written differently, but with the same result).
What we got#
The window is hidden under the wool, the wool is thicker, the reveal is shown as a separate line. The losses fell from 46.82 to 39.39 W, the reveal became warmer from 12.84 to 17.04 °C, and the coldest place moved to the edge of the double-glazed unit (10.61 °C). The neural network rewrote eleven numbers in seconds, and the check took a minute. But on edits 1 and 2 it would have saved nothing.
Try it in the model#
- The neural network returned a text where the glass point stayed
20,1300,500. What will the program show? - Ask the neural network to make a variant for a mold check (α = 4 at the wall and the reveal, α = 7.7 at the frame and the glass). What must change and how do you check it?
Answers
- The glass now stands at X from −50 to −18, and the point stayed at X = 20: it does not lie on an open surface of the bodies. Such a mistake is safe: it is visible at once.
- At the wall and the reveal (boundary conditions 2 and 4) α changes from 8.7 to 4, and the frame and the glass need
their own boundary condition 5 with α 7.7 and two points on the edges
0,1060,500and-18,1300,500, and these points are removed from boundary condition 2. The check is the same: the cursor onadiabat default, comparison with the original (only α, the boundary condition lines and the moved points changed), the calculation.
In short#
- The model text is plain text, so an edit can be handed to a language model: it rewrites the numbers, and Temper calculates the heat.
- With the single coordinate convention a simple edit is one or two numbers: wool 150 → 200 is
-150to-200and the point next to it. It is done by hand. - A complex edit, the window in the wool layer, the reveal as a separate line, wool 200 together: 11 numbers and a new line. It can be handed to a neural network.
- Do not send a closed project, or anonymize it: the name of the building in
frs, brands and suppliers indesc. The request holds three things: the writing rules (“Grammar on one page”), the whole model, and the task in an engineer’s words. - The answer is always checked, in a minute: the “FRS” tab without errors, the cursor on
adiabat defaultshows only the cuts, comparison with the original (the λ values untouched), common sense, “Balance” and “ISO 10211 criterion”.
Next: the documentation, the chapter “Editing the text” and the reference; the article “Dew point” and the chapter “Boundary conditions”.