@@ -233,7 +233,7 @@ <h2 id="solvingwithfeascript">
233233 // Assemble matrices and solve the system of equations
234234 let { solutionVector, nodesCoordinates } = FEAScript(solverConfig, meshConfig, boundaryConditionsConfig);
235235 // Visualize the solution
236- plotSolution(solutionVector, nodesCoordinates, solverConfig, meshConfig.meshDimension, "contour");
236+ plotSolution(solutionVector, nodesCoordinates, solverConfig, meshConfig.meshDimension, "contour", "solutionPlot" );
237237 });
238238 </script>
239239 . . .
@@ -246,18 +246,23 @@ <h2 id="solvingwithfeascript">
246246 < pre class ="prettyprint ">
247247<body>
248248 . . .
249- <div id="plot "> </div>
249+ <div id="solutionPlot "> </div>
250250 . . .
251251</body></ pre
252252 >
253- < br />
253+ < p >
254+ The `solutionPlot` is the id of the div where the plot will be rendered. This id
255+ is passed as an argument to the plotSolution function to specify the
256+ target div for the plot.
257+ </ p >
254258 < h2 id ="results "> < a name ="Results "> </ a > Results</ h2 >
255259 < p >
256260 The results visualized in the following contour plot are generated
257261 real-time in your browser, according to the JSON files provided. The
258262 source code of the above tutorial can be found at the corresponding
259263 < a
260- href ="https://github.com/FEAScript/FEAScript/tree/main/examples/solidHeatTransferScript/exampleSolidHeatTransfer01 " target ="_blank "
264+ href ="https://github.com/FEAScript/FEAScript/tree/main/examples/solidHeatTransferScript/exampleSolidHeatTransfer01 "
265+ target ="_blank "
261266 > example directory</ a
262267 > .
263268 </ p >
@@ -267,10 +272,12 @@ <h2 id="results"><a name="Results"></a>Results</h2>
267272 Cannot draw the results. Please turn your phone to horizontal position to
268273 see the results.
269274 </ div >
270- < div id ="plot "> </ div >
275+ < div id ="solutionPlot "> </ div >
271276
272277 < ul id ="menu ">
273- < li > < a href ="https://feascript.com/index.html " target ="_blank "> Return</ a > </ li >
278+ < li >
279+ < a href ="https://feascript.com/index.html " target ="_blank "> Return</ a >
280+ </ li >
274281 </ ul >
275282
276283 < script >
@@ -343,10 +350,10 @@ <h2 id="results"><a name="Results"></a>Results</h2>
343350 if ( window . innerHeight > window . innerWidth ) {
344351 document . getElementById ( "orientation-message" ) . style . display =
345352 "block" ;
346- document . getElementById ( "plot " ) . style . display = "none" ;
353+ document . getElementById ( "solutionPlot " ) . style . display = "none" ;
347354 } else {
348355 document . getElementById ( "orientation-message" ) . style . display = "none" ;
349- document . getElementById ( "plot " ) . style . display = "block" ;
356+ document . getElementById ( "solutionPlot " ) . style . display = "block" ;
350357 // Print FEAScript version
351358 printVersion ( ) ;
352359 // Assemble matrices and solve the system of equations
@@ -361,7 +368,8 @@ <h2 id="results"><a name="Results"></a>Results</h2>
361368 nodesCoordinates ,
362369 solverConfig ,
363370 meshConfig . meshDimension ,
364- "contour"
371+ "contour" ,
372+ "solutionPlot"
365373 ) ;
366374 }
367375 } ) ;
@@ -370,10 +378,10 @@ <h2 id="results"><a name="Results"></a>Results</h2>
370378 if ( window . innerHeight > window . innerWidth ) {
371379 document . getElementById ( "orientation-message" ) . style . display =
372380 "block" ;
373- document . getElementById ( "plot " ) . style . display = "none" ;
381+ document . getElementById ( "solutionPlot " ) . style . display = "none" ;
374382 } else {
375383 document . getElementById ( "orientation-message" ) . style . display = "none" ;
376- document . getElementById ( "plot " ) . style . display = "block" ;
384+ document . getElementById ( "solutionPlot " ) . style . display = "block" ;
377385 // Print FEAScript version
378386 printVersion ( ) ;
379387 // Assemble matrices and solve the system of equations
@@ -388,7 +396,8 @@ <h2 id="results"><a name="Results"></a>Results</h2>
388396 nodesCoordinates ,
389397 solverConfig ,
390398 meshConfig . meshDimension ,
391- "contour"
399+ "contour" ,
400+ "solutionPlot"
392401 ) ;
393402 }
394403 } ) ;
0 commit comments