|
| DECLDIR | MoorDyn (const char *infilename=NULL, int log_level=MOORDYN_MSG_LEVEL) |
| | Constructor. More...
|
| |
|
DECLDIR | ~MoorDyn () |
| | Destructor.
|
| |
| moordyn::error_id DECLDIR | Init (const double *x, const double *xd, bool skip_ic=false) |
| | Initializes Moordyn, reading the input file and setting up the mooring lines. More...
|
| |
| moordyn::error_id DECLDIR | Step (const double *x, const double *xd, double *f, double &t, double &dt) |
| | Runs a time step of the MoorDyn system. More...
|
| |
|
vector< Body * > | GetBodies () const |
| | Get the points.
|
| |
|
vector< Rod * > | GetRods () const |
| | Get the points.
|
| |
|
vector< Point * > | GetPoints () const |
| | Get the points.
|
| |
|
vector< Line * > | GetLines () const |
| | Get the lines.
|
| |
| void | SetDisableOutput (bool disable) |
| | Set whether console and file output is disabled. More...
|
| |
| unsigned int | NCoupledDOF () const |
| | Return the number of coupled Degrees Of Freedom (DOF) More...
|
| |
| moordyn::WavesRef DECLDIR | GetWaves () const |
| | Get the wave kinematics instance. More...
|
| |
| moordyn::SeafloorRef | GetSeafloor () const |
| | Get the 3D seafloor instance. More...
|
| |
| unsigned int | ExternalWaveKinInit () |
| | Initializes the external Wave kinetics. More...
|
| |
| unsigned int | ExternalWaveKinGetN () const |
| | Get the number of points where the waves kinematics shall be provided. More...
|
| |
| moordyn::error_id DEPRECATED | GetWaveKinCoordinates (double *r) const |
| | Get the points where the waves kinematics shall be provided. More...
|
| |
| std::vector< vec > | ExternalWaveKinGetPoints () const |
| | Get the points where the waves kinematics shall be provided. More...
|
| |
| void DEPRECATED | SetWaveKin (std::vector< vec > const &U, std::vector< vec > const &Ud, double t) |
| | Set the kinematics of the waves. More...
|
| |
| void | ExternalWaveKinSet (std::vector< vec > const &U, std::vector< vec > const &Ud, double t) |
| | Set the kinematics of the waves. More...
|
| |
| std::vector< uint64_t > | Serialize (void) |
| | Produce the packed data to be saved. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *data) |
| | Unpack the data to restore the Serialized information. More...
|
| |
| void | saveVTK (const char *filename) const |
| | Save the whole system on a VTK (.vtm) file. More...
|
| |
| real | GetDt () const |
| | Get the model time step. More...
|
| |
| void | SetDt (real dt) |
| | Set the model time step. More...
|
| |
| real | GetCFL () const |
| | Get the model Courant–Friedrichs–Lewy factor. More...
|
| |
| void | SetCFL (real cfl) |
| | Set the model Courant–Friedrichs–Lewy factor. More...
|
| |
| time::Scheme * | GetTimeScheme () const |
| | Get the current time integrator. More...
|
| |
| void | SetTimeScheme (time::Scheme *tscheme) |
| | Set the current time integrator. More...
|
| |
| | IO (moordyn::Log *log) |
| | Costructor. More...
|
| |
|
virtual | ~IO ()=default |
| | Destructor.
|
| |
| void | Save (const std::string filepath) |
| | Save the entity into a file. More...
|
| |
| void | Load (const std::string filepath) |
| | Loads the entity from a file. More...
|
| |
| | LogUser (Log *log=NULL) |
| | Constructor. More...
|
| |
|
| ~LogUser () |
| | Destructor.
|
| |
| void | SetLogger (Log *log) |
| | Set the log handler. More...
|
| |
| Log * | GetLogger () const |
| | Get the log handler. More...
|
| |
|
| moordyn::error_id | ReadInFile () |
| | Read the input file, setting up all the required objects and their relationships. More...
|
| |
| moordyn::error_id | readFileIntoBuffers (vector< string > &in_txt) |
| | Read the input file and store it as a set of strings, one per line. More...
|
| |
| int | findStartOfSection (vector< string > &in_txt, vector< string > sectionName) |
| | Get the file line index where a section starts. More...
|
| |
| LineProps * | readLineProps (string inputText, int lineNum) |
| | Helper function to read a new line property given a line from the input file. More...
|
| |
| RodProps * | readRodProps (string inputText, int lineNum) |
| | Helper function to read a new rod property given a line from the input file. More...
|
| |
| Rod * | readRod (string inputText, int lineNum) |
| | Helper function to read a new rod given a line from the input file. More...
|
| |
| Body * | readBody (string inputText, int lineNum) |
| | Helper function to read a new body given a line from the input file. More...
|
| |
| void | readOptionsLine (vector< string > &in_txt, int index) |
| | Helper function to read an option given a line from the input file. More...
|
| |
| bool | checkNumberOfEntriesInLine (vector< string > entries, int supposedNumberOfEntries, int lineNum) |
| | Check that the provided entries match the expected ones. More...
|
| |
| moordyn::error_id | icStationary () |
| | Compute an initial condition using the stationary solver. More...
|
| |
| moordyn::error_id | icLegacy () |
| | Compute an initial condition using the legacy upscaled drag dynamic solver. More...
|
| |
| moordyn::error_id | GetForces (double *f) const |
| | Get the forces. More...
|
| |
| ofstream | MakeFile (const std::string filepath) const |
| | Create an output file and write the MoorDyn magic header. More...
|
| |
| std::tuple< uint64_t, uint64_t * > | LoadFile (const std::string filepath) const |
| | Open an input file and load the data. More...
|
| |
| uint64_t | Serialize (const uint64_t &i) |
| | Pack an unsigned integer to make it writable. More...
|
| |
| uint64_t | Serialize (const int64_t &i) |
| | Pack an integer to make it writable. More...
|
| |
| uint64_t | Serialize (const real &f) |
| | Pack a float to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const vec &m) |
| | Pack a 3D vector to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const vec6 &m) |
| | Pack a 6D vector to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const mat &m) |
| | Pack a 3x3 matrix to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const mat6 &m) |
| | Pack a 6x6 matrix to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const quaternion &m) |
| | Pack a quaternion to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const XYZQuat &m) |
| | Pack an XYZQuat to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const std::vector< real > &l) |
| | Pack a list of floating point numbers to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const std::vector< vec > &l) |
| | Pack a list of 3D vectors to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const std::vector< vec6 > &l) |
| | Pack a list of 6D vectors to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const std::vector< mat > &l) |
| | Pack a list of 3x3 matrices to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const std::vector< mat6 > &l) |
| | Pack a list of 6x6 matrices to make it writable. More...
|
| |
| std::vector< uint64_t > | Serialize (const Eigen::Matrix< real, Eigen::Dynamic, Eigen::Dynamic > &l) |
| | Pack an arbitrarily large matrix. More...
|
| |
| template<typename T > |
| std::vector< uint64_t > | Serialize (const std::vector< std::vector< T >> &l) |
| | Pack a list of lists to make it writable This function might act recursively. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, uint64_t &out) |
| | Unpack a loaded unsigned integer. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, int64_t &out) |
| | Unpack a loaded integer. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, real &out) |
| | Unpack a loaded floating point number. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, vec &out) |
| | Unpack a loaded 3D vector. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, vec6 &out) |
| | Unpack a loaded 6D vector. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, mat &out) |
| | Unpack a loaded 3x3 matrix. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, mat6 &out) |
| | Unpack a loaded 6x6 matrix. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, quaternion &out) |
| | Unpack a loaded quaternion. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, XYZQuat &out) |
| | Unpack a loaded XYZQuat. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< real > &out) |
| | Unpack a loaded list of floating point numbers. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< vec > &out) |
| | Unpack a loaded list of 3D vectors. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< vec6 > &out) |
| | Unpack a loaded list of 6D vectors. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< mat > &out) |
| | Unpack a loaded list of 3x3 matrices. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< mat6 > &out) |
| | Unpack a loaded list of 6x6 matrices. More...
|
| |
| uint64_t * | Deserialize (const uint64_t *in, Eigen::Matrix< real, Eigen::Dynamic, Eigen::Dynamic > &out) |
| | Unpack an arbitrarily large matrix. More...
|
| |
| template<typename T > |
| uint64_t * | Deserialize (const uint64_t *in, std::vector< std::vector< T >> &out) |
| | Unpack a loaded list of lists. More...
|
| |
A Mooring system.
This class contains everything required to hold a whole mooring system, making everything thread-friendly easier