#include <AverageVessel.h>

Public Member Functions | |
| AverageVessel (const vesselbase::VesselOptions &) | |
| Constructor. | |
| void | accumulate (const double &weight, const double &val) |
| Accumulate the average. | |
| bool | applyForce (std::vector< double > &forces) override |
| Retrieve the forces on the quantities in the vessel. | |
| void | calculate (const unsigned ¤t, MultiValue &myvals, std::vector< double > &buffer, std::vector< unsigned > &der_list) const override |
| This does nothing. | |
| void | checkRead () |
| Check that readin was fine. | |
| virtual void | clear () |
| Clear all the data stored on the grid. | |
| std::string | description () override |
| Return a description of the vessel contents. | |
| void | finish (const std::vector< double > &) override |
| Copy data from an accumulated buffer into the grid. | |
| double | getAverage () const |
| Get the average value. | |
| std::string | getLabel () const |
| Return the label. | |
| std::string | getName () const |
| Return the name. | |
| double | getNorm () const |
| virtual void | prepare () |
| Do something before the loop. | |
| virtual void | reset () |
| Reset the grid so that it is cleared at start of next time it is calculated. | |
| void | resize () override |
| Set the size of the data vessel. | |
| virtual void | setBufferStart (unsigned &start) |
| Set the start of the buffer. | |
| void | setNorm (const double &snorm) |
| Functions for dealing with normalisation constant. | |
| virtual MultiValue & | transformDerivatives (const unsigned ¤t, MultiValue &myvals, MultiValue &bvals) |
| This is replaced in bridges so we can transform the derivatives. | |
| bool | wasreset () const |
| Was the grid cleared on the last step. | |
Static Public Member Functions | |
| static void | registerKeywords (Keywords &keys) |
| keywords | |
| static std::string | transformName (const std::string &name) |
| Convert the name to the label of the component. | |
Protected Member Functions | |
| void | addDataElement (const unsigned &myelem, const double &value) |
| Add some value to an element of the data array. | |
| 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 | getDataElement (const unsigned &myelem) const |
| Get the value of one of the data element. | |
| 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. | |
| bool | noAverage () const |
| Are we averaging the data. | |
| 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. | |
| void | setDataElement (const unsigned &myelem, const double &value) |
| Set an element of the data array. | |
| void | setDataSize (const unsigned &size) |
| Set the size of the data vector. | |
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. | |
| std::vector< double > | data |
| The data that is being averaged. | |
| std::vector< double > | domain |
| 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. | |
| bool | unormalised |
| Are we outputting unormalised data. | |
| bool | wascleared |
| The grid was recently cleared and bounds can be set. | |
|
explicit |
Constructor.
| void PLMD::analysis::AverageVessel::accumulate | ( | const double & | weight, |
| const double & | val ) |
Accumulate the average.
|
inlineprotectedinherited |
Add some value to an element of the data array.
|
inlineoverridevirtualinherited |
Retrieve the forces on the quantities in the vessel.
Implements PLMD::vesselbase::Vessel.
Reimplemented in PLMD::gridtools::GridVessel.
|
overridevirtual |
This does nothing.
Implements PLMD::vesselbase::Vessel.
|
inherited |
Check that readin was fine.
|
virtualinherited |
Clear all the data stored on the grid.
|
inlineoverridevirtual |
Return a description of the vessel contents.
Implements PLMD::vesselbase::Vessel.
|
protectedinherited |
Report an error.
|
overridevirtualinherited |
Copy data from an accumulated buffer into the grid.
Implements PLMD::vesselbase::Vessel.
Reimplemented in PLMD::gridtools::GridVessel, and PLMD::gridtools::HistogramOnGrid.
|
inlineprotectedinherited |
Return a pointer to the action we are working in.
|
protectedinherited |
This returns the whole input line (it is used for less_than/more_than/between).
| double PLMD::analysis::AverageVessel::getAverage | ( | ) | const |
Get the average value.
|
inlineprotectedinherited |
Get the value of one of the data element.
|
inherited |
Return the label.
|
inherited |
Return the name.
|
inlineprotectedinherited |
Return the value of the neighbor list tolerance.
|
inlineinherited |
|
inlineprotectedinherited |
Return the numerical label.
|
inlineprotectedinherited |
Return the size of the buffer.
|
inlineprotectedinherited |
Return the value of the tolerance.
|
inlineprotectedinherited |
Are we averaging the data.
|
protectedinherited |
Parse something from the input.
|
protectedinherited |
Parse one keyword as boolean flag.
|
protectedinherited |
Parse one keyword as std::vector.
|
inlinevirtualinherited |
Do something before the loop.
Reimplemented in PLMD::mapping::SpathVessel, and PLMD::vesselbase::BridgeVessel.
|
static |
keywords
|
virtualinherited |
Reset the grid so that it is cleared at start of next time it is calculated.
|
overridevirtual |
Set the size of the data vessel.
Implements PLMD::vesselbase::Vessel.
|
inlineprotectedinherited |
Set the size of the data buffer.
|
inlinevirtualinherited |
Set the start of the buffer.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
inlineprotectedinherited |
Set an element of the data array.
|
protectedinherited |
Set the size of the data vector.
|
inlineinherited |
Functions for dealing with normalisation constant.
|
inlinevirtualinherited |
This is replaced in bridges so we can transform the derivatives.
Reimplemented in PLMD::vesselbase::BridgeVessel.
|
staticinherited |
Convert the name to the label of the component.
|
inherited |
Was the grid cleared on the last step.
|
privateinherited |
The action that this vessel is created within.
|
privateinherited |
The number of elements in this vessel's buffered data.
|
protectedinherited |
The start of this Vessel's buffer in buffer in the underlying ActionWithVessel.
|
privateinherited |
The data that is being averaged.
|
private |
|
privateinherited |
This just checks we have done checkRead.
|
privateinherited |
The keywords.
|
privateinherited |
Directive line.
This line is progressively erased during vessel construction so as to check if all the present keywords are correct.
|
privateinherited |
The label for the vessel for referencing.
|
privateinherited |
The keyword for the vessel in the input file.
|
privateinherited |
The numerical label for this object.
|
privateinherited |
Are we outputting unormalised data.
|
privateinherited |
The grid was recently cleared and bounds can be set.
Hosted by GitHub
|
1.17.0
|