changed from old DAMASK (f2py) module to new integrated damask tools
This commit is contained in:
parent
159c8cad89
commit
9abf5a110d
|
@ -5,7 +5,7 @@
|
||||||
# As it reads in the data coming from "materialpoint_results", it can be adopted to the data
|
# As it reads in the data coming from "materialpoint_results", it can be adopted to the data
|
||||||
# computed using the FEM solvers. Its capable to handle elements with one IP in a regular order
|
# computed using the FEM solvers. Its capable to handle elements with one IP in a regular order
|
||||||
|
|
||||||
import os,sys,threading,re,numpy,time,string,DAMASK
|
import os,sys,threading,re,numpy,time,string,damask
|
||||||
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
@ -413,16 +413,16 @@ for filename in args:
|
||||||
if options.undeformed:
|
if options.undeformed:
|
||||||
defgrad_av = numpy.eye(3)
|
defgrad_av = numpy.eye(3)
|
||||||
else:
|
else:
|
||||||
defgrad_av = DAMASK.math.tensor_avg(res,numpy.reshape(values[:,column['tensor'][options.defgrad]:
|
defgrad_av = damask.core.math.tensor_avg(res,numpy.reshape(values[:,column['tensor'][options.defgrad]:
|
||||||
column['tensor'][options.defgrad]+9],
|
column['tensor'][options.defgrad]+9],
|
||||||
(res[0],res[1],res[2],3,3)))
|
(res[0],res[1],res[2],3,3)))
|
||||||
|
|
||||||
#centroids = DAMASK.math.deformed_linear(res,dim,defgrad_av,
|
#centroids = damask.core.math.deformed_linear(res,dim,defgrad_av,
|
||||||
centroids = DAMASK.math.deformed_fft(res,dim,defgrad_av,options.scaling,
|
centroids = damask.core.math.deformed_fft(res,dim,defgrad_av,options.scaling,
|
||||||
numpy.reshape(values[:,column['tensor'][options.defgrad]:
|
numpy.reshape(values[:,column['tensor'][options.defgrad]:
|
||||||
column['tensor'][options.defgrad]+9],
|
column['tensor'][options.defgrad]+9],
|
||||||
(res[0],res[1],res[2],3,3)))
|
(res[0],res[1],res[2],3,3)))
|
||||||
ms = DAMASK.math.mesh_regular_grid(res,dim,defgrad_av,centroids)
|
ms = damask.core.math.mesh_regular_grid(res,dim,defgrad_av,centroids)
|
||||||
fields = {\
|
fields = {\
|
||||||
'tensor': {},\
|
'tensor': {},\
|
||||||
'vector': {},\
|
'vector': {},\
|
||||||
|
|
Loading…
Reference in New Issue