pihnn.graphics.get_triangulation#

pihnn.graphics.get_triangulation(boundary, n_points_interior=1000, n_points_boundary=500)#

Create a 2D mesh/triangulation from the definition of geometry. Useful for pihnn.graphics.plot_sol().

Parameters:
  • boundary (pihnn.geometries.boundary) – Domain boundary, needed to extract boundary points and evaluate if a point is interior.

  • n_points_interior (int) – Number of grid points in the interior of the domain.

  • n_points_exterior (int) – Number of grid points on the boundary of the domain.

Returns:

tria (matplotlib.tri.Triangulation) - Domain triangulation/mesh.