GeometricSolutions

Documentation for GeometricSolutions.

GeometricSolutions.EnsembleSolutionType

EnsembleSolution: Collection of solutions for an ensemble of geometric differential equations

Contains all fields necessary to store the solutions of an EnsembleProblem, which represents multiple instances of a geometric differential equation with different initial conditions and/or parameters. Each solution in the ensemble is stored as a GeometricSolution.

Fields

  • t: common time series shared across all solutions in the ensemble
  • s: vector of GeometricSolution objects, one for each problem instance
  • problem: the original EnsembleProblem

Type Parameters

  • dType: data type for solution values (e.g., Float64)
  • tType: data type for time values (e.g., Float64)
  • sType: type of the solution vector
  • probType: type of the ensemble problem

Constructor

EnsembleSolution(problem::EnsembleProblem, step::Int = 1)

Creates an EnsembleSolution from an EnsembleProblem. The optional parameter step determines the intervals for storing each solution, i.e., if step > 1 only every step'th solution point is stored for each ensemble member.

Usage

An EnsembleSolution can be iterated over to access individual solutions:

for sol in ensemble_solution
    # sol is a GeometricSolution
    process_solution(sol)
end

Individual solutions can be accessed by index:

first_solution = ensemble_solution[1]
last_solution = ensemble_solution[end]

The number of solutions in the ensemble:

n_solutions = nsamples(ensemble_solution)

Convert all solutions to arrays for analysis:

solution_arrays = arrays(ensemble_solution)

See Also

source
GeometricSolutions.GeometricSolutionType

GeometricSolution: Solution of a geometric differential equation

Contains all fields necessary to store the solution of a GeometricProblem.

Fields

  • t: time steps
  • s: NamedTuple of DataSeries for each solution component
  • step: store every step'th time step (default: 1)
  • nstore: number of time steps to store
  • offset: offset of current time step

Constructors

GeometricSolution(problem, step = 1)

The usual way to initialise a Solution is by passing a GeometricEquations.EquationProblem, which can for example be an GeometricEquations.ODEProblem or GeometricEquations.PODEProblem. The optional parameter step determines the intervals for storing the solution, i.e., if step > 1 only every step'th solution is actually stored.

source