dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #14473
DirichletBC
It seems like I can only use a Function of size = 1 when I construct a DirichletBC. If this is true, how can I set the values at a boundary?
I am trying to set Dirichlet boundary conditions at each node along a boundary of my domain. I calculate the std::vector of values I would like to use to set the boundary conditions. I can then create a dolfin::Constant equal to my vector. When I try to use this Constant in my DirichletBC, it blows up, segmentation errors.
I earlier tried to do the same with a regular dolfin::Function but because I have to have a FunctionSpace when declaring a Function, every time I set the Function equal to a double*, I have to define that double* over the entire domain, which is tedious, and could possibly lead to errors depending on how DirichletBC works. It also didn't seem to work, but it could have been a different bug.
Please help
Also a stupid question. I subscribed to this mailing list, but it seems these emails go to a forum thread somewhere, and the emails are just automatic notifications of stuff people have posted? is this true and where to I find that page? Sorry, I'm new to all this.
Thanks for your help
Phil
Follow ups