Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b494dd5
Made the initial build for npm (#25)
sridhar-mani May 22, 2025
261a474
Update author and contributors information in package.json
nikoscham May 22, 2025
21abdee
Add publishConfig to package.json for public access
nikoscham May 22, 2025
c556727
sync with dev branch (#26)
nikoscham May 22, 2025
eb7eeed
Update import statements in README.md to use ESM version of FEAScript
nikoscham May 22, 2025
767da8a
Merge remote-tracking branch 'origin/dev'
nikoscham May 22, 2025
9750827
frontPropagationScript solver (#29)
nikoscham Jul 30, 2025
c97116b
Set default value for eikonalActivationFlag in assembleFrontPropagati…
nikoscham Jul 30, 2025
b8eee2d
Refactor eikonalActivationFlag handling in FEAScriptModel and frontPr…
nikoscham Jul 30, 2025
0f188d7
Refactor FEAScript and Newton-Raphson methods
nikoscham Jul 30, 2025
1560d41
Add Solidification Front 2D example (#30)
nikoscham Jul 31, 2025
d16b94b
chore: bump version to 0.1.3 and update description in package.json (…
nikoscham Aug 22, 2025
46edd41
Add Liberapay username to FUNDING.yml
nikoscham Aug 22, 2025
4d88687
Fix capitalization in download instructions
nikoscham Aug 22, 2025
c07d377
Initial plan
Copilot Sep 2, 2025
4aaf7ef
Initial plan for WebGPU conjugate gradient solver implementation
Copilot Sep 2, 2025
ac704dc
Implement WebGPU conjugate gradient solver with improved precision
Copilot Sep 2, 2025
34bd6a0
Complete WebGPU conjugate gradient solver with robust fallback mechan…
Copilot Sep 2, 2025
474bc4c
Add comprehensive examples and WebGPU demo for conjugate gradient solver
Copilot Sep 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor eikonalActivationFlag handling in FEAScriptModel and frontPr…
…opagationScript

- Removed the global declaration of eikonalActivationFlag in FEAScriptModel.
- Initialized eikonalActivationFlag locally within the frontPropagationScript context.
- Updated frontPropagationScript to accept eikonalActivationFlag as a parameter without a default value.
  • Loading branch information
nikoscham committed Jul 30, 2025
commit b8eee2d1132911f5453fc72b5d6adbe7075c52cd
4 changes: 2 additions & 2 deletions dist/feascript.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/feascript.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.umd.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/FEAScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export class FEAScriptModel {
let initialSolution = [];
let nodesCoordinates = {};
let eikonalExteralIterations = 5; // Number of incremental steps to gradually activate the eikonal term - Used in frontPropagationScript
let eikonalActivationFlag = 0; // Activation parameter for the eikonal equation (ranges from 0 to 1) - Used in frontPropagationScript
let newtonRaphsonIterations;

// Select and execute the appropriate solver based on solverConfig
Expand All @@ -84,6 +83,9 @@ export class FEAScriptModel {
} else if (this.solverConfig === "frontPropagationScript") {
basicLog(`Using solver: ${this.solverConfig}`);

// Initialize eikonalActivationFlag
let eikonalActivationFlag = 0;

// Create context object with all necessary properties
const context = {
meshConfig: this.meshConfig,
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/frontPropagationScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function assembleFrontPropagationMat(
meshConfig,
boundaryConditions,
solutionVector,
eikonalActivationFlag = 0
eikonalActivationFlag
) {
basicLog("Starting front propagation matrix assembly...");

Expand Down