Options
All
  • Public
  • Public/Protected
  • All
Menu

$ D_{+}D_{-} $ matricial representation

The differential operator $ D_{+}D_{-} $ discretizes the second derivative with the second-order formula $$ \frac{\partial^2 u_{i}}{\partial x^2} \approx \frac{u_{i+1}-2u_{i}+u_{i-1}}{h^2} = D_{+}D_{-} u_{i} $$

test the correctness of the returned values is tested by checking them against numerical calculations.

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns DPlusDMinus

Properties

_diagonal

_diagonal: Real[]

_lowerDiagonal

_lowerDiagonal: Real[]

_n

_n: Size

_temp

_temp: Real[]

_timeSetter

_timeSetter: TimeSetter

_upperDiagonal

_upperDiagonal: Real[]

Methods

SOR

  • solve linear system with SOR approach

    Parameters

    Returns Real[]

applyTo

  • apply operator to a given array

    Parameters

    Returns Real[]

diagonal

  • diagonal(): Real[]

init1

init2

isTimeDependent

  • isTimeDependent(): boolean

lowerDiagonal

  • lowerDiagonal(): Real[]

setFirstRow

  • setFirstRow(valB: Real, valC: Real): void

setLastRow

  • setLastRow(valA: Real, valB: Real): void

setMidRow

setMidRows

setTime

  • setTime(t: Time): void

size

solveFor1

  • solve linear system for a given right-hand side

    Parameters

    Returns Real[]

solveFor2

  • solveFor2(rhs: Real[], result: Real[]): void
  • solve linear system for a given right-hand side without result Array allocation. The rhs and result parameters can be the same Array, in which case rhs will be changed

    Parameters

    Returns void

upperDiagonal

  • upperDiagonal(): Real[]

Static add

Static identity

Static mulScalar

Static sub