MaxwellStates

MaxwellIncidentWaves
Section: MaxwellStates
Type: block

The initial electromagnetic fields can be set by the user with the MaxwellIncidentWaves block variable. The electromagnetic fields have to fulfill the Maxwells equations in vacuum.

Example:

%MaxwellIncidentWaves
   plane_wave_parser | "k1x" | "k1y" | "k1z" | "E1x" | "E1z" | "E1x"
   plane_wave_parser | "k2x" | "k2y" | "k2z" | "E2x" | "E2y" | "E2z"
   plane_wave_gauss | "k3x" | "k3y" | "k3z" | "E3x" | "E3y" | "E3z" | "width" | "shift"
   plane_wave_mx_function | "E4x" | "E4y" | "E4z" | mx_envelope_name
%


Description about MaxwellIncidentWaves follows


Options:


PropagateSpatialMaxwellField
Section: MaxwellStates
Type: logical
Default: yes

Allow for numerical propagation of Maxwells equations of spatially constant field. If set to no, do only analytic evaluation of the field inside the box.


UserDefinedConstantSpatialMaxwellField
Section: MaxwellStates
Type: block

Define parameters of spatially constant field.

Example:

%UserDefinedConstantSpatialMaxwellFields
   plane_wave_parser | E_x | E_y | E_z | B_x | B_y | B_z | "tdf_function"
%


This block defines three components of E field, three components of B field, and reference to the TD function.


UserDefinedInitialMaxwellStates
Section: MaxwellStates
Type: block

The initial electromagnetic fields can be set by the user with the UserDefinedMaxwellStates block variable. The electromagnetic fields have to fulfill the Maxwells equations in vacuum.

Example:

%UserDefinedMaxwellStates
   formula | 2 | "magnetic_field" | "-1/P_c * sin(x)"
   formula | 3 | "electric_field" | " sin(x) "
%


The second column specifies the component of the dimension of the electric field and magnetic field. The first column indicates that column four should be interpreted as a formula for the corresponding state. P_c is the speed of light constant.

Alternatively, if column one states file the electric field and magnetic field will be read from the files given in column four.

%UserDefinedMaxwellStates
   file | 3 | electric_field | "/path/to/file_electric_field_of_dimension_3"
   file | 2 | magnetic_field | "/path/to/file_magnetic_field_of_dimension_2"
%


The third option to define the initial state inside the box is to extend the plane waves used as incident waves in the MaxwellIncidentWaves block, as follows:

%UserDefinedMaxwellStates
   use_incident_waves
%



Options:


UserDefinedMaxwellExternalCurrent
Section: MaxwellStates
Type: block



Example:

%UserDefinedMaxwellExternalCurrent
   current_parser | "expression_x_dir1" | "expression_y_dir1" | "expression_z_dir1"
   current_parser | "expression_x_dir2" | "expression_y_dir2" | "expression_z_dir2"
   current_td_function | "amplitude_j0_x" | "amplitude_j0_y" | "amplitude_j0_z" | omega | envelope_td_function_name | phase
%


Description about UserDefinedMaxwellExternalCurrent follows


Options: