Can you elaborate? 'top' and 'bottom' are there by default, otherwise you rely on markers on the base mesh (1 to 4 on a square) On 17 Jun 2014 12:30, "Cotter, Colin J" <colin.cotter@imperial.ac.uk> wrote:
So, what if I want to do the same for an extruded mesh?
--cjc ________________________________________ From: Cotter, Colin J Sent: 17 June 2014 09:14 To: firedrake Subject: RE: [firedrake] bcs
doh! thanks. ________________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Lawrence Mitchell [lawrence.mitchell@imperial.ac.uk] Sent: 17 June 2014 09:00 To: firedrake Subject: Re: [firedrake] bcs
On 17 Jun 2014, at 09:45, "Cotter, Colin J" <colin.cotter@imperial.ac.uk> wrote:
from firedrake import * mesh = UnitSquareMesh(3,3,reorder=False) V = FunctionSpace(mesh,"CG",1) bc = DirichletBC(V,0.,"1")
1 not "1"
print bc.nodes
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
Oh I see, it just works. I was wondering if it would give nodes on the base mesh but it does give them on the extruded mesh. ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Andrew McRae [a.mcrae12@imperial.ac.uk] Sent: 17 June 2014 11:33 To: firedrake Subject: Re: [firedrake] bcs Can you elaborate? 'top' and 'bottom' are there by default, otherwise you rely on markers on the base mesh (1 to 4 on a square) On 17 Jun 2014 12:30, "Cotter, Colin J" <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>> wrote: So, what if I want to do the same for an extruded mesh? --cjc ________________________________________ From: Cotter, Colin J Sent: 17 June 2014 09:14 To: firedrake Subject: RE: [firedrake] bcs doh! thanks. ________________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Lawrence Mitchell [lawrence.mitchell@imperial.ac.uk<mailto:lawrence.mitchell@imperial.ac.uk>] Sent: 17 June 2014 09:00 To: firedrake Subject: Re: [firedrake] bcs
On 17 Jun 2014, at 09:45, "Cotter, Colin J" <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>> wrote:
from firedrake import * mesh = UnitSquareMesh(3,3,reorder=False) V = FunctionSpace(mesh,"CG",1) bc = DirichletBC(V,0.,"1")
1 not "1"
print bc.nodes
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk<mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
participants (2)
- 
                
                Andrew McRae
- 
                
                Cotter, Colin J