27 #include "commandLine.hpp"
40 using pFlow::commandLine;
42 int main(
int argc,
char* argv[] )
47 "Converts the supplied informaiton for sufraces in"
48 " geometryDict into PhasicFlow geometry data structure");
51 bool isCoupling =
false;
55 "Is this a fluid-particle coupling simulation?");
57 if(!cmds.parse(argc, argv))
return 0;
65 auto objDict = IOobject::make<dictionary>
71 objectFile::READ_ALWAYS,
72 objectFile::WRITE_NEVER
78 auto& geometryDict = objDict().getObject<
dictionary>();
80 auto& surfacesDict = geometryDict.
subDict(
"surfaces");
90 for(
auto& name:wallsDictName)
93 auto wallPtr = Wall::create( surfacesDict.
subDict(name));
94 auto& wall = wallPtr();
98 trinalges = wall.triangles();
100 materials.push_back(wall.materialName());
101 motion.push_back(wall.motionName());
107 auto geomPtr = geometry::create(
Control,
proprties, geometryDict, surface, motion, materials);
110 REPORT(1)<<
"Writing geometry to folder "<< geomPtr().path()<<
endREPORT;