Trisurf Monte Carlo simulator
Samo Penic
2016-02-16 11fef8d1bbe449016584c061ddb2b302ee1ee593
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python3
import xml.etree.ElementTree as ET
import base64
import zlib
 
tree = ET.parse('../src/timestep_000000.vtu')
root = tree.getroot()
trisurf=root.find('trisurf')
print(trisurf.items())
xml=zlib.decompress(base64.b64decode(trisurf.text))
 
tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))