Assembly¶
Assembles the global matrices.
This file is a part of the coursework module Personal Programming Project (PPP) in M.Sc. Computational Materials Science, Technische Universität Bergakademie Freiberg.
This file is a part of the project Modeling of radiative heat-exchange using finite element method
This file consists of Assembly class that assembles the global
matrices to be used by the Solver class.
- class assembly.Assembly(mesh: Mesh)¶
Bases:
objectClass to assemble element contributions.
- Parameters:
mesh (
parser.Mesh) – Mesh object consisting of all information parsed from mesh file.
- assemble() None¶
Method to assemble the element contributions.
- assemble_load(i: int, load_vector: array) None¶
Method that assembles global load vector.
- Parameters:
i (int) – Index of the element under consideration.
load_vector (NumPy array) – Element contribution of the load.
- assemble_stiffness(i: int, stiffness: array) None¶
Method that assembles global stiffness matrix.
- Parameters:
i (int) – Index of the element in consideration.
stiffness (NumPy array) – Element stiffness.
- assemble_stiffness_capacitance(i: int, stiffness: array, capacitance: array) None¶
Method that assembles global stiffness matrix and global capacitance matrix.
- Parameters:
i (int) – Index of the element in consideration.
stiffness (NumPy array) – Element stiffness.
capacitance (NumPy array) – Element capacitance.
- compute_indices() None¶
Method to compute the connectivity indices of the elements.
- property connectivity_matrix: array¶
Connectivity matrix stacks the connectivities of the elements vertically.
- Return type:
NumPy array
- property global_C: array¶
Global capacitance matrix.
- Return type:
NumPy array
- property global_F: array¶
Global load contribution.
- Return type:
NumPy array
- property global_K: array¶
Global stiffness matrix.
- Return type:
NumPy array