Skip to content

heating_channel_tanh

Nicolas Liaudat edited this page May 16, 2024 · 3 revisions

heating_channel_tanh.yaml

This is a sigmoid like function to increase the difference between target temperature and real temperature in valve positioning.

It's a improvement mainly to decrease time in cooling mode as it's always 0 for valve position. Very few underfloor heating as a real cooling mode for summer (injecting cold water).

It also decreased the mean heating time

The additionnal parameter is : tanh_steepness: "0.70" (choose your fit)

tanh_plot

The formula is :

	// Non-linear mapping parameters for heating scenario
	float A_heating = 1.0;  // Scaling factor for heating scenario
	float B_heating = ${tanh_steepness};    // Steepness parameter for heating scenario
	float C_heating = 0.0;    // Shift parameter for heating scenario

	// Calculate valve position using non-linear mapping function
	float target_position = A_heating * tanh(B_heating * diff_temp + C_heating);
Clone this wiki locally