#this script is an input for the maddi program
#it decomposes the pipe domain into 1200 subdomains
#using an area backround grid

read pipe.poly

#read the background grid
read_areas pipe-areagrid.node

#set min angle to 61
set f=0.34
#set uniform factor to 4
set r=4
#set area ratio to 10
set c=10

#decompose
dec 

write ba-pipe.poly
writeSubdomains ba-pipe.dat

statistics

exit