SLIDE  3.0.0
A simulator for lithium-ion battery pack degradation
Loading...
Searching...
No Matches
slide_paths.hpp
Go to the documentation of this file.
1/*
2 * slide_paths.hpp
3 *
4 * Author : Volkan Kumtepeli
5 *
6 * Defines constants to be used in the program.
7 *
8 * Copyright (c) 2019, The Chancellor, Masters and Scholars of the University
9 * of Oxford, VITO nv, and the 'Slide' Developers.
10 * See the licence file LICENCE.txt for more information.
11 */
12
13#pragma once
14
15#include <string>
16#include <filesystem>
17
18inline std::filesystem::path operator+(const std::filesystem::path &lhs, const std::string &rhs)
19{
20 const std::filesystem::path temp{ rhs };
21 return lhs / temp;
22}
23
24namespace PathVar {
25namespace fs = std::filesystem;
26
27#ifdef SLIDE_ROOT_DIR
29const auto root_folder = fs::path(SLIDE_ROOT_DIR).make_preferred();
30#else
31const static fs::path root_folder{ "../.." };
32#endif
33
34const static fs::path results_folder = "results";
35const static fs::path data_folder = "data";
36
37static fs::path results = root_folder / results_folder;
38static fs::path data = root_folder / data_folder;
39} // namespace PathVar
40
42const static std::string namepos{ "Kokam_OCV_NMC.csv" };
43const static std::string nameneg{ "Kokam_OCV_C.csv" };
44const static std::string nameentropicC{ "Kokam_entropic_C.csv" };
45const static std::string nameentropicCell{ "Kokam_entropic_cell.csv" };
46
47} // namespace slide::settings::path::Kokam
Definition: slide_paths.hpp:24
Definition: slide_paths.hpp:41
std::filesystem::path operator+(const std::filesystem::path &lhs, const std::string &rhs)
Definition: slide_paths.hpp:18