Test Assembly

To test assembly mechanism.

class test_assembly.TestAssembly1D

Test assembly given 1d mesh.

test_false__global_stiffness_shape__given_1d_mesh()

AIM: To test the shape of global stiffness matrix.

EXPECTED RESULT : False, given comparison with N_ELEM x N_ELEM

test_true__connectivity_matrix_shape__given_1d_mesh()

Connectivity matrix is later used to allot element contributions in desired positions. It is vital to be correct. AIM: To test the shape of connectivity matrix.

EXPECTED RESULT : True, given it is number of elements x 2.

test_true__global_load_shape__given_1d_mesh()

AIM: To test the shape of global load vector.

EXPECTED RESULT : True, given comparison with N_NODES x 1

test_true__global_stiffness_shape__given_1d_mesh()

AIM: To test the shape of global stiffness matrix.

EXPECTED RESULT : True, given it is N_NODES x N_NODES

class test_assembly.TestAssembly2D
test_false__global_stiffness_shape__given_2d_mesh()

AIM: To test the shape of global stiffness matrix.

EXPECTED RESULT : False, given comparison with N_ELEM x N_ELEM

test_true__connectivity_matrix_shape__given_2d_mesh()

AIM: To test the shape of connectivity matrix.

EXPECTED RESULT : True, given comparison with N_ELEM x 4

test_true__global_load_shape__given_2d_mesh()

AIM: To test the shape of global load vector.

EXPECTED RESULT : True, given comparison with N_NODES x 1

test_true__global_stiffness_shape__given_2d_mesh()

AIM: To test the shape of global stiffness matrix.

EXPECTED RESULT : True, given comparison with N_NODES x N_NODES