Comments (3)
enhancement to this file graph.py
import h5py
import matplotlib.pyplot as plt
import sys
def gr(filename, var1, var2):
file = h5py.File(filename, "r+")
y = file[var1][:,1]
x = file[var2][:,0]
if name == "pressure" or "CO2_partial_pressure":
X = x*1.1574074074074074074074074074074e-5
Y = y*1e-5
unit = "bar"
elif name == "temperature":
X = x*1.1574074074074074074074074074074e-5
Y = y
unit = "celsius"
plt.plot(X, Y, '-')
plt.title(filename + '/' + var1 + ' vs ' + var2)
plt.xlabel(var2 + ', day')
plt.ylabel(var1 + ', ' + unit)
plt.show()
return
if __name__=="__main__":
filename=sys.argv[1]
var1 = "cell_fields/fluid_" + sys.argv[2]
var2 = sys.argv[3]
name = sys.argv[2]
gr(filename, var1, var2)
from simulation.
add subplot and display more than one simultaneously
from simulation.
no need at this point a
from simulation.
Related Issues (11)
- Write abstract for NZGW2021 due by 18 June
- develop a model with resevoir properties from the field HOT 1
- initial draft abstract tencon2021
- recreate onur2008 model HOT 3
- create and validate a lumped model from the theory book HOT 3
- Develop MINC test model HOT 2
- test difference between horizontal and vertical model HOT 3
- create gmsh fine mesh near inj-prod well locations HOT 1
- Create simple minc model from literature HOT 1
- summarise a ppt of literature for fractured hydrocarbons reservoir modeling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simulation.