BELFEM 0.9.0
Berkeley Lab Finite Element Framework
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
21namespace belfem
22{
23 namespace ode
24 {
25 class BDF
26 {
28
29 Vector< real > mCoefficients ;
30
31 // normalized time values
33
34 Matrix< real > mVandermonde ;
35
36 // pivot vector
37 Vector< int_t > mPivot ;
38
39 // for vector integration
41
42 public:
43
45
46 void
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 > &
70 {
71 return mCoefficients ;
72 }
73
74 }
75}
76#endif // BELFEM_CL_BDF_HPP
real eval(ShiftRegister< real > &aY, const real aF, const bool aUpdateCoefficients=true)
Definition cl_BDF.cpp:88
void compute_coefficients()
Definition cl_BDF.cpp:31
real deval(const ShiftRegister< real > &aY, const bool aUpdateCoefficients=true)
Definition cl_BDF.cpp:69
BDF(ShiftRegister< real > &aH)
Definition cl_BDF.cpp:22
const Vector< real > & coefficients() const
Definition cl_BDF.hpp:69
Definition cl_BDF.cpp:21
USER GUIDES:
Definition cl_Capacitor.cpp:16
double real
Definition typedefs.hpp:36