@@ -26,7 +26,8 @@ const log = loggers.solver;
2626 * - nodesCoordinates: Object containing x and y coordinates of nodes
2727 */
2828export function assembleSolidHeatTransferMat ( meshConfig , boundaryConditions ) {
29- log . info ( "Starting solid heat transfer matrix assembly" ) ;
29+ // log.info("Starting solid heat transfer matrix assembly");
30+ console . log ( "Starting solid heat transfer matrix assembly" ) ;
3031
3132 // Extract mesh details from the configuration object
3233 const {
@@ -38,7 +39,8 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
3839 elementOrder, // The order of elements
3940 } = meshConfig ;
4041
41- log . debug ( `Mesh configuration: ${ meshDimension } , Elements: ${ numElementsX } x${ numElementsY || 1 } , Size: ${ maxX } x${ maxY || 0 } , Order: ${ elementOrder } ` ) ;
42+ // log.debug(`Mesh configuration: ${meshDimension}, Elements: ${numElementsX}x${numElementsY || 1}, Size: ${maxX}x${maxY || 0}, Order: ${elementOrder}`);
43+ console . log ( `Mesh configuration: ${ meshDimension } , Elements: ${ numElementsX } x${ numElementsY || 1 } , Size: ${ maxX } x${ maxY || 0 } , Order: ${ elementOrder } ` ) ;
4244
4345 // Extract boundary conditions from the configuration object
4446 let convectionHeatTranfCoeff = [ ] ;
@@ -48,12 +50,14 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
4850 if ( boundaryCondition [ 0 ] === "convection" ) {
4951 convectionHeatTranfCoeff [ key ] = boundaryCondition [ 1 ] ;
5052 convectionExtTemp [ key ] = boundaryCondition [ 2 ] ;
51- log . debug ( `Convection boundary condition on boundary ${ key } : h=${ boundaryCondition [ 1 ] } , T=${ boundaryCondition [ 2 ] } ` ) ;
53+ // log.debug(`Convection boundary condition on boundary ${key}: h=${boundaryCondition[1]}, T=${boundaryCondition[2]}`);
54+ console . log ( `Convection boundary condition on boundary ${ key } : h=${ boundaryCondition [ 1 ] } , T=${ boundaryCondition [ 2 ] } ` ) ;
5255 }
5356 } ) ;
5457
5558 // Create a new instance of the meshGeneration class
56- log . debug ( "Generating mesh..." ) ;
59+ // log.debug("Generating mesh...");
60+ console . log ( "Generating mesh..." ) ;
5761 const meshGenerationData = new meshGeneration ( {
5862 numElementsX,
5963 numElementsY,
@@ -65,7 +69,8 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
6569
6670 // Generate the mesh
6771 const nodesCoordinatesAndNumbering = meshGenerationData . generateMesh ( ) ;
68- log . debug ( "Mesh generated successfully" ) ;
72+ // log.debug("Mesh generated successfully");
73+ console . log ( "Mesh generated successfully" ) ;
6974
7075 // Extract nodes coordinates and nodal numbering (NOP) from the mesh data
7176 let nodesXCoordinates = nodesCoordinatesAndNumbering . nodesXCoordinates ;
@@ -78,7 +83,8 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
7883 // Initialize variables for matrix assembly
7984 const totalElements = numElementsX * ( meshDimension === "2D" ? numElementsY : 1 ) ; // Total number of elements
8085 const totalNodes = totalNodesX * ( meshDimension === "2D" ? totalNodesY : 1 ) ; // Total number of nodes
81- log . debug ( `Total elements: ${ totalElements } , Total nodes: ${ totalNodes } ` ) ;
86+ // log.debug(`Total elements: ${totalElements}, Total nodes: ${totalNodes}`);
87+ console . log ( `Total elements: ${ totalElements } , Total nodes: ${ totalNodes } ` ) ;
8288
8389 // Initialize variables for matrix assembly
8490 let localNodalNumbers = [ ] ; // Local nodal numbering
@@ -109,14 +115,16 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
109115 }
110116
111117 // Initialize the basisFunctions class
112- log . debug ( "Initializing basis functions..." ) ;
118+ // log.debug("Initializing basis functions...");
119+ console . log ( "Initializing basis functions..." ) ;
113120 const basisFunctionsData = new basisFunctions ( {
114121 meshDimension,
115122 elementOrder,
116123 } ) ;
117124
118125 // Initialize the numericalIntegration class
119- log . debug ( "Setting up numerical integration..." ) ;
126+ // log.debug("Setting up numerical integration...");
127+ console . log ( "Setting up numerical integration..." ) ;
120128 const numIntegrationData = new numericalIntegration ( {
121129 meshDimension,
122130 elementOrder,
@@ -130,7 +138,8 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
130138 // Determine the number of nodes in the reference element based on the first element in the nop array
131139 const numNodes = nop [ 0 ] . length ;
132140
133- log . info ( `Beginning matrix assembly for ${ totalElements } elements...` ) ;
141+ // log.info(`Beginning matrix assembly for ${totalElements} elements...`);
142+ console . log ( `Beginning matrix assembly for ${ totalElements } elements...` ) ;
134143
135144 // Matrix assembly
136145 for ( let elementIndex = 0 ; elementIndex < totalElements ; elementIndex ++ ) {
@@ -253,7 +262,8 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
253262 }
254263
255264 // Create an instance of ThermalBoundaryConditions
256- log . debug ( "Applying thermal boundary conditions..." ) ;
265+ // log.debug("Applying thermal boundary conditions...");
266+ console . log ( "Applying thermal boundary conditions..." ) ;
257267 const thermalBoundaryConditions = new ThermalBoundaryConditions (
258268 boundaryConditions ,
259269 boundaryElements ,
@@ -274,13 +284,16 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
274284 convectionHeatTranfCoeff ,
275285 convectionExtTemp
276286 ) ;
277- log . debug ( "Convection boundary conditions applied" ) ;
287+ // log.debug("Convection boundary conditions applied");
288+ console . log ( "Convection boundary conditions applied" ) ;
278289
279290 // Impose ConstantTemp boundary conditions
280291 thermalBoundaryConditions . imposeConstantTempBoundaryConditions ( residualVector , jacobianMatrix ) ;
281- log . debug ( "Constant temperature boundary conditions applied" ) ;
292+ // log.debug("Constant temperature boundary conditions applied");
293+ console . log ( "Constant temperature boundary conditions applied" ) ;
282294
283- log . info ( "Solid heat transfer matrix assembly completed" ) ;
295+ // log.info("Solid heat transfer matrix assembly completed");
296+ console . log ( "Solid heat transfer matrix assembly completed" ) ;
284297
285298 return {
286299 jacobianMatrix,
0 commit comments