当前位置: 首页>>代码示例>>Python>>正文


Python Frame.nt方法代码示例

本文整理汇总了Python中frame.Frame.nt方法的典型用法代码示例。如果您正苦于以下问题:Python Frame.nt方法的具体用法?Python Frame.nt怎么用?Python Frame.nt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在frame.Frame的用法示例。


在下文中一共展示了Frame.nt方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Frame

# 需要导入模块: from frame import Frame [as 别名]
# 或者: from frame.Frame import nt [as 别名]
     frm_exp_data = Frame(np.exp(n),meta={'mask':True,'dx':dx,'dy':dy,'cmap':'hot'})
     
     frm_log_data = Frame(np.log(np.abs(n)),meta={'dx':dx,'dy':dy,'cmap':'hot'})
     
     
     frm_phi_data = Frame(phi,meta={'dx':dx,'dy':dy,'cmap':'hot'})

     frm_u_data = Frame(u,meta={'dx':dx,'dy':dy,'cmap':'hot'})
     frm_du_data = Frame(np.gradient(u)[0],meta={'dx':dx,'dy':dy,'cmap':'hot'})
     
     #we can include as many overplot as we want - just grab the canvas and draw whatever
     #if you are going to make movies based on stationary include nt
     dw_contour = Frame(mask,meta={'stationary':True,'dx':dx,'dy':dy,'contour_only':True,'alpha':.2,'colors':'green','grid':False})
     # alpha_contour = Frame(mask,meta={'stationary':True,'dx':dx,'dy':dy,'contour_only':True,'alpha':.1,'colors':'k'})
     dw_contour.nt = frm_n.nt
  
     a_contour = Frame(a,meta={'stationary':True,'dx':dx,'dy':dy,'contour_only':True,'alpha':.2,'colors':'blue','grid':False,'x0':0})
     # alpha_contour = Frame(mask,meta={'stationary':True,'dx':dx,'dy':dy,'contour_only':True,'alpha':.1,'colors':'k'})
     a_contour.nt = frm_n.nt

     # for t in range(frm_data.nt):
     #      phi[t,:,:]-np.mean(phi[t,:,:])

     phi_contour = Frame(phi,meta={'stationary':False,'dx':dx,'contour_only':True,'alpha':.5,'colors':'red'})
     phi_contour.nt = frm_n.nt

     #frm_data_SOL = Frame(n[:,nx_sol:-1,:],meta={'mask':True,'dx':dx,'x0':dx*nx_sol})
     #frm_data = Frame(a,meta={'data_c':a,'mask':True,'dx':dx})
     print n.shape
     amp = abs(n).max(1).max(1)   
开发者ID:meyerson,项目名称:BOUT_sims,代码行数:32,代码来源:makemovie2.py

示例2: Frame

# 需要导入模块: from frame import Frame [as 别名]
# 或者: from frame.Frame import nt [as 别名]
                                  't_array':time,'x0':dx*250.0 })

     frm_exp_data = Frame(np.exp(n),meta={'mask':True,'dx':dx,'dy':dy,'cmap':'hot'})
     
     frm_log_data = Frame(np.log(np.abs(n)),meta={'dx':dx,'dy':dy,'cmap':'hot'})
     
     
     frm_phi_data = Frame(phi,meta={'dx':dx,'dy':dy,'cmap':'hot'})

     frm_u_data = Frame(u,meta={'dx':dx,'dy':dy,'cmap':'hot'})
     frm_du_data = Frame(np.gradient(u)[0],meta={'dx':dx,'dy':dy,'cmap':'hot'})
     
  

     phi_contour = Frame(phi,meta={'stationary':False,'dx':dx,'contour_only':True,'alpha':.5,'colors':'red'})
     phi_contour.nt = frm_n.nt

     print n.shape
     amp = abs(n).max(1).max(1)   
     frm_amp = Frame(amp)

     
     dky = 1.0/zmax
     allk = dky*np.arange(ny)+(1e-8*dky)
     mu = 1.0e-2
     #alpha = 3.0e-5
     # beta = 6.0e-4
     # Ln = 130.0/4.0
     
     n0 = n[0,:,:].mean(axis=1)
     #Ln  = n0/gradient(n0)
开发者ID:meyerson,项目名称:BOUT_sims,代码行数:33,代码来源:makemovie_Te.py


注:本文中的frame.Frame.nt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。