aivika-transformers-5.8: Transformers for the Aivika simulation library

CopyrightCopyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Simulation.Aivika.Trans.Specs

Contents

Description

Tested with: GHC 8.0.1

It defines the simulation specs and functions for this data type.

Synopsis

Simulation Specs

data Specs m Source #

It defines the simulation specs.

Constructors

Specs 

Fields

data Method Source #

It defines the integration method.

Constructors

Euler

Euler's method

RungeKutta2

the 2nd order Runge-Kutta method

RungeKutta4

the 4th order Runge-Kutta method

RungeKutta4b

the 4th order Runge-Kutta 3/8-method

Instances
Eq Method Source # 
Instance details

Defined in Simulation.Aivika.Trans.Internal.Types

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Ord Method Source # 
Instance details

Defined in Simulation.Aivika.Trans.Internal.Types

Show Method Source # 
Instance details

Defined in Simulation.Aivika.Trans.Internal.Types

Auxiliary Functions

basicTime :: Specs m -> Int -> Int -> Double Source #

Returns a simulation time for the integration point specified by the specs, iteration and phase.

integIterationBnds :: Specs m -> (Int, Int) Source #

Returns the first and last integration iterations.

integIterationHiBnd :: Specs m -> Int Source #

Returns the last integration iteration.

integIterationLoBnd :: Specs m -> Int Source #

Returns the first integration iteration, i.e. zero.

integPhaseBnds :: Specs m -> (Int, Int) Source #

Returns the first and last integration phases.

integPhaseHiBnd :: Specs m -> Int Source #

Returns the last integration phase, 0 for Euler's method, 1 for RK2 and 3 for RK4.

integPhaseLoBnd :: Specs m -> Int Source #

Returns the first integration phase, i.e. zero.

integTimes :: Specs m -> [Double] Source #

Return the integration time values.

timeGrid :: Specs m -> Int -> [(Int, Double)] Source #

Return the indexed time values in the grid by specified size.