fastvpinns.FE.fe2d_setup_main module

This module fe2d_setup_main.py will be used to setup the FE2D and quadrature rule for a given cell based on the given mesh and the degree of the basis functions.

Author: Thivin Anandh D

Date: 30/Aug/2023

class fastvpinns.FE.fe2d_setup_main.FE2DSetupMain(cell_type: str, fe_order: int, fe_type: str, quad_order: int, quad_type: str)[source]

Bases: object

This class is used to setup the FE2D and quadrature rule for a given cell based on the given mesh and the degree of the basis functions.

assign_basis_function() BasisFunction2D[source]

Assigns the basis function based on the cell type and the fe_order.

Returns:

An instance of the BasisFunction2D class representing the assigned basis function.

Return type:

BasisFunction2D

Raises:

ValueError – If the fe_order is invalid.

assign_fe_transformation(fe_transformation_type, cell_coordinates) FETransforamtion2D[source]

Assigns the FE transformation based on the cell type.

Parameters:
  • fe_transformation_type (str) – The type of FE transformation.

  • cell_coordinates (list) – The coordinates of the cell.

Returns:

The FE transformation object.

Return type:

FETransforamtion2D

Raises:

ValueError – If the cell type or FE transformation type is invalid.

assign_quadrature_rules()[source]

Assigns the quadrature rule based on the quad_order.

Returns:

A tuple containing the weights, xi, and eta values of the quadrature rule.

Return type:

tuple

Raises:

ValueError – If the quad_order is invalid or the cell_type is invalid.