Initial microstructure introduction

solid-solid phase transformations, influence of stresses and strains
Post Reply
kaiyang
Posts: 10
Joined: Tue Jun 06, 2023 11:09 am
anti_bot: 333

Initial microstructure introduction

Post by kaiyang » Thu Jun 13, 2024 3:01 pm

We wanted to import the initial organization through the VTK format file, but some problems occurred during the import process.

Allocation error for array: Korn_array, in routine Ctn_Phas2GrainVTK !
requested dimension = * !
allocated dimension = 0 !

The relevant vtk files are attached below. I hope this can provide some help for this problem.
You do not have the required permissions to view the files attached to this post.

ralph
Posts: 188
Joined: Wed Apr 27, 2011 4:42 pm
anti_bot: 333

Re: Initial microstructure introduction

Post by ralph » Thu Jun 13, 2024 6:05 pm

Hi kaiyang,

the DIMENSIONS line defines the number of corners of the structured grid.
Given the number of cell data you use, it should be
DIMENSIONS 206 2 198

2D in MICRESS is usually defined by XZ plane.
The geometry in the driving file should be
CellsX = 205
CellsY = 1
CellsZ = 197

Best,
Ralph

kaiyang
Posts: 10
Joined: Tue Jun 06, 2023 11:09 am
anti_bot: 333

Re: Initial microstructure introduction

Post by kaiyang » Fri Jun 14, 2024 8:23 am

Dear Ralph,
Could you provide the relevant vtk files given in the cases on the official website? We would like to refer to the correct vtk files so that we can modify them.

kaiyang
Posts: 10
Joined: Tue Jun 06, 2023 11:09 am
anti_bot: 333

Re: Initial microstructure introduction

Post by kaiyang » Fri Jun 14, 2024 10:02 am

Dear Ralph,
After our attempts, the initial microstructure has been successfully imported. However, during post-processing, we found that the phas and korn files have no microstructure, while the mues files and other files have results. How can we solve this problem?
You do not have the required permissions to view the files attached to this post.

ralph
Posts: 188
Joined: Wed Apr 27, 2011 4:42 pm
anti_bot: 333

Re: Initial microstructure introduction

Post by ralph » Fri Jun 14, 2024 11:30 am

Dear kaiyang,

strange result. Did you mix up result files from different simulations?

The grain structure you provided above should look like this
testVTK_korn.png
I attached the vtk with a modified header like I recommended above and a driving file to read it. The extension should be .vtk for the VTK file if you read it. '.txt' is just to upload here.

Code: Select all

# Geometry
# ========
# Grid size?
# (for 2D calculations: CellsY=1, for 1D calculations: CellsX=1, CellsY=1)
# Cells in X-direction (CellsX):
205
# Cells in Y-direction (CellsY):
1
# Cells in Z-direction (CellsZ):
197
# Cell dimension (grid spacing in micrometers):
# (optionally followed by rescaling factor for the output in the form of '3/4')
1.5000

Code: Select all

# Initial Microstructure
# ======================
# Type of grain positioning?
# Options:  deterministic   random [deterministic_infile]   from_file
from_file
# Filename of initial grain/phase structure [VTK_identifier  (default=korn)] ?
vtktest.vtk
# Treatment of data?
# (n: none, 1: 1D, x: rotate Clockwise along x-axis, y, z,
#  or p: 'phase to grains transformation')
n
# Number of grains at the beginning?
# (Set to less than 1 for the number of grain to be read from the input data,
#  with optionally a minimal size, in cells)
-1
# Read grain properties from a file?
# Options:    input      from_file    identical    blocks
identical
# Phase number?  [grain group]  (integer)
1
# 'Non-geometric' data for grains -1 to 14 identical
#
This is only the grain structure which is provided in VTK. No phases.
Phases will be assigned by the definition in the property section. Here it is a single phase identical to all grains.

If you generated a multi-phase structure in Dream.3D, you have to use a filter to get the assembly data for the assigned phases, i.e. one phase ID per grain ID. You can export that as a table and rearrange the data to match the MICRESS input format. One line for the grain ID, second line for the phase ID. I recommend to write a little script to do that.

Best,
Ralph
You do not have the required permissions to view the files attached to this post.

ralph
Posts: 188
Joined: Wed Apr 27, 2011 4:42 pm
anti_bot: 333

Re: Initial microstructure introduction

Post by ralph » Fri Jun 14, 2024 11:57 am

Sorry. I was not correct with format of the properties.

The property blocks (in this case only phase ID) will be read in ascending order of grain IDs.
GrainIDs itself does not have to part of the input.

Best,
Ralph

kaiyang
Posts: 10
Joined: Tue Jun 06, 2023 11:09 am
anti_bot: 333

Re: Initial microstructure introduction

Post by kaiyang » Fri Jun 14, 2024 1:39 pm

Dear Ralph,
Thank you very much for your help. This problem has troubled me for a long time. Thanks for your help, I solved it. Thank you very much!

Post Reply