# PLaSK User Manual

#### Page Contents

- Rectangular2D.BoundaryConditions Class
  - `Rectangular2D.BoundaryConditions`
  - Subclasses
  - Methods
  - Descriptions
    - Method Details
      - `Rectangular2D.BoundaryConditions.append()`
      - `Rectangular2D.BoundaryConditions.clear()`
      - `Rectangular2D.BoundaryConditions.insert()`
      - `Rectangular2D.BoundaryConditions.prepend()`
      - `Rectangular2D.BoundaryConditions.read_from_xpl()`

# Rectangular2D.BoundaryConditions Class

class Rectangular2D.BoundaryConditions

  Set of boundary conditions.

## Subclasses

`BoundaryCondition` |

## Methods

`append`(place, value) | Append new boundary condition to the list.
`clear`() | Clear all boundary conditions.
`insert`(index, place, value) | Insert new boundary condition to the list at specified position.
`prepend`(place, value) | Prepend new boundary condition to the list.
`read_from_xpl`(xml, manager) | Read boundary conditions from active XPL reader.

## Descriptions

### Method Details

Rectangular2D.BoundaryConditions.append(place, value)

  Append new boundary condition to the list.

Rectangular2D.BoundaryConditions.clear()

  Clear all boundary conditions.

Rectangular2D.BoundaryConditions.insert(index, place, value)

  Insert new boundary condition to the list at specified position.

Rectangular2D.BoundaryConditions.prepend(place, value)

  Prepend new boundary condition to the list.

Rectangular2D.BoundaryConditions.read_from_xpl(xml, manager)

  Read boundary conditions from active XPL reader.

  This should only be used in the overloaded `plask.Solver.load_xpl()` method.