Introduction
Introduction Statistics Contact Development Disclaimer Help
tdont create plots of temporal evolution - sphere - GPU-based 3D discrete eleme…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit fda5e848418333e8fe5008de4ce0c530c837195d
parent e45ccf746f5e6fc208262e43703f94532e54e5ee
Author: Anders Damsgaard <[email protected]>
Date: Wed, 13 Aug 2014 12:48:33 +0200
dont create plots of temporal evolution
Diffstat:
M python/permeability-results.py | 2 +-
M python/permeabilitycalculator.py | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/python/permeability-results.py b/python/permeability-results.py
t@@ -20,7 +20,7 @@ c_grad_p = numpy.empty_like(K)
i = 0
for sid in sids:
- pc = PermeabilityCalc(sid)
+ pc = PermeabilityCalc(sid, plot_evolution=False)
K[i] = pc.conductivity()
c_grad_p[i] = pc.c_grad_p()
i += 1
diff --git a/python/permeabilitycalculator.py b/python/permeabilitycalculator.py
t@@ -7,14 +7,15 @@ import matplotlib.pyplot as plt
class PermeabilityCalc:
''' Darcy's law: Q = -k*A/mu * dP '''
- def __init__(self, sid):
+ def __init__(self, sid, plot_evolution=True):
self.sid = sid
self.readfile()
self.findPermeability()
self.findConductivity()
self.findMeanPorosity()
self.printResults()
- self.plotEvolution()
+ if plot_evolution:
+ self.plotEvolution()
def readfile(self):
self.sim = sphere.sim(self.sid, fluid=True)
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.