@@ -199,7 +199,7 @@ AeroPipeline_3D::execute(){
199199 std::cout << " -> Init & Curve the Blocking3D structure from the Hex mesh" << std::endl;
200200 t_start = clock ();
201201 initBlocking3DfromMesh ();
202- updateLayerValues ();
202+ // updateLayerValues();
203203 t_end = clock ();
204204 std::cout << " ........................................ temps : " << 1.0 *double (t_end-t_start)/CLOCKS_PER_SEC << " s" << std::endl;
205205 std::cout << " " << std::endl;
@@ -217,20 +217,16 @@ AeroPipeline_3D::execute(){
217217
218218 // Init the Blocking3D from the hex mesh
219219
220- std::cout << " -> Boundary Layer Refinement" << std::endl;
221- t_start = clock ();
220+ // std::cout << "-> Boundary Layer Refinement" << std::endl;
222221 /*
223222 Variable<int>* var_couche_blocking = m_Blocking3D.getOrCreateVariable<int, GMDS_NODE>("GMDS_Couche");
224223 RefinementBetaBlocking3D algo_ref = RefinementBetaBlocking3D(&m_Blocking3D, var_couche_blocking, m_params.edge_size_first_ortho_wall);
225224 algo_ref.execute();
226225 */
227- t_end = clock ();
228- std::cout << " ........................................ temps : " << 1.0 *double (t_end-t_start)/CLOCKS_PER_SEC << " s" << std::endl;
229- std::cout << " " << std::endl;
230226
231227
232228 // Write the final mesh.
233- EcritureMaillage ();
229+ // EcritureMaillage();
234230
235231 return AbstractAeroPipeline::SUCCESS ;
236232}
@@ -859,11 +855,11 @@ AeroPipeline_3D::GeometrySurfaceBlockingGeneration()
859855 }
860856
861857 // Write the surface block structure
862- gmds::IGMeshIOService ioService (m_meshHex);
858+ /* gmds::IGMeshIOService ioService(m_meshHex);
863859 gmds::VTKWriter vtkWriter(&ioService);
864860 vtkWriter.setCellOptions(gmds::N|gmds::F);
865861 vtkWriter.setDataOptions(gmds::N|gmds::F);
866- vtkWriter.write (" Surface_3D.vtk" );
862+ vtkWriter.write("Surface_3D.vtk");*/
867863
868864 // Stat of the blocking
869865 std::cout << " =============================================" << std::endl;
@@ -1024,11 +1020,11 @@ AeroPipeline_3D::PreTraitementMeshTet()
10241020 }
10251021
10261022 // Ecriture du maillage initial (tetra)
1027- gmds::IGMeshIOService ioService (m_meshTet);
1023+ /* gmds::IGMeshIOService ioService(m_meshTet);
10281024 gmds::VTKWriter vtkWriter(&ioService);
10291025 vtkWriter.setCellOptions(gmds::N|gmds::R);
10301026 vtkWriter.setDataOptions(gmds::N|gmds::R);
1031- vtkWriter.write (" AeroPipeline3D_Tetra_PreTraite.vtk" );
1027+ vtkWriter.write("AeroPipeline3D_Tetra_PreTraite.vtk");*/
10321028}
10331029/* ------------------------------------------------------------------------*/
10341030void
@@ -1050,7 +1046,7 @@ AeroPipeline_3D::SurfaceBlockingClassification()
10501046
10511047 // Write the initial tet mesh (with fields computed on it)
10521048 // if (m_params.with_debug_files)
1053- // {
1049+ /* {
10541050 gmds::IGMeshIOService ioService = IGMeshIOService(m_meshTet);
10551051 gmds::VTKWriter vtkWriter2(&ioService);
10561052 vtkWriter2.setCellOptions(gmds::N|gmds::F);
@@ -1061,7 +1057,7 @@ AeroPipeline_3D::SurfaceBlockingClassification()
10611057 vtkWriter3.setCellOptions(gmds::N|gmds::E);
10621058 vtkWriter3.setDataOptions(gmds::N|gmds::E);
10631059 vtkWriter3.write("AeroPipeline3D_Tetra_EDGES_CLASSIFICATION.vtk");
1064- // }
1060+ } */
10651061
10661062 // Init the linker for the Blocking
10671063 m_linker_HG->setGeometry (m_manager);
@@ -1290,7 +1286,7 @@ AeroPipeline_3D::SurfaceBlockingClassification()
12901286
12911287 // Write the surface blocking to check the classification
12921288 // if (m_params.with_debug_files)
1293- {
1289+ /* {
12941290 gmds::IGMeshIOService ioService(m_meshHex);
12951291 gmds::VTKWriter vtkWriter(&ioService);
12961292 vtkWriter.setCellOptions(gmds::N|gmds::F);
@@ -1303,7 +1299,7 @@ AeroPipeline_3D::SurfaceBlockingClassification()
13031299 vtkWriter_edges.setCellOptions(gmds::N|gmds::E);
13041300 vtkWriter_edges.setDataOptions(gmds::N|gmds::E);
13051301 vtkWriter_edges.write("AeroPipeline3D_Surface_EDGES_CLASSIFICATION.vtk");
1306- }
1302+ }*/
13071303
13081304 for (auto e_id:m_meshHex->edges ())
13091305 {
@@ -1601,7 +1597,7 @@ AeroPipeline_3D::initBlocking3DfromMesh()
16011597 }
16021598 }
16031599
1604-
1600+ /*
16051601 // Init the control points of each Block
16061602 std::vector<TCellID> faces_to_fit;
16071603 for (auto f_id:m_meshHex->faces())
@@ -1622,10 +1618,10 @@ AeroPipeline_3D::initBlocking3DfromMesh()
16221618 ComputeBezierDegree_3D::STATUS res = algo.execute();
16231619
16241620 std::cout << "DEGREE: " << algo.getDegree() << std::endl;
1625- int degree_Bezier (algo.getDegree ());
1621+ int degree_Bezier(algo.getDegree());*/
16261622 /*
16271623 int degree_Bezier(2);
1628- */
1624+ */ /*
16291625 for (auto bloc:m_CtrlPts.allBlocks())
16301626 {
16311627 bloc.setNbDiscretizationI(degree_Bezier+1);
@@ -1649,17 +1645,19 @@ AeroPipeline_3D::initBlocking3DfromMesh()
16491645 m_params,
16501646 m_Blocking3D.newVariable<int,GMDS_EDGE>("GMDS_EdgeDiscretization"));
16511647 intAss.execute();
1652-
1648+ int nbNodes = m_Blocking3D.getNbNodes();
1649+ int nbBlocks = m_Blocking3D.getNbRegions();
1650+ //return;
16531651 // Temporary: set the discretization of each block in an uniform way
1654- /*
1652+ */
16551653 for (auto b:m_Blocking3D.allBlocks ())
16561654 {
16571655 b.setNbDiscretizationI (11 );
16581656 b.setNbDiscretizationJ (11 );
16591657 b.setNbDiscretizationK (11 );
16601658 }
1661- */
16621659
1660+ /*
16631661 // Init the grid points (the inner nodes of each block edge, face and hex)
16641662 m_Blocking3D.initializeGridPoints();
16651663
@@ -2180,7 +2178,7 @@ AeroPipeline_3D::initBlocking3DfromMesh()
21802178 n.setPoint(p);
21812179 }
21822180 }
2183- }
2181+ }*/
21842182
21852183}
21862184/* ------------------------------------------------------------------------*/
@@ -3135,10 +3133,10 @@ Blocking3D*
31353133AeroPipeline_3D::getBlocking ()
31363134{
31373135 // std::cout<<"Writing blocks for cgns"<<std::endl;
3138- gmds::Variable<int >* discrI = m_Blocking3D.newVariable <int , gmds::GMDS_REGION >(" discrI" );
3136+ /* gmds::Variable<int>* discrI = m_Blocking3D.newVariable<int, gmds::GMDS_REGION>("discrI");
31393137 gmds::Variable<int>* discrJ = m_Blocking3D.newVariable<int, gmds::GMDS_REGION>("discrJ");
3140- gmds::Variable<int >* discrK = m_Blocking3D.newVariable <int , gmds::GMDS_REGION >(" discrK" );
3141- gmds::Variable<int >* farfield = m_Blocking3D.newVariable <int , gmds::GMDS_NODE >(" Farfield" );
3138+ gmds::Variable<int>* discrK = m_Blocking3D.newVariable<int, gmds::GMDS_REGION>("discrK");*/
3139+ /* gmds::Variable<int>* farfield = m_Blocking3D.newVariable<int, gmds::GMDS_NODE>("Farfield");
31423140 gmds::Variable<int>* paroi = m_Blocking3D.newVariable<int, gmds::GMDS_NODE>("Paroi");
31433141 Variable<int>* var_couche_blocking = m_Blocking3D.getVariable<int, GMDS_NODE>("GMDS_Couche");
31443142 int max_layer = 0;
@@ -3185,7 +3183,7 @@ AeroPipeline_3D::getBlocking()
31853183 }
31863184 }
31873185 }
3188- }
3186+ }*/
31893187 /* gmds::IGMeshIOService ioService(&m_Blocking3D);
31903188 gmds::VTKWriter vtkWriter(&ioService);
31913189 vtkWriter.setCellOptions(gmds::N|gmds::R);
0 commit comments