ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
elecstate::TDField Class Reference

One configured field occurrence and its Cartesian direction. More...

#include <td_field.h>

Collaboration diagram for elecstate::TDField:

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_

Detailed Description

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.

Constructor & Destructor Documentation

◆ TDField() [1/3]

elecstate::TDField::TDField ( int direction,
std::unique_ptr< TDFieldProfile > profile,
int subdivisions )

Construct one directed time-dependent field.

Parameters
directionZero-based absolute Cartesian direction.
profileScalar field profile owned by this object.
subdivisionsSimpson subinterval count for one electronic step.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TDField() [2/3]

elecstate::TDField::TDField ( TDField && other)
default

Move-construct a field while transferring profile ownership.

Here is the call graph for this function:

◆ TDField() [3/3]

elecstate::TDField::TDField ( const TDField & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ direction()

int elecstate::TDField::direction ( ) const

Return the zero-based absolute Cartesian direction.

Here is the caller graph for this function:

◆ electric_field()

double elecstate::TDField::electric_field ( const TDFieldSample & sample) const

Evaluate this field's scalar profile at a sampling point.

Here is the caller graph for this function:

◆ operator=() [1/2]

TDField & elecstate::TDField::operator= ( const TDField & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

TDField & elecstate::TDField::operator= ( TDField && other)
default

Move-assign a field while transferring profile ownership.

Here is the call graph for this function:

◆ subdivisions()

int elecstate::TDField::subdivisions ( ) const

Return the Simpson subinterval count for one electronic step.

Here is the caller graph for this function:

Member Data Documentation

◆ direction_

int elecstate::TDField::direction_
private

◆ profile_

std::unique_ptr<TDFieldProfile> elecstate::TDField::profile_
private

◆ subdivisions_

int elecstate::TDField::subdivisions_
private

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