Options
All
  • Public
  • Public/Protected
  • All
Menu

$ D_{-} $ matricial representation

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

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns DMinus

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