ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Constraints::ExternalField< Coupling, Field > Class Template Reference

Constraint interface for ExternalField::ForceField. More...

#include <ExternalField.hpp>

+ Inheritance diagram for Constraints::ExternalField< Coupling, Field >:
+ Collaboration diagram for Constraints::ExternalField< Coupling, Field >:

Public Member Functions

template<typename... Args>
 ExternalField (Args &&...args)
 
const Coupling & coupling () const
 
const Field & field () const
 
void add_energy (const Particle &, const Utils::Vector3d &, double, Observable_stat &) const override
 
ParticleForce force (const Particle &p, const Utils::Vector3d &folded_pos, double time) override
 
bool fits_in_box (Utils::Vector3d const &box) const override
 
- Public Member Functions inherited from Constraints::Constraint
virtual void reset_force ()
 
virtual ~Constraint ()=default
 

Detailed Description

template<typename Coupling, typename Field>
class Constraints::ExternalField< Coupling, Field >

Constraint interface for ExternalField::ForceField.

Definition at line 31 of file core/constraints/ExternalField.hpp.

Constructor & Destructor Documentation

◆ ExternalField()

template<typename Coupling , typename Field >
template<typename... Args>
Constraints::ExternalField< Coupling, Field >::ExternalField ( Args &&...  args)
inline

Definition at line 36 of file core/constraints/ExternalField.hpp.

Member Function Documentation

◆ add_energy()

template<typename Coupling , typename Field >
void Constraints::ExternalField< Coupling, Field >::add_energy ( const Particle ,
const Utils::Vector3d ,
double  ,
Observable_stat  
) const
inlineoverridevirtual

Implements Constraints::Constraint.

Definition at line 41 of file core/constraints/ExternalField.hpp.

◆ coupling()

template<typename Coupling , typename Field >
const Coupling & Constraints::ExternalField< Coupling, Field >::coupling ( ) const
inline

Definition at line 38 of file core/constraints/ExternalField.hpp.

◆ field()

template<typename Coupling , typename Field >
const Field & Constraints::ExternalField< Coupling, Field >::field ( ) const
inline

Definition at line 39 of file core/constraints/ExternalField.hpp.

◆ fits_in_box()

template<typename Coupling , typename Field >
bool Constraints::ExternalField< Coupling, Field >::fits_in_box ( Utils::Vector3d const &  box) const
inlineoverridevirtual

Implements Constraints::Constraint.

Definition at line 49 of file core/constraints/ExternalField.hpp.

◆ force()

template<typename Coupling , typename Field >
ParticleForce Constraints::ExternalField< Coupling, Field >::force ( const Particle p,
const Utils::Vector3d folded_pos,
double  time 
)
inlineoverridevirtual

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