Skip to content

Commit 4f2cc25

Browse files
committed
fix
1 parent 72d8faa commit 4f2cc25

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

MSUtils/TPMS/tpms_example.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@
99
from MSUtils.TPMS.tpms import TPMS
1010
from MSUtils.general.MicrostructureImage import MicrostructureImage
1111
from MSUtils.general.h52xdmf import write_xdmf
12+
from MSUtils.TPMS.tpms_functions import (
13+
gyroid,
14+
schwarz_p,
15+
diamond,
16+
neovius,
17+
iwp,
18+
lidinoid,
19+
)
1220

1321
if __name__ == "__main__":
1422
N = 256, 256, 256
1523
L = 1.0, 1.0, 1.0
16-
tpms_type = "iwp"
1724
h5_filename = "data/tpms_opt.h5"
1825
unitcell_frequency = (1, 1, 1)
1926
invert = False
27+
tpms_type = "iwp"
2028

2129
tpms = TPMS(
22-
tpms_type=tpms_type,
30+
func=iwp,
2331
resolution=N,
2432
L=L,
2533
unitcell_frequency=unitcell_frequency,
@@ -48,7 +56,7 @@
4856

4957
# Regenerate TPMS with optimized parameters
5058
tpms = TPMS(
51-
tpms_type=tpms_type,
59+
func=iwp,
5260
resolution=N,
5361
L=L,
5462
unitcell_frequency=unitcell_frequency,

0 commit comments

Comments
 (0)