BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_BDF.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_CL_BDF_HPP
13
#define BELFEM_CL_BDF_HPP
14
15
#include "
cl_Matrix.hpp
"
16
#include "
cl_ShiftRegister.hpp
"
17
#include "
cl_Vector.hpp
"
18
19
#include "
typedefs.hpp
"
20
21
namespace
belfem
22
{
23
namespace
ode
24
{
25
class
BDF
26
{
27
ShiftRegister< real >
& mH ;
28
29
Vector< real >
mCoefficients ;
30
31
// normalized time values
32
Vector< real >
mS ;
33
34
Matrix< real >
mVandermonde ;
35
36
// pivot vector
37
Vector< int_t >
mPivot ;
38
39
// for vector integration
40
Vector< real >
mF ;
41
42
public
:
43
44
BDF
(
ShiftRegister< real >
& aH ) ;
45
46
void
47
compute_coefficients
();
48
49
const
Vector< real >
&
50
coefficients
()
const
;
51
52
real
53
eval
(
ShiftRegister< real >
& aY ,
const
real
aF,
const
bool
aUpdateCoefficients =
true
);
54
55
real
56
deval
(
const
ShiftRegister< real >
& aY,
const
bool
aUpdateCoefficients =
true
);
57
58
const
Vector< real >
&
59
eval
(
ShiftRegister
<
Vector< real >
> & aY ,
const
Vector< real >
& aF,
const
bool
aUpdateCoefficients =
true
);
60
61
const
Vector< real >
&
62
deval
(
const
ShiftRegister
<
Vector< real >
> & aY,
const
bool
aUpdateCoefficients =
true
);
63
64
65
};
66
67
68
inline
const
Vector< real >
&
69
BDF::coefficients
()
const
70
{
71
return
mCoefficients ;
72
}
73
74
}
75
}
76
#endif
// BELFEM_CL_BDF_HPP
cl_Matrix.hpp
cl_ShiftRegister.hpp
cl_Vector.hpp
belfem::Matrix< real >
belfem::ShiftRegister< real >
belfem::Vector< real >
belfem::ode::BDF::eval
real eval(ShiftRegister< real > &aY, const real aF, const bool aUpdateCoefficients=true)
Definition
cl_BDF.cpp:88
belfem::ode::BDF::compute_coefficients
void compute_coefficients()
Definition
cl_BDF.cpp:31
belfem::ode::BDF::deval
real deval(const ShiftRegister< real > &aY, const bool aUpdateCoefficients=true)
Definition
cl_BDF.cpp:69
belfem::ode::BDF::BDF
BDF(ShiftRegister< real > &aH)
Definition
cl_BDF.cpp:22
belfem::ode::BDF::coefficients
const Vector< real > & coefficients() const
Definition
cl_BDF.hpp:69
belfem::ode
Definition
cl_BDF.cpp:21
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::real
double real
Definition
typedefs.hpp:36
typedefs.hpp
src
numerics
ode
cl_BDF.hpp
Generated by
1.18.0