Output configuration
KitAMR.jl outputs the field as .jld2 and .pvtu files for post-processing.
KitAMR.Output — Type
mutable struct OutputStructure of output information.
Fields
vtk_celltype::Union{Type{<:KitAMR.AbstractVTKCellType}, Vector}: VTK cell type in physical space. Available options:PixelandTrianglefor 2D;VoxelandTetrafor 3D. Default isTrianglefor 2D andTetrafor 3D. AVectorof cell types (e.g.[Triangle, Pixel]) may also be given; in that case a separate output (pvtu for the flow field, and its own animation collection) is written for every cell type, with the cell-type name appended to the corresponding file name.vs_vtk_celltype::Type{Tv} where Tv<:KitAMR.AbstractVTKCellType: VTK cell type in velocity space. Available options:Pixelfor 2D.anim_dt::Float64: Time interval between animation frames.0(default) disables animation output, makingcheck_for_animsave!a no-op.vs_output_criterion::Function: Optional callback selecting which physical cells write their (per-cell) velocity-space distribution. Two call conventions, one per output path:- Final result (
save_result):vs_output_criterion(ps_data, ka) -> Bool— returntrueto include this cell's velocity space. Default (unset): include every cell. - Animation frames (
check_for_animsave!):vs_output_criterion(; ps_data, ka) -> (id::Int, flag::Bool)—flagselects the cell andidnames its output file. Default (unset): write no per-cell velocity space.
See the User-defined functions page.
- Final result (
anim_index::Int64: Index of the last saved animation frame.
Supported vtk cell types are
KitAMR.Pixel — Type
abstract type Pixel <: KitAMR.AbstractVTKCellTypeKitAMR.Voxel — Type
abstract type Voxel <: KitAMR.AbstractVTKCellTypeKitAMR.Triangle — Type
abstract type Triangle <: KitAMR.AbstractVTKCellTypeKitAMR.Tetra — Type
abstract type Tetra <: KitAMR.AbstractVTKCellTypeNote that the vertices in .pvtu file are redundant. To obtain contour of the field, a cleaning process in post-process software is required. For example, using Paraview, one needs to execute Clean to Grid before contour.
Triangle and Tetra are chosen for smoother field visualization, but will not improve the accuracy of the solution. The variables on their vertices are linearly reconstructed.