31 use,
intrinsic :: iso_fortran_env
86 integer,
public,
parameter :: &
95 integer :: field = e_field_none
96 complex(real64),
allocatable :: pol(:)
97 real(real64),
allocatable :: prop(:)
100 real(real64) :: omega =
m_zero
102 real(real64),
allocatable :: v(:)
103 real(real64),
allocatable :: a(:, :)
104 character(len=200) :: scalar_pot_expression
105 character(len=200) :: phase_expression
106 character(len=200) :: envelope_expression
112 integer,
public :: no_lasers
113 type(laser_t),
allocatable,
public :: lasers(:)
115 real(real64),
allocatable :: e(:)
116 real(real64),
allocatable :: b(:)
117 real(real64),
allocatable :: integrated_nondipole_afield(:)
118 real(real64) :: nd_integration_time
119 real(real64) :: nd_integration_step
135 class(lasers_t),
pointer :: this
136 type(namespace_t),
intent(in) :: namespace
142 this%namespace =
namespace_t(
"Lasers", parent=namespace)
144 safe_allocate(this%e(1:3))
145 safe_allocate(this%b(1:3))
153 class(lasers_t),
intent(inout) :: this
156 integer :: il, jj, ierr, k
157 real(real64) :: omega0
158 complex(real64) :: cprop(3)
260 if (
parse_block(this%namespace,
'TDExternalFields', blk) == 0)
then
262 safe_allocate(this%lasers(1:this%no_lasers))
264 do il = 1, this%no_lasers
265 safe_allocate(this%lasers(il)%pol(1:3))
266 this%lasers(il)%pol =
m_z0
270 select case (this%lasers(il)%field)
274 this%lasers(il)%pol =
m_z1
284 this%lasers(il)%omega = omega0
287 call tdf_read(this%lasers(il)%f, this%namespace, trim(this%lasers(il)%envelope_expression), ierr)
292 call tdf_read(this%lasers(il)%phi, this%namespace, trim(this%lasers(il)%phase_expression), ierr)
294 write(
message(1),
'(3A)')
'Error in the "', trim(this%lasers(il)%envelope_expression), &
295 '" field defined in the TDExternalFields block:'
296 write(
message(2),
'(3A)')
'Time-dependent phase function "', trim(this%lasers(il)%phase_expression), &
306 safe_allocate(this%lasers(il)%prop(1:
size(cprop)))
307 do k = 1,
size(cprop)
311 if (any(abs(aimag(cprop)) >
m_epsilon))
then
312 write(
message(1),
'(3A)')
'Error in the "', trim(this%lasers(il)%envelope_expression), &
313 '" field defined in the TDExternalFields block:'
314 write(
message(2),
'(A)')
'Propagation direction cannot be complex.'
317 this%lasers(il)%prop(:) = real(cprop(:), real64)
318 if (.not.
allocated(this%integrated_nondipole_afield))
then
319 safe_allocate(this%integrated_nondipole_afield(1:
size(cprop)))
320 this%integrated_nondipole_afield(1:3)=
m_zero
321 this%nd_integration_time=
m_zero
333 call parse_variable(this%namespace,
'NDSFATimeIntegrationStep', 0.01_real64, this%nd_integration_step)
335 if (
is_close(this%nd_integration_step, 0.01_real64))
then
336 message(1) =
"The default timestep of 0.01 is utilized for the nondipole SFA integration."
337 message(2) =
"Be aware that this should be at least an order of magniude less than the TDtimestep"
354 class(
lasers_t),
intent(inout) :: this
355 class(
mesh_t),
intent(in) :: mesh
356 class(
space_t),
intent(in) :: space
360 integer :: il, ip, idir, idir2
361 real(real64) :: rr, pot_re, pot_im, xx(3)
362 real(real64) :: miller(space%dim,space%dim), miller_red(space%dim,space%dim)
366 do il = 1, this%no_lasers
400 if (
parse_block(this%namespace,
'MillerIndicesBasis', blk2) == 0)
then
401 if(.not. space%is_periodic())
then
402 write(
message(1),
'(a)')
'MillerIndicesBasis can only be used for periodic systems.'
406 do idir = 1, space%dim
407 do idir2 = 1, space%dim
414 this%lasers(il)%pol = matmul(miller, this%lasers(il)%pol)
418 this%lasers(il)%pol(:) = this%lasers(il)%pol(:)/
sqrt(sum(abs(this%lasers(il)%pol(:))**2))
420 select case (this%lasers(il)%field)
422 safe_allocate(this%lasers(il)%v(1:mesh%np_part))
423 this%lasers(il)%v =
m_zero
425 call mesh_r(mesh, ip, rr, coords = xx(1:space%dim))
426 xx(space%dim+1:3) =
m_zero
428 this%lasers(il)%v(ip) = pot_re
434 safe_allocate(this%lasers(il)%a(1:mesh%np_part, 1:3))
435 this%lasers(il)%a =
m_zero
437 xx(1:space%dim) = mesh%x(:, ip)
438 xx(space%dim+1:3) =
m_zero
442 select case (space%dim)
444 this%lasers(il)%a(ip, 1:2) = (/xx(2), -xx(1)/) * sign(
m_one, real(this%lasers(il)%pol(3)))
446 this%lasers(il)%a(ip, :) = (/ xx(2)*real(this%lasers(il)%pol(3)) - xx(3)*real(this%lasers(il)%pol(2)), &
447 xx(3)*real(this%lasers(il)%pol(1)) - xx(1)*real(this%lasers(il)%pol(3)), &
448 xx(1)*real(this%lasers(il)%pol(2)) - xx(2)*real(this%lasers(il)%pol(1)) /)
450 message(1) =
"Magnetic fields only allowed in 2 or 3D."
454 this%lasers(il)%a = -
m_half * this%lasers(il)%a
473 if (kpoints%use_symmetries)
then
476 do il = 1, this%no_lasers
478 message(1) =
"The lasers break (at least) one of the symmetries used to reduce the k-points ."
479 message(2) =
"Set SymmetryBreakDir accordingly to your laser fields."
491 type(
lasers_t),
intent(inout) :: this
502 class(
lasers_t),
intent(inout) :: this
508 safe_deallocate_a(this%e)
509 safe_deallocate_a(this%b)
510 safe_deallocate_a(this%integrated_nondipole_afield)
512 do il = 1, this%no_lasers
513 safe_deallocate_a(this%lasers(il)%pol)
514 call tdf_end(this%lasers(il)%f)
515 call tdf_end(this%lasers(il)%phi)
516 select case (this%lasers(il)%field)
518 safe_deallocate_a(this%lasers(il)%v)
520 safe_deallocate_a(this%lasers(il)%a)
522 safe_deallocate_a(this%lasers(il)%prop)
524 safe_deallocate_a(this%lasers)
532 type(
laser_t),
intent(in) :: laser
543 class(
lasers_t),
intent(in) :: partner
544 class(interaction_surrogate_t),
intent(inout) :: interaction
548 select type (interaction)
549 type is (lorentz_force_t)
552 message(1) =
"Unsupported interaction."
553 call messages_fatal(1, namespace=partner%namespace)
561 class(
lasers_t),
intent(inout) :: this
562 character(len=*),
intent(in) :: label
564 type(quantity_t),
pointer :: quantity
569 if (
allocated(this%lasers))
then
572 call messages_not_implemented(
"Laser vector potentials and scalar potentials in multi-system framework", &
573 namespace=this%namespace)
577 quantity => this%quantities%get(label)
581 do il = 1, this%no_lasers
583 call laser_field(this%lasers(il), this%e, quantity%iteration%value())
589 do il = 1, this%no_lasers
591 call laser_field(this%lasers(il), this%b, quantity%iteration%value())
596 message(1) =
"Incompatible quantity."
597 call messages_fatal(1, namespace=this%namespace)
605 class(
lasers_t),
intent(inout) :: partner
606 class(interaction_surrogate_t),
intent(inout) :: interaction
612 select type (interaction)
613 type is (lorentz_force_t)
614 do ip = 1, interaction%system_np
615 interaction%partner_e_field(:, ip) = partner%e
616 interaction%partner_b_field(:, ip) = partner%b
619 message(1) =
"Unsupported interaction."
620 call messages_fatal(1, namespace=partner%namespace)
627 integer pure elemental function laser_kind(laser)
628 type(
laser_t),
intent(in) :: laser
639 type(
laser_t),
intent(in) :: laser
640 complex(real64) :: pol(3)
652 type(
lasers_t),
intent(in) :: lasers
653 logical :: isnondipole
656 isnondipole = .false.
657 if(
allocated(lasers%integrated_nondipole_afield)) isnondipole = .
true.
665 type(
lasers_t),
intent(inout) :: this
666 real(real64),
contiguous,
intent(in) :: ndfield(:)
667 real(real64),
intent(in) :: nd_integration_time
673 this%integrated_nondipole_afield(1:dim) = ndfield(1:dim)
674 this%nd_integration_time = nd_integration_time
682 type(
laser_t),
intent(in) :: laser
683 type(tdf_t),
intent(inout) :: ff
686 call tdf_copy(ff, laser%f)
695 type(
laser_t),
intent(inout) :: laser
696 type(tdf_t),
intent(inout) :: ff
700 call tdf_end(laser%f)
701 call tdf_copy(laser%f, ff)
711 type(tdf_t),
intent(inout) :: phi
714 call tdf_copy(phi, laser%phi)
724 type(tdf_t),
intent(inout) :: phi
728 call tdf_end(laser%phi)
729 call tdf_copy(laser%phi, phi)
738 type(
laser_t),
intent(inout) :: laser
742 call tdf_init(laser%phi)
750 type(
laser_t),
intent(inout) :: laser
751 integer,
intent(in) :: ii
752 real(real64),
intent(in) :: xx
755 call tdf_set_numerical(laser%f, ii, xx)
764 type(
laser_t),
intent(inout) :: laser
765 real(real64),
intent(in) :: omega
777 type(
laser_t),
intent(inout) :: laser
778 complex(real64),
contiguous,
intent(in) :: pol(:)
798 type(
laser_t),
intent(inout) :: laser
799 real(real64),
intent(in) :: dt
800 integer,
intent(in) :: max_iter
801 real(real64),
intent(in) :: omegamax
804 real(real64) :: tt, fj, phi
806 push_sub(lasers_to_numerical_all)
808 call tdf_to_numerical(laser%f, max_iter, dt, omegamax)
809 do iter = 1, max_iter + 1
811 fj = tdf(laser%f, iter)
812 phi = tdf(laser%phi, tt)
813 call tdf_set_numerical(laser%f, iter, fj*
cos(laser%omega*tt+phi))
815 call tdf_end(laser%phi)
816 call tdf_init_cw(laser%phi, m_zero, m_zero)
819 pop_sub(lasers_to_numerical_all)
829 type(
laser_t),
intent(inout) :: laser
830 real(real64),
intent(in) :: dt
831 integer,
intent(in) :: max_iter
832 real(real64),
intent(in) :: omegamax
834 push_sub(lasers_to_numerical)
836 call tdf_to_numerical(laser%f, max_iter, dt, omegamax)
837 call tdf_to_numerical(laser%phi, max_iter, dt, omegamax)
839 pop_sub(lasers_to_numerical)
845 type(
laser_t),
contiguous,
intent(in) :: lasers(:)
846 type(namespace_t),
intent(in) :: namespace
847 real(real64),
optional,
intent(in) :: dt
848 integer,
optional,
intent(in) :: max_iter
849 integer,
optional,
intent(in) :: iunit
851 real(real64) :: tt, fluence, max_intensity, intensity, dt_, field(3), up, maxfield,tmp
852 integer :: il, iter, no_l, max_iter_
860 if (
present(dt))
then
863 dt_ = tdf_dt(lasers(il)%f)
865 if (
present(max_iter))
then
868 max_iter_ = tdf_niter(lasers(il)%f)
871 write(message(1),
'(i2,a)') il,
':'
872 select case (lasers(il)%field)
874 message(2) =
' Electric Field.'
876 message(2) =
' Magnetic Field.'
878 message(2) =
' Vector Potential.'
880 message(2) =
' Scalar Potential.'
882 call messages_info(2, iunit=iunit, namespace=namespace)
885 write(message(1),
'(3x,a,3(a1,f7.4,a1,f7.4,a1))')
'Polarization: ', &
886 '(', real(lasers(il)%pol(1), real64),
',', aimag(lasers(il)%pol(1)),
'), ', &
887 '(', real(lasers(il)%pol(2), real64),
',', aimag(lasers(il)%pol(2)),
'), ', &
888 '(', real(lasers(il)%pol(3), real64),
',', aimag(lasers(il)%pol(3)),
')'
889 call messages_info(1, iunit=iunit, namespace=namespace)
892 write(message(1),
'(3x,a,f14.8,3a)')
'Carrier frequency = ', &
893 units_from_atomic(units_out%energy, lasers(il)%omega), &
894 ' [', trim(units_abbrev(units_out%energy)),
']'
895 message(2) =
' Envelope: '
896 call messages_info(2, iunit=iunit, namespace=namespace)
897 call tdf_write(lasers(il)%f, iunit)
899 if (.not. tdf_is_empty(lasers(il)%phi))
then
900 message(1) =
' Phase: '
901 call messages_info(1, iunit=iunit, namespace=namespace)
902 call tdf_write(lasers(il)%phi, iunit)
911 max_intensity = m_zero
913 do iter = 1, max_iter_
916 intensity = 5.4525289841210_real64*sum(field**2)
917 fluence = fluence + intensity
918 if (intensity > max_intensity) max_intensity = intensity
920 tmp = sum(field(:)**2)
921 if (tmp > maxfield) maxfield = tmp
923 fluence = fluence * dt_
925 write(message(1),
'(a,es17.6,3a)')
' Peak intensity = ', max_intensity,
' [a.u]'
926 write(message(2),
'(a,es17.6,3a)')
' = ', &
927 max_intensity * 6.4364086e+15_real64,
' [W/cm^2]'
928 write(message(3),
'(a,es17.6,a)')
' Int. intensity = ', fluence,
' [a.u]'
929 write(message(4),
'(a,es17.6,a)')
' Fluence = ', &
930 fluence / 5.4525289841210_real64 ,
' [a.u]'
931 call messages_info(4, iunit=iunit, namespace=namespace)
933 if (abs(lasers(il)%omega) > m_epsilon)
then
940 up = maxfield/(4*lasers(il)%omega**2)
942 write(message(1),
'(a,es17.6,3a)')
' Ponderomotive energy = ', &
943 units_from_atomic(units_out%energy, up) ,&
944 ' [', trim(units_abbrev(units_out%energy)),
']'
945 call messages_info(1, iunit=iunit, namespace=namespace)
958 type(
laser_t),
intent(in) :: laser
959 class(mesh_t),
intent(in) :: mesh
960 real(real64),
contiguous,
intent(inout) :: pot(:)
961 real(real64),
optional,
intent(in) :: time
963 complex(real64) :: amp
965 real(real64) :: field(3)
969 if (
present(time))
then
970 amp = tdf(laser%f, time) *
exp(m_zi * (laser%omega * time + tdf(laser%phi, time)))
975 select case (laser%field)
977 call lalg_axpy(mesh%np, real(amp, real64), laser%v, pot)
979 field(:) = real(amp * laser%pol(:), real64)
982 pot(ip) = pot(ip) + sum(field(1:mesh%box%dim) * mesh%x(1:mesh%box%dim, ip))
993 type(
laser_t),
intent(in) :: laser
994 type(mesh_t),
intent(in) :: mesh
995 real(real64),
contiguous,
intent(inout) :: aa(:, :)
996 real(real64),
optional,
intent(in) :: time
1003 if (
present(time))
then
1004 amp = tdf(laser%f, time)*
cos((laser%omega*time + tdf(laser%phi, time)))
1005 do idir = 1, mesh%box%dim
1007 aa(ip, idir) = aa(ip, idir) + amp*laser%a(ip, idir)
1011 do idir = 1, mesh%box%dim
1013 aa(ip, idir) = aa(ip, idir) + laser%a(ip, idir)
1030 type(
laser_t),
intent(in) :: laser
1031 real(real64),
contiguous,
intent(inout) :: field(:)
1032 real(real64),
optional,
intent(in) :: time
1035 complex(real64) :: amp
1041 if (
present(time))
then
1042 amp = tdf(laser%f, time) *
exp(m_zi * (laser%omega * time + tdf(laser%phi, time)))
1050 field(1) = field(1) + real(amp, real64)
1052 field(1:dim) = field(1:dim) + real(amp*laser%pol(1:dim), real64)
1066 real(real64),
contiguous,
intent(out) :: field(:)
1067 real(real64),
intent(in) :: time
1069 real(real64) :: a0(3)
1070 real(real64) :: e0(3)
1077 field(1:dim) = this%integrated_nondipole_afield(1:dim)
1078 if (time - this%nd_integration_time < 0)
then
1081 do iter = 1, nint((time-this%nd_integration_time)/this%nd_integration_step)
1082 do ilaser = 1, this%no_lasers
1084 do jlaser = 1, this%no_lasers
1086 if(
allocated(this%lasers(jlaser)%prop))
then
1089 iter*this%nd_integration_step+this%nd_integration_time)
1091 iter*this%nd_integration_step+this%nd_integration_time, this%nd_integration_step)
1093 field(1:dim) = field(1:dim) - m_one/(p_c) * this%nd_integration_step &
1094 * dot_product(a0,e0) * this%lasers(jlaser)%prop(1:dim)
1106 type(
laser_t),
intent(in) :: laser
1107 real(real64),
contiguous,
intent(out) :: field(:)
1108 real(real64),
intent(in) :: time
1109 real(real64),
intent(in) :: dt
1112 real(real64),
allocatable :: field1(:), field2(:)
1118 select case (laser%field)
1123 safe_allocate(field1(1:dim))
1124 safe_allocate(field2(1:dim))
1129 field = - (field2 - field1) / (m_two * p_c * dt)
1130 safe_deallocate_a(field1)
1131 safe_deallocate_a(field2)
1143 class(partner_list_t),
intent(inout) :: partners
1144 type(namespace_t),
intent(in) :: namespace
1156 if (parse_is_defined(namespace,
'MillerIndicesBasis'))
then
1157 call messages_not_implemented(
"MillerIndicesBasis with load_lasers routine")
1162 do il = 1, lasers%no_lasers
1163 lasers%lasers(il)%pol(:) = lasers%lasers(il)%pol(:)/
sqrt(sum(abs(lasers%lasers(il)%pol(:))**2))
1166 call lasers%quantities%add(quantity_t(
"E field", always_available = .
true., updated_on_demand = .
true., iteration =
clock_t()))
1167 call lasers%quantities%add(quantity_t(
"B field", always_available = .
true., updated_on_demand = .
true., iteration =
clock_t()))
1169 lasers%supported_interactions_as_partner = [lorentz_force]
1171 if (lasers%no_lasers > 0)
then
1172 call partners%add(lasers)
1174 safe_deallocate_p(lasers)
1186 class(
lasers_t),
intent(inout) :: lasers
1188 complex(real64),
allocatable :: polarizations_imp(:,:)
1189 complex(real64),
allocatable :: polarizations_tot(:,:)
1190 real(real64),
allocatable :: frequencies_imp(:)
1191 real(real64),
allocatable :: frequencies_tot(:)
1192 type(tdf_t),
allocatable :: envelopes_imp(:)
1193 type(tdf_t),
allocatable :: envelopes_tot(:)
1194 type(tdf_t),
allocatable :: phases_imp(:)
1195 type(tdf_t),
allocatable :: phases_tot(:)
1196 integer :: nlasers_impinging
1197 type(lpcm_substrate_t) :: substrate
1202 call layer_pcm_substrate_reflection_init(substrate, lasers%namespace)
1204 if (.not. (substrate%is_present .and. substrate%reflection%is_present))
then
1205 call layer_pcm_substrate_end(substrate)
1210 call substrate%set_mode(lpcm_mode_noneq)
1212 nlasers_impinging = lasers%no_lasers
1213 safe_allocate(polarizations_imp(1:nlasers_impinging, 1:3))
1214 safe_allocate(frequencies_imp(1:nlasers_impinging))
1215 safe_allocate(envelopes_imp(1:nlasers_impinging))
1216 safe_allocate(phases_imp(1:nlasers_impinging))
1217 do ilaser = 1, nlasers_impinging
1219 message(1) =
"Reflection can only be calculated for electric fields."
1220 call messages_fatal(1)
1222 polarizations_imp(ilaser, :) = lasers%lasers(ilaser)%pol
1223 frequencies_imp(ilaser) = lasers%lasers(ilaser)%omega
1224 call tdf_init(envelopes_imp(ilaser))
1225 call tdf_init(phases_imp(ilaser))
1226 call tdf_copy(envelopes_imp(ilaser), lasers%lasers(ilaser)%f)
1227 call tdf_copy(phases_imp(ilaser), lasers%lasers(ilaser)%phi)
1230 call layer_pcm_calculate_reflected_fields(polarizations_tot, frequencies_tot, envelopes_tot, phases_tot, &
1231 polarizations_imp, frequencies_imp, envelopes_imp, phases_imp, substrate)
1233 do ilaser = 1, nlasers_impinging
1234 safe_deallocate_a(lasers%lasers(ilaser)%pol)
1235 call tdf_end(lasers%lasers(ilaser)%f)
1236 call tdf_end(lasers%lasers(ilaser)%phi)
1237 call tdf_end(envelopes_imp(ilaser))
1238 call tdf_end(phases_imp(ilaser))
1240 safe_deallocate_a(lasers%lasers)
1242 lasers%no_lasers =
size(frequencies_tot)
1243 safe_allocate(lasers%lasers(1:lasers%no_lasers))
1244 do ilaser = 1, lasers%no_lasers
1246 call tdf_init(lasers%lasers(ilaser)%f)
1247 call tdf_init(lasers%lasers(ilaser)%phi)
1248 call tdf_copy(lasers%lasers(ilaser)%f, envelopes_tot(ilaser))
1249 call tdf_copy(lasers%lasers(ilaser)%phi, phases_tot(ilaser))
1250 safe_allocate(lasers%lasers(ilaser)%pol(1:3))
1251 lasers%lasers(ilaser)%pol = polarizations_tot(ilaser, :)
1252 lasers%lasers(ilaser)%omega = frequencies_tot(ilaser)
1253 call tdf_end(envelopes_tot(ilaser))
1254 call tdf_end(phases_tot(ilaser))
1257 safe_deallocate_a(polarizations_imp)
1258 safe_deallocate_a(polarizations_tot)
1259 safe_deallocate_a(frequencies_imp)
1260 safe_deallocate_a(frequencies_tot)
1261 safe_deallocate_a(envelopes_imp)
1262 safe_deallocate_a(envelopes_tot)
1263 safe_deallocate_a(phases_imp)
1264 safe_deallocate_a(phases_tot)
1265 call layer_pcm_substrate_end(substrate)
double exp(double __x) __attribute__((__nothrow__
double sqrt(double __x) __attribute__((__nothrow__
double cos(double __x) __attribute__((__nothrow__
real(real64), parameter, public m_zero
complex(real64), parameter, public m_z0
real(real64), parameter, public m_epsilon
complex(real64), parameter, public m_z1
real(real64), parameter, public m_half
real(real64), parameter, public m_one
This module defines classes and functions for interaction partners.
subroutine, public kpoints_to_absolute(latt, kin, kout)
subroutine, public load_lasers(partners, namespace)
complex(real64) function, dimension(3), public laser_polarization(laser)
subroutine, public laser_set_phi(laser, phi)
subroutine, public lasers_check_symmetries(this, kpoints)
subroutine lasers_copy_quantities_to_interaction(partner, interaction)
subroutine, public laser_to_numerical_all(laser, dt, max_iter, omegamax)
The td functions that describe the laser field are transformed to a "numerical" representation (i....
subroutine, public laser_vector_potential(laser, mesh, aa, time)
subroutine, public lasers_nondipole_laser_field_step(this, field, time)
Retrieves the NDSFA vector_potential correction. The nondipole field is obtained for consecutive time...
subroutine, public lasers_parse_external_fields(this)
subroutine, public lasers_set_nondipole_parameters(this, ndfield, nd_integration_time)
Set parameters for nondipole SFA calculation.
subroutine lasers_update_quantity(this, label)
subroutine, public laser_get_f(laser, ff)
subroutine add_reflected_fields(lasers)
Expands lasers object, including reflected fields for all fields specified in TDExternalFields.
subroutine, public laser_set_f(laser, ff)
logical function, public lasers_with_nondipole_field(lasers)
Check if a nondipole SFA correction should be computed for the given laser.
subroutine, public laser_write_info(lasers, namespace, dt, max_iter, iunit)
subroutine, public laser_set_empty_phi(laser)
real(real64) function, public laser_carrier_frequency(laser)
integer, parameter, public e_field_electric
integer, parameter, public e_field_vector_potential
subroutine, public laser_to_numerical(laser, dt, max_iter, omegamax)
The td functions that describe the laser field are transformed to a "numerical" representation (i....
subroutine, public laser_electric_field(laser, field, time, dt)
Returns a vector with the electric field, no matter whether the laser is described directly as an ele...
subroutine, public lasers_generate_potentials(this, mesh, space, latt)
subroutine lasers_init_interaction_as_partner(partner, interaction)
subroutine lasers_finalize(this)
subroutine, public laser_potential(laser, mesh, pot, time)
class(lasers_t) function, pointer lasers_constructor(namespace)
integer, parameter, public e_field_scalar_potential
integer pure elemental function, public laser_kind(laser)
subroutine, public laser_set_frequency(laser, omega)
subroutine, public laser_field(laser, field, time)
Retrieves the value of either the electric or the magnetic field. If the laser is given by a scalar p...
subroutine, public laser_set_polarization(laser, pol)
subroutine, public laser_set_f_value(laser, ii, xx)
subroutine, public laser_get_phi(laser, phi)
subroutine lasers_deallocate(this)
integer, parameter, public e_field_magnetic
This module is intended to contain "only mathematical" functions and procedures.
This module defines the meshes, which are used in Octopus.
pure subroutine, public mesh_r(mesh, ip, rr, origin, coords)
return the distance to the origin for a given grid point
subroutine, public messages_warning(no_lines, all_nodes, namespace)
subroutine, public messages_obsolete_variable(namespace, name, rep)
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
subroutine, public parse_block_string(blk, l, c, res, convert_to_c)
integer function, public parse_block(namespace, name, blk, check_varinfo_)
/* To use the profiling module, call profiling_in and profiling_out with the label of the region as a...
This module defines the quantity_t class and the IDs for quantities, which can be exposed by a system...
integer pure function, public symmetries_identity_index(this)
real(real64), public symprec
integer pure function, public symmetries_number(this)
subroutine, public tdf_end(f)
subroutine, public tdf_init(f)
subroutine, public tdf_read(f, namespace, function_name, ierr)
This function initializes "f" from the TDFunctions block.
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
This module defines the unit system, used for input and output.
abstract class for general interaction partners
Describes mesh distribution to nodes.