Solving

Time-stepping

ImmersedBodies.solve!Function
solve!([f], solver::AbstractSolver; t, save=SaveNothing(), log=true)

Solve for the state up to time t, calling the function f(state, i, n) at each timestep i from 1:n. save is a SolutionSaver that determins how to write the solution.

source

Input/Output

ImmersedBodies.TimestepRangeType
TimestepRange(; start, step, [length]) :: Timesteps

Specifies every stepth timestep starting at start. If specified, only include length timesteps.

source
ImmersedBodies.SolutionValuesType
SolutionValues(times::Timesteps, vals)
SolutionValues(times::Timesteps, vals...)

Specifies to save certain values at each time in times. vals is a collection of name => value mapping a name string to a SolutionValue.

source
ImmersedBodies.MultiDomainValueType
MultiDomainValue(f!, coords::AbstractVector)

A function f!(y, state) that sets a 3D array y with corresponding coordinates coords. array[i,j,level] should be at coordinate (x[i], y[j]) where (x, y) = coords[level].

See also coords.

source
ImmersedBodies.SaveHDF5Type
HDF5Saver(file, paths...; [mode])

Saves to the HDF5 file, filename, or group file. paths is pairs of path => val that specifies to save a representation of val at path in the HDF5 file. If file is a filename, open the file with mode. val can be an instance of:

source