#include <Vessel.h>

Public Member Functions | |
| Vessel (const VesselOptions &da) | |
| The constructor. | |
| virtual | ~Vessel () |
| Virtual destructor needed for proper inheritance. | |
| virtual bool | applyForce (std::vector< double > &forces)=0 |
| Retrieve the forces on the quantities in the vessel. | |
| virtual void | calculate (const unsigned ¤t, MultiValue &myvals, std::vector< double > &buffer, std::vector< unsigned > &der_list) const =0 |
| Calculate the part of the vessel that is done in the loop. | |
| void | checkRead () |
| Check that readin was fine. | |
| virtual std::string | description ()=0 |
| Return a description of the vessel contents. | |
| virtual void | finish (const std::vector< double > &)=0 |
| Complete the calculation once the loop is finished. | |
| std::string | getLabel () const |
| Return the label. | |
| std::string | getName () const |
| Return the name. | |
| virtual void | prepare () |
| Do something before the loop. | |
| virtual void | resize ()=0 |
| Reset the size of the buffers. | |
| virtual void | setBufferStart (unsigned &start) |
| Set the start of the buffer. | |
| virtual MultiValue & | transformDerivatives (const unsigned ¤t, MultiValue &myvals, MultiValue &bvals) |
| This is replaced in bridges so we can transform the derivatives. | |
Static Public Member Functions | |
| static void | registerKeywords (Keywords &keys) |
| Reserve any keywords for this particular vessel. | |
| static std::string | transformName (const std::string &name) |
| Convert the name to the label of the component. | |
Protected Member Functions | |
| void | error (const std::string &errmsg) |
| Report an error. | |
| ActionWithVessel * | getAction () const |
| Return a pointer to the action we are working in. | |
| std::string | getAllInput () |
| This returns the whole input line (it is used for less_than/more_than/between). | |
| double | getNLTolerance () const |
| Return the value of the neighbor list tolerance. | |
| int | getNumericalLabel () const |
| Return the numerical label. | |
| unsigned | getSizeOfBuffer () const |
| Return the size of the buffer. | |
| double | getTolerance () const |
| Return the value of the tolerance. | |
| template<class T> | |
| void | parse (const std::string &key, T &t) |
| Parse something from the input. | |
| void | parseFlag (const std::string &key, bool &t) |
| Parse one keyword as boolean flag. | |
| template<class T> | |
| void | parseVector (const std::string &key, std::vector< T > &t) |
| Parse one keyword as std::vector. | |
| void | resizeBuffer (const unsigned &n) |
| Set the size of the data buffer. | |
Protected Attributes | |
| unsigned | bufstart |
| The start of this Vessel's buffer in buffer in the underlying ActionWithVessel. | |
Private Attributes | |
| ActionWithVessel * | action |
| The action that this vessel is created within. | |
| unsigned | bufsize |
| The number of elements in this vessel's buffered data. | |
| bool | finished_read |
| This just checks we have done checkRead. | |
| const PLMD::Keywords & | keywords |
| The keywords. | |
| std::vector< std::string > | line |
| Directive line. | |
| std::string | mylabel |
| The label for the vessel for referencing. | |
| std::string | myname |
| The keyword for the vessel in the input file. | |
| const int | numlab |
| The numerical label for this object. | |
Friends | |
| class | ActionWithVessel |
|
explicit |
The constructor.
|
inlinevirtual |
Virtual destructor needed for proper inheritance.
|
pure virtual |
Retrieve the forces on the quantities in the vessel.
Implemented in PLMD::gridtools::GridVessel, PLMD::mapping::TrigonometricPathVessel, PLMD::vesselbase::AveragingVessel, PLMD::vesselbase::BridgeVessel, PLMD::vesselbase::Moments, PLMD::vesselbase::ShortcutVessel, PLMD::vesselbase::StoreDataVessel, and PLMD::vesselbase::ValueVessel.
|
pure virtual |
Calculate the part of the vessel that is done in the loop.
Implemented in PLMD::analysis::AverageVessel, PLMD::crystallization::GradientVessel, PLMD::crystallization::VectorMean, PLMD::crystallization::VectorSum, PLMD::gridtools::GridVessel, PLMD::gridtools::HistogramOnGrid, PLMD::mapping::SpathVessel, PLMD::vesselbase::BridgeVessel, PLMD::vesselbase::FunctionVessel, PLMD::vesselbase::Moments, PLMD::vesselbase::OrderingVessel, PLMD::vesselbase::ShortcutVessel, and PLMD::vesselbase::StoreDataVessel.
| void PLMD::vesselbase::Vessel::checkRead | ( | ) |
Check that readin was fine.
|
pure virtual |
Return a description of the vessel contents.
Implemented in PLMD::analysis::AverageVessel, PLMD::gridtools::GridVessel, PLMD::mapping::TrigonometricPathVessel, PLMD::vesselbase::BridgeVessel, PLMD::vesselbase::Moments, PLMD::vesselbase::ShortcutVessel, PLMD::vesselbase::StoreDataVessel, and PLMD::vesselbase::ValueVessel.
|
protected |
Report an error.
|
pure virtual |
Complete the calculation once the loop is finished.
Implemented in PLMD::crystallization::GradientVessel, PLMD::crystallization::VectorMean, PLMD::crystallization::VectorSum, PLMD::gridtools::GridVessel, PLMD::gridtools::HistogramOnGrid, PLMD::mapping::TrigonometricPathVessel, PLMD::vesselbase::AveragingVessel, PLMD::vesselbase::BridgeVessel, PLMD::vesselbase::FunctionVessel, PLMD::vesselbase::Moments, PLMD::vesselbase::OrderingVessel, PLMD::vesselbase::ShortcutVessel, and PLMD::vesselbase::StoreDataVessel.
|
inlineprotected |
Return a pointer to the action we are working in.
|
protected |
This returns the whole input line (it is used for less_than/more_than/between).
| std::string PLMD::vesselbase::Vessel::getLabel | ( | ) | const |
Return the label.
| std::string PLMD::vesselbase::Vessel::getName | ( | ) | const |
Return the name.
|
inlineprotected |
Return the value of the neighbor list tolerance.
|
inlineprotected |
Return the numerical label.
|
inlineprotected |
Return the size of the buffer.
|
inlineprotected |
Return the value of the tolerance.
|
protected |
Parse something from the input.
|
protected |
Parse one keyword as boolean flag.
|
protected |
Parse one keyword as std::vector.
|
inlinevirtual |
Do something before the loop.
Reimplemented in PLMD::mapping::SpathVessel, and PLMD::vesselbase::BridgeVessel.
|
static |
Reserve any keywords for this particular vessel.
|
pure virtual |
Reset the size of the buffers.
Implemented in PLMD::analysis::AverageVessel, PLMD::crystallization::GradientVessel, PLMD::crystallization::VectorMean, PLMD::crystallization::VectorSum, PLMD::gridtools::GridVessel, PLMD::mapping::TrigonometricPathVessel, PLMD::vesselbase::BridgeVessel, PLMD::vesselbase::FunctionVessel, PLMD::vesselbase::Moments, PLMD::vesselbase::OrderingVessel, PLMD::vesselbase::ShortcutVessel, and PLMD::vesselbase::StoreDataVessel.
|
inlineprotected |
Set the size of the data buffer.
|
inlinevirtual |
Set the start of the buffer.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
inlinevirtual |
This is replaced in bridges so we can transform the derivatives.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
static |
Convert the name to the label of the component.
|
friend |
|
private |
The action that this vessel is created within.
|
private |
The number of elements in this vessel's buffered data.
|
protected |
The start of this Vessel's buffer in buffer in the underlying ActionWithVessel.
|
private |
This just checks we have done checkRead.
|
private |
The keywords.
|
private |
Directive line.
This line is progressively erased during vessel construction so as to check if all the present keywords are correct.
|
private |
The label for the vessel for referencing.
|
private |
The keyword for the vessel in the input file.
|
private |
The numerical label for this object.
Hosted by GitHub
|
1.17.0
|