Home
W&WW Blog Case Histories Books Shop Amazon Member Survey Advertise ?
Buyer's Guide News Help Forum Ask Tom! Jobs Videos Online Training

Water and Wastewater.com Help Forums

Click here now

Search

Welcome, Guest. Please Login or Register
May 21st, 2013, 3:04pm
Top 10 Members
Runyan Sobisch Keenan Seghers Santa Cruz Gillen Kendall Orlebeke Ayrus Kersey
  HomeHelpSearchLoginRegister  
Poll Poll
Question: Unable to run ADM1

ADM1  
  1 (100%)
anaerobic digestion  
  0 (0%)




Total votes: 1
« Created by: juventus30 on: Apr 10th, 2013, 9:01am »

Pages: 1 2 3 4
ADM1 (Read 8356 times)
Evangelos
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 25
Newcastle uponTyne
Gender: male

Company or Organization: Newcastle University
ADM1
Jul 15th, 2011, 6:26am
 
Hello all,

I was wondering, is anyone of you familiar to ADM1 (anaerobic digestion model no1)? Am trying to model AD at 15oC or less but the results are not similar to what I have from lab so i was wondering if there is anyone keen on that to discuss of some changes that might needed.

Any kind of help is much appreciated!

Thanks in advance

Evangelos
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #1 - Jul 16th, 2011, 8:53am
 
I can try.

We did have a long discussion on ADM1, but that was deleted - no idea why.

Start with anaerobic activity is low at 15C, and the model coefficients in the ADM1 report are for 35 and 55C. So you need to derate the coefficients to 15C - and I have never seen any published data to help with that. I have none.
Back to top
 
 
  IP Logged
Evangelos
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 25
Newcastle uponTyne
Gender: male

Company or Organization: Newcastle University
Re: ADM1
Reply #2 - Jul 18th, 2011, 6:20am
 
Hello Bendel Boy,

Thank you for your response. What I haven't understood yet are the presence of the txt file where the 34 parameters are set (substrate characteristics, degraders, flow and temp) and the M-file with the 42 parameters (similar to the txt file+some more) and approx. 100 parameters (such as Y, k, T.base, T.op,.f, c etc). What I did so far is used the 42 & 100 the way it is and I changed the parameters from the txt file according to my data. The model seems to work but am not sure if the results are representative. When you say that I must change the coeff., you mean the values for Y, K etc or what I ve done so far (the numbers of the degraders and the temp at the txt file)? I have the values for the coefficients at low temperatures because am running pilot scale reactors at those temperatures, the problem is that am not sure about what to change at the model.

Thank you again for your time

I look forward to your response,

Evangelos
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #3 - Jul 18th, 2011, 7:15am
 
The text file specifies the influent to the digester. I've always used the binary data file, read into Matlab, and edited the parameters as necessary using the array editor.

The parameters to which I referred are those specified in the ADM1init Matlba file, beginning with the parameter f_sI_xc. To make sense of these parameters you may need the ADM1 report. If you don't have that your best approach is to use what you can from the IEA reports collection:

www.iea.lth.se/publications/Reports/LTH-IEA-7224.pdf
www.iea.lth.se/publications/Reports/LTH-IEA-7225.pdf
http://www.enzyme.chem.msu.ru/ekbio/article/ADM1-WST.pdf
Back to top
 
 
  IP Logged
Evangelos
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 25
Newcastle uponTyne
Gender: male

Company or Organization: Newcastle University
Re: ADM1
Reply #4 - Jul 18th, 2011, 7:24am
 
Thank you for the response and the pdfs. I think I got it now, the reports look really interesting and the examples will definately help! thanks for the support I hope I will have my results soon and I believe I won't have to bomb the forum with new messages.

Kind regards

Evangelos
Back to top
 
 
  IP Logged
CBG
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 4
London
Gender: male

Company or Organization: Imp
Re: ADM1
Reply #5 - Aug 20th, 2011, 2:49pm
 
Hello Guys,

Im quite new to Matlab and I am working on a different type of mathematical optimization for arrangement os Wastewater treatment technologies. I would like to work a little bit with ADM1 (the code found on the great PDFs posted here) I can compile the mex files, but I am not sure how to run them and how to load the m file with all the WW data...  Cry

I am missing the way to call the files from matlab or simulink... im sure it is an easy question...

I also have the ADM1 book if needed by someone here...

Cheers

Carlos
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #6 - Aug 20th, 2011, 3:28pm
 
If you have only the M files then you may be missing the support DLLs - or they may be what you turned into MEX files. Most people start by contacting Ulf Jeppsen at Lund University to get the current distribution of his ADM1 files.

If you need support after this I will do what I can to help; but my experience is based on having his distribution, rather than typing in MATLAB files from the printed reports.
Back to top
 
 
  IP Logged
CBG
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 4
London
Gender: male

Company or Organization: Imp
Re: ADM1
Reply #7 - Aug 23rd, 2011, 5:22pm
 
Thanks a lot BendelBoy, I had some corrupted files and Dr. Jeppsson was very kind to send the correct ones for academic purposes...

Its all up and running now also with the Transformer from solid waste (or other from characteristics more common in solid waste) to ADM1 type of input from Usama Zaher.

Cheers
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #8 - Aug 24th, 2011, 3:14am
 
The Transformer object is new to me! Do you have any details?
Back to top
 
 
  IP Logged
CBG
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 4
London
Gender: male

Company or Organization: Imp
Re: ADM1
Reply #9 - Aug 24th, 2011, 5:21am
 
Sure thing,

It works well considering the limitations it has by transforming from 11 required inputs (CODt, CODs, TOC, TIC, Nitrates, phosphates ...) into the 28 variables that ADM1 uses as an input. inside the download you can find the explanation in a published paper of the whole method.

You can find the downloadable files here:
http://www.mathworks.com/matlabcentral/fileexchange/24713
It is a c file for Matlab/Simulink as well and creates a matrix with the results (all the instructions are inside)

Hope it is useful...

C
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #10 - Nov 7th, 2011, 4:50pm
 
Hi,
just starting my thesis on modeling of anaerobic digestion. I am thinking of using ADM1 model but I cant find any .m files or txt files you mention here. Also,
http://www.enzyme.chem.msu.ru/ekbio/article/ADM1-WST.pdf
currently is not accessible  
Could you point me to the right direction.
Also, hope to collaborate with someone on this subject Roll Eyes
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #11 - Nov 8th, 2011, 4:11am
 
For the files you need to contact Ulf Jeppson directly, and request them. You will find his contact details here: http://www.iea.lth.se/ielulf/.

If the link to the Water Science & Technology article is dead then there's not a lot that can be done; you can get the article through a library request, or, better, order the full report. The substance of the material is available in the various theses that are online.

I will offer what help I can through this forum; Ulf is also pretty helpful. There is also the (moribund) wastewater modelling forum - www.modelEau.org, but that was always focused on activated sludge.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #12 - Nov 8th, 2011, 4:52am
 
Thanks,
Just sended request to Ulf Jeppson.
Perhaps I could get get the article through a library request if I knew the Title or/and Authors Smiley
I've start reading reports (LTH-IEA-7224,LTH-IEA-7225)
which are very detailed and need to be fully understand.
By the way my professor suggested to use AquaSim (which I've downloaded) but it seems to me challenging to understand.
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #13 - Nov 8th, 2011, 5:04am
 
Aquasim is not so bad - a bit dated, and not easy to modify or generalise. I assume that it is the demo version that you have downloaded; I don't know if that includes the ADM1 files. The first implementation of ADM1 was in Aquasim, but Ulf's version is a little more advanced. However, Ulf's does need Matlab/Simulink.

The WST article can be accessed via Google's PDF translation: http://docs.google.com/viewer?a=v&q=cache:qtVi28JqjggJ:www.enzyme.chem.msu.ru/ek... Selecting File/Download original seems to get the PDF original.
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #14 - Nov 8th, 2011, 5:06am
 
You can get the technical ADM1 report at

http://www.iwapublishing.com/template.cfm?name=isbn1900222787, or through any good bookseller by giving them the details from the IWA. It is not cheap for a slender publication, but that seems to be the way academic publishing has gone.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #15 - Nov 8th, 2011, 5:35am
 
Thank you,
I ve managed to download the WST article (which needed to be saved to my Google Docs and then to be downloaded)
Indeed I downloaded the demo version of Aquasim (by the way it is not free either). However I do have an Matlab/Simulink somewhere in my closet Smiley.
Have you tried any paid software (e.g. GPS-X, WEST etc.)? How do they compare to the Aquasim or Ulf Jeppson matlab code?
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #16 - Nov 8th, 2011, 6:10am
 
I develop STOAT, which is free to download - but does not yet have ADM1 in the public version. Still under development - as in, in the internal version of STOAT, but still undergoing testing as part of the other developments that we are making.

GPS-X/WEST would be fine. I don't know what the academic price is; both are quite expensive commercially. I think that you would find GPS-X easier to use, but there is not much between them.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #17 - Nov 8th, 2011, 7:06am
 
Very interesting, most certantly I will review it (since wastewater and water industry is my main business).
GPS-X/WEST is really expensive and Iam not sure If I buy them ... this will serve the purpose of my thesis.
Ideally I would create the model by myself or use ready made (non commercial like Ulf's Jeppson) to compare results with real working plant
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #18 - Nov 8th, 2011, 7:10am
 
Ulf's distribution includes all the source code. It would be easy to convert to stand-alone C code, or to modify to Fortran. But this route requires adding in your own integration module.

The Matlab/Simulink appraoch with Ulf's code has been found easy enough to use by people who had no prior knowledge of Matlab - they learnt just enough to run the model & get the results that they want.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #19 - Nov 8th, 2011, 7:23am
 
I have very small experience in c++ (Qt). However I am playing a lot with C#.
Your suggestion already crossed my mind, since there are numerical components introduced to .NET.
I would really be interested to convert the ADM1 to more GUI approach
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #20 - Nov 8th, 2011, 8:20am
 
There would definitely be an interest in an ADM1 with a non-Simulink GUI.

When STOAT 5 finally gets released I will post here, if allowed; but the timescale will not be of use to you.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #21 - Nov 8th, 2011, 9:25am
 
I see you point, perhaps i'll do it, once I get full understaning and constrains of the model.
Back to top
 
 
  IP Logged
JMR
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 2

Gender: male

Company or Organization: KSU Student
Re: ADM1
Reply #22 - Dec 5th, 2011, 10:29pm
 
Hello Everybody, i am doing my thesis on anaerobic treatment from cow´s manure, and i am also interested to use the ADM1 to compare it with my lab results. I got a short idea of ADM1 definition, so i want to ask if somebody can provide me the ADM1 book? Thanks.
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #23 - Dec 6th, 2011, 4:20am
 
To provide you with the book electronically would breach copyright. I am not aware of any electronic copies available through the Internet, although there are many PhD/MSc theses available.

Since you are doing a thesis the easiest way would be to request that your institution's library buy or borrow a copy.

Failing that, the IEA (Lund University) theses will give you much of what you need.
Back to top
 
 
  IP Logged
JMR
YaBB Newbies
*
Offline

I love Water and
Wastewater.com

Posts: 2

Gender: male

Company or Organization: KSU Student
Re: ADM1
Reply #24 - Dec 6th, 2011, 7:39am
 
Thanks for your answer. I will follow your suggestions.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #25 - May 16th, 2012, 2:01pm
 
BendelBoy wrote on Jul 18th, 2011, 7:15am:
The text file specifies the influent to the digester. I've always used the binary data file, read into Matlab, and edited the parameters as necessary using the array editor.

Hi, to you all again... due to urgent work load I had to put my dissertation aside for a while. Now, that I am looking the code again, which is kindly provided by Ulf Jeppsson I have few questions. It seems that in the files   "adm1init_ADMtest.m" and "input_ADMtest.mat" there are identical variables which defined twice (eg. S_su =  0.012; and S_su =  0). Moreover in "adm1init_ADMtest.m" there are ~145 variables VS 33 variables in "input_ADMtest.mat". Could someone share brief work-flow on how to use this software? For example should I insert same experimental values in both above files or just in one of them (which one)?
Also, what is the purpose of file "input_ADMtest.txt" should I use it instead of "input_ADMtest.mat" ?
Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #26 - May 17th, 2012, 3:09am
 
input_ADMtest.mat is the binary version of input_ADMtest.txt. The .mat file (usually) takes up less space and is quicker for Matlab to read; it also holds the information about the variable (input) which is absent from the text file - you would need to read in the text file and asign it to a variable.

With me input_ADMtest holds just one variable, input.

adm1init_ADMtest contains variious parameter defualts, while input_ADMtest contains only default values for the influent.

However, I don't find S_su defined twice - maybe we have different files from Ulf, as mine were provided around 2006?
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #27 - May 17th, 2012, 3:39am
 
Hi, thanks for a feedback, I think I am missing something here,

In order to run the application I am loading two files adm1init_ADMtest.m and input_ADMtest.mat then i run ADM1_R14.mdl and programme compiles without errors.
Next, I would like to change some variables so I open input_ADMtest.mat and check the variable names against VariableOrder.txt, which for some reason  
has 33 variables while input_ADMtest.mat has 34.
Nethertheless, according to VariableOrder.txt the first varible in 1st line in input_ADMtest.mat is S_su =  0 ..... and in 2nd line is  S_su =  10000 while the deafault value in adm1init_ADMtest.m is S_su =  0.012;
So, my question is ... should I leave adm1init_ADMtest.m default values as is? or need I change them also in two files?

Thank you in advance.

Back to top
 
 
  IP Logged
BendelBoy
Senior Member
****
Offline

Free the STOAT

Posts: 317

Gender: male

Company or Organization: wrc plc
Re: ADM1
Reply #28 - May 17th, 2012, 3:50am
 
Your missing 34th variable in input_ADMtest.mat is time.

And that explains your question! S_Su is not defined twice; it is defined as a time series. What you thought of as the value 0 for S_su is the value at time zero; what you thought was the value 10,000 is the value at 10,000 (I think days, not hours).

The default value S_su of 0.012 is the initial value within the digester.

The values in the MAT file are the values in the feed entering the digester.
Back to top
 
 
  IP Logged
Dmitri
YaBB Newbies
*
Offline

WaterandWastewa
ter.Com is the best!

Posts: 22

Re: ADM1
Reply #29 - May 17th, 2012, 4:05am
 
I think I am almost get it....
So, I  must change the deafault variable values in adm1init_ADMtest.m (S_su, S_aa, S_fa etc) while leaving input_ADMtest.mat as is. Also, after examination of input_ADMtest.mat only S_su changes over time while other variables remain the same (since these two lines are identical)... Am I correct?
Back to top
 
 
  IP Logged
Pages: 1 2 3 4