Scine::Swoose
2.1.0
This is the SCINE module Swoose.
|
Mock class for a QM calculator to use in QM/MM tests. More...
#include <MockQmCalculator.h>
Public Member Functions | |
MockQmCalculator () | |
Default Constructor. | |
~MockQmCalculator () final=default | |
Default Destructor. | |
MockQmCalculator (const MockQmCalculator &rhs) | |
Copy Constructor. | |
void | setStructure (const Utils::AtomCollection &structure) override |
Changes the molecular structure to calculate. More... | |
std::unique_ptr < Utils::AtomCollection > | getStructure () const override |
Gets the molecular structure as a std::unique_ptr<AtomCollection>. More... | |
void | modifyPositions (Utils::PositionCollection newPositions) override |
Allows to modify the positions of the underlying AtomCollection. More... | |
const Utils::PositionCollection & | getPositions () const override |
Getter for the coordinates of the underlying AtomCollection. | |
void | setRequiredProperties (const Utils::PropertyList &requiredProperties) override |
Sets the properties to calculate. More... | |
Utils::PropertyList | getRequiredProperties () const override |
Getter for the properties to calculate. | |
Utils::PropertyList | possibleProperties () const override |
Returns the list of the possible properties to calculate analytically. By some method analytical hessian calculation is not possible. In this case the hessian calculation is done seminumerically. | |
const Utils::Results & | calculate (std::string description) override |
The main function running calculations (dummy). More... | |
std::string | name () const override |
Getter for the name of the Calculator. More... | |
Utils::Settings & | settings () override |
Accessor for the settings. More... | |
const Utils::Settings & | settings () const override |
Constant accessor for the settings. More... | |
std::shared_ptr< Core::State > | getState () const final |
Implements Core::StateHandableObject::getState(). More... | |
void | loadState (std::shared_ptr< Core::State > state) final |
Implements Core::StateHandableObject::loadState(). More... | |
Utils::Results & | results () override |
Accessor for the saved instance of Results. More... | |
const Utils::Results & | results () const override |
Constant accessor for the Results. More... | |
std::string | getFileNameBase () const |
Getter for the file name base string. | |
std::string | getCalculationDirectory () const |
Getter for the calculation directory. | |
bool | supportsMethodFamily (const std::string &methodFamily) const override |
Whether the calculator supports a method family. More... | |
bool | allowsPythonGILRelease () const override |
Whether the calculator has no underlying Python code and can therefore release the global interpreter lock in Python bindings. | |
Public Member Functions inherited from Scine::Utils::CloneInterface< MockQmCalculator, Core::Calculator, Core::Calculator > | |
std::shared_ptr< MockQmCalculator > | clone () const |
Static Public Attributes | |
static constexpr const char * | model = "MOCK-QM" |
Mock class for a QM calculator to use in QM/MM tests.
|
override |
The main function running calculations (dummy).
description | The calculation description. |
|
final |
Implements Core::StateHandableObject::getState().
|
override |
Gets the molecular structure as a std::unique_ptr<AtomCollection>.
|
final |
Implements Core::StateHandableObject::loadState().
state | The new state. |
|
override |
Allows to modify the positions of the underlying AtomCollection.
newPositions | the new positions to be assigned to the underlying AtomCollection |
|
override |
Getter for the name of the Calculator.
|
override |
Accessor for the saved instance of Results.
|
override |
Constant accessor for the Results.
|
override |
Sets the properties to calculate.
requiredProperties | A PropertyList, a sequence of bits that represent the properties that must be calculated. |
|
override |
Changes the molecular structure to calculate.
structure | A new AtomCollection to save. |
|
override |
Accessor for the settings.
|
override |
Constant accessor for the settings.
|
override |
Whether the calculator supports a method family.
methodFamily | identifier for the method family |