Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
nmx::apps::x1200::C1200 Class Reference

The C1200 class Bewegung einer Rakete in einem konstanten Gravitationsfeld (Rechenmodell) More...

#include <x1200.h>

Inheritance diagram for nmx::apps::x1200::C1200:
nmx::apps::x1200::X1200 nmx::XModel

Public Types

using Ode = gsl::Odeiv2< 3 >
 
using Data = Data< 7 >
 
- Public Types inherited from nmx::apps::x1200::X1200
using IValues = std::array< double, 2 >
 

Public Member Functions

int odefn (double t, const double fin[], double fout[])
 odefn Schnittstelle zur gsl More...
 
void exec (double t0=0, double tstep=1)
 exec Berechnung der numerischen Lösung More...
 
void save_data ()
 save_data schreibe berechnete Daten More...
 
- Public Member Functions inherited from nmx::apps::x1200::X1200
 X1200 (double minit, double mrocket, double l, double vrocket, IValues ivals)
 X1200 Konstruktor mit Liste aller Eingabeparameter. More...
 
bool is_propellant (double t) const
 is_propellant Treibstoff als Funktion der Zeit More...
 
double mass (double t) const
 mass Masse als Funktion der Zeit More...
 
double acceleration (double t) const
 acceleration Beschleunigung als Funktion der Zeit More...
 
double height (double t) const
 height Höhe als Funktion der Zeit More...
 
double velocity (double t) const
 velocity Geschwindigkeit als Funktion der Zeit More...
 
double time () const
 time Zeitpunkt zu dem der gesamte Treibstoff verbraucht ist More...
 
double velocity () const
 velocity Geschwindigkeit zum Zeitpunkt zu dem der gesamte Treibstoff verbraucht ist More...
 
double height () const
 height Höhe zum Zeitpunkt zum dem der gesamte Treibstoff verbraucht ist 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::x1200::X1200
const double mass0
 
const double massRocket
 
const double lambda
 
const double vRelative
 
const double z0
 
const double v0
 

Protected Attributes

Data _data
 

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 C1200 class Bewegung einer Rakete in einem konstanten Gravitationsfeld (Rechenmodell)

Definition at line 145 of file x1200.h.

Member Typedef Documentation

◆ Data

Definition at line 149 of file x1200.h.

◆ Ode

Definition at line 148 of file x1200.h.

Member Function Documentation

◆ exec()

void nmx::apps::x1200::C1200::exec ( double  t0 = 0,
double  tstep = 1 
)
inline

exec Berechnung der numerischen Lösung

Parameters
t0Zeit
tstepZeitschritte

Definition at line 178 of file x1200.h.

◆ odefn()

int nmx::apps::x1200::C1200::odefn ( double  t,
const double  fin[],
double  fout[] 
)
inline

odefn Schnittstelle zur gsl

Parameters
tZeit
finEingabe Feld der Länge 3
foutAusgabe Feld der Länge 3
Returns
GSL_SUCCESS

Definition at line 165 of file x1200.h.

◆ save_data()

void nmx::apps::x1200::C1200::save_data ( )
inline

save_data schreibe berechnete Daten

Definition at line 208 of file x1200.h.

Member Data Documentation

◆ _data

Data nmx::apps::x1200::C1200::_data
protected

Definition at line 153 of file x1200.h.

◆ Ode

Definition at line 150 of file x1200.h.


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