This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The first function is used to get starred velocities from u and v at timestep t | |
def GetStarredVelocities(space,fluid): | |
#Save object attributes as local variable with explicity typing for improved readability | |
rows=int(space.rowpts) | |
cols=int(space.colpts) | |
u=space.u.astype(float,copy=False) | |
v=space.v.astype(float,copy=False) | |
dx=float(space.dx) | |
dy=float(space.dy) | |
dt=float(space.dt) |