> Vijay, can you pass along a .geo file for a 3-D mesh that you know works?
You should be able to use any Gmsh *.msh file to load it up via the
GmshIO reader. However you cannot read a *.geo file because this is
only a preprocessing geometry file and not a mesh file. I've attached
a simple mesh file (8 cubes) which should load up with any libmesh
example. Note that I changed the version number to 2.1 here.
> Warning: can't load an element of dimension 2 into a mesh of dimension 1
This is probably because you are not creating your Mesh object
correctly. The Mesh constructor takes dimension as an argument and by
default, it is 1. Try creating
int dim = 3;
Mesh mesh(dim);
mesh.read("src.msh");
If you have problems still, let us know.
Vijay
On Tue, Sep 18, 2012 at 4:52 PM, Justin Pogacnik
<[email protected]> wrote:
> Please see below, not sure if you got my previous email. It was bounced
> because I can't post to the libmesh users list.
>
> Cheers,
>
> Justin
> ________________________________________
> From: Justin Pogacnik
> Sent: Wednesday, September 19, 2012 9:47 AM
> To: Vijay S. Mahadevan; Derek Gaston
> Cc: David Knezevic; [email protected]
> Subject: RE: [Libmesh-users] Fwd: [Moose-users] gmsh version?
>
> Thanks for the help guys. When I change the version number, I get a warning
> regarding the mesh dimension:
> Warning: can't load an element of dimension 2 into a mesh of dimension 1
> Mesh Information:
> mesh_dimension()=1
> spatial_dimension()=3
> Then an error regarding material definitions:
> No material defined on block 0
>
> Vijay, can you pass along a .geo file for a 3-D mesh that you know works? I
> think I'm probably just defining something in gmesh that the GmshIO reader
> isn't liking when it reads in the elements. By the way, I'm just working with
> a cube that is one 3-D 8 node hex element.
>
> Justin
> ________________________________________
> From: Vijay S. Mahadevan [[email protected]]
> Sent: Tuesday, September 18, 2012 1:00 PM
> To: Derek Gaston
> Cc: David Knezevic; Justin Pogacnik; [email protected]
> Subject: Re: [Libmesh-users] Fwd: [Moose-users] gmsh version?
>
> From the Gmsh site (http://geuz.org/gmsh/doc/VERSIONS.txt)
>
> 2.5.0 (Oct 15, 2010): ....
> bumped mesh version format to 2.2 (small change in the meaning of the
> partition
> tags; this only affects partitioned (i.e. parallel) meshes);
>
> I have loaded up several 2.2 files with the existing reader and have
> not seen any unexpected behaviors. But this is primarily because I
> rely on the internal libMesh partitioner to take care of the job
> instead of what the tag means directly. In fact, in the GmshIO reader,
> the partition tag is not even read in to a variable and so it should
> be safe to bump the reader to handle v2.2 of Gmsh too.
>
> Vijay
>
> On Mon, Sep 17, 2012 at 7:41 PM, Derek Gaston <[email protected]> wrote:
>> Thanks David,
>>
>> I forwarded this note on to our users. Should we update the GMSH reader to
>> not have such a restrictive check then?
>>
>> Derek
>>
>> On Mon, Sep 17, 2012 at 6:16 PM, David Knezevic
>> <[email protected]>wrote:
>>
>>> yeah, I've seen that before, I just changed the version number in the
>>> .msh file and it seemed to work fine i.e. I don't think the difference
>>> in the gmsh file formats affect libMesh... but I didn't look into that
>>> in detail.
>>>
>>>
>>>
>>>
>>> On 09/17/2012 08:12 PM, Derek Gaston wrote:
>>> > We received this message on our moose-users mailing list. I thought I
>>> > would ping libmesh-users to see if anyone has more information for
>>> Justin...
>>> >
>>> > Derek
>>> >
>>> > ---------- Forwarded message ----------
>>> > From: Justin Pogacnik <[email protected]>
>>> > Date: Mon, Sep 17, 2012 at 5:31 PM
>>> > Subject: [Moose-users] gmsh version?
>>> > To: "MOOSE Users [[email protected]]" <
>>> [email protected]>
>>> >
>>> >
>>> > Hi all,
>>> >
>>> > Just setting up some of my first problems in MOOSE. I typically use
>>> GMsh
>>> > almost exclusively as a mesh generator. I'm getting an error at runtime
>>> > that says:
>>> >
>>> > Error: Wrong msh file version 2.2
>>> >
>>> > I think I'm using the most recent version of gmsh (2.6.1). Does anyone
>>> > have any experience with gmsh and MOOSE? Do I need to downgrade to a
>>> > version that outputs version 2.1 msh files?
>>> >
>>> > Thanks,
>>> >
>>> > Justin
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > Moose-users mailing list
>>> > [email protected]
>>> > https://lists.inl.gov/mailman/listinfo/moose-users
>>> >
>>> ------------------------------------------------------------------------------
>>> > Live Security Virtual Conference
>>> > Exclusive live event will cover all the ways today's security and
>>> > threat landscape has changed and how IT managers can respond. Discussions
>>> > will include endpoint security, mobile security and the latest in malware
>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> > _______________________________________________
>>> > Libmesh-users mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/libmesh-users
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Libmesh-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Libmesh-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/libmesh-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users