dirichlet

Class which is used to implement dirichlet boundaries

dirichlet

Bases: boundaries

Class implementing dirichlet boundary conditions.

__init__(domain, lambdas)

Constructor for class

Parameters:
  • domain (domain) –

    Domain for boundary to act on.

  • lambdas (list) –

    List of boundary functions as lambda functions, each function in full time and spatial dimension, e.g, a 1+2 equation would have [lambda t, x1, x2: function].

get_lambdas()

Returns:
  • list

    Boundary lambda functions

boundaryPoints(n_bc)

Samples boundary of domain, and computes boundary functions to generate boundary data.

Parameters:
  • n_bc (int) –

    Number of boundary conditions to use.

Returns:
  • tensor

    Boundary points.