hi, all:
I want to solve this problem, as follows
loop:
1, \laplace(p) = f,
with a variable boundary conditions.
on the boudary, p = m - n; where m and n can be solve or given by other methods.
2, update m
3, update n
end loop
can anyone tells me how to define the variable boundary conditions, and how to implement this idea ?
By the way, I have one way to implement the idea, by point to point constrain.
#
### ############## some code
u1 = Constant(0.0)
u2 = Constant(0.25)
u3 = Constant(0.5)
u4 = Constant(0.75)
u5 = Constant(1.0)
bc_point1 = DirichletBC(V,u1,point1,"pointwise")
bc_point2 = DirichletBC(V,u2,point2,"pointwise")
bc_point3 = DirichletBC(V,u3,point3,"pointwise")
bc_point4 = DirichletBC(V,u4,point4,"pointwise")
bc_point5 = DirichletBC(V,u5,point5,"pointwise")
bc_point = [bc_point1,bc_point2,bc_point3,bc_point4,bc_point5]
#
however, I do not know how to define lots of boundary points automatically.
Could you help me, or give some comments ?