Boundary Conditions

Applies essential boundary conditions.

  • 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 BoundaryConditions that applies essential boundary conditions to the assembled global matrices before solving.

class boundaryConditions.BoundaryConditions(mesh: Mesh, assembly: Assembly, steady_state: bool)

Bases: object

Class to apply essential boundary conditions and obtain resultant reduced matrices.

Parameters:
  • mesh (parser.Mesh) – Mesh object consisting of all information parsed from mesh file.

  • assembly (assembly.Assembly) – Object that handles assembled matrices.

  • steady_state (Boolean) – Steady state flag.

boundaryNodeArray

Values are boolean arrays, describes which node globally is on the boundary under consideration.

Type:

collections.defaultdict

apply_essential_condition(global_T: array) array

Applies essential boundary condition to an existing temperature array.

compute_boundary_nodes(boundaryTags: list) None

Computes boundaryNodeArray based on given boundaryTags

Parameters:

boundaryTags (list) – List of entities upon which essential boundary conditions are to be applied.

compute_reduced_arrays() None

Computes reduced arrays to set mod_global_K, mod_global_C, mod_global_F.

property mod_global_C: array

Reduced global capcaitance matrix.

property mod_global_F: array

Reduced global load array.

property mod_global_K: array

Reduced global stiffness array.

reduce_array(arr: array) array

Reduces a vector according to the essential boundary conditions.

reduce_matrix(mat: array) array

Reduces a matrix according to the essential boundary conditions specified.