3D Finite different method using matlab

Click For Summary

Discussion Overview

The discussion centers around solving the 3D diffusion equation using the finite difference method (FDM) in MATLAB. Participants explore the formulation of the problem, including the definition of stencils and matrix setups for numerical implementation.

Discussion Character

  • Technical explanation, Homework-related, Mathematical reasoning

Main Points Raised

  • One participant requests guidance on solving the 3D diffusion equation modeled with FDM in MATLAB.
  • Another participant suggests a specific approach using a stencil that incorporates nearest and next nearest neighbors on a cubic periodic domain, providing definitions for indexing and matrix setup.
  • A similar suggestion is reiterated with a request for further clarification or learning opportunities from the responder.
  • Another participant questions the initial poster's willingness to attempt the problem independently and notes the absence of information regarding the time update algorithm being used.

Areas of Agreement / Disagreement

The discussion does not reach a consensus, as participants express differing levels of willingness to engage with the problem independently and provide varying degrees of technical detail.

Contextual Notes

Participants have not clarified specific assumptions regarding the time update algorithm or the overall approach to the finite difference method, which may affect the discussion.

nnadiya
Messages
2
Reaction score
0
Can anyone show me how to solve the 3D diffusion equation which has been modeled into FDM by using matlab?
 
Physics news on Phys.org
Suppose your stencil only uses nearest and next nearest neighbors on a cubic periodic domain with N lattice points in each direction. Define I am = (1:N)-1;Im(Im==0)=N; and Ip = 2:N+1;Ip(Ip==N+1)=1; Define your system and matrices and use A(lp,lp,lm) ## \sim A_{i+1,i+1,i-1} ## in your stencil.
 
Strum said:
Suppose your stencil only uses nearest and next nearest neighbors on a cubic periodic domain with N lattice points in each direction. Define I am = (1:N)-1;Im(Im==0)=N; and Ip = 2:N+1;Ip(Ip==N+1)=1; Define your system and matrices and use A(lp,lp,lm) ## \sim A_{i+1,i+1,i-1} ## in your stencil.
Can I learn further from you?
 
You are sure you don't want to try yourself first? Also you haven't mentioned which time update algorithm you are using.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 23 ·
Replies
23
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 10 ·
Replies
10
Views
3K