Define intial grain structure for grain growth model #26003
Replies: 9 comments 13 replies
-
|
Hi @jackson911007, There are a few different options you can take a look at here to help assist in creating your own custom initial conditions:
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot for the information. I will try it out.
Best regards,
Jackson
…On Fri, Nov 10, 2023 at 10:50 AM Cody Permann ***@***.***> wrote:
Hi @jackson911007 <https://github.com/jackson911007>,
There are a few different options you can take a look at here to help
assist in creating your own custom initial conditions:
- EBSD Reader - This is a standardize format for supplying the grain
information of each cell in a regularized grid. This gives you a ton of
flexibility to shape your initial grain structure however you please. The
only downside to this is that you'll likely need to write a little script
to compute this information if you are starting from higher level
information like grain centers or as you said distributions of sizes.
PolycrystalEBSD
<https://mooseframework.inl.gov/source/userobjects/PolycrystalEBSD.html>
In particular, take a look at a sample EBSD file: Sample EBSD File
<https://github.com/idaholab/moose/blob/next/modules/phase_field/test/tests/grain_tracker_test/ebsd_9.txt>
- Voronoi - While this won't exactly meet your needs, I would
recommend starting with this object because it's conceptually simple and
once you get the hang of what it's doing, you can probably extend it to
meet your needs. All it does is generate random points in a given domain
and then MOOSE computes the Voronoi tessellation of those points.
PolycrystalVoronoi
<https://mooseframework.inl.gov/source/userobjects/PolycrystalVoronoi.html>
- Roll your own Initial Condition - After looking at the above two
examples, you can build your own IC. We've worked hard to create the
simpliest interface possible, you simply need to create C++ code that can
return the dominate grain for every position in your mesh. That's it. That
method gets called repeatedly to setup the initial condition with MOOSE
doing all the heavy lifting of creating the smooth interfaces (once you
start the simulation) and applies coloring algorithms so you can use
reduced order parameter modeling. PolycrystalICs
<https://mooseframework.inl.gov/modules/phase_field/ICs/PolycrystalICs.html>
—
Reply to this email directly, view it on GitHub
<#26003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR77GWUJWNWJV4JWQQALYDZEKVAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMZVGA2TA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi @permcody, thanks for your recommendation. I decide to go through the second method first. I tried several methods for polycrystal and found Voronoi might be a better fit. However, I want increase the size distribution of it. Is it possible to do through this script? Thanks a lot, Jackson |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the tip! Sorry I do not explain my question correctly. The
question I have is that could I adjust the standard deviation of the
distribution (make it spread broader)?
…On Thu, Nov 16, 2023 at 11:23 AM Guillaume Giudicelli < ***@***.***> wrote:
So you want bigger voronoi grains?
For the same mesh, you need to have less grains then
This can be set in the parameters of the PolycrystalVoronoi object with
grain_num
or try working on the grain patch size instead
—
Reply to this email directly, view it on GitHub
<#26003 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR727A3BTDDQV42DTPXLYEY4Y7AVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGEYTO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks, we talking about the partition. Does it mean I will adjust the
number grain or the nx, ny parameter in the mesh to increase the std?
…On Thu, Nov 16, 2023 at 11:37 AM Guillaume Giudicelli < ***@***.***> wrote:
Ah good question. I dont know if we have this capability, I dont see it in
the parameters.
This could probably be added in the code for the generation of the points
underlying the voronoi partition
—
Reply to this email directly, view it on GitHub
<#26003 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR765A52TK3UD4ZSZ37LYEY6NHAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGIZTQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Got it. Thanks, do you suggest changing any other parameter in the .i file
to increase the std?
…On Thu, Nov 16, 2023 at 11:55 AM Guillaume Giudicelli < ***@***.***> wrote:
increasing nx / ny will make the mesh bigger but the distribution of the
sizes of the grains will barely change
the number of grain will certainly change the average grain size, but the
std deviation of the sizes may not change
—
Reply to this email directly, view it on GitHub
<#26003 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR72JMUYWD7E5KSEA223YEZAONAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGM4TC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Ok, I'll check. Thanks for the suggestion
…On Thu, Nov 16, 2023 at 12:04 PM Guillaume Giudicelli < ***@***.***> wrote:
I dont see an option in the parameters. You will have to check the code
—
Reply to this email directly, view it on GitHub
<#26003 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR7ZVF5TCAR3CF5UEOQTYEZBQRAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGQ4TG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I believe you can always supply your own voronoi grain centers if you wish.
Then can exactly control your grain structure. If that option isn’t
currently available, it would be trivial to expose it to the input file.
On Thu, Nov 16, 2023 at 10:05 AM Dung-Yi, Wu (Jackson) <
***@***.***> wrote:
… Ok, I'll check. Thanks for the suggestion
On Thu, Nov 16, 2023 at 12:04 PM Guillaume Giudicelli <
***@***.***> wrote:
> I dont see an option in the parameters. You will have to check the code
>
> —
> Reply to this email directly, view it on GitHub
> <
#26003 (reply in thread)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AOBJR7ZVF5TCAR3CF5UEOQTYEZBQRAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGQ4TG>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#26003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFOIBS5VKFCCDVON67OL3YEZBVDAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGUYTI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your response. I will give it a try.
On Thu, Nov 16, 2023 at 10:54 PM Cody Permann ***@***.***>
wrote:
… I believe you can always supply your own voronoi grain centers if you
wish.
Then can exactly control your grain structure. If that option isn’t
currently available, it would be trivial to expose it to the input file.
On Thu, Nov 16, 2023 at 10:05 AM Dung-Yi, Wu (Jackson) <
***@***.***> wrote:
> Ok, I'll check. Thanks for the suggestion
>
> On Thu, Nov 16, 2023 at 12:04 PM Guillaume Giudicelli <
> ***@***.***> wrote:
>
> > I dont see an option in the parameters. You will have to check the
code
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#26003 (reply in thread)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AOBJR7ZVF5TCAR3CF5UEOQTYEZBQRAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGQ4TG>
>
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#26003 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAXFOIBS5VKFCCDVON67OL3YEZBVDAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJQGUYTI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#26003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOBJR733RM5QIDWNPZZZA33YE3NWPAVCNFSM6AAAAAA7DCG5KCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJVGAYTC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to phase-field modeling and find Moose extremely helpful and easy to implement. I tried the grain growth model and successfully ran it at different times and temperatures. Now I am moving on to defining my own initial grain structure using a txt file that describes a distribution of grain size. Could you kindly point me to where I can do this in the .i file or an example?
Thanks for your help,
Beta Was this translation helpful? Give feedback.
All reactions