Test Entities

To test foundational entities.

class test_entities.TestElement

To test the element entity.

test__connectivity__given_1d_mesh()

AIM: To test whether the nodal connectivity of the element is as expected.

EXPECTED: True, given GMsh’s numbering scheme, the tag of the node between two nodes in a 3-node geometry is 3. Hence, testing with such a mesh should return the connectivity as [1,3] for the first element.

test__element_type__given_1d_mesh()

AIM: To test whether the element type returned from the entity is true to the value.

EXPECTED: True, as the last element on the mesh must match with the type of element expected from a problem of given dimensions. This type tag is derived from GMsh documentation.

test__element_type__given_2d_mesh()

AIM: To test whether the element type returned from the entity is true to the value.

EXPECTED: True, as the last element on the mesh must match with the type of element expected from a problem of given dimensions. This type tag is derived from GMsh documentation.