29 |
from esys.finley import Rectangle # This imports the rectangle domain function from finley |
from esys.finley import Rectangle # This imports the rectangle domain function from finley |
30 |
import os #This package is necessary to handle saving our data. |
import os #This package is necessary to handle saving our data. |
31 |
|
|
32 |
|
from cblib import needdirs |
33 |
|
|
34 |
|
|
35 |
##ESTABLISHING VARIABLES |
##ESTABLISHING VARIABLES |
69 |
|
|
70 |
i=0 #loop counter |
i=0 #loop counter |
71 |
save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work |
save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work |
72 |
|
needdirs([save_path]) |
73 |
|
|
74 |
#... generate domain ... |
#... generate domain ... |
75 |
model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy) |
model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy) |