![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <thermostat.hpp>
Public Types | |
| using | CoreThermostat = CoreClass |
Public Member Functions | |
| Interface () | |
| virtual std::optional< double > | extract_kT (VariantMap const ¶ms) const |
| auto | release_lock () |
| auto | is_activated () const |
| virtual bool | is_seed_required () const |
| auto | get_rng_seed () const |
| auto | get_rng_counter () const |
| void | set_rng_seed (Variant const &value) |
| void | set_rng_counter (Variant const &value) |
| void | do_construct (VariantMap const ¶ms) override |
| void | update_and_bind (VariantMap const ¶ms, bool was_active, std::shared_ptr<::System::System > system) |
| virtual::ThermostatFlags | get_thermo_flag () const =0 |
| void | do_set_parameter (const std::string &name, const Variant &value) final |
| Variant | get_parameter (const std::string &name) const final |
| void | bind_system (std::shared_ptr<::System::System > const &system) |
| Public Member Functions inherited from ScriptInterface::AutoParameters< Interface< CoreClass >, System::Leaf > | |
| std::vector< std::string_view > | valid_parameters () const final |
| std::vector< std::pair< std::string, Variant > > | serialize_parameters () const final |
| Public Member Functions inherited from ScriptInterface::System::Leaf | |
| ~Leaf () override=default | |
| void | bind_system (std::shared_ptr<::System::System > const &system) |
| void | detach_system () |
| Public Member Functions inherited from ScriptInterface::ObjectHandle | |
| ObjectHandle ()=default | |
| ObjectHandle (ObjectHandle const &)=delete | |
| ObjectHandle & | operator= (ObjectHandle const &)=delete |
| virtual | ~ObjectHandle ()=default |
| std::string_view | name () const |
| Context * | context () const |
| Responsible context. | |
| void | construct (VariantMap const ¶ms) |
| Construct the handled object. | |
| VariantMap | get_parameters () const |
| Get current parameters. | |
| void | set_parameter (const std::string &name, const Variant &value) |
| Set single parameter. | |
| Variant | call_method (const std::string &name, const VariantMap ¶ms) |
| Call a method on the object. | |
| std::string | serialize () const |
Protected Member Functions | |
| void | check_lock () |
| void | on_bind_system (::System::System &system) override |
| void | on_detach_system (::System::System &system) override |
| void | sanity_checks_positive (double value, std::string const &name) const |
| void | sanity_checks_positive (Utils::Vector3d const &value, std::string const &name) const |
| virtual bool | invalid_rng_state (VariantMap const ¶ms) const |
| template<typename T> | |
| auto | make_autoparameter (T CoreThermostat::*member, char const *name) |
| template<typename T> | |
| auto | make_autogamma (T CoreThermostat::*member, char const *name) |
| virtual VariantMap | extend_parameters (VariantMap const ¶meters) const |
| Variant | do_call_method (std::string const &name, VariantMap const ¶ms) override |
| void | add_parameters (std::vector< AutoParameter > &¶ms) |
| auto const & | get_parameter_insertion_order () const |
| Protected Member Functions inherited from ScriptInterface::AutoParameters< Interface< CoreClass >, System::Leaf > | |
| AutoParameters ()=default | |
| AutoParameters (std::vector< AutoParameter > &¶ms) | |
| ~AutoParameters () override=default | |
| bool | has_parameter (std::string const &name) const override |
| void | add_parameters (std::vector< AutoParameter > &¶ms) |
| auto const & | get_parameter_insertion_order () const |
| Protected Member Functions inherited from ScriptInterface::System::Leaf | |
| auto const & | get_system () const |
| auto & | get_system () |
Protected Attributes | |
| bool | is_active = false |
| std::shared_ptr< CoreThermostat > | m_handle |
| std::weak_ptr< bool > | m_edit_lock |
| Basic lock mechanism that follows RAII. | |
| std::weak_ptr<::System::System > | m_system |
| Protected Attributes inherited from ScriptInterface::System::Leaf | |
| std::weak_ptr<::System::System > | m_system |
Private Member Functions | |
| virtual std::shared_ptr< CoreThermostat > & | get_member_handle (::Thermostat::Thermostat &thermostat)=0 |
| virtual std::span< std::string_view const > | get_required_parameters () const =0 |
Additional Inherited Members | |
| Static Public Member Functions inherited from ScriptInterface::ObjectHandle | |
| static ObjectRef | deserialize (const std::string &state, Context &ctx) |
| Make object from serialized state. | |
Definition at line 45 of file script_interface/thermostat/thermostat.hpp.
| using ScriptInterface::Thermostat::Interface< CoreClass >::CoreThermostat = CoreClass |
Definition at line 49 of file script_interface/thermostat/thermostat.hpp.
|
inline |
Definition at line 205 of file script_interface/thermostat/thermostat.hpp.
References add_parameters(), check_lock(), ScriptInterface::ObjectHandle::context(), get_rng_counter(), get_rng_seed(), is_active, ScriptInterface::is_none(), m_handle, ScriptInterface::Context::parallel_try_catch(), ScriptInterface::AutoParameter::read_only, set_rng_counter(), and set_rng_seed().
|
inlineprotected |
Definition at line 123 of file AutoParameters.hpp.
Referenced by Interface().
|
inline |
Definition at line 68 of file script_interface/system/Leaf.hpp.
Referenced by update_and_bind().
|
inlineprotected |
Definition at line 65 of file script_interface/thermostat/thermostat.hpp.
References m_edit_lock.
Referenced by Interface(), make_autogamma(), and make_autoparameter().
|
inlineoverrideprotectedvirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 194 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::ObjectHandle::name(), and set_rng_counter().
|
inlineoverridevirtual |
Reimplemented from ScriptInterface::ObjectHandle.
Definition at line 281 of file script_interface/thermostat/thermostat.hpp.
References m_handle, and release_lock().
|
inlinefinalvirtual |
Reimplemented from ScriptInterface::AutoParameters< Interface< CoreClass >, System::Leaf >.
Definition at line 154 of file AutoParameters.hpp.
Referenced by get_member_handle().
|
inlineprotectedvirtual |
Reimplemented in ScriptInterface::Thermostat::Brownian, and ScriptInterface::Thermostat::Langevin.
Definition at line 182 of file script_interface/thermostat/thermostat.hpp.
References get_parameter(), and is_seed_required().
Referenced by ScriptInterface::Thermostat::Brownian::extend_parameters(), ScriptInterface::Thermostat::Langevin::extend_parameters(), and update_and_bind().
|
inlinevirtual |
Reimplemented in ScriptInterface::Thermostat::LBThermostat.
Definition at line 232 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::get_value(), and sanity_checks_positive().
|
privatepure virtual |
Implemented in ScriptInterface::Thermostat::Brownian, ScriptInterface::Thermostat::DPDThermostat, ScriptInterface::Thermostat::IsotropicNpt, ScriptInterface::Thermostat::Langevin, ScriptInterface::Thermostat::LBThermostat, ScriptInterface::Thermostat::Stokesian, and ScriptInterface::Thermostat::ThermalizedBond.
References ScriptInterface::ObjectHandle::context(), do_set_parameter(), get_parameter_insertion_order(), ScriptInterface::get_value(), invalid_rng_state(), is_active, ScriptInterface::Context::parallel_try_catch(), and ScriptInterface::Thermostat::Thermostat::Thermostat().
Referenced by on_bind_system(), and on_detach_system().
|
inlinefinalvirtual |
Reimplemented from ScriptInterface::AutoParameters< Interface< CoreClass >, System::Leaf >.
Definition at line 146 of file AutoParameters.hpp.
Referenced by extend_parameters().
|
inlineprotected |
Definition at line 137 of file AutoParameters.hpp.
Referenced by get_member_handle().
|
privatepure virtual |
Implemented in ScriptInterface::Thermostat::Brownian, ScriptInterface::Thermostat::DPDThermostat, ScriptInterface::Thermostat::IsotropicNpt, ScriptInterface::Thermostat::Langevin, ScriptInterface::Thermostat::LBThermostat, ScriptInterface::Thermostat::Stokesian, and ScriptInterface::Thermostat::ThermalizedBond.
References get_required_parameters(), and ScriptInterface::ObjectHandle::name().
Referenced by get_required_parameters().
|
inline |
Definition at line 257 of file script_interface/thermostat/thermostat.hpp.
References m_handle.
Referenced by Interface().
|
inline |
Definition at line 251 of file script_interface/thermostat/thermostat.hpp.
References m_handle.
Referenced by Interface().
|
pure virtual |
Implemented in ScriptInterface::Thermostat::Brownian, ScriptInterface::Thermostat::DPDThermostat, ScriptInterface::Thermostat::IsotropicNpt, ScriptInterface::Thermostat::Langevin, ScriptInterface::Thermostat::LBThermostat, ScriptInterface::Thermostat::Stokesian, and ScriptInterface::Thermostat::ThermalizedBond.
|
inlineprotectedvirtual |
Reimplemented in ScriptInterface::Thermostat::LBThermostat.
Definition at line 96 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::is_none(), and is_seed_required().
Referenced by get_member_handle().
|
inline |
Definition at line 247 of file script_interface/thermostat/thermostat.hpp.
References is_active.
|
inlinevirtual |
Definition at line 249 of file script_interface/thermostat/thermostat.hpp.
References m_handle.
Referenced by extend_parameters(), and invalid_rng_state().
|
inlineprotected |
Definition at line 152 of file script_interface/thermostat/thermostat.hpp.
References check_lock(), ScriptInterface::ObjectHandle::context(), Thermostat::gamma_null, ScriptInterface::get_value(), ScriptInterface::is_none(), ScriptInterface::is_type(), m_handle, ScriptInterface::ObjectHandle::name(), ScriptInterface::Context::parallel_try_catch(), and sanity_checks_positive().
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Reimplemented from ScriptInterface::System::Leaf.
Definition at line 71 of file script_interface/thermostat/thermostat.hpp.
References get_member_handle(), is_active, m_handle, System::System::on_thermostat_param_change(), and System::System::thermostat.
|
inlineoverrideprotectedvirtual |
Reimplemented from ScriptInterface::System::Leaf.
Definition at line 77 of file script_interface/thermostat/thermostat.hpp.
References get_member_handle(), is_active, System::System::on_thermostat_param_change(), and System::System::thermostat.
|
inline |
Definition at line 241 of file script_interface/thermostat/thermostat.hpp.
References m_edit_lock.
Referenced by do_construct().
|
inlineprotected |
Definition at line 83 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::ObjectHandle::name().
Referenced by extract_kT(), make_autogamma(), and make_autoparameter().
|
inlineprotected |
Definition at line 89 of file script_interface/thermostat/thermostat.hpp.
References Utils::Vector< double, N >::broadcast(), and ScriptInterface::ObjectHandle::name().
|
inline |
Definition at line 273 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::get_value(), and m_handle.
Referenced by do_call_method(), and Interface().
|
inline |
Definition at line 263 of file script_interface/thermostat/thermostat.hpp.
References ScriptInterface::get_value(), and m_handle.
Referenced by Interface().
|
inline |
Definition at line 289 of file script_interface/thermostat/thermostat.hpp.
References bind_system(), extend_parameters(), is_active, and m_handle.
|
protected |
Definition at line 60 of file script_interface/thermostat/thermostat.hpp.
Referenced by get_member_handle(), Interface(), is_activated(), on_bind_system(), on_detach_system(), and update_and_bind().
|
protected |
Basic lock mechanism that follows RAII.
Definition at line 63 of file script_interface/thermostat/thermostat.hpp.
Referenced by check_lock(), and release_lock().
|
protected |
Definition at line 61 of file script_interface/thermostat/thermostat.hpp.
Referenced by do_construct(), get_rng_counter(), get_rng_seed(), Interface(), is_seed_required(), make_autogamma(), make_autoparameter(), on_bind_system(), set_rng_counter(), set_rng_seed(), and update_and_bind().
|
protected |
Definition at line 51 of file script_interface/system/Leaf.hpp.