How to get the value with specific coordinate.

I have got the vtk file, which contains cauchy-strain, after runing 'sfepy-run sf.py'in command line. But I want to get the strain at the point (0, 0),(0.5, 0.5). And it will be better if i can export a data file that contains strain with its corresponding coordinates.
And i have a question, why the cauchy-strain is a scalar in the vtk file, isn't a vector?

Hello 潘梁柱,
On 4/22/23 05:04, 潘梁柱 wrote:
I have got the vtk file, which contains cauchy-strain, after runing 'sfepy-run sf.py'in command line. But I want to get the strain at the point (0, 0),(0.5, 0.5). And it will be better if i can export a data file that contains strain with its corresponding coordinates.
Try something like
vu = pb.get_variables()['u'] vu.evaluate_at(nm.array([[0, 0], [0.5, 0.5]]), mode='cauchy_strain')
in your postproc().
And i have a question, why the cauchy-strain is a scalar in the vtk file, isn't a vector?
It should be stored as a tensor in the VTK file, and sfepy-view displayes tensors as their magnitude.
r.
participants (2)
-
Robert Cimrman
-
潘梁柱