| New Reply |
Solving Diffusion Equation By Finite difference Method in fortran |
Share Thread | Thread Tools |
| Mar20-11, 05:16 PM | #1 |
|
|
Solving Diffusion Equation By Finite difference Method in fortran
Hey,
I want to solve a parabolic PDE with boundry conditions by using FINITE DIFFERENCE METHOD in fortran. (diffusion) See the attachment for the problem The problem is that there is a droplet on a leaf and it is diffusing in the leaf the boundry conditions are dc/dn= 0 at the upper surface of drop as well as the leaf and dc/dz = 0 for the bottom most layer and the width is taken very large Can anyone help me please in making the grid for using FDM the Droplet is not hemispherical in shape. |
| Mar22-11, 03:26 AM | #2 |
|
|
What is dc/dn? From your equation you have three independent variables: z, r, and t.
Edit: Oh silly me I get it sorry. |
| Mar22-11, 08:09 AM | #3 |
|
|
the flux perpendicular to the surface of the drop is zero.
So, have you any idea what should i do? |
| Mar28-11, 08:52 AM | #4 |
|
|
Solving Diffusion Equation By Finite difference Method in fortran
you can generate the meshes as all rectangles of different sizes, in matlab, FORTRAN, c++, etc. Just set up a 3-D matrix to account for changes in time, r,z. You can then discretize the equation via finite difference from that to go from there. Talk to me if you need additional help.
|
| Mar28-11, 05:07 PM | #5 |
|
|
Hey thanks a lot... but how will i use the boundary condition on the curved surface i.e dc/dn=0
i.e flux perpendicular to droplet is 0. for that i think i will need the points on the surface of the droplet (not hemisphere) and the point which is on the line perpendicular to the surface of the droplet... please tell me how to make grid... and how to use the boundary condition dc/dn=0 i will be thankful to u for this. |
| Mar28-11, 06:53 PM | #6 |
|
|
Ok? |
| Mar29-11, 12:40 AM | #7 |
|
|
yeah that is fine..but How will i find the points on the hemisphere???
i mean how will i make sure that the corners of the rectangles fall on the hemisphere?? as i can only fond the values at the corners of a rectangle? Did u get what i am trying to ask? |
| New Reply |
| Tags |
| diffusion, finite difference, fortran, fortran 77, pde |
| Thread Tools | |
Similar Threads for: Solving Diffusion Equation By Finite difference Method in fortran
|
||||
| Thread | Forum | Replies | ||
| Solving diffusion equation using finite difference method | Nuclear Engineering | 0 | ||
| Solving the diffusion equation finite difference technique | Differential Equations | 0 | ||
| solving a fourth order PDE by finite difference method by matlab | Calculus & Beyond Homework | 0 | ||
| Solving Fick's Law by Finite Difference Method | Differential Equations | 2 | ||
| finite difference method in fortran | Advanced Physics Homework | 0 | ||