Skip to content
Snippets Groups Projects
Commit 08302a5e authored by FMR's avatar FMR
Browse files

Addition of the test for the NTU_coCurrent and NTU_counterCurrent fonctions

parent 273d81ef
No related branches found
No related tags found
No related merge requests found
test_NTU_coCurrent
test_NTU_counter
within TAeZoSysPro_testsuite.HeatTransfer.Functions.ExchangerEffectiveness.Inverse;
model test_NTU_coCurrent
parameter Modelica.SIunits.Efficiency Eff = 0.8 "Exchanger effectiveness" ;
Real Cr "Ratio of thermal condutance" ;
Real NTU "Number of transfer unit" ;
Modelica.Blocks.Sources.Ramp ramp1(duration = 1, height = 1) annotation(
Placement(visible = true, transformation(origin = {-10, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
Cr = ramp1.y ;
NTU = TAeZoSysPro.HeatTransfer.Functions.ExchangerEffectiveness.Inverse.NTU_coCurrent(Eff = Eff, Cr = Cr) ;
annotation(
experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-6, Interval = 0.01));
end test_NTU_coCurrent;
within TAeZoSysPro_testsuite.HeatTransfer.Functions.ExchangerEffectiveness.Inverse;
model test_NTU_counter
parameter Modelica.SIunits.Efficiency Eff = 0.8 "Exchanger effectiveness" ;
Real Cr "Ratio of thermal condutance" ;
Real NTU "Number of transfer unit" ;
Modelica.Blocks.Sources.Ramp ramp1(duration = 1, height = 1) annotation(
Placement(visible = true, transformation(origin = {-10, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
Cr = ramp1.y ;
NTU = TAeZoSysPro.HeatTransfer.Functions.ExchangerEffectiveness.Inverse.NTU_counterCurrent(Eff = Eff, Cr = Cr) ;
annotation(
experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-6, Interval = 0.01));
end test_NTU_counter;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment