-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRuntimeParameters.h
More file actions
34 lines (29 loc) · 1001 Bytes
/
RuntimeParameters.h
File metadata and controls
34 lines (29 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Created by Malachi Phillips on 9/25/16.
//
#ifndef CFD_HW_RUNTIMEPARAMETERS_H
#define CFD_HW_RUNTIMEPARAMETERS_H
// Controls solution parameters, from user
/*
* User must input grid spacing (dx), length, and total time.
* CFL, dt are inferred from these settings to ensure a reasonable PDE solution
*/
#include <string>
#include <vector>
//============================================================================================================
/*
* RuntimeParameter: parse file from input deck
*/
//============================================================================================================
class RuntimeParser{
public:
// Read in parameters from input file
void read_parameters_from_file(std::string& runtime_args);
std::vector<double>& return_args(){return args_;};
std::string& return_cond(){return initialCondition_;};
protected:
std::vector<double> args_;
std::string initialCondition_;
private:
};
#endif //CFD_HW_RUNTIMEPARAMETERS_H