30 X9000(
double m,
double b,
double x0,
double v0)
34 , mu{ sqrt((b) / (mass)) }
45 inline double a(
double x)
const {
return pow(mu, 2) *
x; }
52 inline double force(
double x)
const {
return b *
x; }
59 inline double v(
double t)
const {
60 return v0 * cosh(mu * t) + mu * (
x0) *sinh(mu * t);
68 inline double x(
double t)
const {
69 return (x0) *cosh(mu * t) + (
v0) / mu * sinh(mu * t);
95 inline int odefn(
double t,
const double fin[],
double fout[]) {
111 Ode ode{ *
this, 1e-2, 1e-6, 0 };
113 double t = 0, dt = 0.1;
149 C9000 cobj(1, 2, 10, 10);
static double kinetic_energy(double mass, double velocity)
kinetic_energy Hilfsfunktion
double v(double t) const
v Geschwindigkeit als Funktion von t
void set_init_conditions(double t, const Array &y)
set_init_conditions lege Anfangsbedingungen fest
The X9000 class Teilchen bewegt sich unter dem Einfluss einer ortsabhängigen Kraft (Modellklasse) ...
double a(double x) const
acceleration Beschleunigung als Funktion von x
double x(double t) const
x Ort als Funktion von t
The Odeiv2 class numerische Lösung eines Systems von N Differenzialgleichungen Schnittstelle zur gsl...
The XModel class Basisklasse speichert eine ID in Form einer Zeichenkette enthält Hilfsfunktionen zur...
double force(double x) const
force Kraft als Funktion von x
void run()
run Teilchen bewegt sich unter dem Einfluss einer ortsabhängigen Kraft (Berechnung von Beispieldaten)...
void exec(double tmax)
solve numerische Lösung der Bewegungsgleichung
auto select_total_rows(size_t n, size_t start=0, bool l=true) const
get_total_rows generiere View mit eine Instanz vom Typ View bestimmter Anzahl von Spalten ...
static void save(const T &data, Format fmt)
save Speicherung von Daten in eine Datei
X9000(double m, double b, double x0, double v0)
X9000 Konstruktor.
The CModel class Teilchen bewegt sich unter dem Einfluss einer ortsabhängigen Kraft (Rechenmodell) ...
static const Format latex
static void all(const std::string &s, std::initializer_list< bool > lst)
input teste mehrere Bedingungen auf einmal
void save_data()
save_data Daten werden im CSV- und LaTeX-Format gespeichert.