Download 02.py from TestCaseGeneration/NumFEM_Eval: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/02.py
- Command line
-
hf download hf://datasets/TestCaseGeneration/NumFEM_Eval/02.py
-
curl -L -o 02.py https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/02.py
189 Bytes
| def plane_stress_isotropic(e, nu): | |
| from numpy import array | |
| d = array([[1.0, nu, 0.0],[nu, 1.0, 0.0],[0.0, 0.0, (1.0 - nu)/ 2.0]]) * e / (1.0 - nu * nu) | |
| return d |