You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
577 B

//
// Created by Wei Chen on 22-9-12.
//
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <string>
#include <Eigen/Eigen>
#include <utility>
#include "BoundaryConditions.hpp"
namespace ssim {
class Config {
public:
std::string filePath;
double YM = 1e5;
double PR = 0.3;
double density = 1e3;
std::string mshFilePath;
std::vector<DirichletBC> DirichletBCs;
std::vector<NeumannBC> NeumannBCs;
public:
bool loadFromJSON(const std::string &p_filePath);
void backUpConfig(const std::string& p_filePath);
};
} // SIM
#endif //CONFIG_HPP