[cgma-dev] Large OCC subtraction time

Hong-Jun Kim hongjun at mcs.anl.gov
Mon Feb 28 11:12:05 CST 2011


You will need "Lasso" and configure "--with-iRel".

Hong-Jun

----- Original Message -----
> From: "Jiangtao Hu" <jiangtao_ma at yahoo.com>
> To: "Hong-Jun Kim" <hongjun at mcs.anl.gov>
> Cc: cgma-dev at mcs.anl.gov, "Rajeev Jain" <jain at mcs.anl.gov>
> Sent: Monday, February 28, 2011 11:08:27 AM
> Subject: Re: [cgma-dev] Large OCC subtraction time
> Hi,
> 
> I just tried to build meshkit, with the following configure:
> 
> ./configure --enable-debug --with-itaps=/mnt/disk2b/jhu/ddriv
> 
> it failed on compiling EdgeMesher
> make[3]: Entering directory `/mnt/disk2b/jhu/meshkit/algs'
> CXX EdgeMesher.lo
> In file included from EdgeMesher.cpp:1:
> EdgeMesher.hpp:16:18: error: iRel.h: No such file or directory
> In file included from EdgeMesher.cpp:1:
> EdgeMesher.hpp:40: error: ‘iRel_Instance’ has not been declared
> EdgeMesher.hpp:40: error: ‘iRel_PairHandle’ has not been declared
> In file included from EdgeMesher.cpp:1:
> EdgeMesher.hpp:57: error: ‘iRel_Instance’ does not name a type
> EdgeMesher.hpp:58: error: ‘iRel_PairHandle’ does not name a type
> EdgeMesher.cpp:5: error: ‘iRel_Instance’ has not been declared
> EdgeMesher.cpp:5: error: ‘iRel_PairHandle’ has not been declared
> EdgeMesher.cpp: In constructor
> ‘EdgeMesher::EdgeMesher(iGeom_Instance_Private*&,
> iBase_EntityHandle_Private**, iMesh_Instance_Private*&, int&, int*)’:
> EdgeMesher.cpp:31: error: ‘assoc’ was not declared in this scope
> EdgeMesher.cpp:32: error: ‘rel’ was not declared in this scope
> EdgeMesher.cpp: In member function ‘void EdgeMesher::EdgeMesh()’:
> EdgeMesher.cpp:120: warning: unused variable ‘NumEntitySet’
> EdgeMesher.cpp: In member function ‘std::vector<double,
> std::allocator<double> > EdgeMesher::BiasMeshing()’:
> EdgeMesher.cpp:203: warning: unused variable ‘err’
> EdgeMesher.cpp:204: warning: unused variable ‘x’
> EdgeMesher.cpp:204: warning: unused variable ‘y’
> EdgeMesher.cpp:204: warning: unused variable ‘z’
> EdgeMesher.cpp:204: warning: unused variable ‘du’
> EdgeMesher.cpp: In member function ‘std::vector<double,
> std::allocator<double> > EdgeMesher::DualBiasMeshing()’:
> EdgeMesher.cpp:250: warning: unused variable ‘err’
> EdgeMesher.cpp:251: warning: unused variable ‘x’
> EdgeMesher.cpp:251: warning: unused variable ‘y’
> EdgeMesher.cpp:251: warning: unused variable ‘z’
> EdgeMesher.cpp:251: warning: unused variable ‘ustart’
> EdgeMesher.cpp:251: warning: unused variable ‘du’
> EdgeMesher.cpp: In member function ‘void
> EdgeMesher::RapidSorting(std::vector<double, std::allocator<double>
> >&, std::vector<double, std::allocator<double> >&, int, int)’:
> EdgeMesher.cpp:433: warning: unused variable ‘x’
> EdgeMesher.cpp:433: warning: unused variable ‘y’
> EdgeMesher.cpp:433: warning: unused variable ‘z’
> EdgeMesher.cpp: In member function ‘void
> EdgeMesher::get_related_entityset(iBase_EntitySetHandle_Private*&)’:
> EdgeMesher.cpp:591: error: ‘assoc’ was not declared in this scope
> EdgeMesher.cpp:591: error: ‘rel’ was not declared in this scope
> EdgeMesher.cpp:591: error: ‘iRel_getEntSetRelation’ was not declared
> in this scope
> EdgeMesher.cpp:607: error: ‘iRel_setEntSetRelation’ was not declared
> in this scope
> EdgeMesher.cpp: In member function ‘void EdgeMesher::ShowCoorData()’:
> EdgeMesher.cpp:619: error: ‘assoc’ was not declared in this scope
> EdgeMesher.cpp:619: error: ‘rel’ was not declared in this scope
> EdgeMesher.cpp:619: error: ‘iRel_getEntSetRelation’ was not declared
> in this scope
> 
> I've updated cgm, moab and meshkit, and built, installed cgm and moab,
> did I left something out?
> 
> Thanks.
> 
> Jane
> --- On Sat, 2/26/11, Hong-Jun Kim <hongjun at mcs.anl.gov> wrote:
> 
> 
> 
> From: Hong-Jun Kim <hongjun at mcs.anl.gov>
> Subject: Re: [cgma-dev] Large OCC subtraction time
> To: "Jiangtao Hu" <jiangtao_ma at yahoo.com>
> Cc: cgma-dev at mcs.anl.gov, "Rajeev Jain" <jain at mcs.anl.gov>
> Date: Saturday, February 26, 2011, 12:22 PM
> 
> 
> In my case of using OCC geometry, attribute updating and removing time
> take too long.
> It takes more than import/exporting time of the geometry.
> 
> Hong-Jun
> 
> ----- Original Message -----
> > From: "Jiangtao Hu" < jiangtao_ma at yahoo.com >
> > To: cgma-dev at mcs.anl.gov , "Rajeev Jain" < jain at mcs.anl.gov >
> > Sent: Saturday, February 26, 2011 11:08:37 AM
> > Subject: Re: [cgma-dev] Large OCC subtraction time
> > Hi, Rajeev:
> >
> > Thank you for providing the testcase. OCC did have a reputation of
> > getting much slower with larger models and more operations. I'll
> > have
> > a look on Monday to see if there's anything I can do on cgm side
> > that
> > can speed it up.
> >
> > Have a nice weekend!
> >
> > Jane
> >
> > --- On Fri, 2/25/11, Rajeev Jain < jain at mcs.anl.gov > wrote:
> >
> >
> >
> > From: Rajeev Jain < jain at mcs.anl.gov >
> > Subject: [cgma-dev] Large OCC subtraction time
> > To: cgma-dev at mcs.anl.gov
> > Date: Friday, February 25, 2011, 4:21 PM
> >
> >
> >
> > When subtracting 325 pins from a block, OCC takes a lot more time
> > than
> > the corresponding ACIS model. I'm attaching the assygen .inp that
> > can
> > be run as MeshKit/rgg>assygen 7. This file is for OCC version of
> > MeshKit. For ACIS change the geometry engine to ACIS in the .inp
> > file
> > and run ACIS version.
> >
> > RGG o/p:
> >
> > ACIS:
> >
> > Normal Termination.
> > Geometry file: 7.sat saved.
> > Schemes file created: 7.template.jou
> > Cubit journal file created: 7.jou
> > Ending at : Fri Feb 25 15:10:31 2011
> > Elapsed wall clock time: 8 seconds or 0.133333 mins
> >
> >
> > OCC:
> >
> > Exported: 327 OCC Bodies to 7.stp
> >
> > Normal Termination.
> > Geometry file: 7.stp saved.
> > Schemes file created: 7.template.jou
> > Cubit journal file created: 7.jou
> > Ending at : Fri Feb 25 14:59:51 2011
> > Elapsed wall clock time: 3173 seconds or 52.8833 mins
> >
> > The geometry files can be found at
> > /homes/jain/MeshKit-all/trunk/rgg/test/geometry_parallel_meshing/7.stp
> > and 7.sat
> >
> > Rajeev


More information about the cgma-dev mailing list