| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHfunction_ConstAcc.h>


Public Member Functions | |
| ChFunction_ConstAcc (double m_h, double m_av, double m_aw, double m_end) | |
| void | Copy (ChFunction_ConstAcc *source) |
| ChFunction * | new_Duplicate () |
| void | Set_end (double m_end) |
| void | Set_av (double m_av) |
| void | Set_aw (double m_aw) |
| void | Set_h (double m_h) |
| void | Set_avw (double m_av, double m_aw) |
| double | Get_end () |
| double | Get_av () |
| double | Get_aw () |
| double | Get_h () |
| double | Get_y (double x) |
| double | Get_y_dx (double x) |
| double | Get_y_dxdx (double x) |
| double | Get_Ca_pos () |
| double | Get_Ca_neg () |
| double | Get_Cv () |
| void | Extimate_x_range (double &xmin, double &xmax) |
| int | Get_Type () |
| OPT_VARIABLES_START OPT_VARIABLES_END void | StreamOUT (ChStreamOutAscii &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
Public Attributes | |
| OPT_VARIABLES_START | h |
| OPT_VARIABLES_START | end |
| OPT_VARIABLES_START | aw |
| OPT_VARIABLES_START | av |
CONSTANT ACCELERATION FUNCTION: h = height, amount of displacement end = duration of motion, av = fraction of 1st acceleration end (0..1) aw = fraction of 2nd acceleration start (0..1) , with aw>av;
| void chrono::ChFunction_ConstAcc::Extimate_x_range | ( | double & | xmin, |
| double & | xmax | ||
| ) | [virtual] |
These functions can be used to implement automatic zooming on the most representative range of function (if GUI is implemented)
Reimplemented from chrono::ChFunction.
| int chrono::ChFunction_ConstAcc::Get_Type | ( | ) | [virtual] |
Each class inherited from the ChFunction class must return an unique integer identifier with the virtual function Get_type(). This is useful for fast run-time downcasting etc.
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_ConstAcc::Get_y | ( | double | x | ) | [virtual] |
Returns the y value of the function, at position x. (For this base class, it will be a constant value y=C).
Implements chrono::ChFunction.
| double chrono::ChFunction_ConstAcc::Get_y_dx | ( | double | x | ) | [virtual] |
Returns the dy/dx derivative of the function, at position x. Note that inherited classes may also avoid overriding this method, because this base method already provide a general-purpose numerical differentiation to get dy/dx only from the Get_y() function. (however, if the analytical derivative is known, it may better to implement a custom method).
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_ConstAcc::Get_y_dxdx | ( | double | x | ) | [virtual] |
Returns the ddy/dxdx double derivative of the function, at position x. Note that inherited classes may also avoid overriding this method, because this base method already provide a general-purpose numerical differentiation to get ddy/dxdx only from the Get_y() function. (however, if the analytical derivative is known, it may be better to implement a custom method).
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_ConstAcc::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_ConstAcc::StreamOUT | ( | ChStreamOutAscii & | mstream | ) | [virtual] |
Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_ConstAcc::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChFunction.
CHRONO::ENGINE