Skip to content

Commit df730bf

Browse files
authored
Feature/general form pde script (#48)
1 parent 6b9821e commit df730bf

23 files changed

+422
-285
lines changed

.github/workflows/scripts-test.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
# ______ ______ _____ _ _
2+
# | ____| ____| /\ / ____| (_) | |
3+
# | |__ | |__ / \ | (___ ___ ____ _ ____ | |_
4+
# | __| | __| / /\ \ \___ \ / __| __| | _ \| __|
5+
# | | | |____ / ____ \ ____) | (__| | | | |_) | |
6+
# |_| |______/_/ \_\_____/ \___|_| |_| __/| |
7+
# | | | |
8+
# |_| | |_
9+
# Website: https://feascript.com/ \__|
10+
#
11+
112
name: Run FEAScript Examples
213

314
on:
415
push:
5-
branches: [ main ]
16+
branches: [main]
617
pull_request:
7-
branches: [ main ]
18+
branches: [main]
819

920
jobs:
1021
run-examples:
@@ -33,17 +44,17 @@ jobs:
3344
echo "=========================================="
3445
echo "Running FEAScript examples with Node.js ${{ matrix.node-version }}"
3546
echo "=========================================="
36-
47+
3748
# Counter for tracking test results
3849
PASSED=0
3950
FAILED=0
4051
TOTAL=0
41-
52+
4253
# Array to store failed examples
4354
FAILED_EXAMPLES=()
44-
45-
# Find all .js files in examples directory, excluding generalFormPDEScript
46-
for file in $(find examples -name "*.js" -type f | grep -v "generalFormPDEScript" | sort); do
55+
56+
# Find all .js files in examples directory
57+
for file in $(find examples -name "*.js" -type f | sort); do
4758
TOTAL=$((TOTAL + 1))
4859
LOG_FILE="${file%.js}.log"
4960
echo ""
@@ -71,7 +82,7 @@ jobs:
7182
fi
7283
echo "----------------------------------------"
7384
done
74-
85+
7586
# Print summary
7687
echo ""
7788
echo "=========================================="
@@ -81,7 +92,7 @@ jobs:
8192
echo "Passed: $PASSED"
8293
echo "Failed: $FAILED"
8394
echo ""
84-
95+
8596
# If there are failures, list them
8697
if [ $FAILED -gt 0 ]; then
8798
echo "Failed examples:"
@@ -103,4 +114,4 @@ jobs:
103114
examples/**/*.log
104115
examples/**/*.out
105116
retention-days: 7
106-
if-no-files-found: ignore
117+
if-no-files-found: ignore

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- [![liberapay](https://img.shields.io/liberapay/receives/FEAScript.svg?logo=liberapay)](https://liberapay.com/FEAScript/) -->
88

9-
[FEAScript](https://feascript.com/) is a lightweight finite element simulation library written in JavaScript. It empowers users to create and execute simulations for physics and engineering applications in both browser-based and server-side environments. This is the core library of the FEAScript project.
9+
[FEAScript](https://feascript.com/) is a lightweight finite element simulation library written in JavaScript. It empowers users to perform simulations for physics and engineering applications in both browser-based and server-side environments. This is the core library of the FEAScript project.
1010

1111
> 🚧 **FEAScript is currently under heavy development.** Its functionality and interfaces may change rapidly as new features and enhancements are introduced.
1212

dist/feascript.cjs.js

Lines changed: 2 additions & 2 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 & 2 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 & 2 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/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<img src="https://feascript.github.io/FEAScript-website/assets/FEAScriptFrontPropagation.png" width="80" alt="FEAScript Logo">
1+
<img src="https://feascript.github.io/FEAScript-website/assets/FEAScriptFrontPropagation.png" width="80" alt="FEAScript Front Propagation Logo">
22

3-
## Solidification Front Propagation in a Two-Dimensional Domain
3+
## Solidification Front Propagation in a 2D Domain
44

5-
This example demonstrates solving an eikonal equation in a two-dimensional domain using the FEAScript library. The problem represents a typical solidification front propagation scenario, where the objective is to track the movement of an interface, such as in metal cooling or crystal growth processes.
5+
This example demonstrates solving an eikonal equation in a 2D domain using the FEAScript library. The problem represents a typical solidification front propagation scenario, where the objective is to track the movement of an interface, such as in metal cooling or crystal growth processes.
66

77
### Instructions
88

@@ -26,4 +26,4 @@ This example requires the `feascript` npm package and its peer dependencies (`ma
2626
node SolidificationFront2D.js
2727
```
2828

29-
**Note:** For detailed information on the model setup, boundary conditions, and simulation results, refer to the comments in the JavaScript files and the corresponding standard [tutorial](https://feascript.com/tutorials/SolidificationFront2D.html).
29+
**Note:** For detailed information on the model setup, boundary conditions, and simulation results, refer to the comments in the JavaScript files and the corresponding [tutorial](https://feascript.com/tutorials/SolidificationFront2D.html).

examples/frontPropagationScript/SolidificationFront2D/solidificationFront2D.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ model.addBoundaryCondition("3", ["constantValue", 0]); // Right
4242
// Set solver method (optional)
4343
model.setSolverMethod("lusolve");
4444

45-
// Solve the problem and get the solution
45+
// Solve the problem
4646
const { solutionVector, nodesCoordinates } = model.solve();
4747

48-
// Print results to console
48+
// Print results
4949
console.log(`Number of nodes in mesh: ${nodesCoordinates.nodesXCoordinates.length}`);
5050
console.log("Node coordinates:", nodesCoordinates);
5151
console.log("Solution vector:", solutionVector);

0 commit comments

Comments
 (0)