Skip to content

Commit

Permalink
adding volume of block to dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Sep 20, 2023
1 parent f60d661 commit e03c349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions porespy/beta/_gdd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def calc_g(im, axis):
A = np.prod(im.shape)/im.shape[axis]
g = (results.effective_porosity * A) / (results.tortuosity * L)
results.diffusive_conductance = g
results.volume = np.prod(im.shape)
return results


Expand Down Expand Up @@ -224,6 +225,7 @@ def blocks_to_dataframe(im, block_size):
df_temp['eps_perc'] = [r.effective_porosity for r in results]
df_temp['g'] = [r.diffusive_conductance for r in results]
df_temp['tau'] = [r.tortuosity for r in results]
df_temp['volume'] = [r.volume for r in results]
df_temp['axis'] = [axis for _ in results]
df = pd.concat((df, df_temp))
return df
Expand Down

0 comments on commit e03c349

Please sign in to comment.