[cig-commits] r13017 - mc/2D/ConMan/trunk/visual/cover
luis at geodynamics.org
luis at geodynamics.org
Thu Oct 9 13:39:51 PDT 2008
Author: luis
Date: 2008-10-09 13:39:51 -0700 (Thu, 09 Oct 2008)
New Revision: 13017
Modified:
mc/2D/ConMan/trunk/visual/cover/generate_cover.py
Log:
Added some comments to generate_cover.py script
Modified: mc/2D/ConMan/trunk/visual/cover/generate_cover.py
===================================================================
--- mc/2D/ConMan/trunk/visual/cover/generate_cover.py 2008-10-09 20:22:27 UTC (rev 13016)
+++ mc/2D/ConMan/trunk/visual/cover/generate_cover.py 2008-10-09 20:39:51 UTC (rev 13017)
@@ -5,16 +5,17 @@
def main():
- numsteps = 100
- nelx = 256
- nelz = 64
+ numsteps = 100 # number of steps in model
+ nelx = 256 # number of elements in x1 direction
+ nelz = 64 # number of elements in x2 direction
nx = nelx + 1
nz = nelz + 1
- numlines = nx*nz + 2
+ numlines = nx*nz + 2 # account for the two header lines on each step
- filename = 'temp'
+ filename = 'temp' # name of conman temperature output file
conman.splitfile(filename, numsteps, numlines)
+
for i in xrange(numsteps):
print 'Writing %d-th file' % i
conman.write_vtk(infile='temp_%03d' % i, outfile='cover_%03d.vtk' % i)
More information about the cig-commits
mailing list