Take the 2-minute tour ×
Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

I was given a problem by my professor as follows

Solve the

System

$pV=S$

$pcT=kT+BS\frac{dG}{dt}$

$\frac{dS}{dt}=\mu(V-\frac{dG}{dt})$

$\frac{dG}{dt}=f(S,T)$

Where $p$, $c$, $B$, $\mu$ are constant and $f(S,T)$ is a function to be reasonably assumed

Where do I even begin... I know I have to use a numerical solution but Id love some helps and tips if possible.

share|improve this question
    
Is that all that was asking? No initial conditions? Are you supposed to give a numerical solution or an analytical one? –  FrenchKheldar Nov 10 '12 at 5:51
add comment

1 Answer 1

There are a few issues I can see with the formulation of your problem. First, as a set of ODE's you need initial conditions to completely pose the problem. Another issue is that to solve it numerically you need to know $f(S,T)$ (or at the very least be able to tell your computer to evaluate it). Both of these issues can be ignored if the solution is supposed to be analytical and general.

Since this is a homework and I am not sure what exactly you are being asked to do, I am not going to put any equations in this answer for the time being. I will tell you that it is possible to reduce your system to a single ODE with all of the unknowns eliminated except for $S$. The algebra to get there is not too difficult. Assuming stability the ODE can be solved with time-stepping such as Explicit Euler or an RK method. Once you have $S$ as a function of time, you can post-process for the rest of your unknowns.

If you let us know what type of class you received this in and what tools/methods you have learned you may get a bit more information.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.