Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var Catalog = make(map[string](func() TimeSteppingModel))
Functions ¶
func InitialiseOutputs ¶
func InitialiseOutputs(model TimeSteppingModel, nTimeSteps int, nCells int) data.ND3Float64
Types ¶
type Hotstartable ¶
type ModelDescription ¶
type ModelDescription struct { Parameters []ParameterDescription States []string Inputs []string Outputs []string Dimensions []string }
type ParameterDescription ¶
type ParameterDescription struct { Name string Default float64 Description string Range [2]float64 RangeOpen [2]bool Units string Dimensions []string }
func DescribeParameter ¶
func DescribeParameters ¶
func DescribeParameters(names []string) []ParameterDescription
func NewParameter ¶
func NewParameter(name string) ParameterDescription
type RunResults ¶
type RunResults struct { Outputs data.ND3Float64 States data.ND2Float64 }
type Series ¶
type Series data.ND1Float64
type TimeSteppingModel ¶
type TimeSteppingModel interface { Description() ModelDescription InitialiseDimensions(dims []int) FindDimensions(params data.ND2Float64) []int ApplyParameters(params data.ND2Float64) InitialiseStates(n int) data.ND2Float64 Run(inputs data.ND3Float64, states data.ND2Float64, outputs data.ND3Float64) }
Click to show internal directories.
Click to hide internal directories.