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

INCON block data #39

Open jousheinfo opened 2 years ago

jousheinfo commented 2 years ago

Hi, I am trying to set my INCON block data up, but I have the following problem: I have 2 separated dataframes Pwell for pressure (X1) and Twell for temperature (X4) and want to iterate though all the element of each dataframe and take those values as X1 and X4. Here is part of the code:

PYTOUGH INCON

But, for any reason it only takes the first value of the DataFrame even though it is been iterated.

INCON input file

I have been trying everything, I converted the DataFrame to list or array, but nothing works. I also tried the function extend(), but it takes the first 4 elements of the first dataframe Pwell horizontally and then it repeats in all rows. I would very much appreciate your help. Thank you for your time!

acroucher commented 2 years ago

It looks to me like you are using PyTOUGH correctly in the script. But I am not that familiar with DataFrames, so I don't know if how you are getting the data out of Pwell and Twell is correct or not.