Re: [Libmesh-users] tetgen subregions

2011-08-17 Thread John Peterson
On Wed, Aug 17, 2011 at 3:25 AM, robert wrote: > Am Montag, den 15.08.2011, 08:03 -0600 schrieb John Peterson: >> On Fri, Aug 12, 2011 at 4:21 AM, robert wrote: >> > Hello, >> > >> > again, I have a question as far as reading meshes with tetgen is >> > concered. >> > I read a mesh by >> > >> > Me

Re: [Libmesh-users] tetgen subregions

2011-08-17 Thread robert
Am Montag, den 15.08.2011, 08:03 -0600 schrieb John Peterson: > On Fri, Aug 12, 2011 at 4:21 AM, robert wrote: > > Hello, > > > > again, I have a question as far as reading meshes with tetgen is > > concered. > > I read a mesh by > > > > Mesh new_mesh; > > EquationSystems new_equation_systems (new

Re: [Libmesh-users] tetgen subregions

2011-08-15 Thread John Peterson
On Fri, Aug 12, 2011 at 4:21 AM, robert wrote: > Hello, > > again, I have a question as far as reading meshes with tetgen is > concered. > I read a mesh by > > Mesh new_mesh; > EquationSystems new_equation_systems (new_mesh); > TetGenIO TETGEN(new_mesh); > > OStringStream inmesh; > inmesh<<"geomet

Re: [Libmesh-users] tetgen subregions

2011-08-12 Thread robert
Hello, again, I have a question as far as reading meshes with tetgen is concered. I read a mesh by Mesh new_mesh; EquationSystems new_equation_systems (new_mesh); TetGenIO TETGEN(new_mesh); OStringStream inmesh; inmesh<<"geometry_wings/export_pov/out/"

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread John Peterson
On Thu, Aug 4, 2011 at 10:42 AM, robert wrote: > I just have to disturb you with an other question. After reading the > mesh with the TetGenIO object I have invalid boundary id's. So, I tried > to loop through the elements and their sides and do something like: > > mesh.boundary_info->boundary_id

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread robert
I just have to disturb you with an other question. After reading the mesh with the TetGenIO object I have invalid boundary id's. So, I tried to loop through the elements and their sides and do something like: mesh.boundary_info->boundary_id (elem,s) = (short int) 0; Since the above function is d

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread John Peterson
On Thu, Aug 4, 2011 at 8:07 AM, robert wrote: > I tried to add the vectors myself because > with libmesh-version 0.7.1 I get the following errors: > > ThermoPaine3d.C: In function ‘int main(int, char**)’: > ThermoPaine3d.C:238: error: ‘class libMesh::TetGenIO’ has no member > named ‘element_attrib

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread robert
I tried to add the vectors myself because with libmesh-version 0.7.1 I get the following errors: ThermoPaine3d.C: In function ‘int main(int, char**)’: ThermoPaine3d.C:238: error: ‘class libMesh::TetGenIO’ has no member named ‘element_attributes’ ThermoPaine3d.C:239: error: ‘class libMesh::TetGenIO

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread John Peterson
On Thu, Aug 4, 2011 at 3:48 AM, robert wrote: > Hi, > > could you just tell me how you implemented the public members > 'element_attributes' and 'node_attributes'? In tetgen_io.C I just tried: > > std::vector el_attr; >  // Read attributes from the stream. >      for (unsigned int j=0; j          

Re: [Libmesh-users] tetgen subregions

2011-08-04 Thread robert
Hi, could you just tell me how you implemented the public members 'element_attributes' and 'node_attributes'? In tetgen_io.C I just tried: std::vector el_attr; // Read attributes from the stream. for (unsigned int j=0; j> dummy; ///roberts_region.push_back(dummy); /// b

Re: [Libmesh-users] tetgen subregions

2011-08-03 Thread John Peterson
On Wed, Aug 3, 2011 at 12:36 PM, robert wrote: > Hi John, > > I found a simple way to work around the problem. I just added a public > vector > > std::vector roberts_region; > > to the class TetGenIO. In the according function TetGenIO::read(...) the > following is already implemented: > > // Read

Re: [Libmesh-users] tetgen subregions

2011-08-03 Thread robert
Hi John, I found a simple way to work around the problem. I just added a public vector std::vector roberts_region; to the class TetGenIO. In the according function TetGenIO::read(...) the following is already implemented: // Read attributes from the stream. for (unsigned int j=0; j> dummy; .

Re: [Libmesh-users] tetgen subregions

2011-08-03 Thread John Peterson
On Wed, Aug 3, 2011 at 7:10 AM, robert wrote: > Hi to all, > > I want to read a mesh from a tetgen-output file. In tetgen I have > specified different regions. Now I am trying to read the mesh by: > > Mesh new_mesh; > new_mesh.read("mesh/almirante_box.1.ele"); > > > Here are the first lines of my

[Libmesh-users] tetgen subregions

2011-08-03 Thread robert
Hi to all, I want to read a mesh from a tetgen-output file. In tetgen I have specified different regions. Now I am trying to read the mesh by: Mesh new_mesh; new_mesh.read("mesh/almirante_box.1.ele"); Here are the first lines of my *.ele file: 542385 4 1 1 16340 63454 13