sponge.control.get_thermostat

View Source On Gitee
sponge.control.get_thermostat(cls_name: Union[str, dict, Thermostat], system: Molecule, temperature: float = None, **kwargs)[source]

get object of thermostat.

Parameters
  • cls_name (Union[str, dict, sponge.control.Thermostat]) – Class name, arguments or object of a thermostat.

  • system (sponge.system.Molecule) – Simulation system.

  • temperature (float, optional) – Reference temperature for temperature coupling. If None is given and the type of cls_name is str, None will be returned. Default: None.

  • **kwargs – Other arguments.

Returns

sponge.control.Thermostat, object of thermostat.