@@ -102,7 +102,11 @@ <h2 id="mathematicalformulation"><a name="Mathematical formulation"></a>Mathemat
102102 equation and its mathematical properties, please see our
103103 < a href ="https://blog.feascript.com/tutorial/2025/06/15/eikonal-equation.html "> blog post</ a > .
104104 </ p >
105- < img src ="../assets/SolidificationFront2D.png " width ="300 " />
105+ < img
106+ src ="../assets/SolidificationFront2D.png "
107+ width ="300 "
108+ alt ="Schematic of 2D solidification front domain "
109+ />
106110 < p >
107111 The above schematic illustrates the problem domain and outlines the associated boundary conditions. In
108112 this model, we consider a square domain where solidification begins simultaneously from three sides
@@ -165,8 +169,8 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
165169 // Apply boundary conditions
166170 model.addBoundaryCondition("0", ["constantValue", 0]); // Βottom
167171 model.addBoundaryCondition("1", ["constantValue", 0]); // Left
168- model.addBoundaryCondition("2", ["zeroGradient"]); // Top
169- model.addBoundaryCondition("3", ["constantValue", 0])) ; // Right
172+ model.addBoundaryCondition("2", ["zeroGradient"]); // Top
173+ model.addBoundaryCondition("3", ["constantValue", 0]); // Right
170174
171175 // Solve
172176 model.setSolverMethod("lusolve");
@@ -179,7 +183,7 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
179183 model.solverConfig,
180184 model.meshConfig.meshDimension,
181185 "contour",
182- "solutionPlot "
186+ "resultsCanvas "
183187 );
184188
185189 });
@@ -194,13 +198,13 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
194198 < pre class ="prettyprint ">
195199<body>
196200 <!-- ...body region... -->
197- <div id="solutionPlot "> </div>
201+ <div id="resultsCanvas "> </div>
198202 <!-- ...continue of body region... -->
199203</body></ pre
200204 >
201205 < p >
202- The < code > "solutionPlot "</ code > is the id of the div where the plot will be rendered. This id is passed as an
203- argument to the " plotSolution" function to specify the target div for the plot.
206+ The < code > "resultsCanvas "</ code > is the id of the div where the plot will be rendered. This id is passed
207+ as an argument to the < code > plotSolution</ code > function to specify the target div for the plot.
204208 </ p >
205209
206210 < h2 id ="results "> < a name ="Results "> </ a > Results</ h2 >
@@ -223,7 +227,7 @@ <h2 id="results"><a name="Results"></a>Results</h2>
223227 < div id ="orientation-message ">
224228 Cannot draw the results. Please turn your phone to horizontal position to see the results.
225229 </ div >
226- < div id ="solutionPlot "> </ div >
230+ < div id ="resultsCanvas "> </ div >
227231
228232 < br />
229233
@@ -245,19 +249,19 @@ <h2 id="results"><a name="Results"></a>Results</h2>
245249 FEAScriptModel ,
246250 plotSolution ,
247251 printVersion ,
248- // } from "https://core.feascript.com/dist/feascript.esm.js";
252+ } from "https://core.feascript.com/dist/feascript.esm.js" ;
249253 // } from "https://core.feascript.com/src/index.js";
250254 // Import FEAScript library from a local directory
251255 // } from "../../FEAScript-core/dist/feascript.esm.js";
252- } from "../../FEAScript-core/src/index.js" ;
256+ // } from "../../FEAScript-core/src/index.js";
253257
254258 window . addEventListener ( "DOMContentLoaded" , ( ) => {
255259 if ( window . innerHeight > window . innerWidth ) {
256260 document . getElementById ( "orientation-message" ) . style . display = "block" ;
257- document . getElementById ( "solutionPlot " ) . style . display = "none" ;
261+ document . getElementById ( "resultsCanvas " ) . style . display = "none" ;
258262 } else {
259263 document . getElementById ( "orientation-message" ) . style . display = "none" ;
260- document . getElementById ( "solutionPlot " ) . style . display = "block" ;
264+ document . getElementById ( "resultsCanvas " ) . style . display = "block" ;
261265
262266 // Enable debug logging mode
263267 // logSystem("debug");
@@ -300,18 +304,18 @@ <h2 id="results"><a name="Results"></a>Results</h2>
300304 model . solverConfig ,
301305 model . meshConfig . meshDimension ,
302306 "contour" ,
303- "solutionPlot "
307+ "resultsCanvas "
304308 ) ;
305309 }
306310 } ) ;
307311
308312 window . addEventListener ( "resize" , ( ) => {
309313 if ( window . innerHeight > window . innerWidth ) {
310314 document . getElementById ( "orientation-message" ) . style . display = "block" ;
311- document . getElementById ( "solutionPlot " ) . style . display = "none" ;
315+ document . getElementById ( "resultsCanvas " ) . style . display = "none" ;
312316 } else {
313317 document . getElementById ( "orientation-message" ) . style . display = "none" ;
314- document . getElementById ( "solutionPlot " ) . style . display = "block" ;
318+ document . getElementById ( "resultsCanvas " ) . style . display = "block" ;
315319 }
316320 } ) ;
317321 </ script >
0 commit comments