MeshKit
1.0
|
00001 00007 #include "meshkit/MKCore.hpp" 00008 #include "meshkit/MeshOp.hpp" 00009 #include "meshkit/ModelEnt.hpp" 00010 #include "TestUtil.hpp" 00011 #include "meshkit/CAMALTetMesher.hpp" 00012 #include "meshkit/AssyMesher.hpp" 00013 using namespace MeshKit; 00014 00015 MKCore *mk; 00016 00017 void test_assymesher_default(int argc, char **argv); 00018 00019 int main(int argc, char *argv[]) 00020 { 00021 mk = new MKCore(); 00022 test_assymesher_default(argc, argv); 00023 delete mk; 00024 return 0; 00025 } 00026 00027 void test_assymesher_default(int argc, char **argv) 00028 { 00029 // Create a model entity vector for construting assymesher meshop. 00030 // No model entities are required for assymesher meshop, so the vector 00031 // remains empty. 00032 MEntVector volso; 00033 00034 // construct the meshop and set name 00035 AssyMesher *am = (AssyMesher*) mk->construct_meshop("AssyMesher", volso); 00036 am->set_name("assymesher"); 00037 00038 // setup input/output assymesher files for meshing the 00039 // 'Reactor Assembly' geometry 00040 am->PrepareIO(argc, argv, TestDir); 00041 mk->setup_and_execute(); 00042 00043 // mk->save_geometry("t.sat"); 00044 // TODO: mesh using camal and parallel mesher 00045 00046 delete am; 00047 } 00048 00049 00050