// Script to generate plot for documentation of
// function HeatTransfer.HeatExchanger.kc_roundTube
// of FluidDissipation Library
//
// Generated by Sven Rutkowski
// 05-01-2010
// last change: 06-01-2010
// XRG Simulation GmbH

currentDirectory = Modelica.Utilities.System.getWorkDirectory();
cd(Modelica.Utilities.System.getEnvironmentVariable("temp"));

translateModel("ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube");

Advanced.StoreProtectedVariables:=true;

simulateModel("ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube",startTime=0, stopTime=1, numberOfIntervals=50000, method="dassl", tolerance=1e-005, resultFile="kc_roundTube");

switchToSimulationMode();

removePlots();
createPlot(id = 1,
  position = {(-2), (-21), 708, 403},
 x = "Re",
 y = {
	"Nu[1]"
},
 heading = "Round tube and plain fin: Heat transfer",
 range = {1e2, 1e4, 1e2, 1e0},
 autoscale = false,
 autoerase = true,
 autoreplot = true,
 description = false,
 grid = true,
 color = true,
 online = false,
 logX = true,
 logY = true,
 filename = "kc_roundTube.mat",
 legends = {
	"Pr= 0.72 (Air)"
},
 leftTitle = "Nusselt number [-]",
 bottomTitle = "Reynolds number [-]");

createPlot(id = 2,
  position = {711, (-21), 708, 403},
 x = "Re",
 y = {
	"Nu[2]"
},
 heading = "Round tube and louver fin: Heat transfer",
 range = {1e2, 1e4, 1e2, 1e0},
 autoscale = false,
 autoerase = true,
 autoreplot = true,
 description = false,
 grid = true,
 color = true,
 online = false,
 logX = true,
 logY = true,
 filename = "kc_roundTube.mat",
 legends = {
	"Pr= 0.72 (Air)"
},
 leftTitle = "Nusselt number [-]",
 bottomTitle = "Reynolds number [-]");

createPlot(id = 3,
  position = {(-4), 400, 708, 403},
  x = "Re",
 y = {
	"Nu[3]"
},
 heading = "Round tube and slit fin: Heat transfer",
 range = {1e2, 1e4, 5e2, 1e0},
 autoscale = false,
 autoerase = true,
 autoreplot = true,
 description = false,
 grid = true,
 color = true,
 online = false,
 logX = true,
 logY = true,
 filename = "kc_roundTube.mat",
 legends = {
	"Pr= 0.72 (Air)"
},
 leftTitle = "Nusselt number [-]",
 bottomTitle = "Reynolds number [-]");

createPlot(id = 4,
  position = {708, 400, 708, 403},
  x = "Re",
 y = {
	"Nu[4]"
},
 heading = "Round tube and wavy fin: Heat transfer",
 range = {1e2, 1e4, 1e2, 1e0},
 autoscale = false,
 autoerase = true,
 autoreplot = true,
 description = false,
 grid = true,
 color = true,
 online = false,
 logX = true,
 logY = true,
 filename = "kc_roundTube.mat",
 legends = {
	"Pr= 0.72 (Air)"
},
 leftTitle = "Nusselt number [-]",
 bottomTitle = "Reynolds number [-]");

createPlot(id = 5,
  position = {353, 190, 708, 403},
  x = "Re",
 y = {
	"Nu[1]",
	"Nu[2]",
	"Nu[3]",
	"Nu[4]"},
 heading = "Round Tube Heat Exchanger: Heat transfer (Air)",
range = {1e2, 1e4, 1e2, 1e0},
 autoscale = false,
 autoerase = true,
 autoreplot = true,
 description = false,
 grid = true,
 color = true,
 online = false,
 logX = true,
 logY = true,
 filename = "kc_roundTube.mat",
 legends = {
	"Plain fin",
	"Louver fin",
	"Slit fin",
	"Wavy fin"
},
 leftTitle = "Nusselt number [-]",
 bottomTitle = "Reynolds number [-]");
Modelica.Utilities.System.setWorkDirectory(currentDirectory);
