Solving Fick's Law by Finite Difference Method

Click For Summary
SUMMARY

This discussion focuses on solving Fick's Law, represented by the equation (∂c_k)/∂t = D_k (∂^2 c_k)/(∂x^2), using the Finite Difference Method (FDM). The original approach using the Separation of Variables method was deemed incorrect for the user's project requirements. The Finite Difference Method is recommended for numerically solving differential equations, particularly in the context of MATLAB simulations. The user seeks guidance on transforming the differential equation into a format suitable for FDM.

PREREQUISITES
  • Understanding of Fick's Law and its applications in diffusion processes.
  • Familiarity with the Finite Difference Method for numerical analysis.
  • Basic knowledge of MATLAB for simulation purposes.
  • Concepts of partial differential equations and boundary value problems.
NEXT STEPS
  • Study the implementation of the Finite Difference Method in MATLAB.
  • Learn how to discretize Fick's Law for numerical solutions.
  • Explore boundary conditions and their impact on Fick's Law solutions.
  • Review examples of solving partial differential equations using FDM.
USEFUL FOR

Students and researchers in chemical engineering, applied mathematics, or physics who are working with diffusion processes and require numerical methods for solving differential equations.

Stefanie
Messages
4
Reaction score
0
Hi, i need help in solving a Fick's Law [ (∂c_k)/∂t = D_k (∂^2 c_k)/(∂x^2 ) ] by Finite Difference Method.
Previously, I tried solving the Fick's Law by using the Separation of Variable method but that was not the correct way as told by my Prof as the correct way is to use Finite Difference Method.

Can anyone teach or guide me on how to solve as I had never learn finite difference method before?

Thanks a lot.
 
Physics news on Phys.org
What, exactly, is the problem you are trying to solve? The "finite difference method" is a method of numerically solving differential equations where we are given values at the boundary of a region. Whether "separation of variables" will work on any partial differential equation depends strongly on the geometry of the region. "Fick's law" (also called the "diffusion" or "heat" equation) certainly can be solved by separation of variables on a rectangular region (Fourier series solutions), on a circular or cylindrical region (series of Bessel functions) or on a spherical region (series of spherical harmonics).
 
My project is actually on a MatLab simulation but since I'm not required to write out the source code, my Prof wants me to show how can this differential equation can be used to solve using finite difference method instead of a separation variable method. For instance, to transfer the differential equation into the same form as finite difference method.

I look up a few reference book but i still can't seems to understand. Hence, will like to seek help from here.

Thanks.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K