Public Types | Public Member Functions | Public Attributes | List of all members
nmx::apps::x900::C900 Class Reference

The X900 class Harmonische Schwingung eines Feder-Massen-Systems (Rechenmodell) More...

#include <x900.h>

Inheritance diagram for nmx::apps::x900::C900:
nmx::apps::x900::X900 nmx::XModel

Public Types

using Ode = gsl::Odeiv2< 2 >
 
using Data = Data< 7 >
 

Public Member Functions

int odefn (double t, const double yin[], double yout[])
 odefn Bewegungsgleichung als System von Differenzialgleichungen erster Ordnung More...
 
void exec ()
 solve_ode numerische Lösung der Bewegungsgleichungen More...
 
void save_data ()
 save_data schreibe Daten in Dateien (LaTeX und CSV) More...
 
- Public Member Functions inherited from nmx::apps::x900::X900
 X900 (double m, double k, double x0, double v0)
 X900. More...
 
double omega0 () const
 omega0 More...
 
double phi0 () const
 phi0 More...
 
double amplitude () const
 amplitude More...
 
double phase (double t) const
 phase More...
 
double x (double t) const
 x Auslenkung More...
 
double v (double t) const
 v Geschwindigkeit More...
 
double a (double t) const
 a Beschleunigung More...
 
double force (double x) const
 force Kraft More...
 
- Public Member Functions inherited from nmx::XModel
 XModel ()=delete
 XModelBase kein Standardkonstruktor. More...
 
 XModel (const char *name)
 XModelBase Konstruktor. More...
 

Public Attributes

friend Ode
 
- Public Attributes inherited from nmx::apps::x900::X900
const double mass
 
const double k
 
const double x0
 
const double v0
 

Additional Inherited Members

- Static Public Member Functions inherited from nmx::XModel
static std::ofstream get_output_stream (Format fmt)
 get_output_stream More...
 
template<class T >
static std::ofstream get_output_stream (Format fmt, const T &id)
 get_output_stream More...
 
template<class T >
static void save (const T &data, Format fmt)
 save Speicherung von Daten in eine Datei More...
 
template<class T , class ID >
static void save (const T &data, Format fmt, const ID &id)
 save Speicherung von Daten in eine Datei More...
 
static std::string class_name ()
 class_name More...
 

Detailed Description

The X900 class Harmonische Schwingung eines Feder-Massen-Systems (Rechenmodell)

Definition at line 108 of file x900.h.

Member Typedef Documentation

◆ Data

Definition at line 113 of file x900.h.

◆ Ode

Definition at line 111 of file x900.h.

Member Function Documentation

◆ exec()

void nmx::apps::x900::C900::exec ( )
inline

solve_ode numerische Lösung der Bewegungsgleichungen

Definition at line 139 of file x900.h.

◆ odefn()

int nmx::apps::x900::C900::odefn ( double  t,
const double  yin[],
double  yout[] 
)
inline

odefn Bewegungsgleichung als System von Differenzialgleichungen erster Ordnung

Parameters
tZeit
yinEingabe
youtAusgabe
Returns
GSL_SUCCESS

Definition at line 129 of file x900.h.

◆ save_data()

void nmx::apps::x900::C900::save_data ( )
inline

save_data schreibe Daten in Dateien (LaTeX und CSV)

Definition at line 165 of file x900.h.

Member Data Documentation

◆ Ode

Definition at line 112 of file x900.h.


The documentation for this class was generated from the following file: