Skip to content

Commit 22e7f3f

Browse files
committed
Update debugging console logs for boundary conditions in HeatConduction2DFinGmsh.html
1 parent 63c9121 commit 22e7f3f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tutorials/HeatConduction2DFinGmsh.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ <h2 id="results"><a name="results"></a>Results</h2>
116116

117117
<script type="module">
118118
// Import FEAScript library from GitHub
119-
import { FEAScriptModel, importGmshQuadTri, plotSolution, printVersion } from "https://core.feascript.com/src/index.js";
119+
//import { FEAScriptModel, importGmshQuadTri, plotSolution, printVersion } from "https://core.feascript.com/src/index.js";
120120
// Import FEAScript library from a local directory
121-
//import { FEAScriptModel, importGmshQuadTri, plotSolution, printVersion } from "../../FEAScript-core/src/index.js";
121+
import { FEAScriptModel, importGmshQuadTri, plotSolution, printVersion } from "../../FEAScript-core/src/index.js";
122122

123123
window.addEventListener("DOMContentLoaded", async () => {
124124
// Print FEAScript version in the console
@@ -143,9 +143,7 @@ <h2 id="results"><a name="results"></a>Results</h2>
143143
// Parse the mesh file first
144144
const result = await importGmshQuadTri(meshFile);
145145

146-
// Print the boundary elements to the console
147-
console.log("Boundary Elements:", result.boundaryElements);
148-
console.log("Physical Properties Map:", result.physicalPropMap);
146+
console.log("Boundary Conditions:", result.boundaryConditions);
149147

150148
// Fix nodal numbering format for the solver
151149
if (result.nodalNumbering.quadElements && result.nodalNumbering.quadElements.length > 0) {
@@ -154,6 +152,8 @@ <h2 id="results"><a name="results"></a>Results</h2>
154152
result.nodalNumbering = result.nodalNumbering.triangleElements;
155153
}
156154

155+
console.log("Nodal Numbering:", result.nodalNumbering);
156+
157157
// Define mesh configuration with the parsed result
158158
model.setMeshConfig({
159159
parsedMesh: result,
@@ -167,9 +167,6 @@ <h2 id="results"><a name="results"></a>Results</h2>
167167
model.addBoundaryCondition("3", ["convection", 1, 20]); // top boundary
168168
model.addBoundaryCondition("2", ["constantTemp", 200]); // right boundary
169169

170-
// After setting up boundary conditions:
171-
console.log("Boundary Conditions:", model.boundaryConditions);
172-
173170
// Set solver method
174171
model.setSolverMethod("lusolve");
175172

0 commit comments

Comments
 (0)