Microstructure from file: VTK input

technical aspects of .dri file generation (e.g. debug mode ) etc...
Post Reply
Posts: 104
Joined: Fri Feb 13, 2015 11:00 am
anti_bot: 333

Microstructure from file: VTK input

Post by deepumaj1 » Sun Apr 24, 2016 4:34 am

Hi all,
I was trying to import a microstructure to micress in vtk format. I want Micress to read the phase information from the file. Following is the section of the input file:

# Grain input
# ===========
# Type of grain positioning?
# Options: deterministic random [deterministic_infile] from_file
# Filename of initial grain/phase structure [VTK_identifier (default=korn)] ?
Gamma_Alpha_PARA_1.vtk phas

Following is the error that I'm getting:
# Reading (uncompressing) the VTK data file

STOP in routine 'initFeldVonVTK'

# Warning: VTK file has point data information, please supply cell data information

Press any key to exit

I'm attaching the vtk file I tried to import. (The forum doesn't allow me to upload a vtk file. So I have changed the extension to txt.) Please help me in this regard.
(139.29 KiB) Downloaded 109 times

Posts: 1142
Joined: Mon Jun 23, 2008 9:29 pm

Re: Microstructure from file: VTK input

Post by Bernd » Sun Apr 24, 2016 11:16 am

Dear Deepu,

The solution is a bit tricky but very simple: You just replace the keyword "POINT_DATA" in the .vtk file by "CELL_DATA" and increase the dimensions by one (to match the amount of data) using a text editor.

The reason why this is necessary is a bit more complicated and explained here.


Post Reply