dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #16823
Re: [Question #92522]: Dirichlet boundary condition does not work for "pointwise"
Question #92522 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/92522
Andy R Terrel posted a new comment:
I believe this comes from the fact that the pointwise call always sets
on_boundary to be false:
http://bazaar.launchpad.net/~dolfin-
core/dolfin/main/annotate/head%3A/dolfin/fem/DirichletBC.cpp#L653
Also this method for a pinpoint will constrain more of the pressure than
you want, for better results do:
class Corner : public SubDomain
{
public:
bool inside(const double* x, bool on_boundary) const
{
return (std::abs(x[0] - 1.0) < DOLFIN_EPS ) &&
(std::abs(x[1] - 1.0) < DOLFIN_EPS);
}
};
Of course you have to apply this as pointwise because the geometric and
topological searches only look at facets and this is only hitting one
point.
-- Andy
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.