Skip to content
Snippets Groups Projects
Commit d5c54414 authored by sucharush's avatar sucharush
Browse files

clean includes

parent 5b35f37c
No related branches found
No related tags found
No related merge requests found
...@@ -22,3 +22,6 @@ cmake-build-debug/ ...@@ -22,3 +22,6 @@ cmake-build-debug/
Thumbs.db # Windows thumbnail cache Thumbs.db # Windows thumbnail cache
ehthumbs.db # Windows Explorer thumbnail database (legacy) ehthumbs.db # Windows Explorer thumbnail database (legacy)
Desktop.ini # Windows folders customization file Desktop.ini # Windows folders customization file
# project specific
draft.md
\ No newline at end of file
...@@ -146,9 +146,6 @@ Modify the `config/config.json` file to set global parameters and solver-specifi ...@@ -146,9 +146,6 @@ Modify the `config/config.json` file to set global parameters and solver-specifi
**Note:** It will automatically build the forward Euler method when choosing `order = 1` for Runge Kutta **Note:** It will automatically build the forward Euler method when choosing `order = 1` for Runge Kutta
or `steps = 1` for AdamsBashforth, as they are the same solvers. or `steps = 1` for AdamsBashforth, as they are the same solvers.
[//]: # (TODO logic)
### Documentation ### Documentation
Building the project also creates a folder 'doc', that contains the doxygen documentation of the project. To see this documentation, there are a few alternatives: Building the project also creates a folder 'doc', that contains the doxygen documentation of the project. To see this documentation, there are a few alternatives:
- open the file 'index.html' located in doc/html/. This should open a window in your browser with our documentation. - open the file 'index.html' located in doc/html/. This should open a window in your browser with our documentation.
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#ifndef BUTCHERTABLE_H #ifndef BUTCHERTABLE_H
#define BUTCHERTABLE_H #define BUTCHERTABLE_H
#include <unordered_map>
#include <vector> #include <vector>
#include <Eigen/Dense> #include <Eigen/Dense>
......
...@@ -44,8 +44,6 @@ protected: ...@@ -44,8 +44,6 @@ protected:
Eigen::VectorXd coeffs_; //!< Coefficients (weights) that determine the method. Eigen::VectorXd coeffs_; //!< Coefficients (weights) that determine the method.
private: private:
/// Method to set-up the solver from an Explicit single-step solver
void setupSolver(ExplicitSingleStepSolver& solver);
int steps_; //!< Number of steps of the method (order) int steps_; //!< Number of steps of the method (order)
std::string initMethod_; //!< Auxiliary method used for the computation of the initial values of the solution std::string initMethod_; //!< Auxiliary method used for the computation of the initial values of the solution
}; };
......
...@@ -27,4 +27,11 @@ typedef double var_y; //!< [unused] Typedef for the space parameter of the ODE ...@@ -27,4 +27,11 @@ typedef double var_y; //!< [unused] Typedef for the space parameter of the ODE
/// Typedef for function type (right hand side object of the ODE) /// Typedef for function type (right hand side object of the ODE)
typedef std::function<double(double, double)> FuncType; typedef std::function<double(double, double)> FuncType;
double AnalyticalSolutionPoly(double t, double y0) {
double C = y0 + 0.5; // Calculate the integration constant C
return C * exp(2 * t) - 0.5; // y = Ce^(2t) - 0.5
}
double AnalyticalSolutionModel(double t, double y0, double k) {
return y0 * std::exp(-k * t); // define analytical solution if you know
}
#endif //UTILS_H #endif //UTILS_H
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "include/ForwardEulerSolver.h" #include "include/ForwardEulerSolver.h"
#include "include/BackwardEulerSolver.h" #include "include/BackwardEulerSolver.h"
#include "src/ODERightHandSide.cc" #include "src/ODERightHandSide.cc"
#include "src/UserDefinedRHS.cc"
#include "src/KnownDerivativeRHS.cc" #include "src/KnownDerivativeRHS.cc"
#include "include/AdamsBashforthSolver.h" #include "include/AdamsBashforthSolver.h"
#include "include/RungeKuttaSolver.h" #include "include/RungeKuttaSolver.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment