neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
199 stars 53 forks source link

Bug with conversion of .tesr to .msh #387

Closed BjarkeOestergaard closed 2 years ago

BjarkeOestergaard commented 2 years ago

Describtion of bug

When a non cubic geometry is used for the .tesr, it forces the entire shape to be cubic when using the meshing module, thus changing the dimensions of each element.

To Reproduce

the .tesr file (test.tesr) is:

***tesr 
 **format 
   2.0 ascii 
 **general 
   3 
   2 2 3
   1.0 1.0 1.0
 **cell
   1
  *ori 
   ek
   123.752     38.990    230.926 
 **data 
   1 1 1 1 1 1 1 1 1 1 1 1
 ***end 

Where it is a (2,2,3) geometry, when converting it to a mesh with:

neper -M test.tesr -elttype hex -rcl 2  -format msh -o test

I have tested this on different .ters datasets, where i have boiled my problem down to this.

Showcase

To avoid any confusion, i have shown the problem here. Bug-tesr-2-msh

And the reason it is a problem, is because i have a rod in .tesr format from an experiment, which gets squashed down when translated to .msh (more precisely as .inp) as shown below

Bug2

rquey commented 2 years ago

Thanks @BjarkeOestergaard for the bug report. This is now fixed.