Module ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias Import alias identifier Import alias identifier Import alias identifier ImportFrom alias alias alias Import alias identifier ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Exec BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpDiv AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Assign NameStore BinOpDiv AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMult NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad NameLoad attr AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Assign AttributeStore NameLoad attr NameLoad If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Str If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr keyword Num ExtSlice Slice Slice Call AttributeLoad NameLoad attr keyword Num Assign NameStore TupleLoad Num Num Num Num AugAssignSub SubscriptStore Call AttributeLoad NameLoad attr keyword NameLoad ExtSlice Slice Slice BinOpDiv BinOpSub Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Num keyword NameLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad Num Num Num Num AugAssignSub SubscriptStore Call AttributeLoad NameLoad attr keyword NameLoad ExtSlice Slice Slice BinOpDiv BinOpSub Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Num keyword NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpMult BinOpMult Num BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult Num BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpMult BinOpMult Num BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult Num BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq NameLoad Num body AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice orelse If CompareEq NameLoad Num body AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore Call AttributeLoad NameLoad attr keyword Num ExtSlice Slice Slice Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Num Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignSub SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Num body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice AugAssignAdd SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice orelse If CompareEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpSub BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpAdd BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpDiv BinOpMult Num BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str For NameStore Call NameLoad Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Num BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ print_function N/A numpy np N/A matplotlib.pyplot plt incompressible.problems * N/A incompressible.incomp_interface_f incomp_interface_f N/A mesh.reconstruction_f reconstruction_f N/A mesh.patch patch simulation_null NullSimulation grid_setup bc_setup N/A multigrid.MG MG util profile Simulation N/A NullSimulation N/A initialize N/A N/A self N/A N/A N/A 
        Initialize the grid and variables for incompressible flow and
        set the initial conditions for the chosen problem.
         N/A my_grid N/A grid_setup N/A self rp ng 4 N/A N/A bc bc_xodd bc_yodd N/A bc_setup N/A self rp N/A my_data N/A N/A patch CellCenterData2d my_grid N/A N/A N/A my_data register_var x-velocity bc_xodd N/A N/A N/A my_data register_var y-velocity bc_yodd N/A N/A N/A my_data register_var phi-MAC bc N/A N/A N/A my_data register_var phi bc N/A N/A N/A my_data register_var gradp_x bc N/A N/A N/A my_data register_var gradp_y bc N/A N/A N/A my_data create N/A N/A self cc_data my_data N/A N/A N/A self problem_name .init_data(self.cc_data, self.rp) N/A compute_timestep N/A N/A self N/A N/A N/A 
        The timestep() function computes the advective timestep
        (CFL) constraint.  The CFL constraint says that information
        cannot propagate further than one zone per timestep.

        We use the driver.cfl parameter to control what fraction of the CFL
        step we actually take.
         N/A cfl N/A N/A N/A self rp get_param driver.cfl N/A u N/A N/A N/A self cc_data get_var x-velocity N/A v N/A N/A N/A self cc_data get_var y-velocity N/A xtmp N/A N/A N/A N/A self cc_data grid dx N/A abs u N/A ytmp N/A N/A N/A N/A self cc_data grid dy N/A abs v N/A N/A self dt N/A cfl N/A min N/A N/A xtmp min N/A N/A ytmp min N/A preevolve N/A N/A self N/A N/A N/A 
        preevolve is called before we being the timestepping loop.  For
        the incompressible solver, this does an initial projection on the
        velocity field and then goes through the full evolution to get the
        value of phi.  The fluid state (u, v) is then reset to values
        before this evolve.
         N/A N/A self in_preevolve True N/A myg N/A N/A self cc_data grid N/A u N/A N/A N/A self cc_data get_var x-velocity N/A v N/A N/A N/A self cc_data get_var y-velocity N/A N/A N/A N/A self cc_data fill_BC x-velocity N/A N/A N/A N/A self cc_data fill_BC y-velocity N/A mg N/A N/A MG CellCenterMG2d N/A myg nx N/A myg ny xl_BC_type periodic xr_BC_type periodic yl_BC_type periodic yr_BC_type periodic xmin N/A myg xmin xmax N/A myg xmax ymin N/A myg ymin ymax N/A myg ymax verbose 0 N/A divU N/A N/A N/A mg soln_grid scratch_array N/A N/A N/A N/A divU v N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A u ip 1 N/A N/A u ip -1 N/A myg dx N/A N/A 0.5 N/A N/A N/A v jp 1 N/A N/A v jp -1 N/A myg dy N/A N/A N/A mg init_zeros N/A N/A N/A mg init_RHS N/A divU d N/A N/A N/A mg solve rtol 1e-10 N/A phi N/A N/A N/A self cc_data get_var phi N/A N/A N/A phi d N/A N/A N/A N/A N/A N/A mg get_solution grid myg d N/A N/A gradp_x gradp_y N/A N/A mg get_solution_gradient grid myg N/A N/A N/A u d N/A N/A N/A N/A gradp_x d N/A N/A N/A v d N/A N/A N/A N/A gradp_y d N/A N/A N/A N/A self cc_data fill_BC x-velocity N/A N/A N/A N/A self cc_data fill_BC y-velocity N/A orig_data N/A N/A patch cell_center_data_clone N/A self cc_data N/A N/A N/A self compute_timestep N/A N/A N/A self evolve N/A new_gp_x N/A N/A N/A self cc_data get_var gradp_x N/A new_gp_y N/A N/A N/A self cc_data get_var gradp_y N/A orig_gp_x N/A N/A orig_data get_var gradp_x N/A orig_gp_y N/A N/A orig_data get_var gradp_y N/A N/A N/A orig_gp_x d N/A N/A N/A N/A N/A new_gp_x d N/A N/A N/A N/A N/A N/A orig_gp_y d N/A N/A N/A N/A N/A new_gp_y d N/A N/A N/A N/A N/A self cc_data orig_data N/A N/A N/A self verbose 0 N/A N/A N/A print done with the pre-evolution N/A N/A self in_preevolve False N/A evolve N/A N/A self N/A N/A N/A 
        Evolve the incompressible equations through one timestep.
         N/A u N/A N/A N/A self cc_data get_var x-velocity N/A v N/A N/A N/A self cc_data get_var y-velocity N/A gradp_x N/A N/A N/A self cc_data get_var gradp_x N/A gradp_y N/A N/A N/A self cc_data get_var gradp_y N/A phi N/A N/A N/A self cc_data get_var phi N/A myg N/A N/A self cc_data grid N/A limiter N/A N/A N/A self rp get_param incompressible.limiter N/A N/A limiter 0 N/A N/A limitFunc N/A reconstruction_f nolimit N/A N/A N/A limiter 1 N/A N/A limitFunc N/A reconstruction_f limit2 N/A N/A limitFunc N/A reconstruction_f limit4 N/A ldelta_ux N/A limitFunc 1 N/A u d N/A myg qx N/A myg qy N/A myg ng N/A ldelta_vx N/A limitFunc 1 N/A v d N/A myg qx N/A myg qy N/A myg ng N/A ldelta_uy N/A limitFunc 2 N/A u d N/A myg qx N/A myg qy N/A myg ng N/A ldelta_vy N/A limitFunc 2 N/A v d N/A myg qx N/A myg qy N/A myg ng N/A 
        the advective velocities are the normal velocity through each cell
        interface, and are defined on the cell edges, in a MAC type
        staggered form

                         n+1/2
                        v
                         i,j+1/2
                    +------+------+
                    |             |
            n+1/2   |             |   n+1/2
           u        +     U       +  u
            i-1/2,j |      i,j    |   i+1/2,j
                    |             |
                    +------+------+
                         n+1/2
                        v
                         i,j-1/2

         N/A N/A N/A self verbose 0 N/A N/A N/A print   making MAC velocities N/A N/A _um _vm N/A N/A incomp_interface_f mac_vels N/A myg qx N/A myg qy N/A myg ng N/A myg dx N/A myg dy N/A self dt N/A u d N/A v d ldelta_ux ldelta_vx ldelta_uy ldelta_vy N/A gradp_x d N/A gradp_y d N/A u_MAC N/A N/A patch ArrayIndexer d _um grid myg N/A v_MAC N/A N/A patch ArrayIndexer d _vm grid myg N/A N/A N/A self verbose 0 N/A N/A N/A print   MAC projection N/A mg N/A N/A MG CellCenterMG2d N/A myg nx N/A myg ny xl_BC_type periodic xr_BC_type periodic yl_BC_type periodic yr_BC_type periodic xmin N/A myg xmin xmax N/A myg xmax ymin N/A myg ymin ymax N/A myg ymax verbose 0 N/A divU N/A N/A N/A mg soln_grid scratch_array N/A N/A N/A N/A divU v N/A N/A N/A N/A N/A N/A N/A N/A u_MAC ip 1 N/A N/A u_MAC v N/A myg dx N/A N/A N/A N/A v_MAC jp 1 N/A N/A v_MAC v N/A myg dy N/A N/A N/A mg init_zeros N/A N/A N/A mg init_RHS N/A divU d N/A N/A N/A mg solve rtol 1e-12 N/A phi_MAC N/A N/A N/A self cc_data get_var phi-MAC N/A solution N/A N/A mg get_solution N/A N/A N/A N/A phi_MAC v buf 1 N/A N/A N/A N/A N/A solution v buf 1 N/A b N/A 0 1 0 0 N/A N/A N/A N/A u_MAC v buf b N/A N/A N/A N/A N/A N/A N/A phi_MAC v buf b N/A N/A phi_MAC ip -1 buf b N/A myg dx N/A b N/A 0 0 0 1 N/A N/A N/A N/A v_MAC v buf b N/A N/A N/A N/A N/A N/A N/A phi_MAC v buf b N/A N/A phi_MAC jp -1 buf b N/A myg dy N/A N/A N/A self verbose 0 N/A N/A N/A print   making u, v edge states N/A N/A _ux _vx _uy _vy N/A N/A incomp_interface_f states N/A myg qx N/A myg qy N/A myg ng N/A myg dx N/A myg dy N/A self dt N/A u d N/A v d ldelta_ux ldelta_vx ldelta_uy ldelta_vy N/A gradp_x d N/A gradp_y d N/A u_MAC d N/A v_MAC d N/A u_xint N/A N/A patch ArrayIndexer d _ux grid myg N/A v_xint N/A N/A patch ArrayIndexer d _vx grid myg N/A u_yint N/A N/A patch ArrayIndexer d _uy grid myg N/A v_yint N/A N/A patch ArrayIndexer d _vy grid myg N/A N/A N/A self verbose 0 N/A N/A N/A print   doing provisional update of u, v N/A advect_x N/A N/A myg scratch_array N/A advect_y N/A N/A myg scratch_array N/A N/A N/A N/A advect_x v N/A N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A u_MAC v N/A N/A u_MAC ip 1 N/A N/A N/A u_xint ip 1 N/A N/A u_xint v N/A myg dx N/A N/A N/A 0.5 N/A N/A N/A v_MAC v N/A N/A v_MAC jp 1 N/A N/A N/A u_yint jp 1 N/A N/A u_yint v N/A myg dy N/A N/A N/A N/A advect_y v N/A N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A u_MAC v N/A N/A u_MAC ip 1 N/A N/A N/A v_xint ip 1 N/A N/A v_xint v N/A myg dx N/A N/A N/A 0.5 N/A N/A N/A v_MAC v N/A N/A v_MAC jp 1 N/A N/A N/A v_yint jp 1 N/A N/A v_yint v N/A myg dy N/A proj_type N/A N/A N/A self rp get_param incompressible.proj_type N/A N/A proj_type 1 N/A N/A N/A N/A u d N/A N/A N/A N/A N/A N/A self dt N/A N/A advect_x d N/A N/A N/A N/A N/A self dt N/A N/A gradp_x d N/A N/A N/A N/A N/A N/A v d N/A N/A N/A N/A N/A N/A self dt N/A N/A advect_y d N/A N/A N/A N/A N/A self dt N/A N/A gradp_y d N/A N/A N/A N/A N/A N/A proj_type 2 N/A N/A N/A N/A u d N/A N/A N/A N/A N/A self dt N/A N/A advect_x d N/A N/A N/A N/A N/A N/A v d N/A N/A N/A N/A N/A self dt N/A N/A advect_y d N/A N/A N/A N/A N/A N/A N/A self cc_data fill_BC x-velocity N/A N/A N/A N/A self cc_data fill_BC y-velocity N/A N/A N/A self verbose 0 N/A N/A N/A print   final projection N/A mg N/A N/A MG CellCenterMG2d N/A myg nx N/A myg ny xl_BC_type periodic xr_BC_type periodic yl_BC_type periodic yr_BC_type periodic xmin N/A myg xmin xmax N/A myg xmax ymin N/A myg ymin ymax N/A myg ymax verbose 0 N/A N/A N/A N/A divU v N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A u ip 1 N/A N/A u ip -1 N/A myg dx N/A N/A 0.5 N/A N/A N/A v jp 1 N/A N/A v jp -1 N/A myg dy N/A N/A N/A mg init_RHS N/A N/A divU d N/A self dt N/A phiGuess N/A N/A N/A mg soln_grid scratch_array N/A N/A N/A N/A phiGuess v buf 1 N/A N/A N/A N/A N/A phi v buf 1 N/A N/A N/A mg init_solution N/A phiGuess d N/A N/A N/A mg solve rtol 1e-12 N/A N/A N/A phi d N/A N/A N/A N/A N/A N/A mg get_solution grid myg d N/A N/A gradphi_x gradphi_y N/A N/A mg get_solution_gradient grid myg N/A N/A N/A u d N/A N/A N/A N/A N/A self dt N/A gradphi_x d N/A N/A N/A v d N/A N/A N/A N/A N/A self dt N/A gradphi_y d N/A N/A proj_type 1 N/A N/A N/A N/A gradp_x d N/A N/A N/A N/A N/A gradphi_x d N/A N/A N/A N/A N/A N/A gradp_y d N/A N/A N/A N/A N/A gradphi_y d N/A N/A N/A N/A N/A N/A proj_type 2 N/A N/A N/A N/A gradp_x d N/A N/A N/A N/A N/A gradphi_x d N/A N/A N/A N/A N/A N/A gradp_y d N/A N/A N/A N/A N/A gradphi_y d N/A N/A N/A N/A N/A N/A N/A self cc_data fill_BC x-velocity N/A N/A N/A N/A self cc_data fill_BC y-velocity N/A N/A N/A self in_preevolve N/A N/A N/A N/A self cc_data t N/A self dt N/A N/A self n 1 N/A dovis N/A N/A self N/A N/A N/A 
        Do runtime visualization
         N/A N/A N/A plt clf N/A N/A N/A plt rc font size 10 N/A u N/A N/A N/A self cc_data get_var x-velocity N/A v N/A N/A N/A self cc_data get_var y-velocity N/A myg N/A N/A self cc_data grid N/A vort N/A N/A myg scratch_array N/A divU N/A N/A myg scratch_array N/A N/A N/A N/A vort v N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A v ip 1 N/A N/A v ip -1 N/A myg dx N/A N/A 0.5 N/A N/A N/A u jp 1 N/A N/A u jp -1 N/A myg dy N/A N/A N/A N/A divU v N/A N/A N/A N/A N/A N/A 0.5 N/A N/A N/A u ip 1 N/A N/A u ip -1 N/A myg dx N/A N/A 0.5 N/A N/A N/A v jp 1 N/A N/A v jp -1 N/A myg dy N/A N/A fig axes N/A N/A plt subplots nrows 2 ncols 2 num 1 N/A N/A N/A plt subplots_adjust hspace 0.25 N/A fields N/A u v vort divU N/A field_names N/A u v $\nabla \times U$ $\nabla \cdot U$ N/A n N/A range 4 N/A N/A ax N/A N/A axes flat N/A n N/A f N/A fields N/A n N/A img N/A N/A ax imshow N/A N/A np transpose N/A N/A f v interpolation nearest origin lower extent N/A N/A myg xmin N/A myg xmax N/A myg ymin N/A myg ymax N/A N/A N/A ax set_xlabel x N/A N/A N/A ax set_ylabel y N/A N/A N/A ax set_title N/A field_names N/A n N/A N/A N/A plt colorbar img ax ax N/A N/A N/A plt figtext 0.05 0.0125 N/A t = %10.5f N/A N/A self cc_data t N/A N/A N/A plt draw N/A N/A