File tree Expand file tree Collapse file tree 4 files changed +29
-11
lines changed Expand file tree Collapse file tree 4 files changed +29
-11
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ export class FEAScriptModel {
72
72
this . meshConfig ,
73
73
this . boundaryConditions
74
74
) ) ;
75
+ } else if ( this . solverConfig === "frontPropagationScript" ) {
76
+ basicLog ( `Using solver: ${ this . solverConfig } ` ) ;
75
77
}
76
78
console . timeEnd ( "assemblyMatrices" ) ;
77
79
basicLog ( "Matrix assembly completed" ) ;
Original file line number Diff line number Diff line change
1
+ // ______ ______ _____ _ _ //
2
+ // | ____| ____| /\ / ____| (_) | | //
3
+ // | |__ | |__ / \ | (___ ___ ____ _ ____ | |_ //
4
+ // | __| | __| / /\ \ \___ \ / __| __| | _ \| __| //
5
+ // | | | |____ / ____ \ ____) | (__| | | | |_) | | //
6
+ // |_| |______/_/ \_\_____/ \___|_| |_| __/| | //
7
+ // | | | | //
8
+ // |_| | |_ //
9
+ // Website: https://feascript.com/ \__| //
Original file line number Diff line number Diff line change @@ -293,10 +293,12 @@ export class ThermalBoundaryConditions {
293
293
}
294
294
295
295
// Compute the length of tangent vector
296
- const tangentVectorLength =
297
- side === 0 || side === 2
298
- ? Math . sqrt ( ksiDerivX ** 2 + ksiDerivY ** 2 )
299
- : Math . sqrt ( etaDerivX ** 2 + etaDerivY ** 2 ) ;
296
+ let tangentVectorLength ;
297
+ if ( side === 0 || side === 2 ) {
298
+ tangentVectorLength = Math . sqrt ( ksiDerivX ** 2 + ksiDerivY ** 2 ) ;
299
+ } else {
300
+ tangentVectorLength = Math . sqrt ( etaDerivX ** 2 + etaDerivY ** 2 ) ;
301
+ }
300
302
301
303
for (
302
304
let localNodeIndex = firstNodeIndex ;
@@ -389,10 +391,12 @@ export class ThermalBoundaryConditions {
389
391
}
390
392
391
393
// Compute the length of tangent vector
392
- const tangentVectorLength =
393
- side === 0 || side === 2
394
- ? Math . sqrt ( ksiDerivX ** 2 + ksiDerivY ** 2 )
395
- : Math . sqrt ( etaDerivX ** 2 + etaDerivY ** 2 ) ;
394
+ let tangentVectorLength ;
395
+ if ( side === 0 || side === 2 ) {
396
+ tangentVectorLength = Math . sqrt ( ksiDerivX ** 2 + ksiDerivY ** 2 ) ;
397
+ } else {
398
+ tangentVectorLength = Math . sqrt ( etaDerivX ** 2 + etaDerivY ** 2 ) ;
399
+ }
396
400
397
401
for (
398
402
let localNodeIndex = firstNodeIndex ;
Original file line number Diff line number Diff line change @@ -73,9 +73,12 @@ export function plotSolution(
73
73
const uniqueYCoords = new Set ( nodesYCoordinates ) . size ;
74
74
75
75
// Extract scalar values from solution vector
76
- let zValues = Array . isArray ( solutionVector [ 0 ] )
77
- ? solutionVector . map ( val => val [ 0 ] )
78
- : solutionVector ;
76
+ let zValues ;
77
+ if ( Array . isArray ( solutionVector [ 0 ] ) ) {
78
+ zValues = solutionVector . map ( val => val [ 0 ] ) ;
79
+ } else {
80
+ zValues = solutionVector ;
81
+ }
79
82
80
83
// Common sizing parameters for both plot types
81
84
let maxWindowWidth = Math . min ( window . innerWidth , 700 ) ;
You can’t perform that action at this time.
0 commit comments