Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
CylindricalHelix< dim > Class Template Reference

#include <shape.h>

Inheritance diagram for CylindricalHelix< dim >:
[legend]

Public Member Functions

 CylindricalHelix (double radius_helix, double radius_disk, double height, double pitch, const Point< dim > &position, const Tensor< 1, 3 > &orientation)
double value (const Point< dim > &evaluation_point, const unsigned int component=0) const override
std::shared_ptr< Shape< dim > > static_copy () const override
double displaced_volume () override
Public Member Functions inherited from Shape< dim >
 Shape (double radius, const Point< dim > &position, const Tensor< 1, 3 > &orientation)
virtual double value_with_cell_guess (const Point< dim > &evaluation_point, const typename DoFHandler< dim >::active_cell_iterator &cell, const unsigned int component=0)
virtual std::tuple< double, Tensor< 1, dim >, Point< dim > > distance_to_shape_with_cell_guess (Shape< dim > &shape, const typename DoFHandler< dim >::active_cell_iterator &cell, std::vector< Point< dim > > &candidate_points, double precision=1e-6, bool exact_distance_outside_of_contact=false)
virtual std::tuple< double, Tensor< 1, dim >, Point< dim > > distance_to_shape (Shape< dim > &shape, std::vector< Point< dim > > &candidate_points, double precision=1e-6, bool exact_distance_outside_of_contact=false)
bool bounding_box_contact (Shape< dim > &shape)
virtual Tensor< 1, dim > gradient_with_cell_guess (const Point< dim > &evaluation_point, const typename DoFHandler< dim >::active_cell_iterator &cell, const unsigned int component=0)
virtual void closest_surface_point (const Point< dim > &p, Point< dim > &closest_point, const typename DoFHandler< dim >::active_cell_iterator &cell_guess)
virtual void closest_surface_point (const Point< dim > &p, Point< dim > &closest_point) const
virtual double local_curvature_radius (Point< dim > p)
virtual double local_curvature_radius_with_cell_guess (const Point< dim > &p, const typename DoFHandler< dim >::active_cell_iterator &cell)
virtual void set_position (const Point< dim > &new_position)
virtual void set_orientation (const Tensor< 1, 3 > &new_orientation)
virtual Point< dim > get_position ()
virtual Tensor< 1, 3 > get_orientation ()
virtual Tensor< 2, 3 > get_rotation_matrix ()
virtual Tensor< 1, dim > get_bounding_box_half_length ()
virtual Point< dim > get_bounding_box_center ()
virtual std::shared_ptr< Manifold< dim - 1, dim > > get_shape_manifold ()
virtual void clear_cache ()
Point< dim > align_and_center (const Point< dim > &evaluation_point) const
Point< dim > reverse_align_and_center (const Point< dim > &evaluation_point) const
std::string point_to_string (const Point< dim > &evaluation_point) const
void set_part_of_a_composite (const bool is_part_of_a_composite)
virtual void set_layer_thickening (const double the_layer_thickening)

Private Attributes

double radius
double height
double pitch
double radius_disk

Additional Inherited Members

Public Types inherited from Shape< dim >
enum class  ShapeType : std::int8_t {
  sphere , hyper_rectangle , ellipsoid , torus ,
  cone , cylinder , cylindrical_tube , cylindrical_helix ,
  cut_hollow_sphere , death_star , composite , rbf ,
  opencascade , superquadric , plane
}
Static Public Member Functions inherited from Shape< dim >
static double smooth_max (const double a, const double b, const double smooth_factor=10)
static Tensor< 1, 3 > rotation_matrix_to_xyz_angles (Tensor< 2, 3 > &rotation_matrix_representation)
Public Attributes inherited from Shape< dim >
enum Shape::ShapeType type
double effective_radius
std::string additional_info_on_shape
Tensor< 1, dim > bounding_box_half_length
Point< dim > bounding_box_center
Protected Attributes inherited from Shape< dim >
Point< dim > position
Tensor< 1, 3 > orientation
std::unordered_map< std::string, double > value_cache
std::unordered_map< std::string, Tensor< 1, dim > > gradient_cache
std::unordered_map< std::string, Point< dim > > closest_point_cache
bool part_of_a_composite
Tensor< 2, 3 > rotation_matrix
double layer_thickening

Detailed Description

template<int dim>
class CylindricalHelix< dim >

Definition at line 3322 of file shape.h.

Constructor & Destructor Documentation

◆ CylindricalHelix()

template<int dim>
CylindricalHelix< dim >::CylindricalHelix ( double radius_helix,
double radius_disk,
double height,
double pitch,
const Point< dim > & position,
const Tensor< 1, 3 > & orientation )
inline

Constructs a cylindrical helix by extruding a disk through a helicoidal path aligned with the z axis when orientation is set to 0;0;0.

Parameters
radius_helixthe radius of the helicoidal path
radius_diskthe radius of the disk that is extruded along the helicoidal path
heightthe total height of the helicoidal path
pitchthe height difference between each helix loop around its axis
positionthe position of the helix base
orientationthe orientation of the helix axis compared to the z axis

Definition at line 3336 of file shape.h.

References Shape< dim >::bounding_box_center, Shape< dim >::bounding_box_half_length, height, Shape< dim >::orientation, pitch, Shape< dim >::position, radius, radius_disk, and Shape< dim >::Shape().

Member Function Documentation

◆ displaced_volume()

template<int dim>
double CylindricalHelix< dim >::displaced_volume ( )
overridevirtual

Return the volume displaced by the solid.

Reimplemented from Shape< dim >.

Definition at line 2680 of file shape.cc.

◆ static_copy()

template<int dim>
std::shared_ptr< Shape< dim > > CylindricalHelix< dim >::static_copy ( ) const
overridevirtual

Return a pointer to a copy of the Shape.

Implements Shape< dim >.

Definition at line 2666 of file shape.cc.

References height, Shape< dim >::orientation, pitch, Shape< dim >::position, radius, and radius_disk.

◆ value()

template<int dim>
double CylindricalHelix< dim >::value ( const Point< dim > & evaluation_point,
const unsigned int component = 0 ) const
overridevirtual

Return the evaluation of the signed distance function of this solid at the given point evaluation point.

Parameters
evaluation_pointThe point at which the function will be evaluated
componentThis parameter is not used, but it is necessary because Shapes inherit from the Function class of deal.II.

Implements Shape< dim >.

Definition at line 2457 of file shape.cc.

References Shape< dim >::align_and_center(), Shape< dim >::effective_radius, height, Shape< dim >::layer_thickening, phase, pitch, radius, and radius_disk.

Member Data Documentation

◆ height

template<int dim>
double CylindricalHelix< dim >::height
private

Definition at line 3385 of file shape.h.

◆ pitch

template<int dim>
double CylindricalHelix< dim >::pitch
private

Definition at line 3386 of file shape.h.

◆ radius

template<int dim>
double CylindricalHelix< dim >::radius
private

Definition at line 3384 of file shape.h.

◆ radius_disk

template<int dim>
double CylindricalHelix< dim >::radius_disk
private

Definition at line 3387 of file shape.h.


The documentation for this class was generated from the following files: