Alsvinn  0.5.3
The fast FVM simulator with UQ support
SimulatorParameters.hpp
Go to the documentation of this file.
1 /* Copyright (c) 2018 ETH Zurich, Kjetil Olsen Lye
2  * This program is free software: you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #pragma once
17 #include "alsfvm/types.hpp"
19 namespace alsfvm {
20 namespace simulator {
21 
23 public:
25  : equationParameters(new equation::EquationParameters)
26  {}
27  SimulatorParameters(const std::string& equationName,
28  const std::string& platform);
29 
30  void setCFLNumber(real cfl);
31  real getCFLNumber() const;
32 
35  void setEquationParameters(alsfvm::shared_ptr<equation::EquationParameters>
36  parameters);
37 
38  void setEquationName(const std::string& name);
39 
40  const std::string& getEquationName() const;
41 
42  void setPlatform(const std::string& platform);
43 
44  const std::string& getPlatform() const;
45 
46 
47 private:
48  real cflNumber;
49  std::string equationName;
50  std::string platform;
51  alsfvm::shared_ptr<equation::EquationParameters> equationParameters;
52 
53 };
54 } // namespace alsfvm
55 } // namespace simulator
const std::string & getEquationName() const
Definition: SimulatorParameters.cpp:55
simulator::SimulatorParameters & parameters
Definition: CellComputerFactory.cpp:60
SimulatorParameters()
Definition: SimulatorParameters.hpp:24
double real
Definition: types.hpp:65
std::string name
Definition: EquationParameterFactory.cpp:39
Definition: EquationParameters.hpp:21
void setEquationName(const std::string &name)
Definition: SimulatorParameters.cpp:51
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
void setCFLNumber(real cfl)
Definition: SimulatorParameters.cpp:28
const std::string & getPlatform() const
Definition: SimulatorParameters.cpp:63
real getCFLNumber() const
Definition: SimulatorParameters.cpp:32
Definition: SimulatorParameters.hpp:22
void setPlatform(const std::string &platform)
Definition: SimulatorParameters.cpp:59
void setEquationParameters(alsfvm::shared_ptr< equation::EquationParameters > parameters)
Definition: SimulatorParameters.cpp:46
const equation::EquationParameters & getEquationParameters() const
Definition: SimulatorParameters.cpp:36