lanl/voronoi

TOUGH2: material IDs should be referenced by ROCKS name

Opened this issue · 0 comments

From P. Johnson:

For the version of t2 we use, it takes its mesh as part of an overall input file, e.g. Model.in. That includes rock properties with a 5 letter name, e.g.:

image

And then the mesh part,

image

Plus the element connections etc.

As far as I can tell, the connections are totally fine.

The issue is that the elements in Model.in have this 5 letter name. T2 then reads over that and spits out a file of the form Voronoi returns, i.e.

image

So if you look at e.g. ELEME ul2 and we were to parse it out from the MESH file, we need to go from

ul 2      5  0.5972E+07 0.00000e+00

to something of form

ul 2   ZONE1 5.725e+06

i.e. strip out the last 0.0000E+00 and convert the first number to a rock name.