Electromagnetic_Field
Structure
Radiant.Electromagnetic_Field — Type
Electromagnetic_FieldStructure used to define an external electromagnetic field, constant over the geometry, that acts on charged particles through the Lorentz force during transport. It is built by the user and attached to a Computation_Unit (like Cross_Sections, Geometry, Solvers and Fixed_Sources).
Only magnetic fields are currently supported (electric-field transport, which redistributes particles in energy, is not yet implemented). Field components are given along the geometry axes (x, y, z); the magnetic field is expressed in tesla.
Mandatory field(s)
- N/A
Optional field(s) - with default values
electric_field::Vector{Float64} = [0.0,0.0,0.0]: electric field along x-, y- and z-axis.magnetic_field::Vector{Float64} = [0.0,0.0,0.0]: magnetic field [T] along x-, y- and z-axis.
Setters
Radiant.set_magnetic_field — Method
set_magnetic_field(this::Electromagnetic_Field,magnetic_field::Vector{<:Real})To set the external magnetic field vector [in tesla], expressed along the x-, y- and z-axis of the geometry.
Input Argument(s)
this::Electromagnetic_Field: electromagnetic field.magnetic_field::Vector{<:Real}: magnetic field [T] along x-, y- and z-axis.
Output Argument(s)
N/A
Examples
julia> emf = Electromagnetic_Field()
julia> emf.set_magnetic_field([0.0,0.0,1.5])Getters
Radiant.get_magnetic_field — Method
get_magnetic_field(this::Electromagnetic_Field)Get the external magnetic field vector [in tesla].
Input Argument(s)
this::Electromagnetic_Field: electromagnetic field.
Output Argument(s)
magnetic_field::Vector{Float64}: magnetic field [T] along x-, y- and z-axis.