openPMD.jl
openPMD.AbstractOpenPMDType
— TypeAbstractOpenPMDType = Union{...}
openPMD.OpenPMDType
— TypeOpenPMDType = Union{...}
openPMD.Access
— Type@enum Access begin
ACCESS_READ_ONLY
ACCESS_READ_WRITE
ACCESS_CREATE
end
openPMD.Allocation
— Type@enum Allocation begin
ALLOCATION_USER
ALLOCATION_API
ALLOCATION_AUTO
end
openPMD.Attributable
— Typeabstract type Attributable end
openPMD.BaseRecordComponent
— Typeabstract type BaseRecordComponent <: Attributable end
openPMD.ChunkInfo
— Typestruct ChunkInfo{D}
offset::NTuple{D,Int}
extent::NTuple{D,Int}
end
openPMD.DataOrder
— Type@enum DataOrder begin
DATAORDER_C
DATAORDER_F
end
openPMD.Dataset
— Typemutable struct Dataset
...
end
Dataset(::Type{<:OpenPMDType}, extent::Extent, options::AbstractString="{}")
Dataset(extent::Extent)
Datasets only describe a dataset, they do not hold any data. Datasets are value objects that can be copied.
openPMD.Datatype
— Type@enum Datatype begin
CHAR => CxxChar
UCHAR => CxxUChar
SHORT => CxxShort
INT => CxxInt
LONG => CxxLong,
LONGLONG => CxxLongLong
USHORT => CxxUShort
UINT => CxxUInt
ULONG => CxxULong,
ULONGLONG => CxxULongLong
FLOAT => CxxFloat
DOUBLE => CxxDouble,
CFLOAT => Complex{CxxFloat}
CDOUBLE => Complex{CxxDouble}
STRING => String,
VEC_CHAR => Vector{CxxChar}
VEC_UCHAR => Vector{CxxUChar}
VEC_SHORT => Vector{CxxShort},
VEC_INT => Vector{CxxInt}
VEC_LONG => Vector{CxxLong}
VEC_LONGLONG => Vector{CxxLongLong},
VEC_USHORT => Vector{CxxUShort}
VEC_UINT => Vector{CxxUInt}
VEC_ULONG => Vector{CxxULong},
VEC_ULONGLONG => Vector{CxxULongLong}
VEC_FLOAT => Vector{CxxFloat},
VEC_DOUBLE => Vector{CxxDouble}
VEC_CFLOAT => Vector{Complex{CxxFloat}},
VEC_CDOUBLE => Vector{Complex{CxxDouble}}
VEC_STRING => Vector{String}
BOOL => CxxBool,
ARR_DBL_7 => SVector{7,CxxDouble})
end
openPMD.Extent
— Typeconst Extent = NTuple{D,Int}
Extent describes the size (shape) of a dataset. See Offset
.
openPMD.Format
— Type@enum Format begin
FORMAT_HDF5
FORMAT_ADIOS2_BP
FORMAT_ADIOS2_BP4
FORMAT_ADIOS2_BP5
FORMAT_ADIOS2_SST
FORMAT_ADIOS2_SSC
FORMAT_JSON
FORMAT_DUMMY
end
openPMD.Geometry
— Type@enum Geometry begin
GEOMETRY_cartesian
GEOMETRY_theta_mode
GEOMETRY_cylindrical
GEOMETRY_spherical
GEOMETRY_other
end
openPMD.Iteration
— Typestruct Iteration <: Attributable
...
end
openPMD.Iterations
— Typestruct Iterations # <: AbstractDict{Int,Iteration}
...
end
openPMD.Mesh
— Typestruct Mesh <: Attributable
...
end
openPMD.MeshRecordComponent
— Typemutable struct MeshRecordComponent <: RecordComponent
...
end
This holds (a pointer to) a C++ MeshRecordComponent.
openPMD.Meshes
— Typestruct Meshes # <: AbstractDict{AbstractString,Mesh}
...
end
openPMD.Offset
— Typeconst Offset = NTuple{D,Int}
Offset describes the location of a dataset in the containing mesh's index space. See Extent
.
openPMD.RecordComponent
— Typeabstract type RecordComponent <: BaseRecordComponent end
openPMD.Series
— Typemutable struct Series <: Attributable
...
end
Series()
Series(filepath::AbstractString, access::Access, comm::MPI.Comm, options::AbstractString="{}")
Series(filepath::AbstractString, access::Access, options::AbstractString="{}")
openPMD.UnitDimension
— Type@enum UnitDimension begin
UNITDIMENSION_L # length
UNITDIMENSION_M # mass
UNITDIMENSION_T # time
UNITDIMENSION_I # electric current
UNITDIMENSION_θ # thermodynamic temperature
UNITDIMENSION_N # amount of substance
UNITDIMENSION_J # luminous intensity
end
openPMD.WriteIterations
— Typemutable struct WriteIterations ... end
Base.Libc.time
— Methodtime(iter::Iteration)::CxxDouble
Base.close
— Methodclose(iter::Iteration; flush::Bool=true)
Base.count
— Methodcount(iters::Iterations, n::Integer)::Int
Base.count
— Methodcount(mesh::Mesh, name::AbstractString)::Int
Base.count
— Methodcount(meshes::Meshes, name::AbstractString)::Int
Base.delete!
— Methoddelete!(iters::Iterations, n::Integer)
Base.delete!
— Methoddelete!(mesh::Mesh, name::AbstractString)
Base.delete!
— Methoddelete!(meshes::Meshes, name::AbstractString)
Base.eltype
— Methodeltype(comp::BaseRecordComponent)::Type
Base.eltype
— Methodeltype(::Type{Iterations})::Type
eltype(::Iterations)::Type
Base.eltype
— Methodeltype(::Type{Meshes})::Type
eltype(::Meshes)::Type
Base.eltype
— Methodeltype(::Type{Mesh})::Type
eltype(::Mesh)::Type
Base.eltype
— Methodeltype(dset::Dataset)
Base.empty!
— Methodempty!(iters::Iterations)
Base.empty!
— Methodempty!(meshes::Meshes)
Base.empty!
— Methodempty!(mesh::Mesh)
Base.flush
— Functionflush(series::Series, backendConfig::AbstractString="{}")::Nothing
Base.getindex
— Functiongetindex(iters::WriteIterations, key)::Iteration
iters[key]::Iteration
This function inserts a new Iteration
into the WriteIterations
object if they key does not yet exist. This is the proper way to create a new Iteration
.
There is no corresponding setindex!
method since Iteration
objects cannot exist independent of a Series
.
Base.getindex
— Methodgetindex(iters::Iterations, n::Integer)::IterationsRecordComponent
iters[n]
Base.getindex
— Methodgetindex(mesh::Mesh, name::AbstractString)::MeshRecordComponent
mesh[name]
Base.getindex
— Methodgetindex(meshes::Meshes, name::AbstractString)::MeshesRecordComponent
meshes[name]
Base.in
— Methodin(name::AbstractString, meshes::Meshes)::Bool
name in mesh
Base.in
— Methodin(name::AbstractString, mesh::Mesh)::Bool
name in mesh
Base.in
— Methodin(n::Integer, iters::Iterations)::Bool
n in iters
Base.isempty
— Methodisempty(iters::Iterations)
Base.isempty
— Methodisempty(meshes::Meshes)
Base.isempty
— Methodisempty(mesh::Mesh)
Base.isempty
— Methodisempty(comp::RecordComponent)::Bool
Base.isopen
— Methodisopen(iter::Iteration)::Bool
Base.isvalid
— Methodisvalid(series::Series)::Bool
Base.keys
— Methodkeys(iters::Iterations)::AbstractVector{Int}
Base.keys
— Methodkeys(meshes::Meshes)::AbstractVector{<:AbstractString}
Base.keys
— Methodkeys(mesh::Mesh)::AbstractVector{<:AbstractString}
Base.keytype
— Methodkeytype(::Type{Iterations})::Type
keytype(::Iterations)::Type
Base.keytype
— Methodkeytype(::Type{Meshes})::Type
keytype(::Meshes)::Type
Base.keytype
— Methodkeytype(::Type{Mesh})::Type
keytype(::Mesh)::Type
Base.length
— Methodlength(iters::Iterations)
Base.length
— Methodlength(meshes::Meshes)
Base.length
— Methodlength(mesh::Mesh)
Base.ndims
— Methodndims(comp::RecordComponent)
Base.ndims
— Methodndims(dset::Dataset)
Base.position
— Methodposition(comp::MeshRecordComponent)::NTuple{D,CxxDouble}
Base.setindex!
— Methodsetindex!(iters::Iterations, iter::Iteration, n::Integer)
iters[n] = iter
Base.setindex!
— Methodsetindex!(mesh::Mesh, comp::MeshRecordComponent, name::AbstractString)
mesh[name] = comp
Base.setindex!
— Methodsetindex!(meshes::Meshes, comp::MeshesRecordComponent, name::AbstractString)
meshes[name] = mesh
Base.size
— Methodsize(comp::RecordComponent)
Base.size
— Methodsize(dset::Dataset)
openPMD.SCALAR
— MethodSCALAR()::AbstractString
openPMD.attributes
— Methodattributes(attr::Attributable)::AbstractVector{<:AbstractString}
openPMD.author
— Methodauthor(series::Series)::AbstractString
openPMD.available_chunks
— Methodavailable_chunks(comp::BaseRecordComponent)::Vector{ChunkInfo{D}}
openPMD.axis_labels
— Methodaxis_labels(mesh::Mesh)::AbstractVector{<:AbstractString}
openPMD.backend
— Methodbackend(series::Series)::AbstractString
openPMD.base_path
— Methodbase_path(series::Series)::AbstractString
openPMD.basic_datatype
— Methodbasic_datatype(::Type)::Type
openPMD.closed
— Methodclosed(iter::Iteration)::Bool
openPMD.comment
— Methodcomment(attr::Attributable)::AbstractString
openPMD.contains_attribute
— Methodcontains_attribute(attr::Attributable, key::AbstractString)::Bool
openPMD.data_order
— Methoddata_order(mesh::Mesh)::DataOrder
openPMD.datatype_to_string
— Methoddatatype_to_string(::Type)::AbstractString
openPMD.date
— Methoddate(series::Series)::AbstractString
openPMD.delete_attribute!
— Methoddelete_attribute!(attr::Attributable, key::AbstractString)
openPMD.determine_datatype
— Methoddetermine_datatype(::Type)::Datatype
openPMD.determine_format
— Functiondetermine_format(filename::AbstractString)::Format
openPMD.dt
— Methoddt(iter::Iteration)::CxxDouble
openPMD.extend!
— Methodextend!(dset::Dataset, newextent::Extent)
openPMD.geometry
— Methodgeometry(mesh::Mesh)::Geometry
openPMD.geometry_parameters
— Methodgeometry_parameters(mesh::Mesh)::AbstractString
openPMD.get_attribute
— Methodget_attribute(attr::Attributable, key::AbstractString)::OpenPMDType
openPMD.get_file_extensions
— Functionget_file_extensions()::AbstractVector{<:AbstractString}
openPMD.get_standard
— Functionget_standard()::AbstractString
openPMD.get_standard_minimum
— Functionget_standard_minimum()::AbstractString
openPMD.get_variants
— Methodget_variants()::Dict{String,Bool}
openPMD.get_version
— Functionget_version()::AbstractString
openPMD.grid_global_offset
— Methodgrid_global_offset(mesh::Mesh)::AbstractVector{CxxDouble}
openPMD.grid_spacing
— Methodgrid_spacing(mesh::Mesh)::AbstractVector{CxxDouble}
openPMD.grid_unit_SI
— Methodgrid_unit_SI(mesh::Mesh)::CxxDouble
openPMD.is_complex_floating_point
— Methodis_complex_floating_point(::Type)::Bool
openPMD.is_floating_point
— Methodis_floating_point(::Type)::Bool
openPMD.is_integer
— Methodis_integer(::Type)::Tuple{Bool,Bool}
Whether the type is an integer (first tuple element), and if so, whether it is signed (second tuple element).
openPMD.is_same
— Methodis_same(::Type, ::Type)::Bool
openPMD.is_vector
— Methodis_vector(::Type)::Bool
openPMD.isconstant
— Methodisconstant(comp::BaseRecordComponent)::Bool
openPMD.isscalar
— Methodisscalar(mesh::Mesh)::Bool
openPMD.iteration_format
— Methoditeration_format(series::Series)::AbstractString
openPMD.iterations
— Method iterations(series::Series)::Iterations
openPMD.load_chunk
— FunctionTODO: update
data = load_chunk(comp::RecordComponent, offset::Offset, extent::Extent)
openPMD.machine
— Methodmachine(series::Series)::AbstractString
openPMD.make_constant
— Functionmake_constant(comp::RecordComponent, value::OpenMPType)
openPMD.make_empty
— Methodmake_empty(T::Type, comp::RecordComponent, ndims::Int)
openPMD.meshes
— Method meshes(iter::Iteration)::Meshes
openPMD.meshes_path
— Methodmeshes_path(series::Series)::AbstractString
openPMD.name
— Methodname(series::Series)::AbstractString
openPMD.num_attributes
— Methodnum_attributes(attr::Attributable)::Int
openPMD.openPMD_extension
— MethodopenPMD_extension(series::Series)::UInt32
openPMD.openPMD_version
— MethodopenPMD_version(series::Series)::AbstractString
openPMD.openpmd_datatypes
— Methodopenpmd_datatypes()::AbstractVector{Datatype}
openPMD.options
— Functionoptions(dset::Dataset)::AbstractString
openPMD.particles_path
— Methodparticles_path(series::Series)::AbstractString
openPMD.reset_dataset!
— Methodreset_dataset!(comp::RecordComponent, dset::Dataset)
openPMD.reset_datatype!
— Methodreset_datatype!(comp::BaseRecordComponent, T::Type)
openPMD.series_flush
— Methodseries_flush(attr::Attributable)
openPMD.set_attribute!
— Methodset_attribute!(attr::Attributable, key::AbstractString, value::OpenPMDType)
openPMD.set_author!
— Methodset_author!(series::Series, author::AbstractString)
openPMD.set_axis_labels!
— Methodset_axis_labels!(mesh::Mesh, labels::AbstractVector{<:AbstractString})
openPMD.set_base_path!
— Methodset_base_path!(series::Series, path::AbstractString)
openPMD.set_comment!
— Methodset_comment!(attr::Attributable, comment::AbstractString)
openPMD.set_data_order!
— Methodset_data_order!(mesh::Mesh, order::DataOrder)
openPMD.set_date!
— Methodset_date!(series::Series, date::AbstractString)
openPMD.set_dt!
— Methodset_dt!(iter::Iteration, dt::CxxDouble)
openPMD.set_geometry!
— Methodset_geometry!(mesh::Mesh, geom::Geometry)
openPMD.set_geometry_parameters!
— Methodset_geometry_parameters!(mesh::Mesh, params::AbstractString)
openPMD.set_grid_global_offset!
— Methodset_grid_global_offset!(mesh::Mesh, offset::AbstractVector{CxxDouble})
openPMD.set_grid_spacing!
— Methodset_grid_spacing!(mesh::Mesh, spacing::AbstractVector{CxxDouble})
openPMD.set_grid_unit_SI!
— Methodset_grid_unit_SI!(mesh::Mesh, unit::CxxDouble)
openPMD.set_iteration_format!
— Methodset_iteration_format!(series::Series, format::AbstractString)
openPMD.set_machine!
— Methodset_machine!(series::Series, machine::AbstractString)
openPMD.set_meshes_path!
— Methodset_meshes_path!(series::Series, path::AbstractString)
openPMD.set_name!
— Methodset_name!(series::Series, name::AbstractString)
openPMD.set_openPMD_extension!
— Methodset_openPMD_extension!(series::Series, extension::AbstractString)
openPMD.set_openPMD_version!
— Methodset_openPMD_version!(series::Series, version::AbstractString)
openPMD.set_particles_path!
— Methodset_particles_path!(series::Series, path::AbstractString)
openPMD.set_position!
— Methodset_position!(comp::MeshRecordComponent, newpos::Union{NTuple{D,CxxDouble}, AbstractVector{CxxDouble}})
openPMD.set_software!
— Functionset_software!(series::Series, software::AbstractString, version::AbstractString="unspecified")
openPMD.set_software_dependencies!
— Methodset_software_dependencies!(series::Series, dependencies::AbstractString)
openPMD.set_time!
— Methodset_time!(iter::Iteration, time::CxxDouble)
openPMD.set_time_offset!
— Methodset_time_offset!(mesh::Mesh, unit::CxxDouble)
openPMD.set_time_unit_SI!
— Methodset_time_unit_SI!(iter::Iteration, time_unit_SI::CxxDouble)
openPMD.set_unit_SI!
— Methodset_unit_SI!(comp::RecordComponent, unit::CxxDouble)
openPMD.set_unit_dimension!
— Methodset_unit_dimension!(mesh::Mesh, unit_dim::Dict{UnitDimension,<:AbstractFloat})
openPMD.software
— Methodsoftware(series::Series)::AbstractString
openPMD.software_dependencies
— Methodsoftware_dependencies(series::Series)::AbstractString
openPMD.software_version
— Methodsoftware_version(series::Series)::AbstractString
openPMD.store_chunk
— FunctionTODO: update
store_chunk(comp::RecordComponent, data::AbstractArray, offset::Offset, extent::Extent)
openPMD.string_to_datatype
— Methodstring_to_datatype(str::AbstractString)::OpenPMDType
openPMD.suffix
— Functionsuffix(format::Format)::AbstractString
openPMD.time_offset
— Methodtime_offset(mesh::Mesh)::CxxDouble
openPMD.time_unit_SI
— Methodtime_unit_SI(iter::Iteration)::CxxDouble
openPMD.to_bits
— Methodto_bits(::Type)::Int
openPMD.to_bytes
— Methodto_bytes(::Type)::Int
openPMD.to_vector_type
— Methodto_vector_type(::Type)::Type
openPMD.unit_SI
— Methodunit_SI(comp::BaseRecordComponent)::CxxDouble
openPMD.unit_dimension
— Methodunit_dimension(mesh::Mesh)::SVector{7,Double}
openPMD.warn_wrong_dtype
— Methodwarn_wrong_dtype(key::AbstractString, ::Type{Store}, ::Type{Request}) where {Store,Request}