Problem in reading microstructure input file

Discussion of numerical issues which are not directly linked to specific applications
Post Reply
kmukherj
Posts: 17
Joined: Wed Aug 12, 2009 3:22 pm
anti_bot: 333

Problem in reading microstructure input file

Post by kmukherj » Fri Apr 05, 2019 10:37 am

Dear Expert,

I have a microstructure input file in *.txt format and its size is 45 MB. MICRESS is giving an error while reading the file:

# Treatment of data?
# (n: none, 1: 1D, f: flip (bottom<->top), t: transpose,
# or p: 'phase to grains transformation')
p
# CellsX for initial microstructure?
545
# CellsZ for initial microstructure?
410
# 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

Warning: trailing data ignored in file
initial-s.txt

Can you please let me know how to get rid of this error?

Thanking you,
Yours sincerely,
Krishnendu Mukherjee

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

Re: Problem in reading microstructure input file

Post by ralph » Fri Apr 05, 2019 11:54 am

Hi Krishnendu,

there seem to be more data entries in text file than defined by 545 x 410.

# CellsX for initial microstructure?
545
# CellsZ for initial microstructure?
410

Here the given initial microstructure in your file is meant.

Best,
Ralph

kmukherj
Posts: 17
Joined: Wed Aug 12, 2009 3:22 pm
anti_bot: 333

Re: Problem in reading microstructure input file

Post by kmukherj » Wed Apr 17, 2019 7:31 am

Dear Ralph,

Thank you very much for your reply. Indeed the initial microstructure file was much larger than 545*410. I found out the exact number of the data entries and MICRESS was able to read the microstructure properly.

Thanks,
Best regards,
Krishnendu

Post Reply