This class allows you to calculate the vessel in one ActionWithVessel.
More...
#include <BridgeVessel.h>
|
| 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.
|
|
| 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.
|
This class allows you to calculate the vessel in one ActionWithVessel.
The user thinks it is created in a different Action however. At the moment this is used for region
◆ BridgeVessel()
| PLMD::vesselbase::BridgeVessel::BridgeVessel |
( |
const VesselOptions & | da | ) |
|
|
explicit |
◆ applyForce()
| bool PLMD::vesselbase::BridgeVessel::applyForce |
( |
std::vector< double > & | forces | ) |
|
|
overridevirtual |
◆ calculate()
| void PLMD::vesselbase::BridgeVessel::calculate |
( |
const unsigned & | current, |
|
|
MultiValue & | myvals, |
|
|
std::vector< double > & | buffer, |
|
|
std::vector< unsigned > & | der_index ) const |
|
overridevirtual |
◆ checkRead()
| void PLMD::vesselbase::Vessel::checkRead |
( |
| ) |
|
|
inherited |
Check that readin was fine.
◆ completeNumericalDerivatives()
| void PLMD::vesselbase::BridgeVessel::completeNumericalDerivatives |
( |
| ) |
|
Calculate numerical derivatives.
◆ copyTaskFlags()
| void PLMD::vesselbase::BridgeVessel::copyTaskFlags |
( |
| ) |
|
Set the task flags in the bridged class the same as in the original class.
◆ description()
| std::string PLMD::vesselbase::BridgeVessel::description |
( |
| ) |
|
|
overridevirtual |
◆ error()
| void PLMD::vesselbase::Vessel::error |
( |
const std::string & | errmsg | ) |
|
|
protectedinherited |
◆ finish()
| void PLMD::vesselbase::BridgeVessel::finish |
( |
const std::vector< double > & | buffer | ) |
|
|
overridevirtual |
◆ getAction()
Return a pointer to the action we are working in.
◆ getAllInput()
| std::string PLMD::vesselbase::Vessel::getAllInput |
( |
| ) |
|
|
protectedinherited |
This returns the whole input line (it is used for less_than/more_than/between).
◆ getLabel()
| std::string PLMD::vesselbase::Vessel::getLabel |
( |
| ) |
const |
|
inherited |
◆ getName()
| std::string PLMD::vesselbase::Vessel::getName |
( |
| ) |
const |
|
inherited |
◆ getNLTolerance()
| double PLMD::vesselbase::Vessel::getNLTolerance |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the value of the neighbor list tolerance.
◆ getNumericalLabel()
| int PLMD::vesselbase::Vessel::getNumericalLabel |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the numerical label.
◆ getOutputAction()
Get the action that reads the command in.
◆ getSizeOfBuffer()
| unsigned PLMD::vesselbase::Vessel::getSizeOfBuffer |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the size of the buffer.
◆ getTemporyMultiValue()
| MultiValue & PLMD::vesselbase::BridgeVessel::getTemporyMultiValue |
( |
| ) |
|
Return a tempory multi value - we do this so as to avoid vector resizing.
◆ getTolerance()
| double PLMD::vesselbase::Vessel::getTolerance |
( |
| ) |
const |
|
inlineprotectedinherited |
Return the value of the tolerance.
◆ hasDerivatives()
| bool PLMD::vesselbase::BridgeVessel::hasDerivatives |
( |
| ) |
|
Does this have derivatives.
◆ parse()
template<class T>
| void PLMD::vesselbase::Vessel::parse |
( |
const std::string & | key, |
|
|
T & | t ) |
|
protectedinherited |
Parse something from the input.
◆ parseFlag()
| void PLMD::vesselbase::Vessel::parseFlag |
( |
const std::string & | key, |
|
|
bool & | t ) |
|
protectedinherited |
Parse one keyword as boolean flag.
◆ parseVector()
template<class T>
| void PLMD::vesselbase::Vessel::parseVector |
( |
const std::string & | key, |
|
|
std::vector< T > & | t ) |
|
protectedinherited |
Parse one keyword as std::vector.
◆ prepare()
| void PLMD::vesselbase::BridgeVessel::prepare |
( |
| ) |
|
|
overridevirtual |
◆ registerKeywords()
| void PLMD::vesselbase::Vessel::registerKeywords |
( |
Keywords & | keys | ) |
|
|
staticinherited |
Reserve any keywords for this particular vessel.
◆ resize()
| void PLMD::vesselbase::BridgeVessel::resize |
( |
| ) |
|
|
overridevirtual |
◆ resizeBuffer()
| void PLMD::vesselbase::Vessel::resizeBuffer |
( |
const unsigned & | n | ) |
|
|
inlineprotectedinherited |
Set the size of the data buffer.
◆ setBufferStart()
| void PLMD::vesselbase::BridgeVessel::setBufferStart |
( |
unsigned & | start | ) |
|
|
overridevirtual |
◆ setOutputAction()
| void PLMD::vesselbase::BridgeVessel::setOutputAction |
( |
ActionWithVessel * | myOutputAction | ) |
|
Setup the action we are outputting to.
◆ transformDerivatives()
◆ transformName()
| std::string PLMD::vesselbase::Vessel::transformName |
( |
const std::string & | name | ) |
|
|
staticinherited |
Convert the name to the label of the component.
◆ action
The action that this vessel is created within.
◆ bufsize
| unsigned PLMD::vesselbase::Vessel::bufsize |
|
privateinherited |
The number of elements in this vessel's buffered data.
◆ bufstart
| unsigned PLMD::vesselbase::Vessel::bufstart |
|
protectedinherited |
◆ finished_read
| bool PLMD::vesselbase::Vessel::finished_read |
|
privateinherited |
This just checks we have done checkRead.
◆ inum
| unsigned PLMD::vesselbase::BridgeVessel::inum |
|
private |
◆ keywords
◆ line
| std::vector<std::string> PLMD::vesselbase::Vessel::line |
|
privateinherited |
Directive line.
This line is progressively erased during vessel construction so as to check if all the present keywords are correct.
◆ my_tmp_val
| MultiValue PLMD::vesselbase::BridgeVessel::my_tmp_val |
|
private |
◆ mylabel
| std::string PLMD::vesselbase::Vessel::mylabel |
|
privateinherited |
The label for the vessel for referencing.
◆ myname
| std::string PLMD::vesselbase::Vessel::myname |
|
privateinherited |
The keyword for the vessel in the input file.
◆ mynumerical_values
| std::vector<double> PLMD::vesselbase::BridgeVessel::mynumerical_values |
|
private |
◆ myOutputAction
◆ myOutputValues
◆ numlab
| const int PLMD::vesselbase::Vessel::numlab |
|
privateinherited |
The numerical label for this object.
The documentation for this class was generated from the following files: