IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.MPetekLib.Algorithms.PlottableModels.Oscillators.SimpleHarmonicOscillator Class Reference
+ Inheritance diagram for IG.MPetekLib.Algorithms.PlottableModels.Oscillators.SimpleHarmonicOscillator:
+ Collaboration diagram for IG.MPetekLib.Algorithms.PlottableModels.Oscillators.SimpleHarmonicOscillator:

Public Member Functions

override double ODE (double[] arg)
 Simple harmonic oscillator. The second derivative equals the function itself. More...
 
- Public Member Functions inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableODEModelBase
void SolveNumerically ()
 Solves the ODE by calling Solve() on the ODE solver. More...
 
void CalculateErrors ()
 Estimates errors by comparing the solution at current step size to the solution at half of the current step size. More...
 
void PostProcessErrors (int forceTakeValue)
 Najprej izračuna absolutne vrednosti napak. Potem poskuša zgladiti krivuljo (uporabno če ta oscilira). More...
 
void VerifyErrorsValidity (int nPoints)
 Only exposes the same method on the ODE solver. More...
 
- Public Member Functions inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableModelBase
PlotZedgraphCurve NewCurveFromPlottableData (PlotterZedGraph plotter, int x, int y)
 Creates a new PlotZedgraphCurve object from the available plottable data. More...
 
void LoadPlottableDataToCurve (PlotZedgraphCurve curve, int x, int y)
 Copies the calculated data to the existing PlotZedgraphCurve object. Enough space must be available on the curve object's list. More...
 

Additional Inherited Members

- Protected Attributes inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableODEModelBase
InitialProblemSolverRK4 _solver
 
double[] _initialConditions
 
- Protected Attributes inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableModelBase
string _title
 
- Properties inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableODEModelBase
InitialProblemSolverRK4 Solver [get, set]
 An ODE solver object. More...
 
double[] InitialConditions [get, set]
 User definable initial conditions which are passed to the ODE solver object. You must provide the correct number of initial conditions. For a II. order ODE they should be specified as: {x, f(x), f'(x), f''(x)}. The value of the highest derivative is deduced automatically and is only provided by the user as a placeholder. It does not need to be correct (can be any number). More...
 
- Properties inherited from IG.MPetekLib.Algorithms.PlottableModels.PlottableModelBase
string Title [get, set]
 The plottable model's name. Also used as a plot title. More...
 
List< double[]> PlottableData [get, set]
 The main solution array, which is used by the plotter. More...
 

Member Function Documentation

override double IG.MPetekLib.Algorithms.PlottableModels.Oscillators.SimpleHarmonicOscillator.ODE ( double[]  arg)
inlinevirtual

Simple harmonic oscillator. The second derivative equals the function itself.

Implements IG.MPetekLib.Algorithms.PlottableModels.PlottableODEModelBase.

Referenced by IG.MPetekLib.Application.Scripts.LinearOscillator._01NondrivenPrintSolution.ReturnSolver().


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