Material Indexing in UCF File

34 views
Skip to first unread message

Tiago Silva

unread,
Mar 2, 2026, 7:36:03 PMMar 2
to Vampire Users

Hello everyone,

I am experiencing an issue when indexing materials in the UCF file. Apparently, index "0" in the UCF file corresponds to material[1] in the .mat file, and index "1" corresponds to material[2] in the .mat file.

I am trying to build a two-material alloy in the UCF file using:

material:num-materials = 2

However, when I run the code, only the material with index "0" is generated. The other material is not being created.

On the other hand, if I change the index from 1 to 0, the material appears correctly in the .xyz file.

Does anyone know what might be causing this behavior?

Thank you.


gabo...@gmail.com

unread,
Mar 2, 2026, 10:52:10 PMMar 2
to Vampire Users

Tiago Silva

unread,
Mar 3, 2026, 6:22:47 AMMar 3
to Vampire Users
 setting material[1]:unit-cell-category = 1 and material[2]:unit-cell-category = 1 worked out. Thank you very much, Gavin.

Tiago Silva

unread,
Mar 3, 2026, 6:23:19 AMMar 3
to Vampire Users
material[2]:unit-cell-category = 2 * correction
Reply all
Reply to author
Forward
0 new messages