예제 #1
0
파일: mfghb.py 프로젝트: ksl0/flopy
 def get_empty(ncells=0, aux_names=None, structured=True):
     # get an empty recaray that correponds to dtype
     dtype = ModflowGhb.get_default_dtype(structured=structured)
     if aux_names is not None:
         dtype = Package.add_to_dtype(dtype, aux_names, np.float32)
     d = np.zeros((ncells, len(dtype)), dtype=dtype)
     d[:, :] = -1.0E+10
     return np.core.records.fromarrays(d.transpose(), dtype=dtype)
예제 #2
0
파일: mfchd.py 프로젝트: joycezw/flopy
 def get_empty(ncells=0, aux_names=None):
     #get an empty recaray that corresponds to dtype
     dtype = ModflowChd.get_default_dtype()
     if aux_names is not None:
         dtype = Package.add_to_dtype(dtype, aux_names, np.float32)
     d = np.zeros((ncells, len(dtype)), dtype=dtype)
     d[:, :] = -1.0E+10
     return np.core.records.fromarrays(d.transpose(), dtype=dtype)
예제 #3
0
파일: mfhfb.py 프로젝트: ksl0/flopy
    def get_empty(ncells=0, aux_names=None, structured=True):
        """
        Get an empty recarray that correponds to hfb dtype and has
        been extended to include aux variables and associated
        aux names.

        """
        dtype = ModflowHfb.get_default_dtype(structured=structured)
        if aux_names is not None:
            dtype = Package.add_to_dtype(dtype, aux_names, np.float32)
        d = np.zeros((ncells, len(dtype)), dtype=dtype)
        d[:, :] = -1.0e10
        return np.core.records.fromarrays(d.transpose(), dtype=dtype)
예제 #4
0
    def get_empty(ncells=0, aux_names=None):
        """
        Get an empty recarray that correponds to hfb dtype and has
        been extended to include aux variables and associated
        aux names.

        """
        dtype = ModflowHfb.get_default_dtype()
        if aux_names is not None:
            dtype = Package.add_to_dtype(dtype, aux_names, np.float32)
        d = np.zeros((ncells, len(dtype)), dtype=dtype)
        d[:, :] = -1.0E+10
        return np.core.records.fromarrays(d.transpose(), dtype=dtype)