CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Modify the fvMatrix.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2016, 16:47
Default Modify the fvMatrix.
  #1
New Member
 
Haixuan Ye
Join Date: May 2012
Location: Ann Arbor, MI, USA
Posts: 4
Rep Power: 14
yehaixuan is on a distinguished road
Hi all,

I am trying to add some off-diagonal value to a fvMatrix instance, say, setting a[i][j] = 2 (which is zero before). And i , j are the row and col, respectively.

So what I am not sure about is how many things I need to play around with? Is it enough to modify only lower() ( or upper() ), lowerAddr() and upperAddr()?

A further question is if I need to frequently insert values to the list or field above. What is the computational efficient way to do that?

Btw, I don't need to worry about the boundaryCoeffs and internalCoeffs.

Thanks in advance.
yehaixuan is offline   Reply With Quote

Old   April 11, 2019, 16:10
Default
  #2
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Hey,

Did you figure out the answer to your problem.
charles4allme is offline   Reply With Quote

Old   April 13, 2019, 08:51
Default
  #3
New Member
 
Thang
Join Date: Apr 2019
Posts: 5
Rep Power: 7
thang_cegroup is on a distinguished road
Do you find the answer ? If yes , Could u explain to me ?
I need to modify the matrix coefficient with cyclic boundary which is not implemented for blockmatrix in foam ext-4.0 . But I do not know how to deal with it .
thang_cegroup is offline   Reply With Quote

Reply

Tags
fvmatrix


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
the openfoam source term and fvmatrix problem wenxu OpenFOAM Programming & Development 0 September 5, 2014 11:56
modify fvMatrix / coupled equations / higher order diffusion Jinming OpenFOAM Programming & Development 0 May 7, 2011 07:20
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 15:42.