[deal.II] Accessing block sparse matrix entries

2020-05-04 Thread Krishanu Sen
Is there any command/function to access and change individual entries of BlockSparseMatrix? I am looking for something that is similar to the operator( ) or el( ) command/function that is in the documentation of SparseMatrix. Thanks, Krishanu -- The deal.II project is located at

Re: [deal.II] Dirichlet boundary condition (homogeneous) on selected dofs

2020-01-26 Thread Krishanu Sen
January 2020 09:12:24 UTC-6, Wolfgang Bangerth wrote: > > On 1/25/20 4:10 PM, Krishanu Sen wrote: > > > > I am able to understand that step-22 has Dirichlet boundary condition on > all > > the degrees of freedom corresponding to displacement components. But

[deal.II] Dirichlet boundary condition (homogeneous) on selected dofs

2020-01-25 Thread Krishanu Sen
I am trying to use the BlockSparseMatrix setup following step - 22. I am able to understand that step-22 has Dirichlet boundary condition on all the degrees of freedom corresponding to displacement components. But I am trying to have the Dirichlet boundary conditions on only some of the

Re: [deal.II] Re: Issue regarding higher order element

2019-07-18 Thread Krishanu Sen
Thanks a lot Bruno. I did find the issue following your suggestion! On Tuesday, 16 July 2019 15:10:40 UTC-5, Bruno Turcksin wrote: > > Krishanu > > Le mar. 16 juil. 2019 à 16:00, Krishanu Sen > a écrit : > > > > I am using deal.ii for a nonlinear elastic

Re: [deal.II] Re: Issue regarding higher order element

2019-07-18 Thread Krishanu Sen
Thanks Prof. Bangerth for the suggestion. I will definitely learn about the debugger as it seems like a great tool. Thanks, Krishanu On Thursday, 18 July 2019 03:42:54 UTC-5, Wolfga ng Bangerth wrote: > > On 7/16/19 2:10 PM, Bruno Turcksin wrote: > > No it's not where the error comes from. It

[deal.II] Re: Issue regarding higher order element

2019-07-16 Thread Krishanu Sen
on. Somewhere you set > something to the wrong size. Can you give us a backtrace? We need to see > the error message and the code that produces it. > > Best, > > Bruno > > On Tuesday, July 16, 2019 at 3:08:42 PM UTC-4, Krishanu Sen wrote: >> >> I am trying to run a co

[deal.II] Issue regarding higher order element

2019-07-16 Thread Krishanu Sen
I am trying to run a code using higher order elements. The code runs fine when I am using linear [FE_Q(1)] or quadratic [FE_Q(2)] elements. But when I tried to use cubic elements [FE_Q(3)], the code stops with an error "ExcIndexRange", which says that the code is trying to access an index of a

Re: [deal.II] how to get the inverse of a sparse matrix?

2019-06-06 Thread Krishanu Sen
gt; Hi Krishna, > > One of my answers in this thread provides the solution you’re looking for, > namely the suggestion of the LinearOperator class and its associated helper > functions. > > Best, > Jean-Paul > > On 06 Jun 2019, at 19:41, Krishanu Sen > > wrote: > &

[deal.II] Re: how to get the inverse of a sparse matrix?

2019-06-06 Thread Krishanu Sen
Hello, I have a similar problem where inverse of sparse matrix seems to be required. I am trying to get the following computation using deal.ii: (A - B * C^(-1) * D)^(-1) * v, where A, B, C, D are square sparse matrices of the same size and v is a vector on which the operation needs to be