[firedrake] Boundary conditions
Cotter, Colin J
colin.cotter at imperial.ac.uk
Sun Feb 2 19:46:42 GMT 2014
Oh, neat! Thanks.
--cjc
________________________________________
From: firedrake-bounces at imperial.ac.uk [firedrake-bounces at imperial.ac.uk] on behalf of Lawrence Mitchell [lawrence at duffch.at]
Sent: 02 February 2014 14:47
To: firedrake
Subject: Re: [firedrake] Boundary conditions
> On 2 Feb 2014, at 09:04, "Cotter, Colin J" <colin.cotter at imperial.ac.uk> wrote:
>
> OK, next question is whether I can output a numpy matrix for a bilinear form assembled with boundary conditions, i.e. whether I can get the reduced matrix with the boundary rows and columns removed?
We don't give you the matrix with the bc rows and cols removed, we just zero them and slap a 1 on the diagonal, you'll have to do it yourself. Note that you can get the dof indices of the bc nodes by accessing bc.nodes where bc is a DirichletBC object.
Lawrence
_______________________________________________
firedrake mailing list
firedrake at imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4068 bytes
Desc: not available
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20140202/51626ced/attachment.bin>
More information about the firedrake
mailing list