Пример #1
0
 def set_thermal_properties(self,
                            t_step=10,
                            t_max=1000,
                            t_min=0,
                            temperatures=None,
                            is_projection=False,
                            band_indices=None,
                            cutoff_frequency=None):
     if self._mesh is None:
         print("Warning: set_mesh has to be done before "
               "set_thermal_properties")
         return False
     else:
         tp = ThermalProperties(self._mesh.get_frequencies(),
                                weights=self._mesh.get_weights(),
                                eigenvectors=self._mesh.get_eigenvectors(),
                                is_projection=is_projection,
                                band_indices=band_indices,
                                cutoff_frequency=cutoff_frequency)
         if temperatures is None:
             tp.set_temperature_range(t_step=t_step,
                                      t_max=t_max,
                                      t_min=t_min)
         else:
             tp.set_temperatures(temperatures)
         tp.run()
         self._thermal_properties = tp
Пример #2
0
 def set_thermal_properties(self,
                            t_step=10,
                            t_max=1000,
                            t_min=0,
                            temperatures=None,
                            is_projection=False,
                            band_indices=None,
                            cutoff_frequency=None,
                            pretend_real=False):
     if self._mesh is None:
         print("Warning: set_mesh has to be done before "
               "set_thermal_properties")
         return False
     else:
         tp = ThermalProperties(self._mesh.get_frequencies(),
                                weights=self._mesh.get_weights(),
                                eigenvectors=self._mesh.get_eigenvectors(),
                                is_projection=is_projection,
                                band_indices=band_indices,
                                cutoff_frequency=cutoff_frequency,
                                pretend_real=pretend_real)
         if temperatures is None:
             tp.set_temperature_range(t_step=t_step,
                                      t_max=t_max,
                                      t_min=t_min)
         else:
             tp.set_temperatures(temperatures)
         tp.run()
         self._thermal_properties = tp
Пример #3
0
 def set_thermal_properties(self,
                            t_step=10,
                            t_max=1000,
                            t_min=0,
                            is_projection=False,
                            band_indices=None,
                            cutoff_frequency=None):
     if self._mesh is None:
         print("set_mesh has to be done before set_thermal_properties")
         return False
     else:
         tp = ThermalProperties(self._mesh.get_frequencies(),
                                weights=self._mesh.get_weights(),
                                eigenvectors=self._mesh.get_eigenvectors(),
                                is_projection=is_projection,
                                band_indices=band_indices,
                                cutoff_frequency=cutoff_frequency)
         tp.run(t_step=t_step, t_max=t_max, t_min=t_min)
         self._thermal_properties = tp