SLIDE  3.0.0
A simulator for lithium-ion battery pack degradation
Loading...
Searching...
No Matches
settings.hpp
Go to the documentation of this file.
1/*
2 * settings.hpp
3 *
4 * Created on: 3 Mar 2020
5 * Author(s): Jorn Reniers, Volkan Kumtepeli
6 *
7 * Defines constants to be used in the program.
8 *
9 * Copyright (c) 2019, The Chancellor, Masters and Scholars of the University
10 * of Oxford, VITO nv, and the 'Slide' Developers.
11 * See the licence file LICENCE.txt for more information.
12 */
13
14#pragma once
15
16#include "../utility/units.hpp"
17#include "enum_definitions.hpp"
18#include "constants.hpp"
19#include "slide_paths.hpp"
20#include "tolerances.hpp"
21
23{
24constexpr double flowrate_perCell{ 0.0005 };
25}
26
27namespace slide::settings {
28constexpr bool isParallel{ true };
29constexpr unsigned int numMaxParallelWorkers = 32;
30
33constexpr size_t nch{ 5 };
42
43constexpr double Tmin_Cell_K{ 0.0_degC };
44constexpr double Tmax_Cell_K{ 60.0_degC };
45
46constexpr bool overwrite_data = true;
47
49constexpr int DATASTORE_NHIST = 100;
50
54
55
57
62constexpr int DATASTORE_COOL = 0;
65
66constexpr int MODULE_NSUs_MAX = 100;
69
70constexpr double T_ENV = 15.0_degC;
71
72constexpr size_t CYCLER_NDATA_MAX{ 10000 };
76
77constexpr size_t CELL_NDATA_HIST_MAX = 10'000'000;
78constexpr size_t CELL_NDATA_INST_MAX = 100'000;
79
81
82constexpr size_t CELL_NSTATE_MAX{ 30 };
83
85// #define DATASTORE_CELL 0 //!< if 0, no cell-level data is stored
88#define DATASTORE_BATT 0
90
92constexpr int T_MODEL{ 0 };
98
114
115constexpr bool printNumIterations{ false };
116
117} // namespace slide::settings
118
120namespace slide::settings {
122} // namespace slide::settings
123
124
125#include "derived_settings.hpp"
< Cooling System Settings.
Definition: settings.hpp:23
constexpr double flowrate_perCell
flow rate m3/s, per cell value
Definition: settings.hpp:24
< Non-user related settings, please do not change!
Definition: derived_settings.hpp:13
constexpr size_t MODULE_NDATA_MAX
if we store cell-level data, make the array as long as the one in Cycler
Definition: settings.hpp:80
constexpr int verbose
Definition: settings.hpp:100
constexpr double T_ENV
environmental temperature
Definition: settings.hpp:70
@ printCrit
threshold of verbose of when to print error messages for critical errors
Definition: enum_definitions.hpp:12
constexpr unsigned int numMaxParallelWorkers
Maximum number of threads to use if isParallel true.
Definition: settings.hpp:29
constexpr bool printNumIterations
Prints number of iterations for improvement. Default is false.
Definition: settings.hpp:115
constexpr int T_MODEL
Choose how much messages should be printed to the terminal.
Definition: settings.hpp:92
constexpr int DATASTORE_NHIST
length of the arrays with the histograms (if 1)
Definition: settings.hpp:49
constexpr size_t CYCLER_NDATA_MAX
Definition: settings.hpp:72
constexpr bool overwrite_data
if this is false then folder overwriting is forbidden so you need to delete folders in results.
Definition: settings.hpp:46
constexpr double Tmax_Cell_K
the maximum temperature allowed in the simulation [K]
Definition: settings.hpp:44
constexpr size_t CELL_NDATA_INST_MAX
If it is storing every data then we should have much less storage.
Definition: settings.hpp:78
constexpr auto DATASTORE_MODULE
See moduleDataStorageLevel for different options.
Definition: settings.hpp:56
constexpr bool isParallel
Parallelises the code if possible.
Definition: settings.hpp:28
constexpr size_t CELL_NSTATE_MAX
maximum number of states of all types of cells //!< used to prepare arrays which are long enough for ...
Definition: settings.hpp:82
constexpr size_t nch
Definition: settings.hpp:33
constexpr int MODULE_NSUs_MAX
Definition: settings.hpp:66
constexpr double Tmin_Cell_K
the minimum temperature allowed in the simulation [K]
Definition: settings.hpp:43
constexpr auto CVcurrentFindingMethod
Definition: settings.hpp:121
constexpr int DATASTORE_COOL
Definition: settings.hpp:62
constexpr size_t CELL_NDATA_HIST_MAX
If histogram then write data every 10 millionth data.
Definition: settings.hpp:77
constexpr auto DATASTORE_CELL
Definition: settings.hpp:51
@ falsePosition
Definition: enum_definitions.hpp:36