﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2658	Wrong C code generated in ThermoPower example case	Francesco Casella	Adrian Pop	"The ThermoPower.Examples.BraytonCycle.OpenLoopSimulator model fails because the C code contains an undeclared identifier ‘$Pplant$PPressDrop2$Pgas$Pstate$PX$lB5$rB’

However, if the Plant.PressDrop2 component is removed and the compressor outlet is directly connected to the combustion chamber, the model gets compiled and simulates.

I haven't been able to understand what's wrong: the PressDrop model is fine (it is used in the very same Plan model without problems), and also the medium model should be fine, as it is yet another ideal gas model taken from Modelica.Media, and should be fundamentally not different from the one used in PressDrop1.

Attached you can find a Save Total file which contains both cases (the one in the library that fails, and the modified one that runs, named ThermoPower.Examples.BraytonCycle.OpenLoopSimulator).

Please help!"	defect	closed	high	1.9.1	Frontend	trunk	fixed		
