Data

All of the data in KitAMR.jl are organized as follows:

KitAMR.KAType
mutable struct KA{DIM, NDF}

Structure that collects all of the data.

  • kinfo::KInfo

  • kdata::KData

source
KitAMR.KInfoType
mutable struct KInfo{DIM, NDF}

Structure of required information during a simulation.

  • config::Configure: Defined by Configure.

  • forest::Forest: Defined by Forest.

  • status::Status: Defined by Status.

source
KitAMR.KDataType
mutable struct KData{DIM, NDF}

Structure of computed data.

  • field::Field

  • ghost::Ghost

source
KitAMR.ForestType
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}}

source
KitAMR.StatusType
mutable struct Status

Structure 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 in iterate!.

  • Δ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 by Residual.

  • save_flag::Base.RefValue{Bool}: Flag indicating whether to save.

source
KitAMR.ResidualType
mutable struct Residual
  • residual::Vector{Float64}: Residual of primary variables, is updated by residual_check!.

  • sumRes::Vector{Float64}: Summation of residuals.

  • sumAvg::Vector{Float64}: Summation of primary variables to average sumRes.

  • redundant_step::Int64: Count of redundant step to insure the convergence.

source
KitAMR.GhostType
mutable struct Ghost

Structure of ghost layer for communication between processors.

  • ghost_pointers::GhostPointers

  • ghost_wrap::Vector{KitAMR.AbstractGhostPsData}

source
KitAMR.GhostPointersType
mutable struct GhostPointers

Structure 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}}

source
KitAMR.FieldType
mutable struct Field{DIM, NDF}

Structure of fields data.

  • trees::PsTrees: Cells data defined by PsTrees.

  • faces::Vector{AbstractFace}: Mapping between faces and cells. The element type is defined by AbstractFace.

source
KitAMR.PsTreesType
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.

source