I am very new to FEniCS, and I am learning to use it by looking at the Python demos given in the package and extracting what I need. This question is solely about how I define a slightly altered function space.
Suppose that my domain is the unit square, and I define:
define boundary
def u0_boundary(x):
tol = DOLFIN_EPS
return abs(x[0]) < tol or \
abs(x[1]) < tol or \
abs(x[0] - 1) < tol or \
abs(x[1] - 1) < tol
Create mesh and define function space
mesh = UnitSquareMesh(MeshD,MeshD)
I previously used
V = FunctionSpace(mesh,'Lagrange',2)
This gave me a nice set of functions on this mesh.
Now, for the problem I want to solve I need to make a new function space in which I define the following three points:
{a_1} = (0,1/2), {a_2} = (1/2,0), {a_3} = (1,1/2).
I want to alter the above function space V such that I get V_0 where
V_0 = v in V such that v = 0 on a_i for i = 1, 2, 3.
This is what I'm trying to do. I hope there's an easy way to do so.
Thanks for all of your help.