CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Compact finite difference

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2013, 04:46
Default Compact finite difference
  #1
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
I have some difficulty in understanding the implementation of compact difference schemes.
I understood that compact difference scheme gives a system of equations of the form Af' = Bf.
Let's say if i intend to solve an equation of the form df/dt+c df/dx = 0.
How do I implement the CDS in this equation?
Is it by simply substituting for f'=A^(-1)Bf in the discretized equation?
arunsmec is offline   Reply With Quote

Old   August 17, 2013, 08:44
Default Compact Difference
  #2
Member
 
Ramesh K
Join Date: Dec 2009
Location: Bangalore
Posts: 73
Rep Power: 16
RameshK is on a distinguished road
Send a message via Yahoo to RameshK
Compact difference is one way of getting higher order of accuracy with a relatively small stencil. As it is aware that if we want a higher order of accuracy the stencil size increases as the order of accuracy increases. Compact schemes requires to solve a tri-diagonal system in the case of 1D and penta diagonal system in the case of 2D to get the coefficients of the variables getting into stencil. The key concept lies in the getting the coefficients. You should be careful once the boundary points are reached.
RameshK is offline   Reply With Quote

Old   August 17, 2013, 11:02
Default
  #3
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Thank you Ramesh.
The coefficients can be obtained by matching terms of same order. Once I do that I get a system of equations of the form Af' = Bf.
How do I solve this equation since both f and f' are unknowns?
arunsmec is offline   Reply With Quote

Old   August 17, 2013, 11:53
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by arunsmec View Post
Thank you Ramesh.
The coefficients can be obtained by matching terms of same order. Once I do that I get a system of equations of the form Af' = Bf.
How do I solve this equation since both f and f' are unknowns?

In the system, f is assumed to be the known term. Hence, start from assigned values f(x,0), compute f' and solve the equation df/dt + c f'=0. Repeat for each time step. Be careful in the BCs.
FMDenaro is offline   Reply With Quote

Old   August 18, 2013, 04:53
Default
  #5
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Does that mean I have to simultaneously solve both the equations, and the scheme is implicit?
arunsmec is offline   Reply With Quote

Old   August 18, 2013, 05:20
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by arunsmec View Post
Does that mean I have to simultaneously solve both the equations, and the scheme is implicit?
implicit or explicit depends on what you decide to do...for an explicit scheme you compute f' at time tn with f(tn) known term and then solve explicitly for f(tn+1).
FMDenaro is offline   Reply With Quote

Reply

Tags
compact difference, fdm, finite difference


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compact finite difference methods Nikhil Main CFD Forum 3 February 26, 2010 04:38
Fininte difference and Finite element Technique Mahendra Singh Mehra FLUENT 3 December 22, 2005 23:49
High order compact finite difference Mikhail Main CFD Forum 3 February 15, 2004 23:31
High order compact finite difference schemes Mikhail Main CFD Forum 6 August 5, 2003 10:36
Compact finite difference schemes Tom Clay Main CFD Forum 4 November 28, 2002 08:59


All times are GMT -4. The time now is 19:01.