vel_contraction_derivation_class Module

Houses derivation that takes a general contraction in velocity space of a distribution function harmonic



Interfaces

interface

  • private module function calculateContracDeriv(this, inputArray, indices) result(output)

    Arguments

    Type IntentOptional Attributes Name
    class(VelContracDerivation), intent(inout) :: this
    type(RealArray), intent(in), dimension(:) :: inputArray
    integer(kind=ik), intent(in), dimension(:) :: indices

    Return Value real(kind=rk), allocatable, dimension(:)

interface

  • private module subroutine initContracDeriv(this, h, g, refVSpace, expH)

    Initialize velocity contraction derivation object

    Arguments

    Type IntentOptional Attributes Name
    class(VelContracDerivation), intent(inout) :: this
    integer(kind=ik), intent(in) :: h

    Harmonic to contract with

    real(kind=rk), intent(in), dimension(:) :: g

    Velocity space vector

    type(VSpace), intent(in) :: refVSpace

    Reference velocity space

    integer(kind=ik), intent(in), optional :: expH

    Expected number of harmonics (defaults to total number of harmonics)


Derived Types

type, public, extends(Derivation) ::  VelContracDerivation

Derivation that calculates the contraction of velocity vector g with h'th harmonic of single passed distribution variable

Components

Type Visibility Attributes Name Initial
logical, public :: userDefined = .false.

True only if user explicitly sets it to true

integer(kind=ik), private :: h

Harmonic to contract with

real(kind=rk), private, allocatable, dimension(:) :: g

Velocity space vector

integer(kind=ik), private :: numH

Local copy of number of harmonics

Type-Bound Procedures

procedure, public :: isDefined => isDefinedObject
procedure, public :: makeDefined => makeDefinedObject
procedure, public :: makeUndefined => makeUndefinedObject
procedure, public :: init => initContracDeriv
procedure, public :: calculate => calculateContracDeriv