adjusted to new signature
This commit is contained in:
parent
ffb80981b1
commit
071dc6f4a5
|
@ -42,8 +42,8 @@ for name in filenames:
|
||||||
|
|
||||||
table = damask.Table.from_ASCII(StringIO(''.join(sys.stdin.read())) if name is None else name)
|
table = damask.Table.from_ASCII(StringIO(''.join(sys.stdin.read())) if name is None else name)
|
||||||
table.add('Cauchy',
|
table.add('Cauchy',
|
||||||
damask.mechanics.Cauchy(table.get(options.defgrad).reshape(-1,3,3),
|
damask.mechanics.Cauchy(table.get(options.stress ).reshape(-1,3,3),
|
||||||
table.get(options.stress ).reshape(-1,3,3)).reshape(-1,9),
|
table.get(options.defgrad).reshape(-1,3,3)).reshape(-1,9),
|
||||||
scriptID+' '+' '.join(sys.argv[1:]))
|
scriptID+' '+' '.join(sys.argv[1:]))
|
||||||
|
|
||||||
table.to_ASCII(sys.stdout if name is None else name)
|
table.to_ASCII(sys.stdout if name is None else name)
|
||||||
|
|
|
@ -43,8 +43,8 @@ for name in filenames:
|
||||||
table = damask.Table.from_ASCII(StringIO(''.join(sys.stdin.read())) if name is None else name)
|
table = damask.Table.from_ASCII(StringIO(''.join(sys.stdin.read())) if name is None else name)
|
||||||
|
|
||||||
table.add('S',
|
table.add('S',
|
||||||
damask.mechanics.PK2(table.get(options.defgrad).reshape(-1,3,3),
|
damask.mechanics.PK2(table.get(options.stress ).reshape(-1,3,3),
|
||||||
table.get(options.stress ).reshape(-1,3,3)).reshape(-1,9),
|
table.get(options.defgrad).reshape(-1,3,3)).reshape(-1,9),
|
||||||
scriptID+' '+' '.join(sys.argv[1:]))
|
scriptID+' '+' '.join(sys.argv[1:]))
|
||||||
|
|
||||||
table.to_ASCII(sys.stdout if name is None else name)
|
table.to_ASCII(sys.stdout if name is None else name)
|
||||||
|
|
Loading…
Reference in New Issue