Import a mesh with generated grain structure

44 views
Skip to first unread message

Kirill Romanov

unread,
Oct 14, 2024, 2:34:12 PM10/14/24
to deal.II User Group

We are developing crystal plasticity material models in a team and we want to embed our models in deal.ii. So I have a question – are there any simple tools to import a mesh (we use a simplex mesh) with generated grain structure into deal.ii (e.g. from Neper)? I have not been able to find a ready-made function. Can you please suggest options to solve my problem. So far I see one option is to write the mesh reading myself using the example of existing functions (e.g. GridIn::read_msh()) with assigning material_id to cells belonging to a particular grain.

Wolfgang Bangerth

unread,
Oct 14, 2024, 10:52:47 PM10/14/24
to dea...@googlegroups.com
On 10/14/24 07:55, Kirill Romanov wrote:
> **
Kirill,
deal.II can read mesh files in many different formats through the functions in
namespace GridIn. step-5 and step-49 are examples.

So in your case, the question is simply in which format you have the mesh.
Chances are that you can export whatever mesh you have in a format that
deal.II can read. I don't know Neper -- what formats can it export?

Best
Wolfgang

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Kirill Romanov

unread,
Oct 15, 2024, 8:31:55 AM10/15/24
to dea...@googlegroups.com
In Neper you can output the mesh in different formats (like .msh, .inp and others) and now I have a mesh in .msh format. My main question is, how can I use deal.ii to read a simplex mesh where each element belongs to a certain grain? I want to read the mesh as in the image, and assign different properties to elements in different grains.

вт, 15 окт. 2024 г. в 07:52, Wolfgang Bangerth <bang...@colostate.edu>:
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/wORX6I8Wmyc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/57948924-1115-43bf-bc6d-4177de733db5%40colostate.edu.
Image_2.png
abq_tet.msh

Praveen C

unread,
Oct 15, 2024, 9:11:33 AM10/15/24
to Deal. II Googlegroup

Kirill Romanov

unread,
Oct 16, 2024, 1:50:14 AM10/16/24
to dea...@googlegroups.com
Thanks for the answers! I've been thinking about solving my question along roughly the same lines.

вт, 15 окт. 2024 г. в 18:11, Praveen C <pra...@math.tifrbng.res.in>:
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/wORX6I8Wmyc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages