File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
2020const 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)
2626model .setMeshConfig ({
@@ -35,6 +35,9 @@ model.setMeshConfig({
3535// Define boundary conditions
3636model .addBoundaryCondition (" boundaryIndex" , [" conditionType" , ... parameters]);
3737
38+ // Set solver method
39+ model .setSolverMethod (" solverMethod" ); // e.g., "lusolve" for LU decomposition
40+
3841// Solve the problem
3942const { solutionVector , nodesCoordinates } = model .solve ();
4043
You can’t perform that action at this time.
0 commit comments