MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / create_isotropic

Method create_isotropic

python/pymesh/material.py:7–18  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

5class 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):

Callers 7

__init__Method · 0.45
test_equivalenceMethod · 0.45
set_profileMethod · 0.45

Calls 1

MaterialClass · 0.70

Tested by 4

test_equivalenceMethod · 0.36