﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2660	Lookup bug with replaceable models	Francesco Casella	Per Östlund	"The model {{{ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc}}} gives this compilation error:
{{{
Examples.mo:1439:26-1439:45:writable 
Error: Variable gamma_nom not found in scope ThermoPower.Gas.Flow1DFV.
}}}

The offending code reads:

{{{
model HeatExchanger
  ...
  parameter CoefficientOfHeatTransfer gamma_nom=150
    ""Nominal heat transfer coefficient"";
  ...
  Gas.Flow1DFV GasSide(
  ...
  redeclare ThermoPower.Thermal.HeatTransfer.FlowDependentHeatTransferCoefficient
    heatTransfer(gamma_nom=gamma_nom, alpha=0.6),
  ...
}}}

As far as I understand, there is a gamma_nom defined in the scope of HeatExchanger, whose value is then passed to the gamma_nom parameter defined in the scope of FlowDependentHeatTransferCoefficient model. 

Why does OMC complain about gamma_nom not being defined in the scope of the Flow1DFV model?
"	defect	closed	blocker	2.0.0	New Instantiation	trunk	fixed		andrea.bartolini@…
