Initial microstructure introduction
Initial microstructure introduction
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.
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.
Re: Initial microstructure introduction
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
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
Re: Initial microstructure introduction
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.
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.
Re: Initial microstructure introduction
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?
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.
Re: Initial microstructure introduction
Dear kaiyang,
strange result. Did you mix up result files from different simulations?
The grain structure you provided above should look like this
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.
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
strange result. Did you mix up result files from different simulations?
The grain structure you provided above should look like this
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
#
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.
Re: Initial microstructure introduction
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
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
Re: Initial microstructure introduction
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!
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!