diffusion of liquid using ode45

조회 수: 4 (최근 30일)
Dhruba jyoti Bora
Dhruba jyoti Bora 2020년 7월 19일
댓글: J. Alex Lee 2020년 7월 20일
Hi...good gracious!
I am new using ode45. I have to represent diffusion of a drug in a solution (dC/dx) using ode45, where C is the concentration of drug and x is the distance from the boundary. The concentration of drug (c) decreases with increase in distance(x). The only know information i have is that the initial concentration of drug is C0=500 ml at x=0, and at a distance x=12 the concentration of drug is C0/7. Please help me to reprent and find the solution and plotting using ode45.
  댓글 수: 3
Dhruba jyoti Bora
Dhruba jyoti Bora 2020년 7월 19일
Thank u sir for your reply. Definitely i will look into the boundary value problem. However how to solve it, in case if we retain the initial value condition only for this problem? Thank u for the link. this is infact Fick's first law of diffusion.
J. Alex Lee
J. Alex Lee 2020년 7월 20일
Do you want to solve the steady problem or transient problem? From context it appears you want the transient problem, tracking the concentration profile from an initial "spike". If so, ode45 is an appropriate function for your workhorse, provided that you manually discretize your spatial profile (such as by finite difference). Alternatively, look into pdepe.
Before you consider how to solve, you need to decide the equations to solve...are you doing this in a planar geometry ( a flat plane spiked with drug), cylindrical geometry (straight line of drug), or spherical geometry (a spot of drug)?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by