mods.strain_transformation
Module Contents
Functions
|
Calculates the average strain and returns the value. |
|
Applies a strain transformation to the given strains and returns the transformed strain value. |
|
Applies a transformation to the given shear strain and returns the transformed shear strain value. |
|
Calculates the principal strains and returns the values in a tuple. |
|
Calculates the principal directions and returns the values in a tuple. |
|
Calculates the maximum in-plane shear strain and returns the value. |
|
Calculates the angle of the maximum in-plane shear strain and returns the value. |
|
Calculates the center and radius of the Mohr's circle and returns the values in a tuple. |
|
Plots the Mohr's circle and returns the plot. |
|
Calculates the center and radius of the transformed Mohr's circle and returns the values in a tuple. |
|
Plots the Mohr's circle and a point representing the transformed strain state and returns the plot. |
- mods.strain_transformation.average_strain(epsilon_x, epsilon_y)[source]
Calculates the average strain and returns the value.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
- Returns:
Average strain value
- Return type:
float
- mods.strain_transformation.normal_strain_transform(epsilon_x, epsilon_y, gamma_xy, theta)[source]
Applies a strain transformation to the given strains and returns the transformed strain value.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
theta (float) – Angle of rotation in degrees
- Returns:
Transformed strain value in the x’-direction and y’-direction
- Return type:
tuple
- mods.strain_transformation.shear_strain_transform(epsilon_x, epsilon_y, gamma_xy, theta)[source]
Applies a transformation to the given shear strain and returns the transformed shear strain value.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
theta (float) – Angle of rotation in degrees
- Returns:
Transformed shear strain value in the x’y’-plane
- Return type:
float
- mods.strain_transformation.principal_strain(epsilon_x, epsilon_y, gamma_xy)[source]
Calculates the principal strains and returns the values in a tuple.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Principal strain values in the x’-direction and y’-direction
- Return type:
tuple
- mods.strain_transformation.principal_strain_angle(epsilon_x, epsilon_y, gamma_xy)[source]
Calculates the principal directions and returns the values in a tuple.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Principal direction values in degrees
- Return type:
tuple
- mods.strain_transformation.maximum_in_plane_shear_strain(epsilon_x, epsilon_y, gamma_xy)[source]
Calculates the maximum in-plane shear strain and returns the value.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Maximum in-plane shear strain value
- Return type:
float
- mods.strain_transformation.maximum_in_plane_shear_strain_angle(epsilon_x, epsilon_y, gamma_xy)[source]
Calculates the angle of the maximum in-plane shear strain and returns the value.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Angle of the maximum in-plane shear strain value in degrees
- Return type:
float
- mods.strain_transformation.mohrs_circle(epsilon_x, epsilon_y, gamma_xy)[source]
Calculates the center and radius of the Mohr’s circle and returns the values in a tuple.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Center and radius of the Mohr’s circle
- Return type:
tuple
- mods.strain_transformation.mohrs_circle_plot(epsilon_x, epsilon_y, gamma_xy)[source]
Plots the Mohr’s circle and returns the plot.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
- Returns:
Plot of the Mohr’s circle
- Return type:
matplotlib.pyplot.plot
- mods.strain_transformation.mohrs_circle_strain(epsilon_x, epsilon_y, gamma_xy, theta)[source]
Calculates the center and radius of the transformed Mohr’s circle and returns the values in a tuple.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
theta (float) – Angle of rotation in degrees
- Returns:
Center and radius of the transformed Mohr’s circle
- Return type:
tuple
- mods.strain_transformation.mohrs_circle_strain_plot(epsilon_x, epsilon_y, gamma_xy, theta)[source]
Plots the Mohr’s circle and a point representing the transformed strain state and returns the plot.
- Parameters:
epsilon_x (float) – Strain value in the x-direction
epsilon_y (float) – Strain value in the y-direction
gamma_xy (float) – Shear strain value in the xy-plane
theta (float) – Plane inclination angle in degrees
- Returns:
Plot of the Mohr’s circle and transformed strain state
- Return type:
matplotlib.pyplot.plot