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

Converting Stencil notation to a Matrix

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2020, 08:01
Default Converting Stencil notation to a Matrix
  #1
New Member
 
Balakrishna
Join Date: Aug 2020
Posts: 4
Rep Power: 5
balkiii is on a distinguished road
I am working on this theoretical problem where I have a finite difference equations derived. The consequence of this equation is a laplacian stencil:
0&0&-1&0&0\\
0&0&0&0&0\\
-1&0&4&0&-1\\
0&0&0&0&0\\
0&0&-1&0&0\\

I have problems with converting this stencil in to a generalized matrix. Is there a method to do it other than writing seperate equation for each grid point?



Thanks in advance
balkiii is offline   Reply With Quote

Reply


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
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) Adam_K OpenFOAM Running, Solving & CFD 2 March 27, 2019 06:51
Convection Diffusion 1-D Matrix Problem balrog Main CFD Forum 1 November 3, 2014 13:34
Force can not converge colopolo CFX 13 October 4, 2011 22:03
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 21:47
Notation Standards and Uniformity yNot CFD-Wiki 0 April 5, 2008 15:00


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