GeometricSolutions
Documentation for GeometricSolutions.
GeometricSolutions.EnsembleSolutionGeometricSolutions.GeometricSolutionGeometricSolutions.arraysGeometricSolutions.relative_maximum_error
GeometricSolutions.EnsembleSolution — TypeEnsembleSolution: 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 ensembles: vector ofGeometricSolutionobjects, one for each problem instanceproblem: the originalEnsembleProblem
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 vectorprobType: 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)
endIndividual 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
GeometricSolution: Individual solution typeEnsembleProblem: Ensemble problem typearrays: Convert solutions to arrays for analysisrelative_maximum_error: Compare ensemble solutions
GeometricSolutions.GeometricSolution — TypeGeometricSolution: Solution of a geometric differential equation
Contains all fields necessary to store the solution of a GeometricProblem.
Fields
t: time stepss: NamedTuple of DataSeries for each solution componentstep: store every step'th time step (default: 1)nstore: number of time steps to storeoffset: 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.
GeometricSolutions.arrays — MethodConvert solutions to arrays for analysis
GeometricSolutions.relative_maximum_error — MethodCompute the relative maximum error between two ensemble solutions.