|
| | Plane (const dealii::Point< dim, number > ¢er_of_wall, const dealii::Tensor< 1, dim, number > &normal, const std::array< number, dim - 1 > &half_extents, const dealii::Tensor< 1, dim, number > &first_tangent_direction=dealii::Tensor< 1, dim, number >()) |
| |
| dealii::Tensor< 1, dim, number > | gradient (const dealii::Point< dim, number > &x, const unsigned int component=0) const override |
| |
| number | value (const dealii::Point< dim, number > &x, const unsigned int component=0) const override |
| |
|
| dealii::Point< dim, number > | center_of_wall |
| | The center of the rectangular wall plane.
|
| |
| dealii::Tensor< 1, dim, number > | normal |
| | The normal of the wall plane.
|
| |
| std::array< dealii::Tensor< 1, dim, number >, dim - 1 > | tangents |
| | The unit tangent directions spanning the wall plane (one in 2D, two in 3D).
|
| |
| std::array< number, dim - 1 > | half_extents |
| | The half-widths of the wall along each tangent direction.
|
| |
| const number | tolerance = 1e-12 |
| | Tolerance for the geometric consistency checks and for detecting points on the wall.
|
| |
template<int dim, typename number>
class MeltPoolDG::Functions::Distance::Plane< dim, number >
Distance function of a finite (rectangular) wall segment: described by its center_of_wall, its unit normal, and the in-plane tangent direction(s) along which the wall extends. In 2D there is a single tangent direction, perpendicular to the normal; in 3D there are two, spanned by first_tangent_direction and its cross product with the normal. The half_extents give the size of the wall: its half-width along each of these tangent directions.
template<int dim, typename number >
Return the distance from x to the closest point on the finite wall as a scalar value. For points whose projection onto the wall plane lies within the wall's extents, this is the distance along the normal; otherwise, it is the distance to the closest point on the wall's boundary (edge or corner). Since the distance function is scalar-valued, component must be 0; any other value triggers an exception in debug mode.