Exemplo n.º 1
0
 def __init__(self, fdir, fname, parallel_run=None):
     Raw = OpenFOAM_RawData(fdir, fname,
                            self.nperbin,
                            parallel_run=parallel_run)
     Field.__init__(self, Raw)
     self.axislabels = ['x','y','z']
     self.plotfreq = self.Raw.Nave
Exemplo n.º 2
0
 def __init__(self,name,type_byte_nr=1,length_byte_nr=1,length_compensation=0,type_=0,value=''):
     Field.__init__(self, name, value)
     self._type_byte_nr = type_byte_nr 
     self._length_byte_nr = length_byte_nr
     self._type = type_
     self._length_compensation = length_compensation
     self._length = len(value) + length_compensation
Exemplo n.º 3
0
 def __init__(self, fdir, fname):
     self.fname = fname
     Raw = LAMMPS_RawData(fdir, self.fname, self.readnames)
     self.nperbin = Raw.nperbin
     Field.__init__(self, Raw)
     self.axislabels = ['x', 'y', 'z']
     self.plotfreq = Raw.plotfreq
Exemplo n.º 4
0
    def __init__(self, settings, name, data, allowed_range=None):
        """Set the allowed range if specified."""
        self.start = None
        self.end = None
        if allowed_range is not None:
            self.start, self.end = allowed_range

        Field.__init__(self, settings, name, data)
    def __init__(self,fdir,rectype='bins'):
        self.vField = Channelflow_vField(fdir)
        self.strainField = Channelflow_strainField(fdir)

        Field.__init__(self,self.vField.Raw)
        self.inherit_parameters(self.strainField)
        self.labels = ["mag"]
        self.nperbin = 1
Exemplo n.º 6
0
    def __init__(self, settings, name, data, allowed_range=None):
        """Set the allowed range if specified."""
        self.start = None
        self.end = None
        if allowed_range is not None:
            self.start, self.end = allowed_range

        Field.__init__(self, settings, name, data)
Exemplo n.º 7
0
    def __init__(self, fdir, rectype='bins'):
        self.vField = CFD_vField(fdir)
        self.strainField = CFD_strainField(fdir)

        Field.__init__(self, self.vField.Raw)
        self.inherit_parameters(self.strainField)
        self.labels = ["x", "y", "z"]
        self.nperbin = 3
Exemplo n.º 8
0
    def __init__(self, fdir, rectype='bins'):
        self.vField = Channelflow_vField(fdir)
        self.strainField = Channelflow_strainField(fdir)

        Field.__init__(self, self.vField.Raw)
        self.inherit_parameters(self.strainField)
        self.labels = ["mag"]
        self.nperbin = 1
Exemplo n.º 9
0
 def __init__(self):
     """
     EXAMPLES::
     
         sage: ContinuedFractionField()
         Field of all continued fractions
     """
     Field.__init__(self, self)
     self._assign_names(('x'), normalize=False)
Exemplo n.º 10
0
    def __init__(self,fdir,rectype='bins'):
        self.vField = Channelflow_vField(fdir)

        Field.__init__(self,self.vField.Raw)
        self.inherit_parameters(self.vField)
        self.labels = ["dudx","dudy","dudz",
                       "dvdx","dvdy","dvdz",
                       "dwdx","dwdy","dwdz"]
        self.nperbin = 9
Exemplo n.º 11
0
 def __init__(self, settings, name, data, first_name_list=None):
     """Get a first name list if necessary and call parent constructor."""
     if first_name_list:
         first_name_list = settings.resolve_path(first_name_list)
         with open(first_name_list, 'r') as f:
             self._first_name_list = f.read().splitlines()
     else:
         self._first_name_list = []
     Field.__init__(self, settings, name, data)
Exemplo n.º 12
0
 def __init__(self):
     """
     EXAMPLES::
     
         sage: ContinuedFractionField()
         Field of all continued fractions
     """
     Field.__init__(self, self)
     self._assign_names(('x'),normalize=False)
Exemplo n.º 13
0
    def __init__(self, fdir):

        # Get mean velocity and density field
        self.fdir = fdir
        self.vField = Channelflow_vField(fdir)
        Field.__init__(self, self.vField.Raw)
        self.inherit_parameters(self.vField)
        self.labels = ['uu', 'uv', 'uw', 'vu', 'vv', 'vw', 'wu', 'wv', 'ww']
        self.nperbin = 9
Exemplo n.º 14
0
 def __init__(self, settings, name, data, first_name_list=None):
     """Get a first name list if necessary and call parent constructor."""
     if first_name_list:
         first_name_list = settings.resolve_path(first_name_list)
         with open(first_name_list, 'r') as f:
             self._first_name_list = f.read().splitlines()
     else:
         self._first_name_list = []
     Field.__init__(self, settings, name, data)
Exemplo n.º 15
0
    def __init__(self, fdir, rectype='bins'):
        self.vField = Channelflow_vField(fdir)

        Field.__init__(self, self.vField.Raw)
        self.inherit_parameters(self.vField)
        self.labels = [
            "dudx", "dudy", "dudz", "dvdx", "dvdy", "dvdz", "dwdx", "dwdy",
            "dwdz"
        ]
        self.nperbin = 9
Exemplo n.º 16
0
    def __init__(self, fdir):

        # Get mean velocity and density field
        self.fdir = fdir
        self.vField = Channelflow_vField(fdir)
        Field.__init__(self,self.vField.Raw)
        self.inherit_parameters(self.vField)
        self.labels = ['uu','uv','uw',
                       'vu','vv','vw',
                       'wu','wv','ww']
        self.nperbin = 9
Exemplo n.º 17
0
    def __init__(self):
        """
        EXAMPLES::

            sage: ContinuedFractionField()
            Field of all continued fractions

        TESTS::

            sage: CFF._repr_option('element_is_atomic')
            False
        """
        Field.__init__(self, self)
        self._assign_names(('x'), normalize=False)
Exemplo n.º 18
0
    def __init__(self):
        """
        EXAMPLES::

            sage: ContinuedFractionField()
            Field of all continued fractions

        TESTS::

            sage: CFF._repr_option('element_is_atomic')
            False
        """
        Field.__init__(self, self)
        self._assign_names(('x'),normalize=False)
Exemplo n.º 19
0
    def __init__(self, conf):
        Field.__init__(self, conf)

        for fieldConf in conf['fields']:
            field = Helper.createField(fieldConf['type'], fieldConf)
            self.fields.append(field)
Exemplo n.º 20
0
 def __init__(self, fdir, fname):
     self.nField = LAMMPS_mField(fdir, fname)
     Field.__init__(self, self.nField.Raw)
     self.inherit_parameters(self.nField)
Exemplo n.º 21
0
 def __init__(self, fdir):
     Raw = LAMMPS_RawData(fdir, self.fname, self.readnames)
     self.nperbin = Raw.nperbin  
     Field.__init__(self, Raw)
     self.axislabels = ['x', 'y', 'z']
     self.plotfreq = Raw.plotfreq
Exemplo n.º 22
0
 def __init__(self, fdir, fname):
     self.KEField = LAMMPS_KineticEnergyField(fdir, fname)
     self.PEField = LAMMPS_PotentialEnergyField(fdir, fname)
     Field.__init__(self, self.KEField.Raw)
     self.inherit_parameters(self.KEField)
Exemplo n.º 23
0
 def __init__(self,fdir):
     Raw = Serial_CFD_RawData(fdir, self.fname, self.dtype, 
                      self.nperbin)
     Field.__init__(self,Raw)
     self.header = self.Raw.header
     self.axislabels = ['x','y','z']
Exemplo n.º 24
0
 def __init__(self, fdir):
     Raw = Channelflow_RawData(fdir)
     Field.__init__(self, Raw)
     self.axislabels = ['x', 'y', 'z']
Exemplo n.º 25
0
 def __init__(self, fdir):
     Raw = CFD_RawData(fdir)
     Field.__init__(self, Raw)
     self.axislabels = ['x', 'y', 'z']
     self.plotfreq = 1
Exemplo n.º 26
0
 def __init__(self,name,value=''):
     Field.__init__(self, name, value)
Exemplo n.º 27
0
 def __init__(self,conf):
     Field.__init__(self,conf)
     
     for fieldConf in conf['fields']:
         field = Helper.createField(fieldConf['type'],fieldConf)
         self.fields.append(field)
Exemplo n.º 28
0
 def __init__(self,fdir):
     Raw = Channelflow_RawData(fdir)
     Field.__init__(self,Raw)
     self.axislabels = ['x','y','z']
Exemplo n.º 29
0
 def __init__(self, fdir):
     self.mField = LAMMPS_mField(fdir)
     self.pField = LAMMPS_pField(fdir)
     Field.__init__(self, self.pField.Raw)
     self.inherit_parameters(self.pField)
Exemplo n.º 30
0
 def __init__(self, parent):
     self.parent = parent
     Fieldmodel.__init__(self)
     FieldGUI.__init__(self, parent)
     for card in self._deck:
         parent.addcard.emit(card)
Exemplo n.º 31
0
 def __init__(self,name,length,value=''):
     Field.__init__(self, name, value)
     self._byte_nr = length
Exemplo n.º 32
0
 def __init__(self,name,bit_length,value=0):
     Field.__init__(self, name, value)
     self._bit_length = bit_length
Exemplo n.º 33
0
 def __init__(self, fdir):
     Raw = Serial_CFD_RawData(fdir, self.fname, self.dtype, self.nperbin)
     Field.__init__(self, Raw)
     self.header = self.Raw.header
     self.axislabels = ['x', 'y', 'z']