[83] | 1 | #*------------------------------------------------------------------- |
---|
| 2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
[1] | 3 | * |
---|
[83] | 4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
| 5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
| 6 | * http://www.enq.ufrgs.br/alsoc. |
---|
[1] | 7 | * |
---|
[83] | 8 | * EMSO Copyright (C) 2004 - 2007 ALSOC, original code |
---|
| 9 | * from http://www.rps.eng.br Copyright (C) 2002-2004. |
---|
| 10 | * All rights reserved. |
---|
[1] | 11 | * |
---|
[83] | 12 | * EMSO is distributed under the therms of the ALSOC LICENSE as |
---|
| 13 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
| 14 | * |
---|
| 15 | *-------------------------------------------------------------------- |
---|
[1] | 16 | * FlowSheet with a bio-reactor based on Monod model. |
---|
[83] | 17 | *-------------------------------------------------------------------- |
---|
| 18 | * Author: Rafael de Pelegrini Soares |
---|
| 19 | * $Id: sample_bio.mso 83 2006-12-08 20:29:34Z paula $ |
---|
| 20 | *--------------------------------------------------------------------*# |
---|
[1] | 21 | |
---|
| 22 | using "types"; |
---|
| 23 | |
---|
| 24 | FlowSheet bio |
---|
| 25 | PARAMETERS |
---|
| 26 | miMax as frequency(Brief="Monod parameter", Unit="1/h", Default=0.53); |
---|
| 27 | D as frequency(Brief="Dilution rate F/V", Unit="1/h"); |
---|
| 28 | Km as conc_mass(Brief="Monod parameter", Default=0.12); |
---|
| 29 | K1 as inv_conc_mass(Brief="Monod parameter", Default=0.4545); |
---|
| 30 | Y as coefficient(Brief="Yield biomass/substrate", Default=0.4); |
---|
| 31 | x2f as conc_mass(Brief="Substrate feed concentration", Default=4); |
---|
| 32 | |
---|
| 33 | VARIABLES |
---|
| 34 | biomass as conc_mass (Brief="Biomass concentration"); |
---|
| 35 | substrate as conc_mass (Brief="Substrate concentration"); |
---|
| 36 | mi as frequency (Brief="Specific growth rate", Unit="1/h"); |
---|
| 37 | |
---|
| 38 | EQUATIONS |
---|
| 39 | "Specific growth rate" |
---|
| 40 | mi = miMax*substrate/(Km+substrate+(K1*substrate^2)); |
---|
| 41 | |
---|
| 42 | "Biomass production" |
---|
| 43 | diff(biomass)/biomass = mi-D; |
---|
| 44 | |
---|
| 45 | "Substrate consumption" |
---|
| 46 | diff(substrate) = D*(x2f-substrate)-(biomass*mi/Y); |
---|
| 47 | |
---|
| 48 | SET |
---|
| 49 | D = 0.3 * "1/h"; |
---|
| 50 | |
---|
| 51 | INITIAL |
---|
| 52 | biomass = 1 * "kg/m^3"; |
---|
| 53 | substrate = 0.5 * "kg/m^3"; |
---|
| 54 | |
---|
| 55 | OPTIONS |
---|
| 56 | time = [0:0.5:10]*"h"; |
---|
| 57 | LASolver = "dense"; # dense or sparse |
---|
| 58 | end |
---|