Skip to content

Commit 2937f6e

Browse files
committed
Enhance clarity in HeatConduction2DFin.html and HeatConduction2DFinGmsh.html by adding code formatting for boundary condition descriptions and linking to example Gmsh .geo file.
1 parent 9ee69c6 commit 2937f6e

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

tutorials/HeatConduction2DFin.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,15 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
173173
&lt;/body&gt;</pre
174174
>
175175
<p>
176-
In the boundary condition definition, the numbers at the left side (from 0 to 3) indicate the boundaries
177-
of the geometry (the mesh generator of FEAScript has assigned numbers to the boundaries, starting from
178-
the bottom boundary and proceeding clockwise). The "constantTemp" condition sets a constant temperature
179-
value. The "symmetry" boundary condition represents a zero-flux type. Finally, the "convection"
180-
condition describes a convective heat transfer scenario. In addition, the second argument of the
181-
"constantTemp" boundary condition corresponds to the constant temperature value. For a "convection"
182-
boundary condition, the second argument represents the \({\frac{h}{k}}\) value, and the third argument
183-
indicates the external temperature \(T_0\).
176+
In the boundary condition definition, the numbers at the left side (from <code>"0"</code> to
177+
<code>"3"</code>) indicate the boundaries of the geometry (the mesh generator of FEAScript has assigned
178+
numbers to the boundaries, starting from the bottom boundary and proceeding clockwise). The
179+
<code>"constantTemp"</code> condition sets a constant temperature value. The
180+
<code>"symmetry"</code> boundary condition represents a zero-flux type. Finally, the
181+
<code>"convection"</code> condition describes a convective heat transfer scenario. In addition, the
182+
second argument of the <code>"constantTemp"</code> boundary condition corresponds to the constant
183+
temperature value. For a <code>"convection"</code> boundary condition, the second argument represents
184+
the \({\frac{h}{k}}\) value, and the third argument indicates the external temperature \(T_0\).
184185
</p>
185186
<p>
186187
After solving the case, the results are shown in a 2D contour plot. To visualize it, include an HTML

tutorials/HeatConduction2DFinGmsh.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,17 @@ <h2 id="gmshfileimport"><a name="gmshfileimport"></a>Gmsh File Import</h2>
169169
<p>Important notes about the Gmsh workflow:</p>
170170
<ul>
171171
<li>
172-
<strong>Physical Groups in Gmsh:</strong> In your <code>.geo</code> file, you need to define physical
173-
groups for boundaries using commands like <code>Physical Line("bottom") = {1};</code>. These are
174-
mapped to tags in the imported mesh.
172+
<strong>Physical Groups in Gmsh:</strong> In your <code>.geo</code> file (see
173+
<a href="#gmshgeofile">Example Gmsh <code>.geo</code> File</a>), you need to define physical groups
174+
for boundaries using commands like <code>Physical Line("bottom") = {1};</code>. These are mapped to
175+
tags in the imported mesh.
175176
</li>
176177
<li>
177178
<strong>Boundary Condition Mapping and Tag Indexing:</strong> When using Gmsh meshes in FEAScript, you
178179
need to subtract 1 from the Gmsh physical group tag numbers. For example, if your Gmsh file has
179-
physical groups with tags "1", "2", "3", "4", you would reference them in FEAScript as "0", "1", "2",
180-
"3", respectively. For example:
180+
physical groups with tags <code>"1"</code>, <code>"2"</code>, <code>"3"</code>, <code>"4"</code>, you
181+
would reference them in FEAScript as <code>"0"</code>, <code>"1"</code>, <code>"2"</code>,
182+
<code>"3"</code>, respectively. For example:
181183
<code>model.addBoundaryCondition("0", ["constantTemp", 200]); // Gmsh physical group tag 1</code>.
182184
This conversion is necessary because Gmsh uses 1-based indexing while FEAScript uses 0-based indexing.
183185
</li>

0 commit comments

Comments
 (0)