Solution objects
VoronoiFVM.AbstractSolutionArray — Typeabstract type AbstractSolutionArray{T, N} <: AbstractArray{T, N}Abstract type for stationary solution. Subtype of AbstractArray.
Dense solution arrays
VoronoiFVM.DenseSolutionArray — Typemutable struct DenseSolutionArray{T, N} <: AbstractSolutionArray{T, N}Dense storage of solution. Subtype of AbstractSolutionArray
Fields:
u::Arrayhistory::Union{Nothing, NewtonSolverHistory}
VoronoiFVM.DenseSolutionArray — MethodDenseSolutionArray constructor.
VoronoiFVM.DenseSolutionArray — MethodDenseSolutionArray(
u::Array{T, 2}
) -> VoronoiFVM.DenseSolutionArray{_A, 2} where _A
DenseSolutionArray constructor.
VoronoiFVM.DenseSolutionArray — MethodDenseSolutionArray constructor.
VoronoiFVM._add — Method_add(U::VoronoiFVM.DenseSolutionArray, idof, val) -> Any
Add residual value into global degree of freedom
(Internal method)
VoronoiFVM._set — Method_set(U::VoronoiFVM.DenseSolutionArray, idof, val) -> Any
Set residual value for global degree of freedom
(Internal method)
VoronoiFVM.dof — Methoddof(a, ispec, K)
Get degree of freedom number
VoronoiFVM.dofs — Methoddofs(a)
Vector of degrees of freedom in solution array.
VoronoiFVM.solutionarray — Methodsolutionarray(a::Matrix)VoronoiFVM.unknown_indices — Methodunknown_indices(a)
Return indices for dense solution array.
Sparse solution arrays
VoronoiFVM.SparseSolutionArray — Typemutable struct SparseSolutionArray{T, N, Ti} <: AbstractSolutionArray{T, N}Struct holding solution information for SparseSystem. Solution is stored in a sparse matrix structure.
This class plays well with the abstract array interface.
Fields:
u::SparseArrays.SparseMatrixCSC{T, Ti} where {T, Ti}: Sparse matrix holding actual data.
history::Union{Nothing, NewtonSolverHistory}
VoronoiFVM.SparseSolutionArray — MethodSparseSolutionArray(
a::SparseArrays.SparseMatrixCSC{Tv, Ti}
) -> VoronoiFVM.SparseSolutionArray{_A, 2} where _A
SparseSolutionArray constructor
VoronoiFVM.SparseSolutionIndices — Typestruct SparseSolutionIndicesWrapper structure to access sparse solution indices.
Base.copy — Methodcopy(this)
Create a copy of sparse solution array
Base.getindex — Methodgetindex(a, ispec, inode)
Accessor for sparse solution array.
Base.setindex! — Methodsetindex!(a, v, ispec, inode)
Accessor for sparse solution array.
Base.similar — Methodsimilar(this)
Create a similar uninitialized sparse solution array
VoronoiFVM._add — Method_add(U::VoronoiFVM.SparseSolutionArray, idof, val) -> Any
Add residual value into global degree of freedom
(internal)
VoronoiFVM._set — Method_set(U::VoronoiFVM.SparseSolutionArray, idof, val) -> Any
Set residual value for global degree of freedom
(internal)
VoronoiFVM.dof — Methoddof(a, i, j)
Get number of degree of freedom. Return 0 if species is not defined in node.
VoronoiFVM.dofs — Methoddofs(a)
Vector of degrees of freedom in sparse solution array.
VoronoiFVM.getdof — Methodgetdof(a, i)
Return value for degree of freedom.
VoronoiFVM.setdof! — Methodsetdof!(a, v, i)
Set value for degree of freedom.
VoronoiFVM.solutionarray — Methodsolutionarray(a::SparseMatrixCSC)VoronoiFVM.unknown_indices — Methodunknown_indices(a)
Return indices for sparse solution array.
Transient solution
VoronoiFVM.AbstractTransientSolution — Typeabstract type AbstractTransientSolution{T, N, A, B} <: AbstractDiffEqArray{T, N, A}Abstract type for transient solution
VoronoiFVM.TransientSolution — Typemutable struct TransientSolution{T, N, A, B} <: VoronoiFVM.AbstractTransientSolution{T, N, A, B}Transient solution structure
Fields
u::Any: Vector of solutions
t::Any: Vector of times
history::Union{VoronoiFVM.DiffEqHistory, TransientSolverHistory}: History
Interface
Object of this type adhere to the AbstractDiffEqArray interface. For indexing and interpolation, see https://diffeq.sciml.ai/stable/basics/solution/.
In particular, a TransientSolution sol can be accessed as follows:
sol[i]contains the solution for timestepisol[ispec,:,i]contains the solution for componentispecat timestepisol(t)returns a (linearly) interpolated solution value fort.sol.t[i]is the corresponding time for timestepisol[ispec,ix,i]refers to solution of componentispecat nodeixat momenti
VoronoiFVM.TransientSolution — MethodTransientSolution(t0,inival;
in_memory=true,
keep_open=true,
fname=tempname(pwd())*".jld2"Constructor of transient solution with initial value and initial time.
in_memory: if true (default), data are kept in main memory, otherwise on disk (via JLD2)keep_open: if true, disk file is not closed during the existence of the objectfname: file name for the disk file
VoronoiFVM.VectorOfDiskArrays — MethodVectorOfDiskArrays(firstobj:AbstractArray;
keep_open=true,
fname= fname=tempname(pwd())*".jld2")Constructor of vector of arrays stored on disk (via JLD2).
keep_open: if true, disk file is not closed during the existence of the objectfname: file name for the disk file
The disk file is automatically removed if the object is garbage collected.
Base.append! — Functionappend!(tsol::AbstractTransientSolution, t, sol)Append time step solution sol as solution at time t to tsol. sol will be directly references in tsol. This method does not copy sol. If during a time steping process it is the same vector, a copy should appended.
Defined in VoronoiFVM.jl.