![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <mortar_coupling_manager.h>
Public Member Functions | |
| template<int dim2> | |
| MortarManagerCircle (const std::vector< unsigned int > &n_subdivisions, const std::vector< double > &interface_dimensions, const Quadrature< dim2 > &quadrature, const double rotation_angle, const unsigned int rotation_axis_direction=2, const std::vector< double > &stage_heights={0.0, 1.0}, const Point< dim > ¢er_of_rotation=Point< dim >(), const double pre_rotation_angle=0.0) | |
| template<int dim2> | |
| MortarManagerCircle (const Quadrature< dim2 > &quadrature, const Mapping< dim > &mapping, const DoFHandler< dim > &dof_handler, const Parameters::Mortar< dim > &mortar_parameters) | |
| Public Member Functions inherited from MortarManagerBase< dim > | |
| template<int dim2> | |
| MortarManagerBase (const std::vector< unsigned int > &n_subdivisions, const std::vector< double > &interface_dimensions, const Quadrature< dim2 > &quadrature, const double rotation_angle, const unsigned int rotation_axis_direction=2, const std::vector< double > &stage_heights={0.0, 1.0}) | |
| virtual | ~MortarManagerBase ()=default |
| bool | is_mesh_aligned () const |
| unsigned int | get_n_total_mortars () const |
| unsigned int | get_n_mortars () const |
| std::vector< unsigned int > | get_mortar_indices (const Point< dim > &face_center, const bool is_inner) const |
| unsigned int | get_n_total_points () const |
| unsigned int | get_n_points () const |
| std::vector< Point< dim > > | get_points (const Point< dim > &face_center, const bool is_inner) const |
| std::vector< Point< std::max(1, dim - 1)> > | get_points_ref (const Point< dim > &face_center, const bool is_inner) const |
| std::vector< double > | get_weights (const Point< dim > &face_center, const bool is_inner) const |
| std::vector< Tensor< 1, dim, double > > | get_normals (const Point< dim > &face_center, const bool is_inner) const |
Protected Member Functions | |
| Point< dim > | from_1D (const double angle_rad) const override |
| double | to_1D (const Point< dim > &point) const override |
| Tensor< 1, dim, double > | get_normal (const Point< dim > &point) const override |
| Protected Member Functions inherited from MortarManagerBase< dim > | |
| std::tuple< unsigned int, unsigned int, unsigned int > | get_config (const Point< dim > &face_center, const bool is_inner) const |
Protected Attributes | |
| const double | pre_rotation_angle |
| const Point< dim > | center_of_rotation |
| Protected Attributes inherited from MortarManagerBase< dim > | |
| Quadrature< std::max(1, dim - 1)> | quadrature |
| const unsigned int | n_quadrature_points |
| const double | rotation_angle |
| const unsigned int | rotation_axis_direction |
| const std::vector< double > | stage_heights |
Additional Inherited Members | |
| Public Attributes inherited from MortarManagerBase< dim > | |
| std::vector< unsigned int > | n_subdivisions |
| std::vector< double > | interface_dimensions |
Mortar manager class for circular interface.
Definition at line 316 of file mortar_coupling_manager.h.
| MortarManagerCircle< dim >::MortarManagerCircle | ( | const std::vector< unsigned int > & | n_subdivisions, |
| const std::vector< double > & | interface_dimensions, | ||
| const Quadrature< dim2 > & | quadrature, | ||
| const double | rotation_angle, | ||
| const unsigned int | rotation_axis_direction = 2, | ||
| const std::vector< double > & | stage_heights = {0.0, 1.0}, | ||
| const Point< dim > & | center_of_rotation = Point<dim>(), | ||
| const double | pre_rotation_angle = 0.0 ) |
Class constructor for circular mortar interface used in Poisson/Stokes test cases TODO: Move Poisson/Stokes tests to prototypes and remove this constructor.
| dim2 | Quadrature dimension |
| [in] | n_subdivisions | Number of cells at the interface between inner and outer domains |
| [in] | interface_dimensions | Vector containing the radius at the mortar interface and the domain length in the direction of the rotation axis |
| [in] | quadrature | Quadrature for local cell operations |
| [in] | rotation_angle | Rotation angle for the inner domain |
| [in] | rotation_axis_direction | Direction of the rotation axis |
| [in] | stage_heights | Vector containing the unique vertex heights at the mortar interface |
| [in] | center_of_rotation | Center of rotation of the inner domain |
| [in] | pre_rotation_angle | Initial rotation angle used for computing mortar locations, accounting for cases here the element edges are not aligned with the x axis |
Definition at line 444 of file mortar_coupling_manager.h.
References center_of_rotation, MortarManagerBase< dim >::interface_dimensions, MortarManagerBase< dim >::MortarManagerBase(), MortarManagerBase< dim >::n_subdivisions, pre_rotation_angle, MortarManagerBase< dim >::quadrature, MortarManagerBase< dim >::rotation_angle, MortarManagerBase< dim >::rotation_axis_direction, and MortarManagerBase< dim >::stage_heights.
| MortarManagerCircle< dim >::MortarManagerCircle | ( | const Quadrature< dim2 > & | quadrature, |
| const Mapping< dim > & | mapping, | ||
| const DoFHandler< dim > & | dof_handler, | ||
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Class constructor for circular interface used within the Navier-Stokes base.
| dim2 | Quadrature dimension |
| [in] | quadrature | Quadrature for local cell operations |
| [in] | mapping | Mapping associated to the domain |
| [in] | dof_handler | DoFHandler associated to the triangulation |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 466 of file mortar_coupling_manager.h.
References center_of_rotation, compute_interface_dimensions_circular(), compute_number_interface_cells(), compute_stage_heights(), construct_quadrature(), MortarManagerCircle(), MortarManagerBase< dim >::quadrature, and MortarManagerBase< dim >::rotation_axis_direction.
|
overrideprotectedvirtual |
Convert angle (in radians) to quadrature point in real space.
| [in] | angle_rad | Angle (in radians) |
Implements MortarManagerBase< dim >.
Definition at line 919 of file mortar_coupling_manager.cc.
References center_of_rotation, MortarManagerBase< dim >::interface_dimensions, pre_rotation_angle, radius_to_point(), and MortarManagerBase< dim >::rotation_axis_direction.
|
overrideprotectedvirtual |
Return the normal for a given quadrature point.
| [in] | point | Point in cartesian coordinates |
Implements MortarManagerBase< dim >.
Definition at line 940 of file mortar_coupling_manager.cc.
References center_of_rotation, and MortarManagerBase< dim >::rotation_axis_direction.
|
overrideprotectedvirtual |
Convert quadrature point in real space to angle (in radians).
| [in] | point | Point in cartesian coordinates |
Implements MortarManagerBase< dim >.
Definition at line 929 of file mortar_coupling_manager.cc.
References center_of_rotation, point_to_angle(), pre_rotation_angle, and MortarManagerBase< dim >::rotation_axis_direction.
|
protected |
Center of rotation of the inner domain.
Definition at line 381 of file mortar_coupling_manager.h.
|
protected |
Initial rotation angle used for computing mortar locations, accounting for cases here the element edges are not aligned with the x axis
Definition at line 378 of file mortar_coupling_manager.h.