Skip to content

Commit bdcd16b

Browse files
committed
Create a new json file (solverConfig) as a solver configuration file. This file determines the solver type.
1 parent 5b4934a commit bdcd16b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FEAScript.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import { assembleSolidHeatMatrix2D } from "./solvers/solidHeatScript.js";
1212

1313
/**
1414
* Differential equations solver using the finite element method
15-
* @param {string} solverScript - Parameter specifying the type of solver
15+
* @param {string} solverConfig - Parameter specifying the type of solver
1616
* @param {object} meshConfig - Object containing computational mesh details
1717
* @param {object} boundaryConditions - Object containing boundary conditions for the finite element analysis
1818
* @returns {object} An object containing the solution vector and additional mesh information
1919
*/
20-
export function FEAScript(solverScript, meshConfig, boundaryConditions) {
20+
export function FEAScript(solverConfig, meshConfig, boundaryConditions) {
2121
let jacobianMatrix = []; // Jacobian matrix
2222
let residualVector = []; // Galerkin residuals
2323
let totalNodesX; // Total number of nodes along x-axis
@@ -28,8 +28,8 @@ export function FEAScript(solverScript, meshConfig, boundaryConditions) {
2828

2929
// Assembly matrices
3030
console.time("assemblyMatrices");
31-
if (solverScript === "solidHeatScript") {
32-
console.log("solverScript:", solverScript);
31+
if (solverConfig === "solidHeatScript") {
32+
console.log("FEAScript solver:", solverConfig);
3333
({
3434
jacobianMatrix,
3535
residualVector,

0 commit comments

Comments
 (0)