41 |
# pylab for matplotlib and plotting |
# pylab for matplotlib and plotting |
42 |
import pylab as pl |
import pylab as pl |
43 |
# cblib functions |
# cblib functions |
44 |
from cblib import toQuivLocs, toXYTuple |
from cblib import toQuivLocs, toXYTuple, needdirs |
45 |
|
|
46 |
##ESTABLISHING VARIABLES |
##ESTABLISHING VARIABLES |
47 |
qin=70*Milli*W/(m*m) #our heat source temperature is now zero |
qin=70*Milli*W/(m*m) #our heat source temperature is now zero |
53 |
# note these depen. are generated from heatrefraction_mesher001.py |
# note these depen. are generated from heatrefraction_mesher001.py |
54 |
saved_path = "data/heatrefrac001" |
saved_path = "data/heatrefrac001" |
55 |
|
|
56 |
|
needdirs([saved_path]) |
57 |
|
|
58 |
###### 2 BLOCK MODEL ######### |
###### 2 BLOCK MODEL ######### |
59 |
## DOMAIN |
## DOMAIN |
60 |
## Anticline |
## Anticline |
124 |
# contour the gridded data, plotting dots at the randomly spaced data points. |
# contour the gridded data, plotting dots at the randomly spaced data points. |
125 |
|
|
126 |
pl.matplotlib.pyplot.autumn() |
pl.matplotlib.pyplot.autumn() |
127 |
|
|
128 |
CKL = pl.fill(tpgx,tpgy,'brown',bpgx,bpgy,'red',zorder=-1000) |
CKL = pl.fill(tpgx,tpgy,'brown',bpgx,bpgy,'red',zorder=-1000) |
129 |
#~ CK = pl.contourf(xi,yi,ziK,2) |
#~ CK = pl.contourf(xi,yi,ziK,2) |
130 |
CS = pl.contour(xi,yi,zi,5,linewidths=0.5,colors='k') |
CS = pl.contour(xi,yi,zi,5,linewidths=0.5,colors='k') |
131 |
|
|
132 |
pl.clabel(CS, inline=1, fontsize=8) |
pl.clabel(CS, inline=1, fontsize=8) |
133 |
pl.title("Heat Refraction across a clinal structure.") |
pl.title("Heat Refraction across a clinal structure.") |
134 |
pl.xlabel("Horizontal Displacement (m)") |
pl.xlabel("Horizontal Displacement (m)") |