Numerically solving coupled DEs?

  • Context: Graduate 
  • Thread starter Thread starter gyver
  • Start date Start date
  • Tags Tags
    Coupled
Click For Summary

Discussion Overview

The discussion revolves around numerically solving a set of coupled differential equations (DEs) to find a steady-state solution for variables N_b and N_w. The focus is on the methods and approaches that can be employed using Matlab, with an emphasis on numerical techniques.

Discussion Character

  • Technical explanation, Mathematical reasoning, Homework-related

Main Points Raised

  • One participant seeks guidance on the appropriate numerical method to solve the coupled DEs in Matlab.
  • Another participant suggests removing dimensions and using the Runge-Kutta 4th order (RK4) method, while also mentioning simpler methods like RK2 or Euler's method for class assignments.
  • A different participant proposes running two RK4 algorithms simultaneously, utilizing current values for N_b and N_w in each equation.
  • One participant inquires about the specific forms of the functions P_b and τ_w, indicating a need for further information to proceed.

Areas of Agreement / Disagreement

There is no consensus on the best numerical method to use, as participants suggest different approaches and seek additional information about the functions involved.

Contextual Notes

The discussion lacks details on the specific forms of P_b and τ_w, which may affect the choice of numerical methods. Additionally, there are no established assumptions regarding the constants τ_b, τ_c, and D.

gyver
Messages
1
Reaction score
0
Hi folks!

I'm trying to (numerically) find a steady-state solution for N_b and N_w in the following set of coupled DEs using the software package Matlab:

<br /> \left{<br /> \begin{array}{l}<br /> \frac{\delta N_b}{\delta t} = P_b(N_b) - N_b \cdot \left( \frac{1}{\tau_b} - \frac{1}{\tau_c}D \right)\\<br /> \frac{\delta N_w}{\delta t} = \frac{N_b}{\tau_c} - \frac{N_w}{\tau_w(N_w)} - P_w(N_w)<br /> \end{array}<br /> \right.<br />

where \tau_b, \tau_c and D are constants. Which way would be the right one to go?
 
Last edited:
Physics news on Phys.org
Remove the dimensions and write a program to do RK4 unless this is just for a class in which case RK2 or Euler's with really small step is easier.
 
I'm don't know MatLab but I'd run two Runge Kutta 4th order (RK4) algorithms simultaneously, using the current values for Nb and Nw in each formula.
 
What form do P_b and \tau_w take?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
19
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K