Public Member Functions | Public Attributes | List of all members
nmx::apps::x130::X130 Class Reference

The X130 class Gravitationsfeld zweier Massen. More...

#include <x130.h>

Inheritance diagram for nmx::apps::x130::X130:
nmx::XModel

Public Member Functions

 X130 (double m1, double m2, double d, double m3=1, double xlim=5, double dx=1, double ylim=5, double dy=1)
 X130 Konstruktor. More...
 
auto force1 (const Vector &v) const
 force1 Berechnung der Kraft von m1 auf die Probemasse More...
 
auto force2 (const Vector &v) const
 force2 Berechnung der Kraft von m2 auf die Probemasse More...
 
void exec ()
 exec Berechnung der normierten Kraftvektoren More...
 
void save_data () const
 save_data Speicherung der Daten, z.B. -1 -1 5 8 More...
 
- Public Member Functions inherited from nmx::XModel
 XModel ()=delete
 XModelBase kein Standardkonstruktor. More...
 
 XModel (const char *name)
 XModelBase Konstruktor. More...
 

Public Attributes

const double m1
 
const double m2
 
const double m3
 
const double d
 
const double dx
 
const double dy
 
const double xlim
 
const double ylim
 

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 X130 class Gravitationsfeld zweier Massen.

Definition at line 13 of file x130.h.

Constructor & Destructor Documentation

◆ X130()

nmx::apps::x130::X130::X130 ( double  m1,
double  m2,
double  d,
double  m3 = 1,
double  xlim = 5,
double  dx = 1,
double  ylim = 5,
double  dy = 1 
)
inline

X130 Konstruktor.

Parameters
m1Masse 1 (Quelle)
m2Masse 2 (Quelle)
dAbstand zwischen m1 und m2
m3Probemasse
xlimDarstellung von [-xlim,xlim]
dxSchrittweite in x-Richtung
ylimDarstellung von [-ylim,ylim]
dySchrittweite in y-Richtung

Definition at line 45 of file x130.h.

Member Function Documentation

◆ exec()

void nmx::apps::x130::X130::exec ( )
inline

exec Berechnung der normierten Kraftvektoren

Definition at line 88 of file x130.h.

◆ force1()

auto nmx::apps::x130::X130::force1 ( const Vector v) const
inline

force1 Berechnung der Kraft von m1 auf die Probemasse

Parameters
vOrtsvektor der Probemasse
Returns
Kraft

Definition at line 58 of file x130.h.

◆ force2()

auto nmx::apps::x130::X130::force2 ( const Vector v) const
inline

force2 Berechnung der Kraft von m2 auf die Probemasse

Parameters
vOrtsvektor der Probemasse
Returns
Kraft

Definition at line 74 of file x130.h.

◆ save_data()

void nmx::apps::x130::X130::save_data ( ) const
inline

save_data Speicherung der Daten, z.B. -1 -1 5 8

Definition at line 121 of file x130.h.

Member Data Documentation

◆ d

const double nmx::apps::x130::X130::d

Definition at line 29 of file x130.h.

◆ dx

const double nmx::apps::x130::X130::dx

Definition at line 29 of file x130.h.

◆ dy

const double nmx::apps::x130::X130::dy

Definition at line 29 of file x130.h.

◆ m1

const double nmx::apps::x130::X130::m1

Definition at line 28 of file x130.h.

◆ m2

const double nmx::apps::x130::X130::m2

Definition at line 28 of file x130.h.

◆ m3

const double nmx::apps::x130::X130::m3

Definition at line 28 of file x130.h.

◆ xlim

const double nmx::apps::x130::X130::xlim

Definition at line 30 of file x130.h.

◆ ylim

const double nmx::apps::x130::X130::ylim

Definition at line 30 of file x130.h.


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