Page 1 of 1

restart

Posted: Tue Apr 26, 2022 5:44 pm
by Jane
Dear Bernd,
I want to use the organization structure at a certain time point of my previous simulation result as the initial organization structure of my new simulation, I output the result picture of the previous simulation as vtk. form, but the following error occurs, I think I need your help.
The following is the error.
Jane


# 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)] ?
phase_17.vtk korn
# 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
# Reading (uncompressing) the VTK data file
# A 'phas' field is found in the VTK file
# This 'phas' will be used for automatically initialising
# the phase of korns if the grain properties are read from a file

STOP in routine 'initFeldVonVTK'


# File format is not supported or keywords in datafile are missing or erroneous


# Error while reading file: phase_17.vtk

Re: restart

Posted: Tue Apr 26, 2022 7:04 pm
by ralph
Hi Jane,

I recommend to export grain IDs ('korn') together with phase IDs ('phas').
You can add a field in the export dialog of DP_MICRESS by using the plus button next to the 'field' input field.

Best,
Ralph

Re: restart

Posted: Wed Apr 27, 2022 3:49 pm
by Jane
Dear Ralph
First of all, thank you very much for your reply. As you said, I am very happy that the simulation has indeed improved, but new problems have appeared, and the following problems have appeared at the beginning of the simulation. What do you think about this?
The following is the file I entered, I hope to be able to get relevant information for you.

# 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)] ?
# phase_17.vtk korn
FeCMn_phase_korn_17.vtk korn
# 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
# Reading (uncompressing) the VTK data file
# A 'phas' field is found in the VTK file
# This 'phas' will be used for automatically initialising
# the phase of korns if the grain properties are read from a file
# VTK korn field read
# VTK data file read
# Renumbering the korn table
# Phase numbers taken out of the VTK table needs to be redefined
# (N.B. phases are sorted by order of appearance)
# VTK phase number 1 corresponds to MICRESS phase?
1
# VTK phase number 2 corresponds to MICRESS phase?
2
# # Error: no resizing and transfer of VTK data is done in 1-D
# Number of grains found in input data: 108
# Read grain properties from a file?
# Options: input from_file identical blocks
identical
# Phase number? (integer)
# 1
# Rotation angle? [Degree]
0

Jane

Re: restart

Posted: Wed Apr 27, 2022 4:16 pm
by ralph
Good question!

I am wondering why the following error message is given:
# # Error: no resizing and transfer of VTK data is done in 1-D

Are the geometries of your simulation and the read in microstructure the same?

Best,
Ralph

Re: restart

Posted: Wed Apr 27, 2022 5:09 pm
by ralph
I guess that was something copied while testing other data treatments. OK. This does not give a hint.

I think it is a case worth to be debugged. Even if I cannot provide you with a fixed version of MICRESS, I might recommend a workaround.

Which version of MICRESS do you use?
Please send your complete input files (driving file, vtk, etc.) to support@micress.de ?

Best,
Ralph

Re: restart

Posted: Wed Apr 27, 2022 5:12 pm
by Jane
Dear Ralph,
① The reason for this problem is that I selected "n" under the "Treatment of data?" option, but if I select "1", the following error occurs,and my data cannot be read:

# Filename of initial grain/phase structure [VTK_identifier (default=korn)] ?
FeCMn_phase_korn_17.vtk korn
# Treatment of data?
# (n: none, 1: 1D, x: rotate Clockwise along x-axis, y, z,
# or p: 'phase to grains transformation')
1
# 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
# Reading (uncompressing) the VTK data file

Error in routine Read_Tabulated_Data
Unable to read from FeCMn_phase_korn_17.vtk

At line number 2

(t = 16 s)


② If I choose "p" (p: 'phase to grains transformation'), the response doesn't give an error, but the organizational structure doesn't evolve, as shown, I'm confused.

Re: restart

Posted: Wed Apr 27, 2022 5:31 pm
by Jane
Dear Ralph
Thank you very much, I have sent you the relevant documents, please check.

Best wish.
Jane

Re: restart

Posted: Thu Apr 28, 2022 10:47 am
by ralph
Nothing received in support, yet.

Meanwhile I tested a little bit. The problem might be using binary VTK files. There seem to be a bug.

Did you try VTK ascii? You can easily convert your file with DP_MICRESS.

If you rerun your former simulation to the point you wish to continue with, you can take the restart file and use the method described here:
https://docs.micress.rwth-aachen.de/7.1 ... start-file

The advantage of this method is that a consistent state including grain IDs, phases, concentration, etc., will be read. A disadvantage is that the restart file will be overwritten at each output time step.

Best,
RAlph