|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
One configured field occurrence and its Cartesian direction. More...
#include <td_field.h>
Public Member Functions | |
| TDField (int direction, std::unique_ptr< TDFieldProfile > profile, int subdivisions) | |
| Construct one directed time-dependent field. | |
| TDField (TDField &&other)=default | |
| Move-construct a field while transferring profile ownership. | |
| TDField & | operator= (TDField &&other)=default |
| Move-assign a field while transferring profile ownership. | |
| TDField (const TDField &)=delete | |
| TDField & | operator= (const TDField &)=delete |
| int | direction () const |
| Return the zero-based absolute Cartesian direction. | |
| int | subdivisions () const |
| Return the Simpson subinterval count for one electronic step. | |
| double | electric_field (const TDFieldSample &sample) const |
| Evaluate this field's scalar profile at a sampling point. | |
Private Attributes | |
| int | direction_ |
| std::unique_ptr< TDFieldProfile > | profile_ |
| int | subdivisions_ |
One configured field occurrence and its Cartesian direction.
Each occurrence remains independent even when multiple fields share a direction. The class is move-only because it owns a polymorphic profile.
| elecstate::TDField::TDField | ( | int | direction, |
| std::unique_ptr< TDFieldProfile > | profile, | ||
| int | subdivisions ) |
Construct one directed time-dependent field.
| direction | Zero-based absolute Cartesian direction. |
| profile | Scalar field profile owned by this object. |
| subdivisions | Simpson subinterval count for one electronic step. |
|
default |
Move-construct a field while transferring profile ownership.
|
delete |
| int elecstate::TDField::direction | ( | ) | const |
Return the zero-based absolute Cartesian direction.
| double elecstate::TDField::electric_field | ( | const TDFieldSample & | sample | ) | const |
Evaluate this field's scalar profile at a sampling point.
Move-assign a field while transferring profile ownership.
| int elecstate::TDField::subdivisions | ( | ) | const |
Return the Simpson subinterval count for one electronic step.
|
private |
|
private |
|
private |