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


Public Member Functions | |
| ChFunction_Sine (double m_phase, double m_freq, double m_amp) | |
| void | Copy (ChFunction_Sine *source) |
| ChFunction * | new_Duplicate () |
| void | Set_phase (double m_phase) |
| void | Set_freq (double m_freq) |
| void | Set_w (double m_w) |
| void | Set_amp (double m_amp) |
| double | Get_phase () |
| double | Get_freq () |
| double | Get_w () |
| double | Get_amp () |
| double | Get_y (double x) |
| double | Get_y_dx (double x) |
| double | Get_y_dxdx (double x) |
| 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 | amp |
| OPT_VARIABLES_START | phase |
| OPT_VARIABLES_START | freq |
| double chrono::ChFunction_Sine::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).
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_Sine::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_Sine::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.
| int chrono::ChFunction_Sine::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 run-time downcasting etc.
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Sine::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_Sine::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_Sine::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChFunction.
CHRONO::ENGINE