#*------------------------------------------------------------------- * 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. * *---------------------------------------------------------------------- * Model Lag *----------------------------------------------------------------------- * - Inputs * - One input signal * * - Outputs * - One output signal * *----------------------------------------------------------------------- * Author: Tiago Osório * $Id: lag_1.mso 74 2006-12-08 18:43:02Z paula $ *---------------------------------------------------------------------*# using "types"; Model Lag_1 PARAMETERS gain as positive (Brief="model gain"); tau as positive (Brief="model time constant", Unit="s"); VARIABLES input as Real (Brief="input signal"); output as Real (Brief="output signal"); EQUATIONS "Calculate output" gain*input= tau*diff(output) + output; INITIAL diff(output)=0*"1/s"; end