← Back to team overview

dolfin team mailing list archive

[Question #154628]: Dirichlet boundary condition

 

New question #154628 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/154628

Hello, I'm a beginner on Fenics, and I'm having some trouble understanding the examples.
The particular issue I'm dealing with is the definition of Dirichlet boundary conditions. 

In the first demo:

def u0_boundary(x, on_boundary):
	return on_boundary
bc = DirichletBC(V, u0, u0_boundary)

The function u0_boundary returns on_boundary, but what value does on_boundary take??? It acts like a boolean, right? But what influence has the 'x' variable on it? I tried to track the path along debugging, but got lost...

Thanks a lot

Marcos Samudio

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.



Follow ups