Register to reply

Solving Poisson Equation by using FDM

by samia2008
Tags: equation, poisson, solving
Share this thread:
samia2008
#1
Jun8-12, 01:25 AM
P: 4
I need help from any one urgently,
I need C code for Solving Poisson Equation has known source with Neumann condition by using FDM (finite difference method) in 2D problem.
Phys.Org News Partner Science news on Phys.org
Scientists develop 'electronic nose' for rapid detection of C. diff infection
Why plants in the office make us more productive
Tesla Motors dealing as states play factory poker
jackmell
#2
Jun8-12, 08:24 AM
P: 1,666
Quote Quote by samia2008 View Post
I need help from any one urgently,
I need C code for Solving Poisson Equation has known source with Neumann condition by using FDM (finite difference method) in 2D problem.
Tell you what, I'm gonna' make some suggestions you may not like:

1. Helps if you show effort rather than just ask for a hand-out.

2. Helps if you don't say urgent. Kinda' offensive like we gonna' stop what we're doing and help you cus' you said urgent.

3. Try and work on simple ones first just to get the hang of using this method. Work on a simple one you already know the answer so you can check your work. Any PDE text will have a section on numerical methods. Forget about Poission's equation for now and just go over the simple examples in the book.

4. You phrased your question in terms of code. Usually we don't do code in here expecially C cus' Mathematica is way easier. If you need help with code, we have sub-forums below under "Mathematical Software" that may be more appropriate for your question.

5. Try and remember whenever you have a tough problem you can't solve, put it on the back-burner and work on a simpler, related one first, get that one right, then build up the problem to the one on the back-burner. For example solve Laplace's equation numerically first. Then for example if the non-homogeneous component of Poission's equation is complicated, just solve it for say a constant term or just f=x for starters then build it back up to the equation you wish to solve.

6. Don't double-post: don't make an identical post in the Mathematics Software forum. You'll just tick them off more.

So here's my best advice:

Make some genuine effort on say a simple problem, preferably in Mathematica code. Then go to the Mathematics Software forum, read some of them to get a hang of the dialog. Write up some Mathemtaica code to show effort, then ask for help on that problem (since it's not this one it's not a double-post). Those guys in that forum are really good.
Muphrid
#3
Jun8-12, 09:19 AM
P: 834
I don't think anyone is just going to give you code here. Write the Poisson equation as a partial differential equation, and just replace the partial derivatives by differences between neighboring points/timeslices.

nasser_abbasi
#4
Jun8-12, 05:23 PM
P: 2
Wink Solving Poisson Equation by using FDM

Quote Quote by samia2008 View Post
I need help from any one urgently,
I need C code for Solving Poisson Equation has known source with Neumann condition by using FDM (finite difference method) in 2D problem.
Not C, but I have Mathematica code (you'd have to shoot me first to make me do this in C ;)

I can't post a link, since this forum will not let me. But if you go to my web site and click on the Mathematica applets page near the top, you'll see the poisson applet there. Just google my name (Nasser Abbasi). I have to make 10 posts here for this forum to let me post a link it seems.

Source code is there. Feel free to translate it to C. Many differenent methods. Pick the solver you like.

Poisson 2D, Supports Neumman and Dirichlet boundary conditions. Different grid size on each dimension.

The Mathematica Applet is there that you can run from your browser.

--Nasser
samia2008
#5
Jun12-12, 09:01 AM
P: 4
Sorry for late reply and thank you jackmell for your advices. I have just started to use this forum, so I have no about how the discussion should be here. The aim of my post to know if there is somebody can help me in solving poison problem, if i get reply, I can then ask precisely about what I want to solve. I did effort to solve the problem of course and i got some problems and this why I want to discuss here to find the solution. I will write that in another reply post. Anyway, thank you for the advice and showing me the way, and I hope you get the aim of my post.
samia2008
#6
Jun12-12, 09:09 AM
P: 4
Great thanks nasser_abbasi for your help by sending me your web site showing the Mathematica code. I will search and study them. If i have a problem, I will send again.
samia2008
#7
Jun12-12, 09:11 AM
P: 4
Thank you for your reply and I will try to work on your advice.


Register to reply

Related Discussions
Solving Poisson's equation with the help of Greens function Classical Physics 4
Gummel method solving the n-type semiconductor(Poisson equation) Atomic, Solid State, Comp. Physics 2
Solving fluid's Poisson equation for periodic problem or more easy way? Classical Physics 0
Integral involved in solving Poisson's equation Calculus & Beyond Homework 1
Solving Poisson's equation Advanced Physics Homework 9