4#ifndef lethe_ib_stencil_h
5#define lethe_ib_stencil_h
60 virtual std::tuple<Point<dim>, std::vector<Point<dim>>>
62 const unsigned int degree,
63 const double length_ratio,
65 const Point<dim> &dof_point,
66 const typename DoFHandler<dim>::active_cell_iterator &cell_guess);
71 virtual std::tuple<Point<dim>, std::vector<Point<dim>>>
73 const double length_ratio,
75 const Point<dim> &dof_point);
90 const Point<dim> &dof_point,
91 const typename DoFHandler<dim>::active_cell_iterator &cell_guess);
112 virtual std::vector<double>
113 coefficients(
const unsigned int degree,
const double length_ratio);
129 const Point<dim> &dof_point,
130 const unsigned int component,
131 const typename DoFHandler<dim>::active_cell_iterator &cell_guess);
138 const Point<dim> &dof_point,
139 const unsigned int component);
148 p_base(
const unsigned int degree);
Define the behavior of a specific particle for the sharp interface IB solver.
Define where the sharp immersed-boundaries are imposed on Eulerian grid.
void p_base(const unsigned int degree)
Return the points on the reference 1D element for the polynomial base.
virtual std::tuple< Point< dim >, std::vector< Point< dim > > > support_points_for_interpolation(const unsigned int degree, const double length_ratio, IBParticle< dim > &p, const Point< dim > &dof_point, const typename DoFHandler< dim >::active_cell_iterator &cell_guess)
Find the DOF at which we try to apply the IB by interpolation and the location of the support points ...
virtual double ib_velocity(IBParticle< dim > &p, const Point< dim > &dof_point, const unsigned int component, const typename DoFHandler< dim >::active_cell_iterator &cell_guess)
Return the velocity of the IB used in the RHS of the equation.
virtual std::vector< double > coefficients(const unsigned int degree, const double length_ratio)
Return the coefficients (weights) of the stencil.
virtual Point< dim > point_for_cell_detection(IBParticle< dim > &p, const Point< dim > &dof_point, const typename DoFHandler< dim >::active_cell_iterator &cell_guess)
Define the point used to define the cell used for the stencil calculation.
virtual unsigned int number_of_interpolation_support_points(const unsigned int degree)
Return the number of points used by the interpolation stencil (excluding the dof itself) for a stenci...
std::vector< double > reference_points
Points of the reference 1D stencil.