coplot Namespace Reference

Classes

class  reflist
 

Functions

def connectKey (fig, key, action)
 
def once (send, data)
 
def sum (send, axis=None)
 
def gaussian_filter (send, args, kwargs)
 
def gaussiankernel_filter (send, stddev, args, kwargs)
 
def median_filter (send, args, kwargs)
 
def uniform_filter (send, args, kwargs)
 
def mean (send, axis=None)
 
def customfilter (send, fn)
 
def min (send, axis=None)
 
def max (send, axis=None)
 
def minmax (send, axis=None)
 
def clip (send, min, max)
 
def symclip (send)
 
def printer (send, fn=lambda d:d)
 
def produce (send, d)
 
def generate (send, d=None)
 
def getval (p, args)
 
def pipe (send, p=None)
 
def inject (send, p)
 
def call (send, f, args, kwargs)
 
def iterate (send)
 
def select (send, frame=None)
 
def imshow (send, aspect=1, cmap=stdcmap, cax=plt, clim=None, cscale=None, norm=None, xscale=None, yscale=None, xlabel='x', ylabel='y', clabel=None, args, kwargs)
 
def surface (send, f, fig, sub, aspect=1, cmap=stdcmap, cax=plt, clim=None, cscale=None, norm=None, xscale=None, yscale=None, args, kwargs)
 
def plot (send, xdata=None, xlabel='x', ylabel='y', fmt='', xscale=None, yscale=None, xlim=None, ylim=None, aspect=None, text=lambda f:'n=%i\nt=%.2e' %(f.frame, f['/timedisc/time']), kwargs)
 
def multiplot (send, xlabel='x', ylabel='y', xlim=(None, None), ylim=(None, None), fmts=(), labels=(), repeat=0, xscale=None, yscale=None, loc='best', ncol=1, ltitle=None, rtitle=None, color='rgbcmykw', marker=None, linestyle='-', kwargs)
 
def makelist (send, n=lambda f:len(f), l=None)
 
def cut (send, s)
 
def streamplot2
 
def streamplot (send, scale=1., args, kwargs)
 
def contour (send, args, kwargs)
 
def nextsub (send)
 
def selectsub (send, i)
 
def pcolormesh (send, cmap=stdcmap, clim=None, xlabel='x', ylabel='y', aspect='equal', scale=1., clabel=None, xlim=None, ylim=None, text=None, X=None, Y=None, xscale=None, yscale=None, cscale=None, xticks=None, yticks=None, norm=None, ltitle=None, rtitle=None, cax=None, autoscale=False, edgecolors='None', linewidth=0, tcolor='k', zoom=None, nbins=None, args, kwargs)
 
def text (send, x, y, label, args, kwargs)
 
def annotate (send, label, xy, xytext, args, kwargs)
 
def colorbar (send, i=0, label="", args, kwargs)
 
def addtitle (send, i=0, label="", args, kwargs)
 
def pcolorflat (args, kwargs)
 
def timelistgrid (send, scale=1., tscale=1.)
 
def moviesave (send, filename, fps=60, ffmpeg_params=['-preset', slow, crf, args, kwargs)
 
def anisave (send, filename, frames, args, kwargs)
 
def animate (send, args, kwargs)
 
def timeseries (send)
 
def series (send, it)
 
def getData (f, names)
 
def get (send)
 
def savetxt (send, name, args, kwargs)
 
def loadtxt (send, args, kwargs)
 
def savefig (send, name, args, kwargs)
 
def savepng (name, args, kwargs)
 
def savepdf (name, args, kwargs)
 
def axvline (send, x, args, kwargs)
 
def saveimg (send, name, args, kwargs)
 
def savepgf (send, name, args, kwargs)
 
def save (send, name, args, kwargs)
 
def load (send, args, kwargs)
 
def psave (send, name, args, kwargs)
 
def pload (send, args, kwargs)
 
def rfft (send)
 
def irfft (send)
 
def abs (send)
 
def log10 (send)
 
def log (send)
 
def only (send, i, p)
 
def waiter (send, n)
 
def onlyif (send, fn)
 
def each (send, p)
 
def split (send, args)
 
def repeat (send, no)
 
def broadcast (send, args)
 
def normalize
 
def normalize2
 
def numexpr (send, expr)
 
def apply (send, fn)
 
def movingaverage (send, order=3)
 
def forall (send, fn)
 
def diff_backward (send, order=1)
 
def timediff (send, reset=None)
 
def timediff2 (send)
 
def vecabs (send)
 
def diff (f, d, dir)
 
def grad (send)
 
def delR (send)
 
def absgrad (f)
 
def curl (send)
 
def div (send)
 
def cross (send, f, a)
 
def Convert2Cartesian (send)
 
def inner (send)
 
def readdirs (send)
 
def readbin (send)
 
def pltshow (send)
 
def mkplt (send, args, kwargs)
 
def mksubplots (send, grid=(1, 2), args, kwargs)
 
def mkgrid (send, grid, figsize=None, kwargs)
 
def control (send, i=None)
 
def append (send, l)
 
def togglemax (send)
 
def printmeta (send)
 
def setmeta (send, d)
 
def consumemeta (send, name)
 
def vorticity
 
def kepvelocity (f)
 
def kepvorticity ()
 
def potvorticity (f, omega=0.)
 
def vortensity (f, omega=0.)
 
def specifictorque (f, omega=0.)
 
def mass (f)
 
def specifictorqueflux (f, csiso=None, omega=0.)
 
def angularmomentum (f)
 
def im (v="/timedisc/density", normalize=False, kwargs)
 
def angularmomentumconservation ()
 
def cellaspectratio ()
 
def gettemp (f)
 
def temperature ()
 
def massspectrum (logscale=True, omega=0.)
 
def toomre (kappa=omega)
 
def kinetic_energy (f, omega=1.)
 
def gravitational_energy (f)
 
def thermal_energy (f)
 
def cartvelocity ()
 
def mach ()
 
def overR (p, i=0)
 
def getvars (send, l)
 
def L1 (send)
 

Variables

 stdcmap = plt.cm.viridis
 
 tqdm = lambda a: a
 
 back
 for Palatino and other serif fonts use: rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=False) rc('text.latex', preamble=r"\usepackage{wasysym}") rc('text.latex', unicode=True) overwrite some standard keymapings, so they don't collide with our own. More...
 
 forward
 
 zoom
 
 home
 
 minmaxmean = lambda d: (np.min(d),np.mean(d),np.max(d))
 
def line = lambda v: produce(('/mesh/bary_centers_x',v)) | control(f,fig) | get(f) | plot(f,fig,sub)
 
 omega = lambda f: f['/timedisc/yvelocity']/f['/mesh/radius'] + f['/config/mesh/omega']
 
 epicyclicfrequency = lambda f: np.sqrt(2.*omega(f)/f['/mesh/radius']*diff(f,f['/mesh/radius']**2*omega(f),0)/f['/mesh/bhx'])
 
def pvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xvelocity','yvelocity','pressure']])
 
def cvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xmomentum','ymomentum','energy']])
 
 parser = argparse.ArgumentParser()
 
 group = parser.add_mutually_exclusive_group()
 
 help
 
 action
 
 nargs
 
 metavar
 
 args = parser.parse_args()
 
 d = vars(args)
 
 fig = plt.figure()
 
 sub = fig.add_subplot(111, projection='3d')
 
 p = eval(args.pipe)
 

Function Documentation

◆ abs()

def coplot.abs (   send)

Definition at line 1122 of file coplot.py.

◆ absgrad()

def coplot.absgrad (   f)

Definition at line 1398 of file coplot.py.

◆ addtitle()

def coplot.addtitle (   send,
  i = 0,
  label = "",
  args,
  kwargs 
)

Definition at line 823 of file coplot.py.

◆ angularmomentum()

def coplot.angularmomentum (   f)

Definition at line 1721 of file coplot.py.

◆ angularmomentumconservation()

def coplot.angularmomentumconservation ( )

Definition at line 1735 of file coplot.py.

◆ animate()

def coplot.animate (   send,
  args,
  kwargs 
)

Definition at line 915 of file coplot.py.

◆ anisave()

def coplot.anisave (   send,
  filename,
  frames,
  args,
  kwargs 
)

Definition at line 900 of file coplot.py.

◆ annotate()

def coplot.annotate (   send,
  label,
  xy,
  xytext,
  args,
  kwargs 
)

Definition at line 783 of file coplot.py.

◆ append()

def coplot.append (   send,
  l 
)

Definition at line 1606 of file coplot.py.

◆ apply()

def coplot.apply (   send,
  fn 
)

Definition at line 1284 of file coplot.py.

◆ axvline()

def coplot.axvline (   send,
  x,
  args,
  kwargs 
)

Definition at line 1010 of file coplot.py.

◆ broadcast()

def coplot.broadcast (   send,
  args 
)

Definition at line 1232 of file coplot.py.

◆ call()

def coplot.call (   send,
  f,
  args,
  kwargs 
)

Definition at line 210 of file coplot.py.

◆ cartvelocity()

def coplot.cartvelocity ( )

Definition at line 1799 of file coplot.py.

◆ cellaspectratio()

def coplot.cellaspectratio ( )

Definition at line 1738 of file coplot.py.

◆ clip()

def coplot.clip (   send,
  min,
  max 
)

Definition at line 134 of file coplot.py.

◆ colorbar()

def coplot.colorbar (   send,
  i = 0,
  label = "",
  args,
  kwargs 
)

Definition at line 795 of file coplot.py.

◆ connectKey()

def coplot.connectKey (   fig,
  key,
  action 
)

Definition at line 43 of file coplot.py.

◆ consumemeta()

def coplot.consumemeta (   send,
  name 
)

Definition at line 1662 of file coplot.py.

◆ contour()

def coplot.contour (   send,
  args,
  kwargs 
)

Definition at line 573 of file coplot.py.

◆ control()

def coplot.control (   send,
  i = None 
)

Definition at line 1549 of file coplot.py.

◆ Convert2Cartesian()

def coplot.Convert2Cartesian (   send)

Definition at line 1430 of file coplot.py.

◆ cross()

def coplot.cross (   send,
  f,
  a 
)

Definition at line 1423 of file coplot.py.

◆ curl()

def coplot.curl (   send)

Definition at line 1402 of file coplot.py.

◆ customfilter()

def coplot.customfilter (   send,
  fn 
)

Definition at line 107 of file coplot.py.

◆ cut()

def coplot.cut (   send,
  s 
)

Definition at line 470 of file coplot.py.

◆ delR()

def coplot.delR (   send)

Definition at line 1392 of file coplot.py.

◆ diff()

def coplot.diff (   f,
  d,
  dir 
)

Definition at line 1364 of file coplot.py.

◆ diff_backward()

def coplot.diff_backward (   send,
  order = 1 
)

Definition at line 1314 of file coplot.py.

◆ div()

def coplot.div (   send)

Definition at line 1413 of file coplot.py.

◆ each()

def coplot.each (   send,
  p 
)

Definition at line 1173 of file coplot.py.

◆ forall()

def coplot.forall (   send,
  fn 
)

Definition at line 1307 of file coplot.py.

◆ gaussian_filter()

def coplot.gaussian_filter (   send,
  args,
  kwargs 
)

Definition at line 66 of file coplot.py.

◆ gaussiankernel_filter()

def coplot.gaussiankernel_filter (   send,
  stddev,
  args,
  kwargs 
)

Definition at line 74 of file coplot.py.

◆ generate()

def coplot.generate (   send,
  d = None 
)

Definition at line 162 of file coplot.py.

◆ get()

def coplot.get (   send)

Definition at line 960 of file coplot.py.

◆ getData()

def coplot.getData (   f,
  names 
)

Definition at line 950 of file coplot.py.

◆ gettemp()

def coplot.gettemp (   f)

Definition at line 1742 of file coplot.py.

◆ getval()

def coplot.getval (   p,
  args 
)

Definition at line 170 of file coplot.py.

◆ getvars()

def coplot.getvars (   send,
  l 
)

Definition at line 1811 of file coplot.py.

◆ grad()

def coplot.grad (   send)

Definition at line 1385 of file coplot.py.

◆ gravitational_energy()

def coplot.gravitational_energy (   f)

Definition at line 1793 of file coplot.py.

◆ im()

def coplot.im (   v = "/timedisc/density",
  normalize = False,
  kwargs 
)

Definition at line 1729 of file coplot.py.

◆ imshow()

def coplot.imshow (   send,
  aspect = 1,
  cmap = stdcmap,
  cax = plt,
  clim = None,
  cscale = None,
  norm = None,
  xscale = None,
  yscale = None,
  xlabel = 'x',
  ylabel = 'y',
  clabel = None,
  args,
  kwargs 
)

Definition at line 243 of file coplot.py.

◆ inject()

def coplot.inject (   send,
  p 
)

Definition at line 200 of file coplot.py.

◆ inner()

def coplot.inner (   send)

Definition at line 1440 of file coplot.py.

◆ irfft()

def coplot.irfft (   send)

Definition at line 1109 of file coplot.py.

◆ iterate()

def coplot.iterate (   send)

Definition at line 217 of file coplot.py.

◆ kepvelocity()

def coplot.kepvelocity (   f)

Definition at line 1677 of file coplot.py.

◆ kepvorticity()

def coplot.kepvorticity ( )

Definition at line 1688 of file coplot.py.

◆ kinetic_energy()

def coplot.kinetic_energy (   f,
  omega = 1. 
)

Definition at line 1789 of file coplot.py.

◆ L1()

def coplot.L1 (   send)

Definition at line 1823 of file coplot.py.

◆ load()

def coplot.load (   send,
  args,
  kwargs 
)

Definition at line 1071 of file coplot.py.

◆ loadtxt()

def coplot.loadtxt (   send,
  args,
  kwargs 
)

Definition at line 974 of file coplot.py.

◆ log()

def coplot.log (   send)

Definition at line 1132 of file coplot.py.

◆ log10()

def coplot.log10 (   send)

Definition at line 1127 of file coplot.py.

◆ mach()

def coplot.mach ( )

Definition at line 1802 of file coplot.py.

◆ makelist()

def coplot.makelist (   send,
  n = lambda f: len(f),
  l = None 
)

Definition at line 447 of file coplot.py.

◆ mass()

def coplot.mass (   f)

Definition at line 1701 of file coplot.py.

◆ massspectrum()

def coplot.massspectrum (   logscale = True,
  omega = 0. 
)

Definition at line 1757 of file coplot.py.

◆ max()

def coplot.max (   send,
  axis = None 
)

Definition at line 120 of file coplot.py.

◆ mean()

def coplot.mean (   send,
  axis = None 
)

Definition at line 101 of file coplot.py.

◆ median_filter()

def coplot.median_filter (   send,
  args,
  kwargs 
)

Definition at line 85 of file coplot.py.

◆ min()

def coplot.min (   send,
  axis = None 
)

Definition at line 114 of file coplot.py.

◆ minmax()

def coplot.minmax (   send,
  axis = None 
)

Definition at line 128 of file coplot.py.

◆ mkgrid()

def coplot.mkgrid (   send,
  grid,
  figsize = None,
  kwargs 
)

Definition at line 1519 of file coplot.py.

◆ mkplt()

def coplot.mkplt (   send,
  args,
  kwargs 
)

Definition at line 1489 of file coplot.py.

◆ mksubplots()

def coplot.mksubplots (   send,
  grid = (1,2),
  args,
  kwargs 
)

Definition at line 1504 of file coplot.py.

◆ moviesave()

def coplot.moviesave (   send,
  filename,
  fps = 60,
  ffmpeg_params = ['-preset',
  slow,
  crf,
  args,
  kwargs 
)

Definition at line 878 of file coplot.py.

◆ movingaverage()

def coplot.movingaverage (   send,
  order = 3 
)

Definition at line 1295 of file coplot.py.

◆ multiplot()

def coplot.multiplot (   send,
  xlabel = 'x',
  ylabel = 'y',
  xlim = (None,None),
  ylim = (None,None),
  fmts = (),
  labels = (),
  repeat = 0,
  xscale = None,
  yscale = None,
  loc = 'best',
  ncol = 1,
  ltitle = None,
  rtitle = None,
  color = 'rgbcmykw',
  marker = None,
  linestyle = '-',
  kwargs 
)

Definition at line 389 of file coplot.py.

◆ nextsub()

def coplot.nextsub (   send)

Definition at line 595 of file coplot.py.

◆ normalize()

def coplot.normalize (   send,
  i = None,
  norm = lambda d,
  d0 
)

Definition at line 1241 of file coplot.py.

◆ normalize2()

def coplot.normalize2 (   send,
  norm = lambda x,
  y 
)

Definition at line 1253 of file coplot.py.

◆ numexpr()

def coplot.numexpr (   send,
  expr 
)

Definition at line 1262 of file coplot.py.

◆ once()

def coplot.once (   send,
  data 
)

Definition at line 51 of file coplot.py.

◆ only()

def coplot.only (   send,
  i,
  p 
)

Definition at line 1137 of file coplot.py.

◆ onlyif()

def coplot.onlyif (   send,
  fn 
)

Definition at line 1165 of file coplot.py.

◆ overR()

def coplot.overR (   p,
  i = 0 
)

Definition at line 1805 of file coplot.py.

◆ pcolorflat()

def coplot.pcolorflat (   args,
  kwargs 
)

Definition at line 830 of file coplot.py.

◆ pcolormesh()

def coplot.pcolormesh (   send,
  cmap = stdcmap,
  clim = None,
  xlabel = 'x',
  ylabel = 'y',
  aspect = 'equal',
  scale = 1.,
  clabel = None,
  xlim = None,
  ylim = None,
  text = None,
  X = None,
  Y = None,
  xscale = None,
  yscale = None,
  cscale = None,
  xticks = None,
  yticks = None,
  norm = None,
  ltitle = None,
  rtitle = None,
  cax = None,
  autoscale = False,
  edgecolors = 'None',
  linewidth = 0,
  tcolor = 'k',
  zoom = None,
  nbins = None,
  args,
  kwargs 
)

Definition at line 612 of file coplot.py.

◆ pipe()

def coplot.pipe (   send,
  p = None 
)

Definition at line 185 of file coplot.py.

◆ pload()

def coplot.pload (   send,
  args,
  kwargs 
)

Definition at line 1086 of file coplot.py.

◆ plot()

def coplot.plot (   send,
  xdata = None,
  xlabel = 'x',
  ylabel = 'y',
  fmt = '',
  xscale = None,
  yscale = None,
  xlim = None,
  ylim = None,
  aspect = None,
  text = lambda f:'n = %i\nt = %.2e' % (f.frame, f['/timedisc/time']),
  kwargs 
)

Definition at line 343 of file coplot.py.

◆ pltshow()

def coplot.pltshow (   send)

Definition at line 1483 of file coplot.py.

◆ potvorticity()

def coplot.potvorticity (   f,
  omega = 0. 
)

Definition at line 1691 of file coplot.py.

◆ printer()

def coplot.printer (   send,
  fn = lambda d: d 
)

Definition at line 147 of file coplot.py.

◆ printmeta()

def coplot.printmeta (   send)

Definition at line 1649 of file coplot.py.

◆ produce()

def coplot.produce (   send,
  d 
)

Definition at line 156 of file coplot.py.

◆ psave()

def coplot.psave (   send,
  name,
  args,
  kwargs 
)

Definition at line 1078 of file coplot.py.

◆ readbin()

def coplot.readbin (   send)

Definition at line 1468 of file coplot.py.

◆ readdirs()

def coplot.readdirs (   send)

Definition at line 1453 of file coplot.py.

◆ repeat()

def coplot.repeat (   send,
  no 
)

Definition at line 1225 of file coplot.py.

◆ rfft()

def coplot.rfft (   send)

Definition at line 1096 of file coplot.py.

◆ save()

def coplot.save (   send,
  name,
  args,
  kwargs 
)

Definition at line 1064 of file coplot.py.

◆ savefig()

def coplot.savefig (   send,
  name,
  args,
  kwargs 
)

Definition at line 985 of file coplot.py.

◆ saveimg()

def coplot.saveimg (   send,
  name,
  args,
  kwargs 
)

Definition at line 1018 of file coplot.py.

◆ savepdf()

def coplot.savepdf (   name,
  args,
  kwargs 
)

Definition at line 1004 of file coplot.py.

◆ savepgf()

def coplot.savepgf (   send,
  name,
  args,
  kwargs 
)

Definition at line 1043 of file coplot.py.

◆ savepng()

def coplot.savepng (   name,
  args,
  kwargs 
)

Definition at line 1000 of file coplot.py.

◆ savetxt()

def coplot.savetxt (   send,
  name,
  args,
  kwargs 
)

Definition at line 967 of file coplot.py.

◆ select()

def coplot.select (   send,
  frame = None 
)

Definition at line 224 of file coplot.py.

◆ selectsub()

def coplot.selectsub (   send,
  i 
)

Definition at line 603 of file coplot.py.

◆ series()

def coplot.series (   send,
  it 
)

Definition at line 937 of file coplot.py.

◆ setmeta()

def coplot.setmeta (   send,
  d 
)

Definition at line 1656 of file coplot.py.

◆ specifictorque()

def coplot.specifictorque (   f,
  omega = 0. 
)

Definition at line 1697 of file coplot.py.

◆ specifictorqueflux()

def coplot.specifictorqueflux (   f,
  csiso = None,
  omega = 0. 
)

Definition at line 1705 of file coplot.py.

◆ split()

def coplot.split (   send,
  args 
)

Definition at line 1206 of file coplot.py.

◆ streamplot()

def coplot.streamplot (   send,
  scale = 1.,
  args,
  kwargs 
)

Definition at line 558 of file coplot.py.

◆ streamplot2()

def coplot.streamplot2 (   send,
  res = 50,
  clabel = None,
  xlim = None,
  ylim = None,
  scale = 1.,
  cmap = stdcmap,
  color = lambda u,
  v 
)

Definition at line 483 of file coplot.py.

◆ sum()

def coplot.sum (   send,
  axis = None 
)

Definition at line 60 of file coplot.py.

◆ surface()

def coplot.surface (   send,
  f,
  fig,
  sub,
  aspect = 1,
  cmap = stdcmap,
  cax = plt,
  clim = None,
  cscale = None,
  norm = None,
  xscale = None,
  yscale = None,
  args,
  kwargs 
)

Definition at line 302 of file coplot.py.

◆ symclip()

def coplot.symclip (   send)

Definition at line 140 of file coplot.py.

◆ temperature()

def coplot.temperature ( )

Definition at line 1754 of file coplot.py.

◆ text()

def coplot.text (   send,
  x,
  y,
  label,
  args,
  kwargs 
)

Definition at line 770 of file coplot.py.

◆ thermal_energy()

def coplot.thermal_energy (   f)

Definition at line 1796 of file coplot.py.

◆ timediff()

def coplot.timediff (   send,
  reset = None 
)

Definition at line 1332 of file coplot.py.

◆ timediff2()

def coplot.timediff2 (   send)

Definition at line 1346 of file coplot.py.

◆ timelistgrid()

def coplot.timelistgrid (   send,
  scale = 1.,
  tscale = 1. 
)

Definition at line 853 of file coplot.py.

◆ timeseries()

def coplot.timeseries (   send)

Definition at line 927 of file coplot.py.

◆ togglemax()

def coplot.togglemax (   send)

Definition at line 1613 of file coplot.py.

◆ toomre()

def coplot.toomre (   kappa = omega)

Definition at line 1777 of file coplot.py.

◆ uniform_filter()

def coplot.uniform_filter (   send,
  args,
  kwargs 
)

Definition at line 93 of file coplot.py.

◆ vecabs()

def coplot.vecabs (   send)

Definition at line 1354 of file coplot.py.

◆ vortensity()

def coplot.vortensity (   f,
  omega = 0. 
)

Definition at line 1694 of file coplot.py.

◆ vorticity()

def coplot.vorticity (   norm = lambda x,
  y 
)

Definition at line 1670 of file coplot.py.

◆ waiter()

def coplot.waiter (   send,
  n 
)

Definition at line 1157 of file coplot.py.

Variable Documentation

◆ action

coplot.action

Definition at line 1840 of file coplot.py.

◆ args

coplot.args = parser.parse_args()

Definition at line 1845 of file coplot.py.

◆ back

coplot.back

for Palatino and other serif fonts use: rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=False) rc('text.latex', preamble=r"\usepackage{wasysym}") rc('text.latex', unicode=True) overwrite some standard keymapings, so they don't collide with our own.

See: http://matplotlib.github.com/users/navigation_toolbar.html

Definition at line 40 of file coplot.py.

◆ cvars

def coplot.cvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xmomentum','ymomentum','energy']])

Definition at line 1820 of file coplot.py.

◆ d

coplot.d = vars(args)

Definition at line 1848 of file coplot.py.

◆ epicyclicfrequency

coplot.epicyclicfrequency = lambda f: np.sqrt(2.*omega(f)/f['/mesh/radius']*diff(f,f['/mesh/radius']**2*omega(f),0)/f['/mesh/bhx'])

Definition at line 1774 of file coplot.py.

◆ fig

coplot.fig = plt.figure()

Definition at line 1854 of file coplot.py.

◆ forward

coplot.forward

Definition at line 40 of file coplot.py.

◆ group

coplot.group = parser.add_mutually_exclusive_group()

Definition at line 1839 of file coplot.py.

◆ help

coplot.help

Definition at line 1840 of file coplot.py.

◆ home

coplot.home

Definition at line 40 of file coplot.py.

◆ line

def coplot.line = lambda v: produce(('/mesh/bary_centers_x',v)) | control(f,fig) | get(f) | plot(f,fig,sub)

Definition at line 1727 of file coplot.py.

◆ metavar

coplot.metavar

Definition at line 1843 of file coplot.py.

◆ minmaxmean

coplot.minmaxmean = lambda d: (np.min(d),np.mean(d),np.max(d))

Definition at line 125 of file coplot.py.

◆ nargs

coplot.nargs

Definition at line 1842 of file coplot.py.

◆ omega

coplot.omega = lambda f: f['/timedisc/yvelocity']/f['/mesh/radius'] + f['/config/mesh/omega']

Definition at line 1772 of file coplot.py.

◆ p

coplot.p = eval(args.pipe)

Definition at line 1856 of file coplot.py.

◆ parser

coplot.parser = argparse.ArgumentParser()

Definition at line 1838 of file coplot.py.

◆ pvars

def coplot.pvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xvelocity','yvelocity','pressure']])

Definition at line 1819 of file coplot.py.

◆ stdcmap

coplot.stdcmap = plt.cm.viridis

Definition at line 22 of file coplot.py.

◆ sub

coplot.sub = fig.add_subplot(111, projection='3d')

Definition at line 1855 of file coplot.py.

◆ tqdm

coplot.tqdm = lambda a: a

Definition at line 27 of file coplot.py.

◆ zoom

coplot.zoom

Definition at line 40 of file coplot.py.