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