OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Perturbations::Light Class Reference

Applies an EM field representing light to the system. More...

#include <Light.hpp>

+ Inheritance diagram for OpenMD::Perturbations::Light:

Public Member Functions

 Light (SimInfo *info)
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::ForceModifier
 ForceModifier (SimInfo *info)
 
- Protected Attributes inherited from OpenMD::ForceModifier
SimInfoinfo_ {nullptr}
 

Detailed Description

Applies an EM field representing light to the system.

The field is applied as an external perturbation. The user specifies

light{
useLight = true;
intensity = c;
wavelength = l;
propagationDirection = (0, 0, 1);
polarization = "+";
}

in the .omd file where the propagationDirection vector, \( \mathbf{k} \) is a unit vector, the value of \( c \) is in units of \( W cm^{-2} \), and wavelength, \( l \) is in nm.

Alternatively, the user can specify

light{
useLight = true;
intensity = c;
frequency = w;
propagationDirection = (0, 0, 1);
polarization = "+";
}

with frequency, \( w \) measured in Hz, or alternatively:

light{
useLight = true;
intensity = c;
waveVector = (kx, ky, kz);
polarization = "+";
}

with the components of the wavevector specified in \( \AA^{-1} \). In all cases, options for polarization include "x", "y", "+", or "-".

Definition at line 104 of file Light.hpp.

Constructor & Destructor Documentation

◆ Light()

OpenMD::Perturbations::Light::Light ( SimInfo * info)

Definition at line 60 of file Light.cpp.


The documentation for this class was generated from the following files: