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

Access and modify zero matrix coefficient

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2019, 00:01
Default Access and modify zero matrix coefficient
  #1
New Member
 
Thang
Join Date: Apr 2019
Posts: 5
Rep Power: 6
thang_cegroup is on a distinguished road
Hi foamers .

I need to access and modify some zero matrix coefficients in order to implement cyclic boundary condition since my matrix is a block matrix and cyclic bc isn't implemented for block matrix in foam-extend 4-0, which is the version of OP that i use. But I dont know how to deal with it.

From the best of my knowledge, the matrix coefficient is stored in lduMatrix with 3 arrays : diag(),upper(),lower() and its still right for blockLduMatrix but it only stores for non-zero coefficient. I'm searching in the source code to find out a way to access the zero-coefficient before modify it. Unfortunately , until now , I still haven't find anything .

Do you guys have any idea about this problem ? Even, a few information might help a lot .

Thanks. Have a nice day !
thang_cegroup is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Modify Particle Velocity in Lagrangian Solver AustinG OpenFOAM 0 August 23, 2018 18:38
Access faces in multiregion case sailor79 OpenFOAM Programming & Development 2 March 23, 2017 12:48
How to access p and U within rotatingMotion.C/H waku2005 OpenFOAM Programming & Development 5 January 26, 2017 13:03
Access mesh cell refinement levels from solver. OlegSutyrin OpenFOAM Programming & Development 2 January 2, 2017 08:17
Fluent rp var to modify rotation speed of a boundary QBeast FLUENT 2 August 12, 2015 16:58


All times are GMT -4. The time now is 06:40.