Closed aaamri closed 4 years ago
In your line 36 you have dat.grid.write_vtk(dat.grid, 'INFILE.vtu')
. The first argument of t2grid.write_vtk()
should be a mulgrid
geometry, not a t2grid
.
If you are basing your script on the one in the PyTOUGH wiki, that example does not actually create a mulgrid
geometry. That's because it is a one-dimensional problem, and a 3-D mesh geometry is not needed. You could still create one using mulgrid.rectangular()
, using the radial mesh sizes as the x
grid sizes and assigning a single fixed mesh size in the y
and z
directions. That would allow you to do a quasi-3D visualisation. But the example script just plots results on line plots, because it is fundamentally a 1-D problem.
Thanks acroucher for explaining the difference between the mulgrid and the T2grid, i followed
Your proposition, but i finish by generate a rectangular mesh, and i'm trying to genrate a 3-D cylinder mesh ( 2D axisymmetric).? can you see a way to do it ??
You can create a TOUGH2 grid in cylindrical coordinates also using t2grid.radial()
. You just pass in a list or array of vertical block sizes as the zblocks
parameter. But you can't easily create VTK output that looks like what you have in the figure above. To me, that is not a very useful way to visualise a model in cylindrical coordinates, because the results will be exactly the same in each 'ring' of blocks at a given radius, due to the radial symmetry. I think it is more useful to visualise such a model using a 2-D plot in r-z coordinates, since the model is in fact 2-D, not 3-D.
hi Adrien, I'm trying to run the example 'radial model' but i have a problem that i didn't succed to fix it :
AttributeError Traceback (most recent call last)