Hi Matteo, I usually use gmsh. You can set gmsh "physicals" on boundary sides, and they will be read in by libMesh as boundary IDs.
David On 10/19/2011 06:48 AM, robert wrote: > Hello, > > I had success using the exodusII file format, which I had generated with > cubit[1]. In addition to generating the geometry and meshing it, you > have to create "sidesets" containing the surfaces on which you want to > apply your BC. > > Robert > > > [1] http://cubit.sandia.gov/ > > On Wed, Oct 19, 2011 at 11:33:48AM +0200, Matteo Semplice wrote: >> Dear all, >> I am need to solve a PDE in which different kinds of boundry >> conditions are applied in different portions of the boundary. I can do >> that if I generate the mesh with libmesh and using >> MeshTools::Modification::change_boundary_id. However I will need to deal >> with complicated geometries and thus would like to use an external >> program to generate the mesh, but I am getting lost in the docs and >> examples. >> >> Can anyone suggest a combination of a program (free and running under >> Linux) that can generate a mesh and save it into a file format, so that >> I can later load it in libmesh together with tags for boundary >> conditions? I have been playing around with triangle and gmsh and >> various file formats, but without much luck. I cannot find a format for >> the mesh file that is both supported by the meshing program and loads >> the correct boundary tags in libmesh. As the possibile combination of >> programs/formats are quite a lot, I thought that someone out there might >> have already gone through this... >> >> In order to be concrete, say that I want a square domain with a hole and >> that, once loaded by libmesh, the outer boundary of the square must have >> boundaryID=0 and the boundary of the hole must have boundaryID=1. >> >> Another (related) question is wether ex29.C can be modified to tag the >> boundaries of the generated mesh. The last time I looked at this it >> seemed that the libmesh triangle interface does not support tagging of >> boundaries (line 257 of mesh_triangle_interface.C in svn 4823 sets the >> "B" option). Am I right? >> >> Matteo >> >> -- >> Matteo Semplice Dip. di Fisica e Matematica >> Phone: 031-2386132 Università dell'Insubria >> Fax: 031-2386209 Via Valleggio, 11 >> 22100 Como >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2d-oct >> _______________________________________________ >> Libmesh-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Libmesh-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
