Skip to content

Commit 0c674c2

Browse files
Add Tutorial_ReadWriteFiles.rst to Tutorials.rst
1 parent 6362cf9 commit 0c674c2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Examples/example_readwrite.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from Elasticipy.FourthOrderTensor import StiffnessTensor
2+
3+
C = StiffnessTensor.from_MP("mp-1048")
4+
C.save_to_txt("TiNi.txt")
5+
C.save_to_txt("TiNi.txt", matrix_only=True)
6+
7+
C2 = StiffnessTensor.from_txt_file("TiNi.txt")
8+
Cu2= StiffnessTensor.from_txt_file("TiNi.txt")
9+
10+

0 commit comments

Comments
 (0)