Skip to content

error 844 #67

Answered by eisenlohr
Propionates asked this question in Q&A
Apr 18, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This error indicates that (at least) one of the grid sizes is non-positive.
For the file you provided, which is a 2D map, the third dimension has zero thickness:

>>> import numpy as np
>>> import damask
>>> grid=damask.GeomGrid.load('ebsd.vti')
>>> grid
cells:  56 × 48 × 1
size:   55.99999999999999 × 47.99999999999999 × 0.0 m³
origin: -55.5   -0.49999999999999994   0.0 m
# materials: 2669

Set the thickness to, for instance, the smaller cell dimension along the other two directions:

>>> grid.size[2] = grid.cells[2]*np.min((grid.size/grid.cells)[:2])
>>> grid
cells:  56 × 48 × 1
size:   55.99999999999999 × 47.99999999999999 × 0.9999999999999999 m³
origin: -55.5   -0.49999999999999994   0.0 m

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Propionates
Comment options

@eisenlohr
Comment options

@Propionates
Comment options

Answer selected by Propionates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants