

def initialize(self):
    ' \n        Initialize the grid and variables for incompressible flow and\n        set the initial conditions for the chosen problem.\n        '
    nx = self.rp.get_param('mesh.nx')
    ny = self.rp.get_param('mesh.ny')
    xmin = self.rp.get_param('mesh.xmin')
    xmax = self.rp.get_param('mesh.xmax')
    ymin = self.rp.get_param('mesh.ymin')
    ymax = self.rp.get_param('mesh.ymax')
    my_grid = patch.Grid2d(nx, ny, xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, ng=4)
    xlb_type = self.rp.get_param('mesh.xlboundary')
    xrb_type = self.rp.get_param('mesh.xrboundary')
    ylb_type = self.rp.get_param('mesh.ylboundary')
    yrb_type = self.rp.get_param('mesh.yrboundary')
    bc = patch.BCObject(xlb=nx, xrb=xrb_type, ylb=ylb_type, yrb=yrb_type)
    bc_xodd = patch.BCObject(xlb=xlb_type, xrb=xrb_type, ylb=ylb_type, yrb=yrb_type, odd_reflect_dir='x')
    bc_yodd = patch.BCObject(xlb=xlb_type, xrb=xrb_type, ylb=ylb_type, yrb=yrb_type, odd_reflect_dir='y')
    my_data = patch.CellCenterData2d(my_grid)
    my_data.register_var('x-velocity', bc_xodd)
    my_data.register_var('y-velocity', bc_yodd)
    my_data.register_var('density', bc)
    my_data.register_var('phi-MAC', bc)
    my_data.register_var('phi', bc)
    my_data.register_var('gradp_x', bc)
    my_data.register_var('gradp_y', bc)
    my_data.create()
    self.cc_data = my_data
    exec((self.problem_name + '.init_data(self.cc_data, self.rp)'))

dataset/ETHPy150Open zingale/pyro2/lm_combustion/simulation.py Simulation.initialize/VarMisuse@161/283 `xlb_type`->`nx`