From ec9f308e6ff05e3895f0ad8db476374bb2a761c1 Mon Sep 17 00:00:00 2001 From: Vladimir Portyanikhin <86243191+portyanikhin@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:35:52 +0300 Subject: [PATCH] Refactoring --- pyfluids/humid_air/humid_air.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pyfluids/humid_air/humid_air.py b/pyfluids/humid_air/humid_air.py index 8446cae..b7a403c 100644 --- a/pyfluids/humid_air/humid_air.py +++ b/pyfluids/humid_air/humid_air.py @@ -474,16 +474,12 @@ def mixing( ), InputHumidAir.humidity( ( - first_specific_mass_flow * first.humidity - + first_specific_mass_flow * first.humidity * second.humidity - + second_specific_mass_flow * second.humidity - + second_specific_mass_flow * first.humidity * second.humidity + first_specific_mass_flow * first.humidity * (1 + second.humidity) + + second_specific_mass_flow * second.humidity * (1 + first.humidity) ) / ( - first_specific_mass_flow - + first_specific_mass_flow * second.humidity - + second_specific_mass_flow - + second_specific_mass_flow * first.humidity + first_specific_mass_flow * (1 + second.humidity) + + second_specific_mass_flow * (1 + first.humidity) ) ), )