Beispiel #1
0
def visualise_volume_element(volume_element):
    try:
        from damask import Geom

        geom_obj = Geom.from_file('geom.geom')
        geom_obj.to_vtr('geom.vtr')
    except ImportError:
        from damask import Grid

        grid_obj = Grid.load_ASCII('geom.geom')
        grid_obj.save('geom.vtr')
Beispiel #2
0
 def test_save_load_ASCII(self,default,tmp_path):
     default.save_ASCII(tmp_path/'ASCII')
     default.material -= 1
     assert grid_equal(Grid.load_ASCII(tmp_path/'ASCII'),default)