Gromacs
2018.2
|
Declaration of storage unit for fields.
Public Member Functions | |
void | initMdpOptions (IOptionsContainerWithSections *options, const char *sectionName) |
Adds an option section to specify parameters for this field component. | |
void | buildMdpOutput (KeyValueTreeObjectBuilder *builder, const std::string &name) const |
Creates mdp parameters for this field component. | |
real | evaluate (real t) const |
Evaluates this field component at given time. More... | |
void | setField (real a, real omega, real t0, real sigma) |
Initiate the field values. More... | |
real | a () const |
Return the amplitude. | |
real | omega () const |
Return the frequency. | |
real | t0 () const |
Return the time for the peak of the pulse. | |
real | sigma () const |
Return the width of the pulse (0 means inifinite) | |
|
inline |
Evaluates this field component at given time.
[in] | t | The time to evualate at |
|
inline |
Initiate the field values.
[in] | a | Amplitude |
[in] | omega | Frequency |
[in] | t0 | Peak of the pulse |
[in] | sigma | Width of the pulse |