Skip to content

Commit fa3a27a

Browse files
committed
Update import URL in README.md and comments
1 parent 24435ed commit fa3a27a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ FEAScript is entirely implemented in pure JavaScript and requires only a simple
1414

1515
```javascript
1616
// Import required modules
17-
import { FEAScriptModel, plotSolution } from "https://feascript.github.io/FEAScript-core/src/index.js";
17+
import { FEAScriptModel, plotSolution } from "https://core.feascript.com/src/index.js";
1818

1919
// Create a new FEAScript model
2020
const model = new FEAScriptModel();
2121

2222
// Configure the solver
23-
model.setSolverConfig("solverType"); // e.g., "solidHeatTransfer"
23+
model.setSolverConfig("solverType"); // e.g., "solidHeatTransfer" for a stationary solid heat transfer case
2424

2525
// Define mesh configuration (assuming a rectangular domain for 2D)
2626
model.setMeshConfig({
@@ -35,6 +35,9 @@ model.setMeshConfig({
3535
// Define boundary conditions
3636
model.addBoundaryCondition("boundaryIndex", ["conditionType", ...parameters]);
3737

38+
// Set solver method
39+
model.setSolverMethod("solverMethod"); // e.g., "lusolve" for LU decomposition
40+
3841
// Solve the problem
3942
const { solutionVector, nodesCoordinates } = model.solve();
4043

0 commit comments

Comments
 (0)