CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Access and modify zero matrix coefficient (https://www.cfd-online.com/Forums/openfoam-programming-development/216708-access-modify-zero-matrix-coefficient.html)

thang_cegroup April 16, 2019 23:01

Access and modify zero matrix coefficient
 
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 !


All times are GMT -4. The time now is 05:29.