initials

Class which implements initial conditions for equations with time components

initials

Class implementing initial conditions.

__init__(domain, lambdas)

Constructor for class

Parameters:
  • domain (domain) –

    Domain for boundary to act on.

  • lambdas (list) –

    List of initial functions as lambda functions, each function in full spatial dimensions, e.g, a 1+2 equation would have [lambda x1, x2: function].

get_domain()

Returns:
  • domain

    Domain for boundary

get_lambdas()

Returns:
  • list

    Initial lambda functions

get_init_block_size()

Returns:
  • int

    Block size of each initial component

get_orders()

Returns:
  • list

    Orders of t in each equation sampled

set_init_block_size(block_size)

Parameters:
  • block_size (int) –

    Block size of each initial component

sampleInitials(n_iv)

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

Parameters:
  • n_iv (int) –

    Number of initial condition points to use.

Returns:
  • tensor

    Initial points.