Structure
Radiant.Volume_Source
— TypeVolume_Source
Structure used to define an isotropic volume source and its properties.
Mandatory field(s)
name::String
: name (or identifier) of the Volume_Source structure.particle::Particle
: type of particle emitted.energy_group::Int64
: energy group index in which the particle are emitted.boundaries::Vector{Float64}
: boundaries of the source along each axis [in cm].
Optional field(s) - with default values
intensity::Float64=1.0
: intensity [# particles/cmᴺ, where N is the geometry dimension].
Methods
Radiant.set_particle
— Methodset_particle(this::Volume_Source,particle::String)
To define the source particle.
Input Argument(s)
this::Volume_Source
: volume source.particle::Particle
: particle.
Output Argument(s)
N/A
Examples
julia> vs = Volume_Source()
julia> vs.set_particle(electron)
Radiant.set_intensity
— Methodset_intensity(this::Volume_Source,intensity::Real)
To define the intensity of the source.
Input Argument(s)
this::Volume_Source
: volume source.intensity::Float64
: intensity [# particles/cmᴺ, where N is the geometry dimension]
Output Argument(s)
N/A
Examples
julia> vs = Volume_Source()
julia> vs.set_intensity(100)
Radiant.set_energy_group
— Methodset_energy_group(this::Volume_Source,energy_group::Int64)
To define the energy of the source by setting the energy group in which they are produced.
Input Argument(s)
this::Volume_Source
: volume source.energy_group::Int64
: energy group index.
Output Argument(s)
N/A
Examples
julia> vs = Volume_Source()
julia> vs.set_energy_group(1)
Radiant.set_boundaries
— Methodset_boundaries(this::Volume_Source,axis::String,boundaries::Vector{Float64})
To define the boundaries of the source along the specified axis.
Input Argument(s)
this::Volume_Source
: volume source.axis::String
: axis along which the boundaries are defined.boundaries::Vector{Float64}
: boundaries of the source in accending order [in cm]
Output Argument(s)
N/A
Examples
julia> vs = Volume_Source()
julia> vs.set_boundaries("x",[1.0,3.0])