Thread Previous • Date Previous • Date Next • Thread Next |
phil marinier wrote:
**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?
Take a look at the demos. There are plenty of examples on how to apply Dirichlet bcs and use DirichletBC.
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 helpAlso 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.
http://www.fenics.org/wiki/Contact Garth
Thanks for your help Phil ------------------------------------------------------------------------ _______________________________________________ DOLFIN-dev mailing list DOLFIN-dev@xxxxxxxxxx http://www.fenics.org/mailman/listinfo/dolfin-dev
Thread Previous • Date Previous • Date Next • Thread Next |