acroucher / PyTOUGH

A Python library for automating TOUGH2 simulations of subsurface fluid and heat flow
GNU Lesser General Public License v3.0
96 stars 36 forks source link

NSEQ, NADD #2

Open acroucher opened 12 years ago

acroucher commented 12 years ago

Using t2data to read a TOUGH2 data file in which the NSEQ/NADD option is used (to create multiple blocks and connections with the digits at the end of the block names incremented according to a specified pattern) may not work, depending on the pattern. If a connection refers to a block defined only implicitly by NSEQ/NADD then that block will be reported as missing and the read() will fail.

I'm not sure if people still use this option- it was probably more useful in the days before grid generation software.

A possible fix might be to add an 'implied' property to the t2block and t2connection classes, create blocks and connections implied by NSEQ/NADD during read, but only write out blocks and connections with implied==False.