BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
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
21
namespace
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
cl_Cell.hpp
cl_ODE.hpp
cl_Vector.hpp
belfem::ode::ODE
an object that can create an ordinary differential equation
Definition
cl_ODE.hpp:28
en_ODE_Status.hpp
belfem::ode
Definition
cl_BDF.cpp:21
belfem::ode::RK45
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
belfem::ode::RK45_init
void RK45_init(ODE &aODE, Cell< Vector< real > > &aWork)
Definition
fn_ODE_RK45.cpp:22
belfem::ode::Status
Status
Definition
en_ODE_Status.hpp:20
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::uint
unsigned int uint
Definition
typedefs.hpp:30
belfem::real
double real
Definition
typedefs.hpp:36
typedefs.hpp
BELFEM_REAL_MAX
#define BELFEM_REAL_MAX
Definition
typedefs.hpp:81
src
numerics
ode
fn_ODE_RK45.hpp
Generated by
1.18.0