Gug-Young / Shallow_water_with_viscosity

Simulations for dam breaks and viscous fluids
4 stars 0 forks source link

라벨링 #10

Open DmStrkIndstrs opened 2 years ago

DmStrkIndstrs commented 2 years ago

umin = np.min(u_list) umax = np.max(u_list) hzmax = np.max(h_list+z)

t_ = np.array(t_list) t_nearindx = np.searchsorted(t,t)

axu.set_ylim(umin1.1,umax1.1) axh.set_ylim(-0.1,3.5) axh.fillbetween(x,z,z,color = 'tab:orange',zorder=2) axu.set_xlabel('Horizental distance[m]',fontsize=13) axh.set_ylabel('Height[m/s]',labelpad=13.5,fontsize=13) axu.set_ylabel('Velocity[m/s]',fontsize=13)

def update_u_h(num): near_num = t_near_indx[num] h = h_list[near_num] u = u_list[near_num] axh.set_title(r'$\nu$ = {} cSt, time = {:.02f}s'.format(cSt,t[num])) line_u.set_data(x,u) line_h.set_data(x,h+z)

axu.set_ylim(umin*1.1,umax*1.1)
h = h_list[near_num]