File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99from MSUtils .TPMS .tpms import TPMS
1010from MSUtils .general .MicrostructureImage import MicrostructureImage
1111from 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
1321if __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 ,
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 ,
You can’t perform that action at this time.
0 commit comments