Skip to content

ympr_to_lame

Converts from youngs modulus and poisson ratio to lame parameters.

ympr_to_lame(ym, pr)

Converts from youngs modulus and poisson ratio to lame parameters.

Parameters:

Name Type Description Default
ym float or float numpy array

Youngs modulus

required
pr float or float numpy array

Poisson ratio

required

Returns:

Name Type Description
mu float or float numpy array

First lame parameter

lam float or float numpy array

Second lame parameter

Source code in src\fast_cody\ympr_to_lame.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
def ympr_to_lame(ym, pr):
    """
    Converts from youngs modulus and poisson ratio to lame parameters.

    Parameters
    ----------
    ym : float or float numpy array
        Youngs modulus
    pr : float or float numpy array
        Poisson ratio

    Returns
    -------
    mu : float or float numpy array
        First lame parameter
    lam : float or float numpy array
        Second lame parameter
    """
    mu = ym / (2*(1 + pr))
    lam = ym * pr / ((1 + pr)*(1 - 2*pr))
    return mu, lam