Skip to content

Recherche de fonction

1 message · Berend Hasselman

#
On 11-07-2013, at 09:04, Rapha?lle Carraud <raphaelle.carraud at oc-metalchem.com> wrote:

            
1. You should keep replies on the list so that others can follow the discussion and offer advice. I am sending this reply to the list.

2. Let's see if my analysis of your problem is correct.
You have a system of differential equations with dA,dB,dC,dD,dE,dI,dG,dH (8 in stead of the 7 I mentioned previously. I missed dD).
You have two equilibrium equations with K2 and K3 which describe a relation between A,B,C and D which must always be true?

These differentials are expressed as a system of linear equations in terms of the state variables.
You can write this as

Matrix %*% column-vector(dA,dB,?) = vector depending on state variables

where the matrix is 6 x 8 and the d-vector  is 8x1.
That is an underdetermined system.

You could take the differential of the two equilibrium equations to get additional relationships between dA,dB,dC, and dD.
That should give you a square system of linear equations that you could solve with R's solve() assuming it is not singular or ill-conditioned.

I feel that you should try very hard to find out how such a system is solved in the paper you mention.

Before using deSolve you should first get the function that computes the d? variables in terms of the state variables working correctly.

Berend