Skip to content

Commit 5f65fcf

Browse files
committed
Added deprecation warning for setSolverConfig method in FEAScript.js and created an alias method setModelConfig. setModelConfig will replace setSolverConfig in the next stable release
1 parent 53c013a commit 5f65fcf

File tree

14 files changed

+29
-26
lines changed

14 files changed

+29
-26
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ While FEAScript API offers full programmatic control for advanced customization,
117117

118118
## Quick Example
119119

120-
Here is a minimal browser-based example using the FEAScript API. Adapt paths, solver types, and boundary conditions as needed for your specific problem:
120+
Here is a minimal browser-based example using the FEAScript API. Adapt paths, physics model, and boundary conditions as needed for your specific problem:
121121

122122
```html
123123
<body>
@@ -130,8 +130,8 @@ Here is a minimal browser-based example using the FEAScript API. Adapt paths, so
130130
// Create a new FEAScript model
131131
const model = new FEAScriptModel();
132132
133-
// Set the solver type for your problem
134-
model.setSolverConfig("solverType"); // Example: "heatConductionScript"
133+
// Select physics/PDE
134+
model.setModelConfig("physicsModel"); // Example: "heatConductionScript"
135135
136136
// Configure the mesh
137137
model.setMeshConfig({

dist/feascript.cjs.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.esm.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.umd.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/frontPropagationScript/solidificationFront2D/solidificationFront2D.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ console.log("FEAScript Version:", printVersion);
1919
// Create a new FEAScript model
2020
const model = new FEAScriptModel();
2121

22-
// Set solver configuration for front propagation
23-
model.setSolverConfig("frontPropagationScript");
22+
// Select physics/PDE
23+
model.setModelConfig("frontPropagationScript");
2424

2525
// Define mesh configuration
2626
model.setMeshConfig({

examples/generalFormPDEScript/advectionDiffusion1D/advectionDiffusion1D.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ console.log("FEAScript Version:", printVersion);
1919
// Create a new FEAScript model
2020
const model = new FEAScriptModel();
2121

22-
// Set solver configuration with coefficient functions
23-
model.setSolverConfig("generalFormPDEScript", {
22+
// Select physics/PDE
23+
model.setModelConfig("generalFormPDEScript", {
2424
coefficientFunctions: {
2525
// Equation d²u/dx² - 10 du/dx = 10 * exp(-200 * (x - 0.5)²)
2626
A: (x) => 1, // Diffusion coefficient

examples/heatConductionScript/heatConduction1DWall/heatConduction1DWall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ console.log("FEAScript Version:", printVersion);
1919
// Create a new FEAScript model
2020
const model = new FEAScriptModel();
2121

22-
// Set solver configuration
23-
model.setSolverConfig("heatConductionScript");
22+
// Select physics/PDE
23+
model.setModelConfig("heatConductionScript");
2424

2525
// Define mesh configuration
2626
model.setMeshConfig({

0 commit comments

Comments
 (0)