non-constant diffusion term Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » non-constant diffusion term « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Harvey (jones)
New member
Username: jones

Post Number: 1
Registered: 06-2006
Posted on Tuesday, June 06, 2006 - 04:32 am:   

How does one set up the equation in flexpde to handle the following problem:

du/dt=D*(d^2 u/dx^2) where D=k*u, with k=constant

So basically the "traditional diffusion constant" D is no longer a constant but now a function of u.

The corresponding boundary conditions are:
at x=0, du/dx=0 (so in flexpde natural(u)=0))
at x=L, h*u=D*du/dx
where D is defined as above (function of u), and
h is a constant. (what is the boundary condition here in flexpde?)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 626
Registered: 06-2003
Posted on Thursday, June 08, 2006 - 04:13 pm:   

The equation should be written much as you have written it in your post, using the DEFINITIONS section to define D:
VARIABLES
u
DEFINITIONS
k=something
D = k*u
EQUATIONS
U: dt(u)=DIV(D*GRAD(u))

The NATURAL BC for this equation defines the outward normal component of -D*GRAD(u) [negative because it is on the right side of the equation].
(See NATURAL in the Help Index).

At x=0 this is NATURAL(u)=0,
at x=L, NATURAL(u) = -h*u



Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration