samia2008 said:
I need help from anyone 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.