Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isotropic class constructor accept others pairs than Young Modulus and Poissons Ratio #18

Open
carlos-adir opened this issue Feb 14, 2024 · 1 comment
Labels
easy fix Issue that is easily fixed enhancement New feature or request

Comments

@carlos-adir
Copy link
Contributor

A Isotropic instance can have the attributes:

  • E Young Modulus
  • ν Poissons Ratio
  • λ Lamé's first parameter
  • μ Lamé's second parameter
  • G Shear Modulus
  • K Bulk Modulus
  • M P-Wave Modulus

In fact, to construct an object, it's only needed two values from these, as shown in Lamé Parameters

Currently, the constructor accepts only the pair (young_modulus, poissons_ratio).
It would be nice to add the other combinations.

@carlos-adir carlos-adir added enhancement New feature or request good first issue Good for newcomers labels Feb 14, 2024
carlos-adir added a commit that referenced this issue Feb 14, 2024
Restrict Isotropic's constructor to accept only the pair
(young_modulus, poissons_ratio). Other combinations are still valid,
like shown in #18
@carlos-adir
Copy link
Contributor Author

It's possible by solving the non-linear equations:

$$\lambda + 2G - M = 0$$

$$3\lambda + 2G - 3K = 0$$

$$\lambda \left(E-3G\right)+ G\left(E-2G\right) = 0$$

$$\lambda \left(1-2\nu\right)-2\nu G = 0$$

carlos-adir added a commit that referenced this issue Feb 22, 2024
restrict Isotropic constructor to accept only the pair (young_modulus, poissons_ratio), as mentioned in #18
@carlos-adir carlos-adir added easy fix Issue that is easily fixed and removed good first issue Good for newcomers labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy fix Issue that is easily fixed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant