Is it possible to have more than 30 unique materials? 回答済み

Hi, 

I am trying to create a model with many (>200) unique crystal orientations, however when I include more than 30 materials (reading in from a .flxtbl file) I get the error:

input- tabl in component_fixed_geom.flxtbl
Unexpected array -- 

What is the best method to include many materials? 

Jonny

 

3件のコメント

  • Hey Jonny,

    I'm not aware of any limitiations, it should be possible to create more than 30 materials.

    Can you share the files with us via your preferred cloud file sharing service so we can take a look at the code to make sure everything is set up correctly?

    Best regards,

    Oliver

    コメントアクション パーマリンク
  • Hi Oliver, 

    Thanks - hopefully you can access pzflex.flxinp and component_fixed_geom.flxtlb here: 

    https://drive.google.com/drive/folders/1CHoQv5S-ZGJ-fBdviZy-oWW9EnpBxiv1?usp=sharing

     

    The model is a 6x6 grid, and I want to define a material for each grid cell... specifically I'd like to be able to vary the orientation of each cell. I'm doing this through matlab to edit the orientations in lines 88-128 

    The codes I have sent should run, the problem arises when increase the number of materials in the .flxtbl file (i.e  change 30 to 31 in line 9 of component_fixed_geom.flxtlb)

    Can you tell what the problem is? or if there is an easier way to define unique orientations for each cell

    Many thanks

    Jonny

     

    コメントアクション パーマリンク
  • Hey Jonny,

    So I think what you are doing is fine the issue arises in line 10 (component_fixed_geom.flxtbl), OnScale has a character limit of 200 characters per line. To get around this you can use the '&' to continue onto a new line

    For example:

    ... matr27 matr28 matr29 &

    matr30 matr31 matr31....

    Does this make sense? I can drop an editted version of the files into the google drive repository but you will need to give me permission to do so as I have already tried this.

    Also when assigning materials to the grid it is always good practice to use regn void first before reading in the flxtbl file the graphics only show if all elements have been assigned a material.

    Best regards,

    Oliver

     

     

     

    コメントアクション パーマリンク

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿