"""Create a shock moving diagonally (from lower-left to upper-right)through the domain."""frompyro.utilimportmsgDEFAULT_INPUTS="inputs.test"PROBLEM_PARAMS={}
[docs]definit_data(myd,rp):""" initialize the burgers test problem """ifrp.get_param("driver.verbose"):msg.bold("initializing the burgers test problem...")u=myd.get_var("x-velocity")v=myd.get_var("y-velocity")u[:,:]=3.0v[:,:]=3.0# y = -x + 1index=myd.grid.y2d>-1.0*myd.grid.x2d+1.0u[index]=1.0v[index]=1.0
[docs]deffinalize():""" print out any information to the user at the end of the run """