Leon,

yes, each block in a BlockSparseMatrix is in fact a
SparseMatrix<double>. You can use something like
BlockMatrixArray<double> to compose sparse matrices into a different
block structure without copying the matrices.

On Mon, Feb 20, 2017 at 10:50 AM,  <lianzhang030...@gmail.com> wrote:
> Dear all,
>
> I'm working on some monolithic and partitioned schemes of FSI problem. In a
> monolithic scheme, the matrix usually consists both fluid and structure
> parts. However in a partitioned scheme, we can use two matrices which
> represent the fluid and structure separably. I would like to extract the
> fluid part and the structure part from the matrix assembled in monolithic
> scheme. So is it possible to extract some blocks from a sparse block matrix
> and then use these blocks to build a new sparse block matrix? If yes, this
> would help me test kinds of partitioned schemes without making too much
> effort on coding.
>
> For example, A is a 4*4 sparse block matrix with 16 blocks, can I extract
> the block(0,0), block(0,2), block(2,0) and block(2,2) from A?  Even more,
> can these four blocks be used to build a new sparse block matrix B?
>
> Thanks.
>
> Best regards,
> Leon
>
> --
> The deal.II project is located at 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=2auBlkb311Gw24FKbg622TDlgtUqR4qrCdYFnjuhIhM&s=3MRSvpcIFpCHmrmLtkf8Sp6XjNjPipI8PD9Po2k3smk&e=
>  
> For mailing list/forum options, see
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_forum_dealii-3Fhl-3Den&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=2auBlkb311Gw24FKbg622TDlgtUqR4qrCdYFnjuhIhM&s=aIE9Ts_zZGM_UiMr42exX_l89TmNdhzdEAbMVAa3glU&e=
>  
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> For more options, visit 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=2auBlkb311Gw24FKbg622TDlgtUqR4qrCdYFnjuhIhM&s=FmiQofBtYeSGR1D4qhyybwsdZl1V7bJlLWRjLY9jpIk&e=
>  .



-- 
Timo Heister
http://www.math.clemson.edu/~heister/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to