cubit/trelis SHELL4 -> QUAD4 conversion

82 views
Skip to first unread message

Andrew....@csiro.au

unread,
Dec 6, 2017, 1:04:47 AM12/6/17
to moose...@googlegroups.com
Just a note for future: To use MOOSE with 2D meshes generated by cubit or trelis we have to convert its default SHELL4 to QUAD4 for each block (trelis command "block all element type QUAD4"). This works if your mesh lies in the x-y plane. However, cubit/trelis appears to squash the z direction to zero upon conversion from SHELL4 to QUAD4, so for instance if your mesh lies in the x-z plane the final outputted exodus file will have a zero z range: all your mesh will lie on the x axis :-(

a


Ph: +61 7 3327 4497. Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069


Benjamin Spencer

unread,
Dec 6, 2017, 2:40:57 PM12/6/17
to moose-users
I wasn't aware that MOOSE could run 2D models in the x-z plane.  Does that work?

As a work-around, you can probably just have Cubit write them out as SHELL4 elements, and then edit the file to convert them to QUAD4. The ncdump and ncgen tools are really handy for things like this for the adventurous. You use ncdump to convert the exodus file to text, edit the text file (very carefully), and then use ncgen to convert it back to an exodus file.

-Ben


Daniel Schwen

unread,
Dec 6, 2017, 2:48:40 PM12/6/17
to moose...@googlegroups.com
Wouldn't this be a 2D problem by virtue of having 2D elements embedded in 3D space? I.e. all your coordinates would require all 3 dimensions still.

On Wed, Dec 6, 2017 at 12:40 PM Benjamin Spencer <benjamin...@inl.gov> wrote:
I wasn't aware that MOOSE could run 2D models in the x-z plane.  Does that work?

As a work-around, you can probably just have Cubit write them out as SHELL4 elements, and then edit the file to convert them to QUAD4. The ncdump and ncgen tools are really handy for things like this for the adventurous. You use ncdump to convert the exodus file to text, edit the text file (very carefully), and then use ncgen to convert it back to an exodus file.

-Ben


On Tue, Dec 5, 2017 at 11:04 PM, <Andrew....@csiro.au> wrote:
Just a note for future:  To use MOOSE with 2D meshes generated by cubit or trelis we have to convert its default SHELL4 to QUAD4 for each block (trelis command "block all element type QUAD4").  This works if your mesh lies in the x-y plane.  However, cubit/trelis appears to squash the z direction to zero upon conversion from SHELL4 to QUAD4, so for instance if your mesh lies in the x-z plane the final outputted exodus file will have a zero z range: all your mesh will lie on the x axis :-(

a


Ph: +61 7 3327 4497.  Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069


--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CANcsQPf_pEwWoCXg-BwJPWPmDsYhJj0cMBjwkg8fWu2LLdBGGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Cody Permann

unread,
Dec 6, 2017, 2:52:27 PM12/6/17
to moose...@googlegroups.com
The other option is to leave them as SHELL4 elements and just run MOOSE! Since this is such a common problem we read SHELL4 elements and convert them to QUADs for you.

On Wed, Dec 6, 2017 at 12:40 PM Benjamin Spencer <benjamin...@inl.gov> wrote:
I wasn't aware that MOOSE could run 2D models in the x-z plane.  Does that work?

As a work-around, you can probably just have Cubit write them out as SHELL4 elements, and then edit the file to convert them to QUAD4. The ncdump and ncgen tools are really handy for things like this for the adventurous. You use ncdump to convert the exodus file to text, edit the text file (very carefully), and then use ncgen to convert it back to an exodus file.

-Ben


On Tue, Dec 5, 2017 at 11:04 PM, <Andrew....@csiro.au> wrote:
Just a note for future:  To use MOOSE with 2D meshes generated by cubit or trelis we have to convert its default SHELL4 to QUAD4 for each block (trelis command "block all element type QUAD4").  This works if your mesh lies in the x-y plane.  However, cubit/trelis appears to squash the z direction to zero upon conversion from SHELL4 to QUAD4, so for instance if your mesh lies in the x-z plane the final outputted exodus file will have a zero z range: all your mesh will lie on the x axis :-(

a


Ph: +61 7 3327 4497.  Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069


--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CANcsQPf_pEwWoCXg-BwJPWPmDsYhJj0cMBjwkg8fWu2LLdBGGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Benjamin Spencer

unread,
Dec 6, 2017, 2:58:34 PM12/6/17
to moose-users
I suspect it might work for some physics but not others. I imagine there wouldn't be any issues with something like diffusion, but it wouldn't surprise me if there's something in the 2D mechanics formulations that is expecting the mesh to be in the xy plane.

Cody -- good to know that you no longer need to convert them to QUAD4 elements.  I know at one point it didn't work if they were SHELL4.

-Ben

On Wed, Dec 6, 2017 at 12:48 PM, Daniel Schwen <dan...@schwen.de> wrote:
Wouldn't this be a 2D problem by virtue of having 2D elements embedded in 3D space? I.e. all your coordinates would require all 3 dimensions still.

On Wed, Dec 6, 2017 at 12:40 PM Benjamin Spencer <benjamin...@inl.gov> wrote:
I wasn't aware that MOOSE could run 2D models in the x-z plane.  Does that work?

As a work-around, you can probably just have Cubit write them out as SHELL4 elements, and then edit the file to convert them to QUAD4. The ncdump and ncgen tools are really handy for things like this for the adventurous. You use ncdump to convert the exodus file to text, edit the text file (very carefully), and then use ncgen to convert it back to an exodus file.

-Ben


On Tue, Dec 5, 2017 at 11:04 PM, <Andrew....@csiro.au> wrote:
Just a note for future:  To use MOOSE with 2D meshes generated by cubit or trelis we have to convert its default SHELL4 to QUAD4 for each block (trelis command "block all element type QUAD4").  This works if your mesh lies in the x-y plane.  However, cubit/trelis appears to squash the z direction to zero upon conversion from SHELL4 to QUAD4, so for instance if your mesh lies in the x-z plane the final outputted exodus file will have a zero z range: all your mesh will lie on the x axis :-(

a


Ph: +61 7 3327 4497.  Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069


--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

Daniel Schwen

unread,
Dec 6, 2017, 3:07:30 PM12/6/17
to moose...@googlegroups.com

We have run phase field simulations on 2D spheres embedded in the R3.


On Wed, Dec 6, 2017, 12:58 PM Benjamin Spencer <benjamin...@inl.gov> wrote:
I suspect it might work for some physics but not others. I imagine there wouldn't be any issues with something like diffusion, but it wouldn't surprise me if there's something in the 2D mechanics formulations that is expecting the mesh to be in the xy plane.

Cody -- good to know that you no longer need to convert them to QUAD4 elements.  I know at one point it didn't work if they were SHELL4.

-Ben

On Wed, Dec 6, 2017 at 12:48 PM, Daniel Schwen <dan...@schwen.de> wrote:
Wouldn't this be a 2D problem by virtue of having 2D elements embedded in 3D space? I.e. all your coordinates would require all 3 dimensions still.

On Wed, Dec 6, 2017 at 12:40 PM Benjamin Spencer <benjamin...@inl.gov> wrote:
I wasn't aware that MOOSE could run 2D models in the x-z plane.  Does that work?

As a work-around, you can probably just have Cubit write them out as SHELL4 elements, and then edit the file to convert them to QUAD4. The ncdump and ncgen tools are really handy for things like this for the adventurous. You use ncdump to convert the exodus file to text, edit the text file (very carefully), and then use ncgen to convert it back to an exodus file.

-Ben


On Tue, Dec 5, 2017 at 11:04 PM, <Andrew....@csiro.au> wrote:
Just a note for future:  To use MOOSE with 2D meshes generated by cubit or trelis we have to convert its default SHELL4 to QUAD4 for each block (trelis command "block all element type QUAD4").  This works if your mesh lies in the x-y plane.  However, cubit/trelis appears to squash the z direction to zero upon conversion from SHELL4 to QUAD4, so for instance if your mesh lies in the x-z plane the final outputted exodus file will have a zero z range: all your mesh will lie on the x axis :-(

a


Ph: +61 7 3327 4497.  Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069


--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages