fastvpinns.Geometry.geometry module

This module, geometry.py, contains the Geometry Abstract class which defines functions to read mesh from Gmsh and generate internal mesh for 2D and 3D geometries.

Author: Thivin Anandh D

Date: 03/May/2024

class fastvpinns.Geometry.geometry.Geometry(mesh_type, mesh_generation_method)[source]

Bases: object

Abstract class which defines functions to read mesh from Gmsh and internal mesh for 2D problems.

Parameters:
  • mesh_type (str) – The type of mesh to be used.

  • mesh_generation_method (str) – The method used to generate the mesh.

abstract generate_vtk_for_test()[source]

Generates a VTK from Mesh file (External) or using gmsh (for Internal).

Returns:

None

abstract get_test_points()[source]

This function is used to extract the test points from the given mesh

Parameters: None

Returns: test_points (numpy.ndarray): The test points for the given domain

abstract read_mesh(mesh_file: str, boundary_point_refinement_level: int, bd_sampling_method: str, refinement_level: int)[source]

Abstract method to read mesh from Gmsh.

Parameters:
  • mesh_file (str) – The path to the mesh file.

  • boundary_point_refinement_level (int) – The refinement level of the boundary points.

  • bd_sampling_method (str) – The method used to sample the boundary points.

  • refinement_level (int) – The refinement level of the mesh.