parameters: (self, dt=None, temp=None, pext=None, tau=None, ebaro=None, thermostat=None)
docstring: Initializes base barostat class.
  
        Note that the external stress and the external pressure are synchronized.
        This makes most sense going from the stress to the pressure, but if you
        must go in the other direction the stress is assumed to be isotropic.
  
        Args:
           dt: Optional float giving the time step for the algorithms. Defaults
              to the simulation dt.
           temp: Optional float giving the temperature for the thermostat.
              Defaults to the simulation temp.
           pext: Optional float giving the external pressure.
           tau: Optional float giving the time scale associated with the barostat.
           ebaro: Optional float giving the conserved quantity already stored
              in the barostat initially. Used on restart.
           thermostat: The thermostat connected to the barostat degree of freedom.
docstring_summary: Initializes base barostat class.
docstring_tokens: Initializes base barostat class .
function: def __init__(self, dt=None, temp=None, pext=None, tau=None, ebaro=None, thermostat=None):
        """Initializes base barostat class.
  
        Note that the external stress and the external pressure are synchronized.
        This makes most sense going from the stress to the pressure, but if you
        must go in the other direction the stress is assumed to be isotropic.
  
        Args:
           dt: Optional float giving the time step for the algorithms. Defaults
              to the simulation dt.
           temp: Optional float giving the temperature for the thermostat.
              Defaults to the simulation temp.
           pext: Optional float giving the external pressure.
           tau: Optional float giving the time scale associated with the barostat.
           ebaro: Optional float giving the conserved quantity already stored
              in the barostat initially. Used on restart.
           thermostat: The thermostat connected to the barostat degree of freedom.
        """
  
        dset(self,"dt",depend_value(name='dt'))
        if not dt is None:
           self.dt = dt
        else: self.dt = 1.0
  
        dset(self, "temp", depend_value(name="temp"))
        if not temp is None:
           self.temp = temp
        else: self.temp = 1.0
  
        dset(self,"tau",depend_value(name='tau'))
        if not tau is None:
           self.tau = tau
        else: self.tau = 1.0
  
        dset(self,"pext",depend_value(name='pext'))
        if not pext is None:
           self.pext = pext
        else: self.pext = 0.0
  
        dset(self,"ebaro",depend_value(name='ebaro'))
        if not ebaro is None:
           self.ebaro = ebaro
        else: self.ebaro = 0.0
  
        if thermostat is None:
           thermostat = Thermostat()
        self.thermostat = thermostat
  
        # pipes timestep and temperature to the thermostat
        deppipe(self,"dt", self.thermostat, "dt")
        deppipe(self, "temp", self.thermostat,"temp")
function_tokens: def __init__ ( self , dt = None , temp = None , pext = None , tau = None , ebaro = None , thermostat = None ) : dset ( self , "dt" , depend_value ( name = 'dt' ) ) if not dt is None : self . dt = dt else : self . dt = 1.0 dset ( self , "temp" , depend_value ( name = "temp" ) ) if not temp is None : self . temp = temp else : self . temp = 1.0 dset ( self , "tau" , depend_value ( name = 'tau' ) ) if not tau is None : self . tau = tau else : self . tau = 1.0 dset ( self , "pext" , depend_value ( name = 'pext' ) ) if not pext is None : self . pext = pext else : self . pext = 0.0 dset ( self , "ebaro" , depend_value ( name = 'ebaro' ) ) if not ebaro is None : self . ebaro = ebaro else : self . ebaro = 0.0 if thermostat is None : thermostat = Thermostat ( ) self . thermostat = thermostat # pipes timestep and temperature to the thermostat deppipe ( self , "dt" , self . thermostat , "dt" ) deppipe ( self , "temp" , self . thermostat , "temp" )