Skip to content

Commit 5b806b6

Browse files
committed
add deps
1 parent 05153db commit 5b806b6

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

examples/ansys/Readme.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory contains an example Tesseract configuration and scripts demonstra
66

77
### SpaceClaim Tesseract
88

9-
On a windows machine, install [ansys-spaceclaim](https://www.ansys.com/products/3d-design/ansys-spaceclaim) and create a new python env. Install the required dependencies:
9+
On a windows machine, install [ansys-spaceclaim](https://www.ansys.com/products/3d-design/ansys-spaceclaim) and create a new python env. Assuming you using windows powerhsell, install the required dependencies:
1010

1111
```bash
1212
pip install tesseract-core[runtime]
@@ -17,8 +17,36 @@ Clone this repository, navigate to the `examples/ansys/spaceclaim` directory and
1717
```bash
1818
tesseract-runtime serve
1919
```
20-
21-
Note that we dont build a Tesseract image for SpaceClaim in this example. This is because SpaceClaim cannot be installed in a containerized environment.
20+
Note that we dont build a Tesseract image for SpaceClaim in this example. This is because SpaceClaim cannot be installed in a containerized environment. You can test it using:
21+
22+
```powershell
23+
Invoke-RestMethod -Uri "http://127.0.0.1:8000/apply" -Method Post -Body (
24+
@{
25+
inputs = @{
26+
grid_parameters = @{
27+
"__params__.z2" = "200"
28+
"__params__.z3" = "600"
29+
"__params__.s1" = "0"
30+
"__params__.s2" = "1 * (math.pi / 8)"
31+
"__params__.s3" = "2 * (math.pi / 8)"
32+
"__params__.s4" = "3 * (math.pi / 8)"
33+
"__params__.s5" = "4 * (math.pi / 8)"
34+
"__params__.s6" = "5 * (math.pi / 8)"
35+
"__params__.s7" = "6 * (math.pi / 8)"
36+
"__params__.s8" = "7 * (math.pi / 8)"
37+
"__params__.e1" = "(0) + math.pi"
38+
"__params__.e2" = "(1 * (math.pi / 8)) + math.pi"
39+
"__params__.e3" = "(2 * (math.pi / 8)) + math.pi"
40+
"__params__.e4" = "(3 * (math.pi / 8)) + math.pi"
41+
"__params__.e5" = "(4 * (math.pi / 8)) + math.pi"
42+
"__params__.e6" = "(5 * (math.pi / 8)) + math.pi"
43+
"__params__.e7" = "(6 * (math.pi / 8)) + math.pi"
44+
"__params__.e8" = "(7 * (math.pi / 8)) + math.pi"
45+
}
46+
}
47+
} | ConvertTo-Json -Depth 10
48+
) -ContentType "application/json"
49+
```
2250

2351
### PyMAPDL Tesseract
2452

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
ansys-mapdl-core
2+
numpy==1.26.4
3+
pyvista==0.45.2

0 commit comments

Comments
 (0)