← Back to team overview

dolfin team mailing list archive

[Question #92522]: Dirichlet boundary condition does not work for "pointwise"

 

New question #92522 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/92522

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[0] - 1.0) < 0.1 + DOLFIN_EPS ) &&
	(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

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.