Data
All of the data in KitAMR.jl are organized as follows:
KitAMR.KInfo — Type
mutable struct KInfo{DIM, NDF}Structure of required information during a simulation.
KitAMR.KData — Type
mutable struct KData{DIM, NDF}Structure of computed data.
field::Fieldghost::Ghost
KitAMR.Forest — Type
mutable struct Forest{DIM}Structure related to p4est.
p4est::Union{Ptr{KitAMR.P4est.LibP4est.p4est}, Ptr{KitAMR.P4est.LibP4est.p8est}}ghost::Union{Ptr{KitAMR.P4est.LibP4est.p4est_ghost_t}, Ptr{KitAMR.P4est.LibP4est.p8est_ghost_t}}mesh::Union{Ptr{KitAMR.P4est.LibP4est.p4est_mesh_t}, Ptr{KitAMR.P4est.LibP4est.p8est_mesh_t}}
KitAMR.Status — Type
mutable struct StatusStructure of simulation status. It contains the real time information, and is updated every step.
Fields
max_vs_num::Int64: Maximum number of the velocity grids among ghost quadrants.gradmax::Vector{Float64}: Maximum absolute value of the gradients of conserved variables.wmax::Vector{Float64}: Maximum value of conserved variables.wmin::Vector{Float64}: Minimum value of conserved variables.Δt::Float64: Time step size used initerate!.Δt_ξ::Float64: Time step size constraint by grid size.sim_time::Float64: Dimensionless simulation time.step::Int64: Number of steps that have been marched.ps_adapt_step::Int64: Number of steps after last AMR in physical space.vs_adapt_step::Int64: Number of steps after last AMR in velocity space.partition_step::Int64: Number of steps after last partition.residual::Residual: Residual of conserved variables defined byResidual.save_flag::Base.RefValue{Bool}: Flag indicating whether to save.
KitAMR.Residual — Type
mutable struct Residualresidual::Vector{Float64}: Residual of primary variables, is updated byresidual_check!.sumRes::Vector{Float64}: Summation of residuals.sumAvg::Vector{Float64}: Summation of primary variables to averagesumRes.redundant_step::Int64: Count of redundant step to insure the convergence.
KitAMR.Ghost — Type
mutable struct GhostStructure of ghost layer for communication between processors.
ghost_pointers::GhostPointersghost_wrap::Vector{KitAMR.AbstractGhostPsData}
KitAMR.GhostPointers — Type
mutable struct GhostPointersStructure of ghost data and pointers used by p4est.
ghost_datas::Ptr{Float64}ghost_slopes::Ptr{Float64}ghost_structures::Ptr{Float64}mirror_data_pointers::Vector{Ptr{Float64}}mirror_slope_pointers::Vector{Ptr{Float64}}mirror_structure_pointers::Vector{Ptr{Float64}}
KitAMR.Field — Type
mutable struct Field{DIM, NDF}Structure of fields data.
trees::PsTrees: Cells data defined byPsTrees.faces::Vector{AbstractFace}: Mapping between faces and cells. The element type is defined byAbstractFace.
KitAMR.PsTrees — Type
mutable struct PsTrees{DIM, NDF}Structure of cells data managed by Julia.
data::Array{Array{AbstractPsData{DIM, NDF}, 1}, 1} where {DIM, NDF}offset::Int64: Offset of treeid used in partition.