Dirichlet boundary condition does not work for "pointwise"
The Dirichlet boundary condition does not work if I chose the "pointwise" setting:
In Stokes demo I define my subdomain as:
class Corner : public SubDomain
{
public:
bool inside(const double* x, bool on_boundary) const
{
return on_boundary &&
(std::abs(x[1] - 1.0) < 0.1 + DOLFIN_EPS);
}
};
Then I apply for zero BC for pressure in this subdomain:
Corner cr;
Constant zero(2, 0.0);
DirichletBC bc(W1, zero, cr, "pointwise");
// DirichletBC bc(W1, zero, cr, "geometric");
However "geometric" and "topological" options it works.
/murtazo
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #490987.
Can you help with this problem?
Provide an answer of your own, or ask Murtazo Nazarov for more information if necessary.