|
[Sponsors] |
September 14, 2014, 09:54 |
diffusion problem
|
#1 |
New Member
Rahul Singh
Join Date: Aug 2014
Posts: 16
Rep Power: 11 |
while solving a diffusion problem using second order accurate finite difference scheme in computational domain, error from using first order accurate Neumann boundary condition is less than from second order accurate newmann boundary condition. is this possible or am i doing it wrong?
|
|
September 14, 2014, 11:05 |
|
#2 |
Member
Virendrasingh Pawar
Join Date: Jun 2013
Posts: 47
Rep Power: 12 |
Can you describe your problem in detail?
|
|
September 14, 2014, 13:06 |
|
#3 |
New Member
Rahul Singh
Join Date: Aug 2014
Posts: 16
Rep Power: 11 |
d^2u/dx^2=-10 sin(pi*x/50)
with one side dirchelet and another side neumann bc |
|
September 14, 2014, 15:05 |
|
#4 |
Member
Virendrasingh Pawar
Join Date: Jun 2013
Posts: 47
Rep Power: 12 |
Here's something that might help .. http://www.scientificpython.net/pybl...different-ways ..meanwhile i'll try solving it just to recheck...good luck!
|
|
September 14, 2014, 16:03 |
|
#5 |
Senior Member
adrin
Join Date: Mar 2009
Posts: 115
Rep Power: 17 |
Incidentally, if one uses a finite volume formulation, instead of finite difference, one will _automatically_ end up with method 3 described in the link
Adrin |
|
September 14, 2014, 18:32 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
|
||
September 14, 2014, 18:53 |
|
#7 |
New Member
Rahul Singh
Join Date: Aug 2014
Posts: 16
Rep Power: 11 |
||
September 15, 2014, 04:10 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
||
September 15, 2014, 04:28 |
|
#9 |
Member
Virendrasingh Pawar
Join Date: Jun 2013
Posts: 47
Rep Power: 12 |
Backward diff. for 1st order and central diff. for second order...
|
|
September 15, 2014, 04:43 |
|
#10 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
ok, suppose to work in the 1D problem f'' = q. I think you have some like a Neumann + Dirchlet BC.s, for example f'(x0)=p, f(L)=fL.
Consider i=1 the node at x0. Therefore, (f(1)-2f(2)+f(3))/h^2 = q(2) is the FD equation that requires Neumann BC. 1) first order (f(2)-f(1))/h=p(1) -> f(1)=f(2)- h* p(1) .... OK! 2) second order central (f(2)-f(0))/2*h = p(1) and you see that the node 1 is not expressed and you have no way to substitute into the equation. Please clarify your procedure .... |
|
September 15, 2014, 05:18 |
|
#11 |
Member
Virendrasingh Pawar
Join Date: Jun 2013
Posts: 47
Rep Power: 12 |
Second order discretization will require additional condition to eliminate the unknown...check: http://www.scientificpython.net/pybl...different-ways
|
|
September 15, 2014, 05:22 |
|
#12 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
For that, I strongly suggest to use a second order backward discretization that automatically provides the value at node 1 expressed in terms of node 2,3 and value of the derivative at 1. It is simple and more accurate than other |
||
September 15, 2014, 08:39 |
|
#13 | |
New Member
Rahul Singh
Join Date: Aug 2014
Posts: 16
Rep Power: 11 |
Quote:
in the main computational domain i used a central difference scheme. |
||
September 15, 2014, 11:18 |
|
#14 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
ok, that's must definitely work fine ...could you show the convergence curves for both shcemes?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
False Diffusion?? | patovalades | Main CFD Forum | 3 | July 20, 2014 13:16 |
Diffusion | prince_pahariaa | FLUENT | 1 | September 30, 2013 13:19 |
Jet diffusion flame problem | skarnani | Phoenics | 0 | April 30, 2010 18:32 |
Periodic flow boundary condition problem | sudha | FLUENT | 3 | April 28, 2004 08:40 |
Diffusion problem | ravi varma | FLUENT | 6 | December 8, 2002 23:10 |