Test Shape Functions¶
To test shape functions.
- class test_shape_functions.TestShapeFunctionDerivatives¶
- test__1d_shape_function_derivative__given_unit_values()¶
AIM: To test whether correct shape functions are being used for a given mesh. Checks with two different coordinates.
EXPECTED: True; for a 1D mesh, 2 polynomials are used. For any coordinate, the expected values are known, i.e. they must be [-0.5, 0.5]
- test__2d_shape_function_derivative__given_unit_values()¶
AIM: To test whether correct shape functions are being used for a given mesh.
EXPECTED: True; for a 2D mesh, 4 polynomials are used. For example, at xi1 = 1 and xi2 = 0, the expected values are known, i.e. they must be ([-0.25, 0.25, 0.25, -0.25], [0, -0.5, 0.5, 0])
- class test_shape_functions.TestShapeFunctions¶
To test shape functions.
- test__1d_shape_function_values__given_unit_values()¶
AIM: To test whether correct shape functions are being used for a given mesh.
EXPECTED: True; for a 1D mesh, 2 polynomials are used. For a given coordinate, the expected values are known. For example, for xi = 1, the shape function values should be [0, 1]
- test__2d_shape_function_values__given_unit_values()¶
AIM: To test whether correct shape functions are being used for a given mesh.
EXPECTED: True; for a 2D mesh, 4 polynomials are used. For a given coordinate, the expected values are known. For example, for xi1 = 1, xi2 = 0, the shape function values should be [0, 0.5, 0.5, 0]
- test__dim_shape_function__given_1d_mesh()¶
AIM: To test whether correct shape functions are being used for a given mesh.
EXPECTED: True, for a 1D mesh, 2 polynomials are used.
- test__dim_shape_function__given_2d_mesh()¶
AIM: To test whether correct shape functions are being used for a given mesh.
EXPECTED: True, for a 2D mesh, 4 polynomials are used.