odeicbc

Class which is used to implement initial or boundary conditions for ode problems

odeicbc

Bases: boundaries

Class implementing ode initial and boundary conditions.

__init__(domain, conditions, flag='ic')

Constructor for class

Parameters:
  • domain (domain) –

    Domain for boundary to act on. Must time NRect with 1 dimension

  • conditions (list) –

    List of initial or boundary values of equations.

  • flag (string, default: 'ic' ) –

    ic or bc to determine what condition is being used. Only ic implemented currently.

get_conditions()

Returns:
  • list

    ic or bc conditions

get_flag()

Returns:
  • string

    flag, ic or bc

get_orders()

Returns:
  • list

    order(s) of equations

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.