Skip to content

Commit 3663d28

Browse files
committed
add explicit inputs / output validation schemes
1 parent 5b806b6 commit 3663d28

File tree

11 files changed

+482
-8
lines changed

11 files changed

+482
-8
lines changed

examples/ansys/Readme.md

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,34 @@ This directory contains an example Tesseract configuration and scripts demonstra
44

55
## Get Started
66

7+
### PL internal instructions:
8+
9+
- Our open ports are: 443 and 50052.
10+
- Make sure to be connected to the PL VPN.
11+
12+
### Prerequisites
13+
14+
For the windows machine:
15+
1. ANSYS installed and an active license.
16+
2. Python and a python environment (e.g., conda, venv).
17+
3. Two open ports.
18+
19+
For the linux machine:
20+
1. Docker installed and running.
21+
2. Python and a python environment (e.g., conda, venv).
22+
723
### SpaceClaim Tesseract
824

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:
25+
Create a new python env. Assuming you using windows powerhsell, install the required dependencies:
1026

1127
```bash
1228
pip install tesseract-core[runtime]
1329
```
1430

15-
Clone this repository, navigate to the `examples/ansys/spaceclaim` directory and start the Tesseract runtime server with:
31+
Clone this repository, navigate to the `examples/ansys/spaceclaim_tess` directory and start the Tesseract runtime server with:
1632

1733
```bash
18-
tesseract-runtime serve
34+
tesseract-runtime serve --port <port_number_1>
1935
```
2036
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:
2137

@@ -48,6 +64,33 @@ Invoke-RestMethod -Uri "http://127.0.0.1:8000/apply" -Method Post -Body (
4864
) -ContentType "application/json"
4965
```
5066

51-
### PyMAPDL Tesseract
67+
### PyMAPDL Server
68+
69+
On a windows machine, make sure ansys is installed. Then run the following powershell command to start ansys with grpc server enabled:
70+
71+
```powershell
72+
Start-Process -FilePath "F:\ANSYS Inc\v242\ansys\bin\winx64\ANSYS242.exe" -ArgumentList "-grpc", "-port", "<port_number_2>"
73+
```
74+
75+
replace "v242" with your ansys version.
76+
77+
### Build tesseracts
78+
79+
1. Obtain the ip adress of the windows machine by running:
80+
81+
```powershell
82+
(Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "Wi-Fi","Ethernet" | Where-Object {$_.IPAddress -notlike "169.254.*" -and $_.IPAddress -ne $null}).IPAddress
83+
```
84+
2. On the linux machine, create a new python env and install tesseract-core with:
85+
86+
```bash
87+
pip install tesseract-core[runtime]
88+
```
89+
90+
3. Build all relevant tesseracts:
5291

53-
On
92+
```bash
93+
tesseract build fem_tess
94+
tesseract build pymapdl_tess
95+
tesseract build meshing_tess
96+
```

0 commit comments

Comments
 (0)