43#define TOSTRING(str) VAL(str)
54 throw "can not open config file!\n";
74 std::cout <<
"Length u0_TGV_U0 is unequal to Lenght Amplitude_TGV_U0 or BasisTimeStepLength_TGV_U0!"
79 std::cout <<
"Length v0_TGV_V0 is unequal to Lenght Amplitude_TGV_V0 or BasisTimeStepLength_TGV_V0!"
84 std::cout <<
"Length u0_SW is unequal to Lenght v0_SW!" << std::endl << std::flush;
91std::shared_ptr<BasicSimulationParameterStruct>
94 std::shared_ptr<BasicSimulationParameterStruct>
basicSimPara =
102std::vector<std::shared_ptr<TaylorGreenVortexUxParameterStruct>>
113 std::vector<std::shared_ptr<TaylorGreenVortexUxParameterStruct>> parameter;
114 for (
int i = 0;
i < u0.size();
i++) {
115 std::shared_ptr<TaylorGreenVortexUxParameterStruct>
aParameter =
121 aParameter->basicTimeStepLength = basisTimeStepLength.at(
i);
131std::vector<std::shared_ptr<TaylorGreenVortexUzParameterStruct>>
142 std::vector<std::shared_ptr<TaylorGreenVortexUzParameterStruct>> parameter;
143 for (
int i = 0;
i < uz.size();
i++) {
144 std::shared_ptr<TaylorGreenVortexUzParameterStruct>
aParameter =
149 aParameter->basicTimeStepLength = basisTimeStepLength.at(
i);
158std::vector<std::shared_ptr<ShearWaveParameterStruct>>
169 std::vector<std::shared_ptr<ShearWaveParameterStruct>> parameter;
170 for (
int i = 0;
i < uz.size();
i++) {
171 std::shared_ptr<ShearWaveParameterStruct>
aParameter =
176 aParameter->basicTimeStepLength = basisTimeStepLength.at(
i);
188 std::shared_ptr<BasicTestParameterStruct> basicTestParameter =
191 basicTestParameter->ySliceForCalculation =
StringUtil::toInt(
input->getValue<std::string>(
"ySliceForCalculation"));
205 std::shared_ptr<BasicTestParameterStruct> basicTestParameter =
208 basicTestParameter->ySliceForCalculation =
StringUtil::toInt(
input->getValue<std::string>(
"ySliceForCalculation"));
220std::shared_ptr<L2NormTestParameterStruct>
223 std::shared_ptr<BasicTestParameterStruct> basicTestParameter =
226 basicTestParameter->ySliceForCalculation =
StringUtil::toInt(
input->getValue<std::string>(
"ySliceForCalculation"));
243 std::string
beginKernel =
input->getValue<std::string>(
"BasicKernel_L2NormBetweenKernels");
259 std::vector<std::string> kernels;
265 std::vector<std::string> kernels;
273std::shared_ptr<L2NormTestBetweenKernelsParameterStruct>
276 std::shared_ptr<BasicTestParameterStruct> basicTestParameter =
279 basicTestParameter->ySliceForCalculation =
StringUtil::toInt(
input->getValue<std::string>(
"ySliceForCalculation"));
281 std::shared_ptr<L2NormTestBetweenKernelsParameterStruct>
testParameter =
284 testParameter->basicKernel =
input->getValue<std::string>(
"BasicKernel_L2NormBetweenKernels");
295 std::cout <<
"invalid input in ConfigFile." << std::endl
296 <<
"possible data for NormalizeWith Parameter in L2-Norm Test Between Kernels Parameter:" << std::endl
297 <<
"Amplitude, BasicData" << std::endl
305std::vector<std::shared_ptr<GridInformationStruct>>
311 for (
int i = 1;
i <= 5;
i++) {
321 std::vector<double> lx;
322 std::vector<double> lz;
323 std::vector<std::string> gridPath;
337 for (
int i = 0;
i < lx.size();
i++) {
361std::shared_ptr<VectorWriterInformationStruct>
364 std::shared_ptr<VectorWriterInformationStruct>
vectorWriter =
375 std::shared_ptr<LogFileParameterStruct> logFilePara =
379 logFilePara->writeAnalyticalToVTK =
StringUtil::toBool(
input->getValue<std::string>(
"WriteAnalyResultsToVTK"));
389 for (
int i = 1;
i <= 5;
i++) {
428 auto configData = std::make_shared<ConfigDataStruct>();
429 auto input = std::make_shared<vf::basics::ConfigurationFile>();
int calcNumberOfSimulationGroup(ConfigFilePtr input, std::string simName)
std::shared_ptr< ConfigDataStruct > ConfigDataPtr
unsigned int calcStartStepForToVectorWriter(ConfigFilePtr input)
std::ifstream openConfigFile(const std::string aFilePath)
std::shared_ptr< VectorWriterInformationStruct > makeVectorWriterInformationStruct(ConfigFilePtr input)
std::vector< std::shared_ptr< ShearWaveParameterStruct > > makeShearWaveParameter(const std::string pathNumericalTests, ConfigFilePtr input, std::shared_ptr< BasicSimulationParameterStruct > basicSimParameter)
std::shared_ptr< LogFileParameterStruct > makeLogFilePara(ConfigFilePtr input)
std::vector< std::string > readKernelList(ConfigFilePtr input)
std::shared_ptr< vf::basics::ConfigurationFile > ConfigFilePtr
std::shared_ptr< NyTestParameterStruct > makeNyTestParameter(ConfigFilePtr input)
std::shared_ptr< L2NormTestParameterStruct > makeL2NormTestParameter(ConfigFilePtr input)
bool checkConfigFile(ConfigFilePtr input)
std::vector< std::shared_ptr< TaylorGreenVortexUxParameterStruct > > makeTaylorGreenVortexUxParameter(const std::string pathNumericalTests, ConfigFilePtr input, std::shared_ptr< BasicSimulationParameterStruct > basicSimParameter)
int calcNumberOfSimulations(ConfigFilePtr input, ConfigDataPtr configData)
std::vector< std::shared_ptr< GridInformationStruct > > makeGridInformation(const std::string pathNumericalTests, ConfigFilePtr input, std::string simName)
std::vector< std::shared_ptr< TaylorGreenVortexUzParameterStruct > > makeTaylorGreenVortexUzParameter(const std::string pathNumericalTests, ConfigFilePtr input, std::shared_ptr< BasicSimulationParameterStruct > basicSimParameter)
std::shared_ptr< PhiTestParameterStruct > makePhiTestParameter(ConfigFilePtr input)
std::shared_ptr< BasicSimulationParameterStruct > makeBasicSimulationParameter(ConfigFilePtr input)
std::shared_ptr< L2NormTestBetweenKernelsParameterStruct > makeL2NormTestBetweenKernelsParameter(ConfigFilePtr input)
static std::vector< double > toDoubleVector(const std::string &s)
static std::vector< int > toIntVector(const std::string &s)
static std::vector< unsigned int > toUintVector(const std::string &s)
static int toInt(const std::string &input)
static bool toBool(const std::string &input)
static double toDouble(const std::string &input)
static std::vector< std::string > toStringVector(const std::string &s)
std::shared_ptr< T > SPtr
std::shared_ptr< ConfigDataStruct > readConfigFile(const std::string aFilePath, const std::string &pathNumericalTests)