9. 参考
语言中的全部记录,按各节顺序排列。每条记录包含:语法、含义、示例,以及两行说明:“何时需要”和“写错的后果”。完整模型的示例可原样复制到“FRS”选项卡中。
记号:<…> 表示取值,[…] 表示可选,… 表示重复。数字写作 -12.5 或 1e3;点写作 x,y,z(在形体中为 x,y),中间不加空格。字段之间用空格或换行分隔,数量不限;一条记录在下一条记录开始处结束(带自己关键字的数字、empty、节标题等)。换行只在注释 # 以及 frs 和 units 两行中有意义。
小数逗号与小数点。 坐标中的小数部分只能用小数点(12.5,0,300):逗号用来分隔点的各个数字,12,5,0,300 无法读取。在参数数字(λ、t、α)中,解析器也接受逗号(lambda 0,81 表示 0.81),但请处处使用小数点:所有数字采用同一种写法,这样出于习惯而把带逗号的坐标混进文本的情况就不会发生。
单位。 λ 的单位为 W/(m·K);α 的单位为 W/(m²·K);t 的单位为 °C;热阻 R 的单位为 m²·K/W(与 m²·°C/W 相同)。坐标单位为毫米,除非有 units 行。
长方体(直角平行六面体)的角点。 长方体和矩形由两个对角点给出;解析器按任意顺序接受它们。通常先写坐标较小的角点。
单页语法
# 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> …]
用于旧计算文件的记录(element、internal 等)见附录。
文件头
frs#
何时需要。 任何模型的第一行:没有它,文本无法读取。
写错的后果。 如果版本不是
7.4,模型无法打开:“model version … is not supported, rebuild the model from the source files”。
# syntax
frs 7.4 name "[<name>]"
文本的第一行:单词 frs、语言版本,必要时再加单词 name 和模型名称。名称写在双引号中,可以是任意内容,可以包含空格,也可以省略(此时不写 name)。语言版本为 7.4;其他版本的文本不会被读取。
# example lines
frs 7.4 name "aerated concrete wall"
frs 7.4
units#
何时需要。 图纸以厘米或米为单位,而您不想换算成毫米。
写错的后果。 如果坐标以米为单位却忘了这一行,墙会变成薄 1000 倍。不会有任何报错。
# syntax
units <units>
坐标单位,如果不是毫米:cm、m、0.1mm。没有这一行时,单位为毫米。热物理量与单位无关:λ 始终为 W/(m·K),α 为 W/(m²·K),t 为 °C。
注释 #
何时需要。 标注某一层或某一个面,或标记某个方案。
写错的后果。
desc "…"内部的#不是注释。解析器不读取#之后的任何内容:不小心被注释掉的记录会从模型中消失,且没有任何提示。
从 # 到行尾的所有内容都是注释。它可以独占一行,也可以跟在记录之后。
materials params 节#
lambda:导热系数#
何时需要。 构造的每一层都有导热系数:砖 0.81,矿物棉 0.045(砖:SP 50.13330.2012(俄罗斯建筑热工保护规范),表 T.1,第 180 项,条件 B;2024 年版:SP 50.13330.2024,表 M.1,第 197 项;棉:取自 SP 50.13330.2024 附录 I 示例中的数值,表 I.1)。
写错的后果。 λ 写错不是文本错误:计算照常运行,但结果属于另一种材料。同一编号声明两次属于错误。
# syntax
<number> lambda <λ>
λ 的单位为 W/(m·K)。数字是材料的标号,从 1 开始,可以有空缺;每个编号只声明一次。
desc:材料描述#
何时需要。 一个月后还能想起砖在哪里、棉在哪里。
写错的后果。 如果引号没有闭合,会出现错误“description: the closing quote is missing”。描述不影响计算。
# syntax
<number> lambda <λ> desc "<description>"
<number> T <t> desc "<description>"
材料的名称或牌号,供人阅读。文本写在双引号中;引号内可以使用 \"(引号)和 \\(反斜杠);引号内的 # 不是注释。
如果没有给出描述,而该 λ 在材料目录中,程序会自行填入一个简短名称。
# example line
1 lambda 0.04 desc "PSB 15-20 B"
T:固定温度#
何时需要。 构造中有一个温度已知的实体:带热媒的管道、加热电缆。
写错的后果。 固定温度没有导热系数:如果在需要
lambda的地方(普通的一层)写成T,这一层就会变成固定温度的热源,热量的走向将完全不同。不会有任何报错。
# syntax
<number> T <t>
固定温度的材料,单位 °C:例如带热媒的管道。
示例,带供暖管的墙:
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
materials objects 节#
cuboid:长方体#
何时需要。 几乎所有构造(墙、保温层、楼板、过梁、框架)都由长方体拼成。
写错的后果。 坐标写错会留下缝隙或重叠,计算照常运行。不接触任何东西、悬在空中的长方体没有计算的意义。
# syntax
<material> cuboid <x0,y0,z0> <x1,y1,z1>
长方体由两个对角点给出;角点的顺序任意(解析器在每个轴上取最小和最大坐标),通常先写坐标较小的角点。
materials objects
1 cuboid 0,0,0 250,1000,1000
这是材料 1 的一个长方体:沿 X 为 250 mm,沿 Y 和 Z 为 1000 mm,一个角点在原点。
empty:挖空#
何时需要。 洞口、孔、缝、竖井。
写错的后果。 文本中位于实体之上的挖空切不到它;位于框架之下的挖空会把框架也切掉。
# syntax
empty cuboid <x0,y0,z0> <x1,y1,z1>
如果需要切掉某处(洞口、孔、缝),就写一个普通的长方体,只是用单词 empty(“空”)代替材料编号。空的部分留在原处。挖空只作用于写在它之前的实体;写在它之后的实体会重新填满该处。
materials objects
1 cuboid 0, 0, 0 380,1000,1000
empty cuboid 0,300,300 380, 700, 800
一面墙,带一个完全贯通的 400 × 500 mm 洞口。
涂色顺序
何时需要。 实体相交:墙中的楼板、洞口中的框架。
写错的后果。 交换两个不同材料的相交实体会改变模型,且没有任何提示。
实体按顺序涂色,后一个盖在前面的之上。某一点的材料属于包含该点的最后一个实体;如果它是 empty,或者没有任何实体,则该点为空。
示例,一块带管线孔的楼板,孔的一面墙有保温。孔壁被室内空气冲刷:
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
- 一块 1000×1000×200 的楼板,材料 1。
- 一个完全贯通的 200×200 的孔。
- 材料 2 的保温层,厚 50 mm,沿 X = 400 处的孔壁;孔的其余部分为空。该嵌件与楼板接触:四周都被空洞包围的实体不与任何东西交换热量,计算它没有意义。
- 室内空气在顶面和孔的四面墙上:两个点就够了,因为每个点都位于孔的上角,一次涂三个面(顶面和两面墙);室外空气在底面;楼板的四个侧面是截断面,由
adiabat default给出。
shape:形体#
何时需要。 倾斜的板、楔形、斜的窗洞侧壁:任何不是长方体的东西。
写错的后果。 用一级一级的长方体代替形体会得到不同的表面,而顶点不按绕行顺序给出会得到错误的零件。“Z from,to”:“from”必须小于“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> …
平面形体:平面内的多边形(顶点按绕行顺序),沿第三根轴从某值拉伸到某值。体积形体:位于两个顶点数相同的平面轮廓之间的实体,第一个轮廓的第 i 个顶点与第二个轮廓的第 i 个顶点相连;目前仅限于各顶点对只沿一根轴不同的情形。它与长方体一样按顺序涂色。详见形体。
# 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:用形体挖空#
何时需要。 斜的窗洞侧壁,伸到倾斜板之下的长方体。
写错的后果。 位于实体之上的挖空什么也切不到;忘记挖空,则斜面的位置上会留着长方体的材料。
# syntax
empty shape XY <x,y> <x,y> <x,y> … Z <from>,<to>
多边形内的空。当长方体伸入本应没有实体的位置时需要它。
# 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
ambients 节#
t … alpha …:带温度的边界条件#
何时需要。 室外和室内的空气:温度取自气候规范,α(表面换热系数)取自规范。
写错的后果。 t 或 α 弄混不是文本错误:计算照常运行,但结果对应的是另一种空气。
# syntax
<number> t <t> alpha <α>
带温度 t(°C)和表面换热系数 α(W/(m²·K))的边界条件(ambients;通常是室外空气或室内空气)。
adiabat:无热交换#
何时需要。 截断面:局部模型的边缘、对称面(局部模型)。
写错的后果。 在朝向空气的面上写
adiabat,会在本有热交换的地方悄悄关掉热交换(通常是忘了写带default的点)。
# syntax
<number> adiabat
计算区域的截断面:对称面、局部模型的边界。
points:点#
何时需要。 把空气指定到某个具体的面上。
写错的后果。 位于棱线或角上的点也会碰到相邻的面,其中一个可能是截断面。
# syntax
<number> … points <x,y,z> <x,y,z> …
每个点用边界条件涂它所在的面区:在面区内部,涂一个;在棱线上,涂两个;在角上,涂三个或更多。面区是朝向同一方向、向外的一块平整连通的表面。详见边界条件。
default:默认#
何时需要。 一次处理所有截断面:端面、顶面、底面。
写错的后果。 在有空气的面上忘了写点,会悄悄把该面变成截断面。
# syntax
<number> … default
对其他记录都没有涂到的所有面区生效的边界条件。每个模型只能有一个。
side:方向#
何时需要。 对同一侧的所有面给出同一个条件:墙的外侧面和内侧面、四个端面。
写错的后果。 一个方向会同时捕获洞口侧壁和朝向同一方向的凸台。
# syntax
<number> … side <±X> [<±Y> …]
对所有外侧朝向给定方向(-X +X -Y +Y -Z +Z)的面区生效的边界条件。一个方向只属于一个边界条件。
示例,从建筑中截取的一段墙局部模型:外表面 X = 0 朝向 −X,内表面 X = 400 朝向 +X;局部模型的端面为绝热:
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
边界条件行中记录的顺序
<number> <t … alpha … | adiabat> [side …] [default] [points …] [rect …]
rect:面的一部分#
何时需要。 条件只作用于面的一部分:柜子后面、散热器后面、窗帘后面。
写错的后果。 如果角点上相同的坐标多于或少于一个,会出现错误“rectangle: two corners must share exactly one coordinate, the plane of the face (matched …)”;不在开敞面上的矩形会给出“surface not found in the geometry”。
# syntax
<number> … rect <x,y,z> <x,y,z> [<x,y,z> <x,y,z> …]
作用于面区一部分的边界条件:由两个对角点给出的矩形,与 cuboid 相同。两个角点中有一个坐标相同:这就是面所在的平面;沿另外两根轴的范围就是延伸范围。不必写侧向:某个平面内的开敞面只存在于一侧。可以有多个矩形,写成成对的角点。它会覆盖点、方向和 default。
示例:在墙的内表面上有一条边界条件不同的带(散热器后面的空气更暖):
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
什么覆盖什么(边界条件)
由一般到特殊:后面的每条记录覆盖前面的记录。
表 1 边界条件中什么覆盖什么
| 记录 | 覆盖 |
|---|---|
default | 无 |
side | default |
points | side、default |
rect | 全部 |
关键字
表 2 语言的关键字
| 单词 | 节 | 含义 |
|---|---|---|
frs、name | 文件头 | 语言版本、模型名称 |
units | 文件头 | 坐标单位 |
materials params | 无 | 材料节 |
lambda、T | 材料 | 导热系数、固定温度 |
desc | 材料 | 描述 |
materials objects | 无 | 实体节 |
cuboid | 实体 | 长方体 |
empty | 实体 | 挖空 |
shape、XY、XZ、YZ、XYZ1、XYZ2、Z、Y、X | 实体 | 形体:平面、轮廓、厚度轴 |
ambients | 无 | 边界条件节 |
t、alpha | 边界条件 | 边界条件的温度和换热 |
adiabat | 边界条件 | 无热交换 |
side | 边界条件 | 面的方向 |
default | 边界条件 | 默认 |
points | 边界条件 | 点 |
rect | 边界条件 | 以矩形表示的面的一部分 |
错误信息
在信息之前,程序会写上“line N: ”(文本中的行号);在下面的表 3-8 中省略了这一前缀,并用省略号代替程序自行填入的内容(单词、数字、坐标)。信息按程序显示的原样给出。
记录无法读取
表 3 信息:记录无法读取
| 信息 | 问题所在 | 怎么办 |
|---|---|---|
unexpected "…" (did you mean "…"?); expected … | 某个单词或数字不是记录所期望的;如果该单词与某个关键字相似,“did you mean”是提示 | 按提示修正;“expected”之后写明了此处应有的内容 |
missing token: expected … | 记录被截断 | 补上“expected”之后列出的内容 |
description: the closing quote is missing | desc "…" 的引号没有闭合(或者闭合引号之前有 \) | 闭合引号 |
a shape is written without "cuboid": "<material> shape XY x,y ... Z from,to" | cuboid 出现在材料与 shape 之间 | 删去 cuboid |
“expected”之后,程序具体期望什么:
表 4 “expected”之后程序期望什么
| “expected”之后 | 此处应有的内容 |
|---|---|
material number | 节中的一行以数字开头 |
material number, "empty" or "element" | 实体行以材料编号或 empty 开头 |
"lambda <conductivity>" or "T <temperature>" | 材料编号之后是 lambda 或 T |
number | λ 或温度的数值 |
quoted description: desc "..."、end of line or 'desc "<description>"' | desc 之后是双引号中的文本;其后不能有多余内容 |
"cuboid x,y,z x,y,z" or "shape ..." | 长方体或形体 |
corner of the cuboid "x,y,z" (decimal point, not comma)、second corner of the cuboid "x,y,z" | 两个角点,各三个数字,中间不加空格;小数中的逗号是错误 |
boundary condition number | 边界条件行以数字开头 |
"t <temperature> alpha <coefficient>" or "adiabat" | 数字之后是 t … alpha … 或 adiabat |
temperature、"alpha <heat transfer coefficient>"、heat transfer coefficient | 未写完的 t … alpha … |
face direction after "side": "-X +X -Y +Y -Z +Z" | side 之后的方向 |
point "x,y,z" after "points" (decimal point, not comma) | points 之后由三个数字组成的点 |
two rectangle corners "x,y,z x,y,z" after "rect" (as for cuboid) | rect 之后的一对角点 |
end of line, "side <directions>", "default", "points <points>", "rect <corner> <corner>" or "internal ..." | 边界条件行之后多出一个单词 |
shape plane: XY, XZ, YZ or "XYZ1 ... XYZ2 ..." | shape 之后的平面 |
thickness of the XY shape along Z: "Z from,to"(XZ 沿 Y,YZ 沿 X) | 顶点之后形体的高度 |
at least three vertices "x,y"(XZ 为“x,z”,YZ 为“y,z”) | 形体至少有三个顶点 |
at least three vertices "x,y,z" of contour XYZ1(以及 XYZ2) | 每个轮廓至少有三个顶点 |
"XYZ2" and the vertices of the second contour "x,y,z" | 第一个轮廓之后是单词 XYZ2 和第二个轮廓的顶点 |
version number、units, for example cm | 未写完的 version 或 units |
section heading or "model", "units", "planes"、section record | 位于节之外或类型未知的记录 |
记录的含义
表 5 信息:记录的含义
| 信息 | 问题所在 | 怎么办 |
|---|---|---|
material K is already declared on line M | 材料编号被声明了两次 | 只保留一处声明 |
boundary condition K is already declared on line M | 边界条件编号被声明了两次 | 只保留一个 |
material K is not declared in "materials params" | 实体引用了未声明的材料 | 声明该材料或修正编号 |
material and boundary condition numbers start at 1, not "0" | 编号小于 1 | 从 1 开始编号 |
model version … is not supported, rebuild the model from the source files | 第一行中的版本不是 7.4 | 在第一行写 frs 7.4 |
Z: the start of the shape is not less than its end(或 Y:、X:) | 形体中的“from”不小于“to” | 使“from”小于“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) | 两个轮廓的长度不同 | 使顶点数相等 |
contour XYZ1 is not flat: a vertex is … away from the contour plane(或 XYZ2) | 轮廓的顶点不在同一平面内 | 修正顶点 |
contour XYZ1 is degenerate: the vertices are collinear(或 XYZ2) | 轮廓没有面积 | 修正顶点 |
rectangle: two corners must share exactly one coordinate, the plane of the face (matched …) | 在 rect 中,相同的数字多于或少于一个 | 设置角点,使其中一个坐标相同,即面所在的平面 |
"default" is allowed on one boundary condition only, already on K | default 出现在两个边界条件上 | 只保留一个标记 |
direction ±X is already on boundary condition K (line M) | 同一方向出现在两个边界条件上 | 只保留在一个上 |
几何与装配
表 6 信息:几何与装配
| 信息 | 问题所在 | 怎么办 |
|---|---|---|
the first line is missing: frs 7.4 name "<name>" | 文本中没有 frs 行 | 把 frs 7.4 name "name" 作为第一行加上 |
the model is empty along one of the axes: there are no bodies | 没有实体,或全部为空 | 添加实体 |
the point X … Y … Z … does not lie on the open surface of the bodies | 该点不在表面上 | 把点放到某个面上:一个坐标就是该面所在的平面 |
the point touches a face already painted by boundary condition K (line M) | 该点位于另一个边界条件的面区上,或位于与它共有的棱线上 | 把点移到它自己的面区内部 |
surface not found in the geometry: "…" (no open face of a body with such a plane and extent) | rect 矩形不在开敞面上 | 检查角点:相同的坐标是开敞面所在的平面,延伸范围在该平面之内 |
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) | 各顶点对沿两根或三根轴不同 | 把实体拆成几部分,或使各顶点对对齐 |
XYZ shape: the contour stands edge-on to the column axis (the plan is degenerate) | 轮廓与拉伸轴平行 | 修正顶点 |
XYZ shape: caps XYZ1 and XYZ2 intersect (some vertices of the second contour are above the first, others below) | 实体的两个端盖相交 | 交换两个轮廓,或把实体拆开 |
shapes of planes … touch the same mesh cell: not supported yet | 不同平面的形体靠得太近 | 把它们至少隔开一个网格单元 |
an XYZ shape touches a mesh cell that already has …: not supported yet | XYZ 形体紧挨着另一个形体 | 把它们隔开 |
shape mesh: … cells with a repeated vertex (triangle, wedge): the generator does not build such a mesh without triangles yet | 形体有锐角,而网格需要三角形 | 修正形体 |
shape mesh: hanging node at … (and … more): the generator does not stitch such a mesh yet | 形体周围的网格无法缝合 | 修正形体或其位置 |
打开带斜面的计算
表 7 信息:打开带斜面的计算
| 信息 | 问题所在 | 怎么办 |
|---|---|---|
the shape does not match the sloped body of the source model: changing shape vertices in a calculation with sloped faces is not supported yet | 修改了形体的顶点 | 恢复顶点 |
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) | 在带斜面的计算中新增了体积形体 | 目前不允许:把模型恢复为原样 |
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) | XZ 和 YZ 形体同样如此 | 同上 |
no body covers the shape prism (or it is covered by "empty"): the shape must have 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 yet | 修改了斜面实体处的挖空 | 恢复挖空 |
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) | 长方体伸入斜面实体处的空洞 | 用 empty shape … 行把它切掉 |
the point touches a face of a sloped body already painted by boundary condition K (line M) | 与普通面相同,只是位于斜面上 | 移动该点 |
文本下方的警告
表 8 信息:文本下方的警告
| 信息 | 问题所在 | 怎么办 |
|---|---|---|
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". | 某些外表面没有边界条件 | 添加一个点,或把某个边界条件标为 default |
错误示例:实体引用了未声明的材料:
# 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
用于旧计算文件
当程序把旧版本(Temper-3D 6)的文件中的计算转换为文本时,会自行写出下面的记录。您不需要自己写它们;它们不会出现在新模型中。
element:作为单个单元的长方体#
# syntax
element <material> cuboid <x0,y0,z0> <x1,y1,z1>
程序为旧 Temper-3D 6 计算中的单元写出的行;网格不会再分割它们。当长方体的位置上写的是形体时,信息为:"element" takes only a cuboid: "element <material> cuboid x,y,z x,y,z"。
internal:实体之间的面#
# syntax
<number> … internal <axis> <plane> <u0> <u1> <v0> <v1>
实体之间的面(数字为模型网格中的编号)。当程序把计算文件中的模型转换为文本时会写出它。程序在此期望“internal”之后有 six integers after "internal": axis, plane, u0 u1 v0 v1(信息在“expected”之后显示这一内容)。
表格行和服务行
elements-table、free-faces-table、prisms-table 是带有 JSON 格式计算数据的行(错误信息为 the table is not valid JSON);planes <axis> <coordinate> … 是形体网格的附加平面;element-raw 是一行整数(出错时:integers)。它们由程序写出;您不需要编辑。如果同时给出 shape 形体和 prisms-table 行,程序会报告:sloped bodies are written both as "shape" rows and as a "prisms-table" row: keep only one。
程序如何写出实体
当文本由程序生成时(来自某个计算,或编辑之后),同一材料的实体连续排列,材料按编号升序排列,但不同材料的相交实体除外:对它们保持涂色顺序。长方体被裁剪到其可见部分,因此文本更短而模型不变。
程序如何写出边界条件
当文本由程序生成时,它会选出尽可能少的记录:点、方向和矩形。只有当方向取代的点多于一个时,才会写出方向。它选取默认边界条件,使记录尽可能少;如果相同,则选绝热的那个。
延伸范围
构造沿某根轴的延伸范围,从所有实体中最小的“from”坐标到最大的“to”坐标。