Skip to content

Commit ca7e763

Browse files
committed
Fix formatting
1 parent 30f5446 commit ca7e763

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

src/solvers/solidHeatTransferScript.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const log = loggers.solver;
2828
export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
2929
// log.info("Starting solid heat transfer matrix assembly");
3030
console.log("Starting solid heat transfer matrix assembly");
31-
31+
3232
// Extract mesh details from the configuration object
3333
const {
3434
meshDimension, // The dimension of the mesh
@@ -40,7 +40,11 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
4040
} = meshConfig;
4141

4242
// 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}`);
43+
console.log(
44+
`Mesh configuration: ${meshDimension}, Elements: ${numElementsX}x${numElementsY || 1}, Size: ${maxX}x${
45+
maxY || 0
46+
}, Order: ${elementOrder}`
47+
);
4448

4549
// Extract boundary conditions from the configuration object
4650
let convectionHeatTranfCoeff = [];
@@ -51,7 +55,9 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
5155
convectionHeatTranfCoeff[key] = boundaryCondition[1];
5256
convectionExtTemp[key] = boundaryCondition[2];
5357
// 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]}`);
58+
console.log(
59+
`Convection boundary condition on boundary ${key}: h=${boundaryCondition[1]}, T=${boundaryCondition[2]}`
60+
);
5561
}
5662
});
5763

@@ -85,7 +91,7 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
8591
const totalNodes = totalNodesX * (meshDimension === "2D" ? totalNodesY : 1); // Total number of nodes
8692
// log.debug(`Total elements: ${totalElements}, Total nodes: ${totalNodes}`);
8793
console.log(`Total elements: ${totalElements}, Total nodes: ${totalNodes}`);
88-
94+
8995
// Initialize variables for matrix assembly
9096
let localNodalNumbers = []; // Local nodal numbering
9197
let gaussPoints = []; // Gauss points
@@ -137,7 +143,7 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
137143

138144
// Determine the number of nodes in the reference element based on the first element in the nop array
139145
const numNodes = nop[0].length;
140-
146+
141147
// log.info(`Beginning matrix assembly for ${totalElements} elements...`);
142148
console.log(`Beginning matrix assembly for ${totalElements} elements...`);
143149

@@ -291,7 +297,7 @@ export function assembleSolidHeatTransferMat(meshConfig, boundaryConditions) {
291297
thermalBoundaryConditions.imposeConstantTempBoundaryConditions(residualVector, jacobianMatrix);
292298
// log.debug("Constant temperature boundary conditions applied");
293299
console.log("Constant temperature boundary conditions applied");
294-
300+
295301
// log.info("Solid heat transfer matrix assembly completed");
296302
console.log("Solid heat transfer matrix assembly completed");
297303

src/utilities/loggerScript.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ const createNoOpLogger = (name) => {
2121
info: () => {},
2222
warn: () => {},
2323
error: () => {},
24-
setLevel: () => {}
24+
setLevel: () => {},
2525
};
2626
};
2727

2828
// Mock loggers with no-op functions
2929
const loggers = {
30-
main: createNoOpLogger('FEAScript'),
31-
solver: createNoOpLogger('Solver'),
32-
mesh: createNoOpLogger('Mesh'),
33-
visualization: createNoOpLogger('Viz')
30+
main: createNoOpLogger("FEAScript"),
31+
solver: createNoOpLogger("Solver"),
32+
mesh: createNoOpLogger("Mesh"),
33+
visualization: createNoOpLogger("Viz"),
3434
};
3535

3636
// Helper method (no-op)

src/utilities/utilitiesScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// |_| | |_ //
99
// Website: https://feascript.com/ \__| //
1010

11-
import loggers from './loggerScript.js';
11+
import loggers from "./loggerScript.js";
1212

1313
const log = loggers.main;
1414

0 commit comments

Comments
 (0)