coffee.diffop.sbp package

Submodules

coffee.diffop.sbp.dissipation module

A module that contains dissipation operators for SBP operators.

class coffee.diffop.sbp.dissipation.Diss(*args, **kwds)[source]

Bases: object

The parent class for SBP dissipation operators.

name = 'Dissipation'
class coffee.diffop.sbp.dissipation.Diss21_DDST(*args, **kwds)[source]

Bases: DissDiag

A dissipation operator.

Taken from Diener, Dorband, Schnetter and Tiglio. Due to consistence conditions on SBP dissipation operators and the derivative operators this dissipation operator can only be used with the D21 operator from the same paper. Note that D21 is unique so the operator sbp.D21_CNG is the correct operator.

class coffee.diffop.sbp.dissipation.Diss42_DDST(*args, **kwds)[source]

Bases: DissDiag

A dissipation operator.

Taken from Diener, Dorband, Schnetter and Tiglio. Due to consistency conditions on SBP dissipation operators and the derivative operators this disspation operator can only be used with the sbp.D42 operator which is from the same paper.

class coffee.diffop.sbp.dissipation.Diss43_DDST(bdy_percent)[source]

Bases: DissRestFull

A dissipation operator.

Compatibility considerations require that this disspation operator only used with sbp.D43_Tiglioetal.

B(i, dx, size)[source]

Returns an element of the matrix B which ensures numerical stability.

Parameters:
  • i (int) – The row and column, of the diagonal matrix, to return

  • dx (float) – The step size

  • size (int) – Length of the data

class coffee.diffop.sbp.dissipation.DissDiag[source]

Bases: Diss

A class that represents dissipation operators that are diagonal.

name = 'Dissipation Diagonal Norm'
class coffee.diffop.sbp.dissipation.DissRestFull(p)[source]

Bases: Diss

A class that represents dissipation operators for restricted full norms.

name = 'Dissipation Restricted Full Norm'

coffee.diffop.sbp.sbp module

Module contents