cf_c
- This module is a C-extension and provides a fast implementation for the computation of:
the deformation gradient
the first Piola-Kirchhoff stress tensor
the configurational stresses
the configurational forces
Examples
>>> import numpy
>>> element_type = "CPE4R"
>>> method = "mbf"
>>> X_at_nodes = numpy.array([
... [0., 0.],
... [2., 0.],
... [2., 2.],
... [0., 2.],
... ])
>>> F_expected = numpy.array([
... [1.1, 0.0],
... [0.0, 0.9],
... ])
>>> U_at_nodes = X_at_nodes @ (F_expected - np.eye(2))
>>> S_at_int_points = numpy.array([[
... [200., 0.],
... [0., 0.]
... ]])
>>> e_at_int_points = numpy.array([20.])
The deformation gradient for the first (and only) element is evaluated at the first integration point in the element.
>>> element_id = 0
>>> int_point_id = 0
>>> compute_F(
... [X_at_nodes],
... [U_at_nodes],
... element_type
... )[element_id, int_point_id]
array([[1.1, 0. ],
[0. , 0.9]])
The first Piola-Kirchhoff stress tensor is computed at the same position as the deformation gradient.
>>> compute_P(
... [X_at_nodes],
... [U_at_nodes],
... [S_at_int_points],
... element_type
... )[element_id, int_point_id]
array([[180., 0.],
[ 0., 0.]])
The configuration stresses are computed using the motion based formulation “mbf” method
(see conforce_gen.expressions.eval_CS_mbf()).
>>> compute_CS(
... [e_at_int_points],
... [X_at_nodes],
... [U_at_nodes],
... [S_at_int_points],
... element_type,
... method
... )[element_id, int_point_id]
array([[-178., -0.],
[ -0., 20.]])
The configuration forces are evaluated at the nodes of each element.
>>> compute_CF(
... [e_at_int_points],
... [X_at_nodes],
... [U_at_nodes],
... [S_at_int_points],
... element_type,
... method
... )[element_id]
array([[ 178., -20.],
[-178., -20.],
[-178., 20.],
[ 178., 20.]])
Functions
|
Compute the configurational forces for num_elem elements of the given element type. |
Compute the configurational forces for num_elem elements of typ C3D10. |
|
Compute the configurational forces for num_elem elements of typ C3D10. |
|
Compute the configurational forces for num_elem elements of typ C3D15. |
|
Compute the configurational forces for num_elem elements of typ C3D15. |
|
Compute the configurational forces for num_elem elements of typ C3D20R. |
|
Compute the configurational forces for num_elem elements of typ C3D20R. |
|
Compute the configurational forces for num_elem elements of typ C3D20. |
|
Compute the configurational forces for num_elem elements of typ C3D20. |
|
Compute the configurational forces for num_elem elements of typ C3D4. |
|
Compute the configurational forces for num_elem elements of typ C3D4. |
|
Compute the configurational forces for num_elem elements of typ C3D6. |
|
Compute the configurational forces for num_elem elements of typ C3D6. |
|
Compute the configurational forces for num_elem elements of typ C3D8R. |
|
Compute the configurational forces for num_elem elements of typ C3D8R. |
|
Compute the configurational forces for num_elem elements of typ C3D8. |
|
Compute the configurational forces for num_elem elements of typ C3D8. |
|
Compute the configurational forces for num_elem elements of typ CPE3. |
|
Compute the configurational forces for num_elem elements of typ CPE3. |
|
Compute the configurational forces for num_elem elements of typ CPE4R. |
|
Compute the configurational forces for num_elem elements of typ CPE4R. |
|
Compute the configurational forces for num_elem elements of typ CPE4. |
|
Compute the configurational forces for num_elem elements of typ CPE4. |
|
Compute the configurational forces for num_elem elements of typ CPE6. |
|
Compute the configurational forces for num_elem elements of typ CPE6. |
|
Compute the configurational forces for num_elem elements of typ CPE8R. |
|
Compute the configurational forces for num_elem elements of typ CPE8R. |
|
Compute the configurational forces for num_elem elements of typ CPE8. |
|
Compute the configurational forces for num_elem elements of typ CPE8. |
|
|
Compute the configurational stresses for num_elem elements of the given element type. |
Compute the configurational stresses for num_elem elements of typ C3D10. |
|
Compute the configurational stresses for num_elem elements of typ C3D10. |
|
Compute the configurational stresses for num_elem elements of typ C3D15. |
|
Compute the configurational stresses for num_elem elements of typ C3D15. |
|
Compute the configurational stresses for num_elem elements of typ C3D20R. |
|
Compute the configurational stresses for num_elem elements of typ C3D20R. |
|
Compute the configurational stresses for num_elem elements of typ C3D20. |
|
Compute the configurational stresses for num_elem elements of typ C3D20. |
|
Compute the configurational stresses for num_elem elements of typ C3D4. |
|
Compute the configurational stresses for num_elem elements of typ C3D4. |
|
Compute the configurational stresses for num_elem elements of typ C3D6. |
|
Compute the configurational stresses for num_elem elements of typ C3D6. |
|
Compute the configurational stresses for num_elem elements of typ C3D8R. |
|
Compute the configurational stresses for num_elem elements of typ C3D8R. |
|
Compute the configurational stresses for num_elem elements of typ C3D8. |
|
Compute the configurational stresses for num_elem elements of typ C3D8. |
|
Compute the configurational stresses for num_elem elements of typ CPE3. |
|
Compute the configurational stresses for num_elem elements of typ CPE3. |
|
Compute the configurational stresses for num_elem elements of typ CPE4R. |
|
Compute the configurational stresses for num_elem elements of typ CPE4R. |
|
Compute the configurational stresses for num_elem elements of typ CPE4. |
|
Compute the configurational stresses for num_elem elements of typ CPE4. |
|
Compute the configurational stresses for num_elem elements of typ CPE6. |
|
Compute the configurational stresses for num_elem elements of typ CPE6. |
|
Compute the configurational stresses for num_elem elements of typ CPE8R. |
|
Compute the configurational stresses for num_elem elements of typ CPE8R. |
|
Compute the configurational stresses for num_elem elements of typ CPE8. |
|
Compute the configurational stresses for num_elem elements of typ CPE8. |
|
|
Compute the deformation gradients for num_elem elements of the given element type. |
|
Compute the deformation gradients for num_elem elements of typ C3D10. |
|
Compute the deformation gradients for num_elem elements of typ C3D15. |
|
Compute the deformation gradients for num_elem elements of typ C3D20. |
|
Compute the deformation gradients for num_elem elements of typ C3D20R. |
|
Compute the deformation gradients for num_elem elements of typ C3D4. |
|
Compute the deformation gradients for num_elem elements of typ C3D6. |
|
Compute the deformation gradients for num_elem elements of typ C3D8. |
|
Compute the deformation gradients for num_elem elements of typ C3D8R. |
|
Compute the deformation gradients for num_elem elements of typ CPE3. |
|
Compute the deformation gradients for num_elem elements of typ CPE4. |
|
Compute the deformation gradients for num_elem elements of typ CPE4R. |
|
Compute the deformation gradients for num_elem elements of typ CPE6. |
|
Compute the deformation gradients for num_elem elements of typ CPE8. |
|
Compute the deformation gradients for num_elem elements of typ CPE8R. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of the given element type. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D10. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D15. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D20. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D20R. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D4. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D6. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D8. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ C3D8R. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE3. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE4. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE4R. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE6. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE8. |
|
Compute the first Piola-Kirchhoff stress tensors for num_elem elements of typ CPE8R. |
Classes
|
Create new instance of ElementInfo(number_of_dimensions, number_of_nodes, number_of_integration_points) |
Attributes
mapping of element type name to |
|
mapping of element type name to the function that computes the deformation gradient |
|
mapping of element type name to the function that computes the first Piola-Kirchhoff stresses |
|
mapping of element type name and method to the function that computes the configurational stresses |
|
mapping of element type name and method to the function that computes the configurational forces |