Пример #1
0
class MyCartSocketMD(CartSocketMD):
    def __init__(self, context):
        CartSocketMD.__init__(self, context)

    def _initMD(self):
        self.nsteps = self.context["nsteps"]
        self.lx = self.context["lx"]
        self.ly = self.context["ly"]
        self.lz = self.context["lz"]
        self.dt = self.context["dt"]
        npx = self.context["npx"]
        npy = self.context["npy"]
        npz = self.context["npz"]
        self.topology = CartProcTopology(npx, npy, npz)
        self.topology.createTopo(self._realm_comm)
Пример #2
0
class MyCartSocketMD(CartSocketMD):
    def __init__(self, context):
        CartSocketMD.__init__(self, context)

    def _initMD(self):
        self.nsteps = self.context["nsteps"]
        self.lx = self.context["lx"]	
        self.ly = self.context["ly"]	
        self.lz = self.context["lz"]	
        self.dt = self.context["dt"]
        npx = self.context["npx"]
        npy = self.context["npy"]
        npz = self.context["npz"]
        self.topology = CartProcTopology(npx, npy, npz)
        self.topology.createTopo(self._realm_comm)
Пример #3
0
class MyCartSocketCFD(CartSocketCFD):
    def __init__(self, context):
        CartSocketCFD.__init__(self, context)

    def _initCFD(self):
        self.nsteps = self.context["nsteps"]
        self.lx = self.context["lx"]	
        self.ly = self.context["ly"]	
        self.lz = self.context["lz"]	
        self.dt = self.context["dt"]
        npx = self.context["npx"]
        npy = self.context["npy"]
        npz = self.context["npz"]
        self.topology = CartProcTopology(npx, npy, npz)
        self.topology.createTopo(self._realm_comm)
        ncx = self.context["ncx"]
        ncy = self.context["ncy"]
        ncz = self.context["ncz"]
        lx = self.context["lx"]
        ly = self.context["ly"]
        lz = self.context["lz"]
        self.grid = CartGrid([ncx, ncy, ncz], [lx, ly, lz])
Пример #4
0
class MyCartSocketCFD(CartSocketCFD):
    def __init__(self, context):
        CartSocketCFD.__init__(self, context)

    def _initCFD(self):
        self.nsteps = self.context["nsteps"]
        self.lx = self.context["lx"]
        self.ly = self.context["ly"]
        self.lz = self.context["lz"]
        self.dt = self.context["dt"]
        npx = self.context["npx"]
        npy = self.context["npy"]
        npz = self.context["npz"]
        self.topology = CartProcTopology(npx, npy, npz)
        self.topology.createTopo(self._realm_comm)
        ncx = self.context["ncx"]
        ncy = self.context["ncy"]
        ncz = self.context["ncz"]
        lx = self.context["lx"]
        ly = self.context["ly"]
        lz = self.context["lz"]
        self.grid = CartGrid([ncx, ncy, ncz], [lx, ly, lz])