Create an isotropic material. Args: dim: Dimension of the ambient space (must be 2 or 3). density: Material density. young: Young's modulus. poisson: Poisson's ratio (must be in (-1, 0.5) in 3D and (-1, 1) in 2D).
(cls, dim, density, young, poisson)
| 5 | class Material: |
| 6 | @classmethod |
| 7 | def create_isotropic(cls, dim, density, young, poisson): |
| 8 | """ Create an isotropic material. |
| 9 | |
| 10 | Args: |
| 11 | dim: Dimension of the ambient space (must be 2 or 3). |
| 12 | density: Material density. |
| 13 | young: Young's modulus. |
| 14 | poisson: Poisson's ratio |
| 15 | (must be in (-1, 0.5) in 3D and (-1, 1) in 2D). |
| 16 | """ |
| 17 | return Material(PyMesh.Material.create_isotropic( |
| 18 | dim, density, young, poisson)) |
| 19 | |
| 20 | @classmethod |
| 21 | def create_orthotropic(cls, density, young, poisson, shear): |