class Bessel {
Integrator yi, y;
public:
Bessel():
yi( -(1/T)*yi+(1/(T*T)-1)*y , 0.49999),
y( yi , 0.001) {}
double Y() { return y.Value(); }
double YI() { return yi.Value(); }
};
Bessel bes;
Print(
"%-8g %g %g\n", T.
Value(), bes.Y(), bes.YI());
}
Print(
"# Bessel diferential equation \n");
}
virtual double Value()=0
get block output value this method should be defined in classes derived from aContiBlock
void SetStep(double _dtmin, double _dtmax)
Set integration step interval.
void SetOutput(const char *name)
redirects Output(), Print() to file
void Run()
run simulation experiment
int Print(const char *fmt,...)
for Output methods, can be redirected
void Init(double t0, double t1=SIMLIB_MAXTIME)
Initialize simulator and model time.
const SIMLIB_statistics_t & SIMLIB_statistics
interface to internal run-time statistics structure
Main SIMLIB/C++ interface.
void Output() const
print run-time statistics to output