Need help in writing code. Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Need help in writing code. « Previous Next »

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

Harpreet Juneja (hsjuneja)
New member
Username: hsjuneja

Post Number: 1
Registered: 11-2004
Posted on Tuesday, November 16, 2004 - 02:57 am:   

I am a graduate student at the Chemical Engineering Dept at The University of
Arizona.
We are trying to solve a system of coupled Pde's and Ode.
I have attached a file which gives the list of equations and conditions.
I don't really know if FlexPDE can help me, specially in inputing the 2nd and 3rd term on RHS of equation 3.
Please if you could advice me how do I go about solving the problem.

Thank You in advance.
application/pdfequations
Modeling_uoa.pdf (54.4 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 259
Registered: 06-2003
Posted on Tuesday, November 16, 2004 - 01:54 pm:   

I think applying FlexPDE to this system is fairly straightforward.

A few items that arise are the following:

1) FlexPDE does not currently have a capability for one spatial dimension, so you must fake it with a 2D domain. Make the geometry a thin strip with a fictitious second space dimension. Include a diffusion term in the second dimension to stabilize the solution in that direction.

2) I assume your third equation describes a single global value Gg,bulk. Implement this as a "SCALAR VARIABLE". The point values at z=L can then be computed using the function VAL(<expression>,<x_coord>,<y_coord>).

3) The derivative boundary conditions are simply the NATURAL boundary conditions for the equations.
Note, however, that the NATURAL() BC will mean D*dz(C).

I suggest you download the evaluation version of FlexPDE and read through the User Guide. Then you can request a 30-day trial license to try your problem.

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