Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DefectiveCrystalTraitsIO.cpp
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_DefectiveCrystalTraitsIO_cpp_
9#define model_DefectiveCrystalTraitsIO_cpp_
10
12#include <TextFileParser.h>
13
14namespace model
15{
16
17
18
20 /* init */ simulationFolder(folderName)
21 /* init */,inputFilesFolder(simulationFolder+"/inputFiles")
22 /* init */,configFolder(simulationFolder+"/config")
23 /* init */,auxFolder(simulationFolder+"/config")
24 /* init */,fFolder(simulationFolder+"/F")
25 /* init */,dcFile(inputFilesFolder+"/DefectiveCrystal.txt")
26 /* init */,fFile(fFolder+"/F_0.txt")
27 /* init */,flabFile(fFolder+"/F_labels.txt")
28 /* init */,polyFile(inputFilesFolder+"/polycrystal.txt")
29 /* init */,materialFile(inputFilesFolder+"/"+TextFileParser(polyFile).readString("materialFile",false))
30 /* init */,microstructureFile(inputFilesFolder+"/initialMicrostructure.txt")
31 /* init */,meshFile(inputFilesFolder+"/"+TextFileParser(polyFile).readString("meshFile",false))
32 {
33 std::cout<<"simulationFolder="<<simulationFolder<<std::endl;
34 std::cout<<"inputFilesFolder="<<inputFilesFolder<<std::endl;
35 std::cout<<"configFolder="<<configFolder<<std::endl;
36 std::cout<<"auxFolder="<<auxFolder<<std::endl;
37 std::cout<<"fFolder="<<fFolder<<std::endl;
38 std::cout<<"dcFile="<<dcFile<<std::endl;
39 std::cout<<"fFile="<<fFile<<std::endl;
40 std::cout<<"flabFile="<<flabFile<<std::endl;
41 std::cout<<"polyFile="<<polyFile<<std::endl;
42 std::cout<<"materialFile="<<materialFile<<std::endl;
43 std::cout<<"microstructureFile="<<microstructureFile<<std::endl;
44 std::cout<<"meshFile="<<meshFile<<std::endl;
45 }
46
47
48
49
50}
51#endif
52
DefectiveCrystalTraitsIO(const std::string &folderName)