GeometricBase

Documentation for GeometricBase.

Library

GeometricBase.AbstractSolverStateType
AbstractSolverState

The state is used in solvers and optimizers to translate information about previous solver/optimization steps to successive iterations.

source
GeometricBase.AbstractStateVariableType

AbstractStateVariable{T,N,AT} is a wrapper around a AT <: AbstractArray{T,N} that provides context for the nature of the variable, e.g., a state or a vector field.

source
GeometricBase.StateType

Holds the solution of a geometric equation at a single time step.

It stores all the information that is required to uniquely determine the state of a systen, in particular all state variables and their corresponding vector fields.

source
Base.copy!Method
copy!(st::State, sol::NamedTuple)

Copy the values from a NamedTuple sol to the State st.

The keys of sol must be a subset of the keys of the state.

Arguments

  • st: the state to copy into
  • sol: the named tuple containing the solution values to copy
source
Base.getindexMethod
getindex(st::State, args...)

Passes getindex on to the state in State.

source
Base.haskeyMethod
haskey(st::State, s::Symbol)

Checks if s is a valid state variable in the State.

source
Base.keysMethod
keys(st::State)

Return the keys of all the state variables in the State.

source
GeometricBase.HistoryStateMethod
HistoryState(st::State)

Constructs a state whose symbols are decorated by a bar to indicate a previous value of the state.

source
GeometricBase.SolverStateMethod
SolverState(::Union{<:AbstractSolver,<:SolverMethod}, args...; kwargs...)

This method returns a subtype of AbstractSolverState according to the AbstractSolver or SolverMethod that is passed to it. By default, i.e., if no such method is defined for a given solver, it returns NullSolverState.

source
GeometricBase.vectorfieldMethod

The vectorfield function returns a datastructure that stores the vectorfield for an AbstractStateVariable s that holds the state of a system. By default it returns a VectorfieldVariable that wraps zero(parent(s)), i.e., the same kind of array as the state variable, but custom methods can be implemented in order to account for more specific use cases, e.g., when s also contains constant fields that should not be present in the vector field.

source