If you have any thoughts about the reference enthalpy, please make them known.
Over the years we have witnessed the major simulation companies experiment with the reference enthalpy and it took several of them years to get it right. Pro/II had a major error which led to a discontinuity in the enthalpy at 0°F and they quickly had to withdraw a release and re-release it again. That was sometime in the mid 90’s.
Hysys never had a discontinuity but on occasion, there were peculiar answers that came out of lost work analysis around processes that had reactors.
Aspen Plus, always had it right.
Speaking of reactors, what I would like is the following: If a reaction takes place at 1 bar and 298.15°K and goes to completion
A === > B
Then, the enthalpy of the outlet steam minis the enthalpy of the inlet stream has to be equal to the heat of the reaction.
For that to happen, it seems to me that the reference enthalpy at 298.15 and 1 bar, for a pure component has to be the heat of formation. If we can get that to work, it will save us tremendous trouble later on as we try to calculate heat of reactions. Furthermore, it seems to me (and correct me if I am wrong) that when calculating heats of reaction at temperatures and pressures other than 1 bar and 298.15K, the enthalpy and heat of formation would be corrected using the normal procedure of subtracting the enthalpy departure. We do not have to correct the heat of formation separately, it is already in there.
I will be experimenting with this today, but please let me know your thoughts.
Regards
Hazem
Thank you Rahul, Thanks Rafil.
I just finished the stoichiometric reactor and tested it. It is working just fine with the Heat of Formation as the reference enthalpy. It is so nice not to worry about heats of reaction. The reactor does the material balance and a standard enthalpy call calculates the enthalpy of the effluent and it is all done.
By the way, can a stoichiometric reactor be solved backwards?
Any volunteers for our Kinetic reactor? Anybody has LSODE is a language other than Fortran or C++? Maybe LSODE is an overkill, anybody has the fourth order Runge-Kutta?
Regards
Hazem
Thank you so much Lynn for your reply. I almost forgot about entropy.
Regards
Hazem
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of Lynn McGuire
Sent: Friday, April 07, 2006 11:49
AM
To: op...@googlegroups.com
Subject: Re: Reference Enthalpy
Hi Hazem,
Numerical Methods in Pascal page
http://www-rab.larc.nasa.gov/nmp/nmpIndex.htm#Calculus
Runge-Kutta ODE Algorithm
www.delphiforfun.org/Programs/Math_Topics/rungekutta.htm
| Category | Math Description | Source(s) |
| bsstep | integrate ODEs, Bulirsch-Stoer step | recipes |
| mmid | integrate ODEs by modified midipoint method | recipes |
| odeint | integrate ODEs with accuracy monitoring | recipes |
| rk4 | integrate one step of ODEs, fourth-order Runge-Kutta | recipes |
| rkdumb | integrate ODEs by fourth-order Runge-Kutta | recipes |
| shoot | solve two-point boundary value problem by shooting | recipes |
| shootf | solve two-point boundary value problem by shooting to a fitting point | recipes |
| solvde | two-point boundary value problem, solve by relaxation | recipes |
| sor | elliptic PDE solved by successive overrelation method | recipes |
Professor Sam,
Please grab the RK4 as quickly as possible, before it disappears. This is 50% (at least) of a kinetic reactor model. I’ll review some kinetics tonight to see what else do we need but if somebody can save me the trouble and give us a refresher course in kinetics, it will much appreciated.
Regards
Hazem
Federal University of Cear�
"This message is intended exclusively for its
addressee and may contain information that is
confidential, protected by a professional
privilege or which disclosure is prohibited by
law. Unauthorized use of such information is
prohibited and subject to applicable penalties."
Thank you Mr. Dudley, I think Sam or Matt or somebody else can answer your question about Pascal better than me.
You got me curious though. I suggested RK4 because my understanding is that it will work for up to 8 to 12 reactions. If there is something better but still not as involved as LSODE (that’s the most recent version of Gear’s method) I would say let’s go for it.
LSODE is available in Fortran and C++ for free. I converted it to VB.NET but could not get it to work : (
Regards
Hazem
You may want to look at the Standard Element Reference used by SGTE
A.T. Dinsdale. SGTE data for pure substances. CALPHAD, 1991, v. 15, N
4, p. 317-425.
In my view, it was pretty a successfull idea.
Evgenii
--
http://Evgenii.Rundyi.Ru/
DO you have it? If not, I'll see if Rice University is willing to help.
Regards
Hazem
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of
Well, the knowledge is expensive :)
> DO you have it? If not, I'll see if Rice University is willing to help.
Unfortunately, not. Once, I used to have a xerox copy but it was long
time ago.
I guess that the simplest is to find someone from university that has a
subscription. Well, at least it is available online, note that not all
the old journals are online.
So, basically there were two lines of the development. First, is to use
the enthalpy of formation (see JANAF and other databases). This can be
done but according to the definition the reagents and products in the
reaction of the formation should be at the same temperature. This
causes strong headache when one starts using this simple idea in
practice. Again, look at how it has been done at the JANAF tables.
One example. If you take the Gibbs energy of formation, then its
derivative in temperature gives the entropy of formation and not the
absolute entropy.
The solution to this is to fix the standard states at a particular
temperature and pressure. This what has been done by SGTE. They have
chosen standard element phases at 298 K and 1 atm (if I remember
correctly) and then they introduced SRE (Standard Element Reference)
G - Sum_i nu_i H_i(0, 298 K)
The sum is taken over elements in the reaction of formation but this
contribution now is a constant. It does not depend on temperature and
pressure as in the Gibbs energy of formation. Now all the derivatives
gives absolute values, and it is much more convenient in practice.
Best wishes,
Evgenii
--
http://Evgenii.Rudnyi.Ru/
I am now having a problem with enthalpy. I was so excited when the reactor
worked fine with the reference enthalpy being the heat of formation at 25°C.
Basically a standard enthalpy call gave me the enthalpy of the inlet at the
specified T and P, the reactor did the material balance and calculated the
composition of the outlet. I sat the enthalpy of the outlet equal to that
of the inlet by adjusting the outlet temperature.
Well, for hydrogen (or 95% Hydrogen, 5% methane, the enthalpy of a vapor at
-260°F is negative. It is in equilibrium with a liquid which is mostly
methane and now the liquid enthalpy is higher than the enthalpy of a the
vapor it is in equilibrium with.
This can not be right.
Regards
Hazem
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of
Evgenii Rudnyi
Sent: Sunday, April 09, 2006 3:15 AM
To: Open source Process Simulator
Subject: Re: Reference Enthalpy
> Thank you so much Evgenii. The article you cited is available online for
> $30.00 and is about 6 MB.
Well, the knowledge is expensive :)
> DO you have it? If not, I'll see if Rice University is willing to help.
Unfortunately, not. Once, I used to have a xerox copy but it was long
time ago.
I guess that the simplest is to find someone from university that has a
subscription. Well, at least it is available online, note that not all
the old journals are online.
Thank you Rahul, here is the link to get it online if you can find someone with subscription.
If you travel to Europe often, there is a book by Michelsen that I would like to buy. I can not find it in the states. Can you help?
http://www.sciencedirect.com/science/journal/03645916
Regards
Hazem
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of Rahul Anantharaman
Sent: Sunday, April 09, 2006 7:24
AM
To: op...@googlegroups.com
Subject: Re: Reference Enthalpy
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com]On Behalf Of Hazem
Sent: 09 April 2006 15:47
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com]On Behalf Of Hazem
Sent: 07 April 2006 23:23
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
Thank you Mr. Dudley, I think Sam or Matt or somebody else can answer your question about Pascal better than me.
You got me curious though. I suggested RK4 because my understanding is that it will work for up to 8 to 12 reactions. If there is something better but still not as involved as LSODE (that’s the most recent version of Gear’s method) I would say let’s go for it.
LSODE is available in Fortran and C++ for free. I converted it to VB.NET but could not get it to work : (
Regards
Hazem
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of J&S Dudley
Sent: Friday, April 07, 2006 4:48 PM
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
Is there a specification for the ODE solver available? From my experience I would be willing to translate the ROCK2 Runge-Kutta code to Pascal, providing that the Pascal is Level 1 (i.e., the dimension of the array is not part of the array specification, which used to be the problem with Pascal - see Numerical Recipes 1st Edition). ROCK2 performs well for moderately stiff differential equations, and is therefore a good compromise between 'classical' Runge Kutta (poor performance on stiff problems) and Gear methods (poor performance on non-stiff methods). If there is no specification, I'll do a port of the Fortran code. Better still would be looking to support the Fortran directly - I find
Y = Y + H * DY
easier than
for i = 1 to n do
y(i) := y(i) + h * dy(i);
especially as the equations get more involved.
Does Pascal now support declaration initialisation? In Fortran 77, this was the DATA statement.
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com]On Behalf Of Hazem
Sent: 07 April 2006 19:49
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
Professor Sam,
Please grab the RK4 as quickly as possible, before it disappears. This is 50% (at least) of a kinetic reactor model. I’ll review some kinetics tonight to see what else do we need but if somebody can save me the trouble and give us a refresher course in kinetics, it will much appreciated.
Regards
Hazem
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of Samuel Cartaxo
Sent: Friday, April 07, 2006 1:35 PM
To: op...@googlegroups.com
Subject: Re: Reference Enthalpy
Maybe, what we need is here:
> Regards
>
> Hazem
>
> ________________________________
>
>
> From: op...@googlegroups.com [mailto: op...@googlegroups.com] On Behalf Of
> Rahul Anantharaman
> Sent: Friday, April 07, 2006 8:34 AM
> To: op...@googlegroups.com
> Subject: Re: Reference Enthalpy
>
>
>
>
>
> Hi Hazem....
>
> Heat of formation at 25 C would be the ideal basis for reacting systems. I
> would be preferrable to give the user a choice of either this, absolute zero
> or any other case - with Hf at 25 C being the default basis. It is not all
> that difficult to change the basis. The basis is "stored" in the constant A
> in the Ideal Gas Heat Capacity Equation
> H(ideal) = A + BT + CT^2+DT^3.
>
> One of the things I would probably do is extend this to have a basis such
> that negative enthalpies are not encountered in the flowsheet. But that is
> not what anyone else would be interested in.
>
> Rahul
>
>
>
>
> On 4/7/06, Rafil Elyas <rafil...@east101.com> wrote:
>
>
>
> HYSIM had absolute zero as a reference point.
>
>
>
>
>
> This was changed to heat of formation at 25C for HYSYS.
>
>
> I don't think the enthalpy problems you encountered were due to the basis
> selection.
>
>
>
> -----Original Message-----
> From: op...@googlegroups.com [mailto:op...@googlegroups.com ]On Behalf Of
> Hazem
> Sent: Friday, April 07, 2006 8:16 PM
> To: op...@googlegroups.com
> Subject: Reference Enthalpy
>
>
> If you have any thoughts about the reference enthalpy, please make them
> known.
>
>
>
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com]On Behalf Of Dudley, Jeremy
Sent: Monday, April 10, 2006 6:18 PM
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
That’s is correct.
Just something simple at least to start with for no more than 8 to 10 reactions will probably suffice. We will assume a batch reactor for now, however, kinetic problems do tend to be stiff.
Regards
Hazem
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of Rafil Elyas
Sent: Monday, April 10, 2006 6:21
AM
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
----- Original Message -----From: Hazem
Thank you so much Lynn. I emailed Michelsen himself and did not get a response, so I’ll try Dr. Stenby.
Regards
Hazem
As Mr. Jeremy pointed before I missed why an ODE solver??
Batch reactors doesn't make sense for a static simulator!
With the best regards,
Rafael.
Hazem escreveu:
> That’s is correct.
>
>
>
> Just something simple at least to start with for no more than 8 to 10
> reactions will probably suffice. We will assume a batch reactor for
> now, however, kinetic problems do tend to be stiff.
>
>
>
> Regards
>
> Hazem
>
>
>
> ------------------------------------------------------------------------
>
> *From:* op...@googlegroups.com [mailto:op...@googlegroups.com] *On
> Behalf Of *Rafil Elyas
> *Sent:* Monday, April 10, 2006 6:21 AM
> *To:* op...@googlegroups.com
> *Subject:* RE: Reference Enthalpy
>
>
>
> I believe the ODE solver's for the kinetic reactor.
>
> -----Original Message-----
> *From:* op...@googlegroups.com [mailto:op...@googlegroups.com]*On
> Behalf Of *Dudley, Jeremy
> *Sent:* Monday, April 10, 2006 6:18 PM
> *To:* op...@googlegroups.com
> *Subject:* RE: Reference Enthalpy
>
> I missed why we wanted an ODE solver, as I thought we were
> avoiding dynamic modelling. Is what is wanted really a quadrature
> code, for solving an integral? And if yes, what equations are
> involved, that would not be amenable to an explicit solution? The
> simple polynomial Cp is readily analytically solved.
>
>
>
>
>
> >
>
--
:: MSc(Eng) Rafael de Pelegrini Soares
:: raf...@enq.ufrgs.br
The inlet stream represents the composition at time=0 and the outlet stream
composition is that at time=t (specified by the user).
The reason I suggested a Batch reactor to start with is because it is an
initial value problem, the simplest of all ODE's. The more realistic plug
flow reactor is a more difficult boundary value problem, not an initial
value problem. Add the heat equation to it and you have a system of coupled
and stiff differential equations. Add the radial temperature profile and
you have a system of coupled and stiff partial differential equations. If
somebody would like to volunteer for this, be my guest, otherwise, let's
stick to a batch reactor for now.
Although my company (www.engineeringsoftware.biz) has plans for a Pyrolysis
program, to even start on something like this requires all other projects to
be finished and my table to be clean and my mind to be clear with no
distractions. This is not the case right now :)
Regards
Hazem
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of
Rafael de Pelegrini Soares
Sent: Monday, April 10, 2006 12:03 PM
To: op...@googlegroups.com
Subject: Re: Reference Enthalpy
SUpporting other specifications may not be tood difficult, if we can have a suitable specification NOW. I agree, it seems like a step too far, given what else has been done; but in my day job we still beleive in documenting what we would like to do, becasue (a) it puts in on the record, and may influence design decisions before they impeded that future desire, and (b) having done the 'simple case it may be 'obvious' that the future can easily be delivered now.
BUT - this needs someone familiar with whatever specification is likely to be required.
Regards,
Jeremy
Regards
Hazem
Hi All,
Hazem escreveu:
-------------------------------------------------------------------------------------------------------------------
Visit our websites www.wrcplc.co.uk and www.wrcnsf.com, as well as www.waterportfolio.com for collaborative research projects.
-------------------------------------------------------------------------------------------------------------------
The Information in this e-mail is confidential and is intended solely for the addressee. Access to this e-mail by any other party is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on information contained on this e-mail is prohibited and maybe unlawful. When addressed to WRc clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed in the governing WRc client Agreement.
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com]On Behalf Of
Rafael de Pelegrini Soares
Sent: Tuesday, April 11, 2006 1:03 AM
To: op...@googlegroups.com
Subject: Re: Reference Enthalpy
Well, ScienceDirect shows the listing differently depending on the
subscription options and it may not show everything that is available.
Evgenii
Samuel
2006/4/10, Evgenii Rudnyi <rud...@imtek.uni-freiburg.de>:
> I am now having a problem with enthalpy. I was so excited when the reactor
> worked fine with the reference enthalpy being the heat of formation at 25°C.
> Basically a standard enthalpy call gave me the enthalpy of the inlet at the
> specified T and P, the reactor did the material balance and calculated the
> composition of the outlet. I sat the enthalpy of the outlet equal to that
> of the inlet by adjusting the outlet temperature.
>
> Well, for hydrogen (or 95% Hydrogen, 5% methane, the enthalpy of a vapor at
> -260°F is negative. It is in equilibrium with a liquid which is mostly
> methane and now the liquid enthalpy is higher than the enthalpy of a the
> vapor it is in equilibrium with.
I am not sure if I completely understand your problem. One typical
problem is that quite often people mix enthalpy and enthalpy of
formation between each other.
Well, the problem with enthalpy is that we cannot determine its
absolute value. Hence, we need some reference point. Yet, during an
analysis we can introduce enthalpy of a pure substance that is a
function of temperature and presure. In the case of a solution,
enthalpy also depends on concentration. Let us say for simplicity H(T,
p). The derivative of the enthalpy over temperature gives the absolute
heat capacity.
The enthalpy of formation is the enthalpy of a reaction of formation,
Del_f_H, the substance from elements in the stable phases (see IUPAC
Green book, http://www.iupac.org/publications/books/author/mills.html,
as well as other IUPAC documents). Say, if we take molecular hydrogen,
this is
H2(g) = H2(g)
and the enthalpy of formation is zero. The derivative of the enthalpy
of formation over temperature in this case will give zero as well.
Funny, isn't it?
If you express your problem in more detail, I will try to answer your
question.
Evgenii
Regards
Hazem
-----Original Message-----
From: op...@googlegroups.com [mailto:op...@googlegroups.com] On Behalf Of
Dudley, Jeremy
Sent: Monday, April 10, 2006 2:10 PM
To: op...@googlegroups.com
Subject: RE: Reference Enthalpy
How big is big? 5 MB? 10? I can receive emails up to 10MB at Hazem_...@Hotmail.com then we’ll make it available through the project directory or per request (to avoid getting into trouble).
Please, if possible I´d like to see this paper too.
This account samuel...@gmail.com has enough room to receive it.
Thanks
Samuel
2006/4/11, Hazem <Hazem_...@hotmail.com>: