BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_ODE_RK45.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_FN_ODE_RK45_HPP
13#define BELFEM_FN_ODE_RK45_HPP
14
15#include "typedefs.hpp"
16#include "cl_Cell.hpp"
17#include "cl_Vector.hpp"
18#include "cl_ODE.hpp"
19#include "en_ODE_Status.hpp"
20
21namespace belfem
22{
23 namespace ode
24 {
25//------------------------------------------------------------------------------
26
27 // doi: 10.1007/BF02241732
28 Status
29 RK45( ODE & aODE,
30 real & aT,
31 Vector< real > & aY,
32 real & aStep,
33 Cell< Vector< real > > & aWork,
34 const real aEpsilon = 1e-7,
35 const uint aMaxIterations = 1000,
36 const real aTmax = BELFEM_REAL_MAX,
37 const bool aAutoTimestep = true );
38
39//------------------------------------------------------------------------------
40
41 void
42 RK45_init( ODE & aODE, Cell< Vector< real > > & aWork );
43
44//------------------------------------------------------------------------------
45 }
46}
47
48#endif //BELFEM_FN_ODE_RK45_HPP
an object that can create an ordinary differential equation
Definition cl_ODE.hpp:28
Definition cl_BDF.cpp:21
Status RK45(ODE &aODE, real &aT, Vector< real > &aY, real &aStep, Cell< Vector< real > > &aWork, const real aEpsilon, const uint aMaxIterations, const real aTmax, const bool aAutoTimestep)
Definition fn_ODE_RK45.cpp:39
void RK45_init(ODE &aODE, Cell< Vector< real > > &aWork)
Definition fn_ODE_RK45.cpp:22
Status
Definition en_ODE_Status.hpp:20
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
double real
Definition typedefs.hpp:36
#define BELFEM_REAL_MAX
Definition typedefs.hpp:81