#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO Copyright (C) 2004 - 2007 ALSOC, original code * from http://www.rps.eng.br Copyright (C) 2002-2004. * All rights reserved. * * EMSO is distributed under the therms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. * *--------------------------------------------------------------------- * Author: Gerson B. Bicca *$Id:$ *-------------------------------------------------------------------*# using "streams"; Model heat_flow ATTRIBUTES Pallete = true; Icon = "icon/heat_flow"; Brief = "Model of a very simple valve for setting the energy flow with a controller."; PARAMETERS MinHeatFlow as power (Brief="Minimum of Heat Flow",Default=-1000); MaxHeatFlow as power (Brief="Maximum of Heat Flow",Default=1000); VARIABLES out HeatFlow as power (Brief="Heat Flow", PosX=0, PosY=0.60); in HeatFlowFraction as fraction (Brief="Flow Signal", PosX=0.50, PosY=0); EQUATIONS "Heat Flow" HeatFlow = MinHeatFlow + HeatFlowFraction*(MaxHeatFlow-MinHeatFlow); end