closest_point(const Point<dim> &p) const;
/**
- * Return $i$-th unit tangential vector of a face of the reference cell.
- * The vectors are arranged such that the
- * cross product between the two vectors returns the unit normal vector.
+ * Return $i$-th unit tangent vector to a face of the reference cell.
+ * The vectors are arranged in such an order that the
+ * cross product between the two vectors returns the face normal vector.
*
* @pre $i$ must be between zero and `dim-1`.
*
*/
template <int dim>
Tensor<1, dim>
- unit_tangential_vectors(const unsigned int face_no,
- const unsigned int i) const;
+ face_tangent_vector(const unsigned int face_no, const unsigned int i) const;
+
+ /**
+ * Return $i$-th unit tangent vector to a face of the reference cell.
+ * The vectors are arranged in such an order that the
+ * cross product between the two vectors returns the face normal vector.
+ *
+ * @pre $i$ must be between zero and `dim-1`.
+ *
+ * @pre The template argument `dim` must equal the dimension
+ * of the space in which the reference cell you are querying
+ * lives (i.e., it must equal the result of get_dimension()).
+ *
+ * @deprecated Use face_tangent_vector() instead.
+ */
+ template <int dim>
+ DEAL_II_DEPRECATED_EARLY_WITH_COMMENT("Use face_tangent_vector() instead.")
+ Tensor<1, dim> unit_tangential_vectors(const unsigned int face_no,
+ const unsigned int i) const;
/**
* Return the unit normal vector of a face of the reference cell.
*/
template <int dim>
Tensor<1, dim>
- unit_normal_vectors(const unsigned int face_no) const;
+ face_normal_vector(const unsigned int face_no) const;
+
+ /**
+ * Return the unit normal vector of a face of the reference cell.
+ *
+ * @pre The template argument `dim` must equal the dimension
+ * of the space in which the reference cell you are querying
+ * lives (i.e., it must equal the result of get_dimension()).
+ *
+ * @deprecated Use face_normal_vector() instead.
+ */
+ template <int dim>
+ DEAL_II_DEPRECATED_EARLY_WITH_COMMENT("Use face_normal_vector() instead.")
+ Tensor<1, dim> unit_normal_vectors(const unsigned int face_no) const;
/**
* Return the number of orientations for a face in the ReferenceCell. For
inline Tensor<1, dim>
ReferenceCell::unit_tangential_vectors(const unsigned int face_no,
const unsigned int i) const
+{
+ return face_tangent_vector<dim>(face_no, i);
+}
+
+
+
+template <int dim>
+inline Tensor<1, dim>
+ReferenceCell::face_tangent_vector(const unsigned int face_no,
+ const unsigned int i) const
{
Assert(dim == get_dimension(),
ExcMessage("You can only call this function with arguments for "
template <int dim>
inline Tensor<1, dim>
ReferenceCell::unit_normal_vectors(const unsigned int face_no) const
+{
+ return face_normal_vector<dim>(face_no);
+}
+
+
+
+template <int dim>
+inline Tensor<1, dim>
+ReferenceCell::face_normal_vector(const unsigned int face_no) const
{
Assert(dim == get_dimension(),
ExcMessage("You can only call this function with arguments for "
Assert(*this == ReferenceCells::Triangle, ExcInternalError());
// Return the rotated vector
- return cross_product_2d(unit_tangential_vectors<dim>(face_no, 0));
+ return cross_product_2d(face_tangent_vector<dim>(face_no, 0));
}
else if (dim == 3)
{
- return cross_product_3d(unit_tangential_vectors<dim>(face_no, 0),
- unit_tangential_vectors<dim>(face_no, 1));
+ return cross_product_3d(face_tangent_vector<dim>(face_no, 0),
+ face_tangent_vector<dim>(face_no, 1));
}
DEAL_II_NOT_IMPLEMENTED();
unit_tangentials[i].resize(n_original_q_points);
std::fill(unit_tangentials[i].begin(),
unit_tangentials[i].end(),
- reference_cell.template unit_tangential_vectors<dim>(i, 0));
+ reference_cell.template face_tangent_vector<dim>(i, 0));
if (dim > 2)
{
unit_tangentials[n_faces + i].resize(n_original_q_points);
- std::fill(
- unit_tangentials[n_faces + i].begin(),
- unit_tangentials[n_faces + i].end(),
- reference_cell.template unit_tangential_vectors<dim>(i, 1));
+ std::fill(unit_tangentials[n_faces + i].begin(),
+ unit_tangentials[n_faces + i].end(),
+ reference_cell.template face_tangent_vector<dim>(i, 1));
}
}
}
for (unsigned int i = 0; i < n_faces; ++i)
{
data.unit_tangentials[i].resize(n_original_q_points);
- std::fill(
- data.unit_tangentials[i].begin(),
- data.unit_tangentials[i].end(),
- reference_cell.template unit_tangential_vectors<dim>(i, 0));
+ std::fill(data.unit_tangentials[i].begin(),
+ data.unit_tangentials[i].end(),
+ reference_cell.template face_tangent_vector<dim>(i, 0));
if (dim > 2)
{
data.unit_tangentials[n_faces + i].resize(
std::fill(
data.unit_tangentials[n_faces + i].begin(),
data.unit_tangentials[n_faces + i].end(),
- reference_cell.template unit_tangential_vectors<dim>(i, 1));
+ reference_cell.template face_tangent_vector<dim>(i, 1));
}
}
}