pub struct HeatPumpCirculationConfig {
    pub hp_pump_on_time: Duration,
    pub hp_pump_off_time: Duration,
    pub initial_hp_sleep: Duration,
    pub pre_circulate_temp_required: f32,
    pub forecast_diff_offset: f32,
    pub forecast_diff_proportion: f32,
    pub forecast_start_above_percent: f32,
    pub forecast_tkbt_hxia_drop: f32,
    pub mixed_mode: MixedModeConfig,
    pub boost_mode: BoostModeConfig,
    pub sample_tank_time: Duration,
}

Fields§

§hp_pump_on_time: Duration

How long (in seconds) the heat pump should stay on for before turning off (Should be less than the time it takes for it to turn on) TODO: Unused?

§hp_pump_off_time: Duration

How long (in seconds) the heat pump should stay off before turning back on. TODO: Unused?

§initial_hp_sleep: Duration

How long (in seconds) to sleep after going from On -> Circulation mode, and also, how long to stay in Equalise mode before giving up.

§pre_circulate_temp_required: f32

The temperature required on HXOR to go into pre circulate rather than directly to circulate.

§forecast_diff_offset: f32

The amount to subtract from the difference of TKBT and HXOR as the first step.

§forecast_diff_proportion: f32

The proportion of the difference between TKBT and HXOR subtract from TKBT to make the forecasted temperature.

§forecast_start_above_percent: f32

The percentage i.e 0.33 that it needs to be above the bottom when first starting.

§forecast_tkbt_hxia_drop: f32

The steady-state drop between TKBT (Tank Bottom) and HXIA (Heat Exchanger Input Average)

§mixed_mode: MixedModeConfig

The threshold of the forecast heat exchanger temperature needs to be in the working range in order to go into a mixed heating mode (if there is demand for hot water)

§boost_mode: BoostModeConfig

When to enter boost mode whereby the heat pump is on and the heating is boosted by taking heat from the hot water tank

§sample_tank_time: Duration

How long to sample draining the tank to see whether it is effective.

Trait Implementations§

source§

impl AsRef<HeatPumpCirculationConfig> for PythonBrainConfig

source§

fn as_ref(&self) -> &HeatPumpCirculationConfig

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for HeatPumpCirculationConfig

source§

fn clone(&self) -> HeatPumpCirculationConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HeatPumpCirculationConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for HeatPumpCirculationConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for HeatPumpCirculationConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for HeatPumpCirculationConfig

source§

fn eq(&self, other: &HeatPumpCirculationConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for HeatPumpCirculationConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,