Package: rODE 0.99.6

rODE: Ordinary Differential Equation (ODE) Solvers Written in R Using S4 Classes

Show physics, math and engineering students how an ODE solver is made and how effective R classes can be for the construction of the equations that describe natural phenomena. Inspiration for this work comes from the book on "Computer Simulations in Physics" by Harvey Gould, Jan Tobochnik, and Wolfgang Christian. Book link: <http://www.compadre.org/osp/items/detail.cfm?ID=7375>.

Authors:Alfonso R. Reyes [aut, cre]

rODE_0.99.6.tar.gz
rODE_0.99.6.zip(r-4.7-any)rODE_0.99.6.zip(r-4.6-any)rODE_0.99.6.zip(r-4.5-any)
rODE_0.99.6.tgz(r-4.6-any)rODE_0.99.6.tgz(r-4.5-any)
rODE_0.99.6.tar.gz(r-4.7-any)rODE_0.99.6.tar.gz(r-4.6-any)
rODE_0.99.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
rODE/json (API)

# Install 'rODE' in R:
install.packages('rODE', repos = c('https://f0nzie.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/f0nzie/rode/issues

On CRAN:

Conda:

5.70 score 112 scripts 240 downloads 36 exports 1 dependencies

Last updated from:1d686fd06b. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develNOTE130
source / vignettesOK213
linux-releaseNOTE135
macos-releaseNOTE130
macos-oldrelNOTE179
windows-develNOTE99
windows-releaseNOTE95
windows-oldrelNOTE98
wasm-releaseOK98

Exports:AbstractODESolvercreateODESolverDormandPrince45doStepenableRuntimeExceptionsEulerEulerRichardsongetEnergygetErrorCodegetExactSolutiongetODEgetRategetRateCountergetRateCountsgetStategetStepSizegetTimegetToleranceimportFromExamplesinitinit<-ODEODEAdaptiveSolverODESolverODESolverFactoryRK4RK45run_test_applicationssetSolver<-setStatesetStepSizesetTolerancesetTolerance<-showMethods2stepVerlet

Dependencies:data.table

Chemical Reaction
Build the Reaction class with a RK4 solver | Run the application ReactionApp

Last update: 2017-11-10
Started: 2017-05-22

Comparison of ODE solvers
Build the ODE class (without class accumulator) | Comparison of solutions: RK45 vs analytical solution | Build and run the application ComparisonRK45App | Storing the number of counts in a class environment object

Last update: 2017-11-10
Started: 2017-05-22

Error vs step size with Euler method
A challenge | Build the ODE solver | Calculate the error for each step size | Plot the errors vs step size | Plot the number of steps vs. step size

Last update: 2017-11-10
Started: 2017-11-10

Falling Particle ODE
The FallingParticleODE class using the Euler ODE solver | Build the FallingParticleODE class | Run the application FallingParticleODEApp

Last update: 2017-11-10
Started: 2017-05-22

Kepler. Interaction between two planets
The Kepler class | Run the application KeplerApp

Last update: 2017-11-10
Started: 2017-05-22

Muskat Material Balance
Muskat's Material Balance Equation | Solving the 1st Order Differential Equation (ODE) | Building the ODE for Material Balance | Implementing the Euler solver | Summary table | Solve Muskat's Equation using Runge-Kutta | Using a solver factory | Euler | Euler-Richardson | Runge-Kutta | Runge-Kutta 45 | What about doing all in one step | Plot the error of the solvers | Plot RK4 vs RK45 | Exercise: Using the ODE Solver RK4, find the saturation value at pressure of 3 with a time step 0.05

Last update: 2017-11-10
Started: 2017-11-10

Pendulum with Euler-Richardson ODE solver
Define the ODE Solver: Pendulum with Euler-Richardson ODE solver | Run the application PendulumApp

Last update: 2017-11-10
Started: 2017-05-22

Planet orbiting with Euler ODE solver
Build the class Planet with the Euler ODE solver | Run the application PlanetApp

Last update: 2017-11-10
Started: 2017-05-22

Projectile with RK4 solver
Build the Projectile class with RK4 solver | Run the application ProjectileApp

Last update: 2017-11-10
Started: 2017-05-22

Readme and manuals

Help Manual

Help pageTopics
Ordinary Differential EquationsrODE-package
AbstractODESolver class.AbstractODESolver AbstractODESolver AbstractODESolver,missing-method AbstractODESolver,ODE-method AbstractODESolver-class getODE,AbstractODESolver-method getStepSize,AbstractODESolver-method init,AbstractODESolver-method init<-,AbstractODESolver-method setStepSize,AbstractODESolver-method step,AbstractODESolver-method
DormandPrince45 ODE solver class.DormandPrince45 DormandPrince45 DormandPrince45,ODE-method DormandPrince45-class enableRuntimeExceptions,DormandPrince45-method enableRuntimeExceptions,enableRuntimeExceptions-method getErrorCode,DormandPrince45-method getErrorCode,getErrorCode-method getStepSize,DormandPrince45-method getTolerance,DormandPrince45-method getTolerance,getTolerance-method init,DormandPrince45-method init<-,DormandPrince45-method setStepSize,DormandPrince45-method setTolerance,DormandPrince45-method setTolerance,setTolerance-method setTolerance<-,DormandPrince45-method step,DormandPrince45-method
doStepdoStep
enableRuntimeExceptionsenableRuntimeExceptions
Euler ODE solver class.Euler Euler Euler,missing-method Euler,ODE-method Euler-class getStepSize,Euler-method getStepSize,getStepSize-method init,Euler-method init,init-method setStepSize,Euler-method setStepSize,setStepSize-method step,Euler-method step,step-method
EulerRichardson ODE solver class.EulerRichardson EulerRichardson EulerRichardson,ODE-method EulerRichardson-class init,EulerRichardson-method step,EulerRichardson-method
getEnergygetEnergy
getErrorCodegetErrorCode
getExactSolutiongetExactSolution
getODEgetODE
getRategetRate
getRateCountergetRateCounter
getRateCountsgetRateCounts
getStategetState
getStepSizegetStepSize
getTimegetTime
getTolerancegetTolerance
importFromExamplesimportFromExamples
initinit init<-
ODE classgetRate,getRate-method getRate,ODE-method getState,getState-method getState,ODE-method ODE ODE-class
ODEAdaptiveSolver class.ODEAdaptiveSolver getErrorCode,ODEAdaptiveSolver-method getTolerance,ODEAdaptiveSolver-method ODEAdaptiveSolver ODEAdaptiveSolver,ANY-method ODEAdaptiveSolver-class setTolerance,ODEAdaptiveSolver-method setTolerance<-,ODEAdaptiveSolver-method
ODESolver virtual class.ODESolver getODE,ODESolver-method getStepSize,ODESolver-method init,ODESolver-method ODESolver ODESolver-class setStepSize,ODESolver-method step,ODESolver-method
ODESolverFactory.ODESolverFactory createODESolver createODESolver,ODESolverFactory-method ODESolverFactory ODESolverFactory,ANY-method ODESolverFactory-class
RK4 class.RK4 init,RK4-method init<-,RK4-method RK4 RK4,ODE-method RK4-class step,RK4-method
RK45 ODE solver classRK45 RK45-class
run_test_applicationsrun_test_applications
setSolversetSolver<-
setStatesetState
setStepSizesetStepSize
setTolerancesetTolerance setTolerance<-
showMethods2showMethods2
stepstep
Verlet ODE solver class.Verlet getRateCounter,getRateCounter-method getRateCounter,Verlet-method init,Verlet-method init-methods step,Verlet-method Verlet Verlet,ODE-method Verlet-class