![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <mortar_coupling_manager.h>
Public Member Functions | |
| 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 |
Public Attributes | |
| std::vector< unsigned int > | n_subdivisions |
| std::vector< double > | interface_dimensions |
Protected Member Functions | |
| std::tuple< unsigned int, unsigned int, unsigned int > | get_config (const Point< dim > &face_center, const bool is_inner) const |
| virtual Point< dim > | from_1D (const double angle_rad) const =0 |
| virtual double | to_1D (const Point< dim > &point) const =0 |
| virtual Tensor< 1, dim, double > | get_normal (const Point< dim > &point) const =0 |
Protected Attributes | |
| 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 |
Base class for the mortar manager.
Definition at line 25 of file mortar_coupling_manager.h.
| MortarManagerBase< dim >::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} ) |
Mortar manager base 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 |
Definition at line 426 of file mortar_coupling_manager.h.
References interface_dimensions, n_quadrature_points, n_subdivisions, quadrature, rotation_angle, rotation_axis_direction, and stage_heights.
|
virtualdefault |
Default destructor.
|
protectedpure virtual |
Convert angle (in radians) to quadrature point in real space.
| [in] | angle_rad | Angle (in radians) |
Implemented in MortarManagerCircle< dim >, and MortarManagerLinear< dim >.
|
protected |
Returns the mesh alignment type and cell index.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
The id_out_plane corresponds to indexes along the rotation axis, and it is necessary only for 3D problems
Definition at line 439 of file mortar_coupling_manager.cc.
References is_mesh_aligned(), n_subdivisions, rotation_angle, stage_heights, and to_1D().
| std::vector< unsigned int > MortarManagerBase< dim >::get_mortar_indices | ( | const Point< dim > & | face_center, |
| const bool | is_inner ) const |
Returns the indices of all mortars at both sides of the interface.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
Definition at line 76 of file mortar_coupling_manager.cc.
References get_config(), and n_subdivisions.
| unsigned int MortarManagerBase< dim >::get_n_mortars | ( | ) | const |
Returns the number of mortar cells connecting rotor-stator regular cells at the interface 1 = rotor-stator meshes are aligned. Only one mortar cell is needed to connect each rotor-stator regular cell pair 2 = rotor-stator meshes are not aligned. Two mortar cells are linked to each rotor or stator regular cell.
Definition at line 63 of file mortar_coupling_manager.cc.
References is_mesh_aligned().
| unsigned int MortarManagerBase< dim >::get_n_points | ( | ) | const |
Returns the number of quadrature points at the mortar cells connected to a given cell.
Definition at line 145 of file mortar_coupling_manager.cc.
References get_n_mortars(), and n_quadrature_points.
| unsigned int MortarManagerBase< dim >::get_n_total_mortars | ( | ) | const |
Returns the total number of mortars.
Definition at line 40 of file mortar_coupling_manager.cc.
References is_mesh_aligned(), and n_subdivisions.
| unsigned int MortarManagerBase< dim >::get_n_total_points | ( | ) | const |
Returns the total number of quadrature points at all mortar cells.
Definition at line 135 of file mortar_coupling_manager.cc.
References get_n_total_mortars(), and n_quadrature_points.
|
protectedpure virtual |
Return the normal for a given quadrature point.
| [in] | point | Point in cartesian coordinates |
Implemented in MortarManagerCircle< dim >, and MortarManagerLinear< dim >.
| std::vector< Tensor< 1, dim, double > > MortarManagerBase< dim >::get_normals | ( | const Point< dim > & | face_center, |
| const bool | is_inner ) const |
Returns the normal vector for the quadrature points.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
Definition at line 421 of file mortar_coupling_manager.cc.
References get_normal(), and get_points().
| std::vector< Point< dim > > MortarManagerBase< dim >::get_points | ( | const Point< dim > & | face_center, |
| const bool | is_inner ) const |
Returns the coordinates of the quadrature points at both sides of the interface in the real space.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
Definition at line 155 of file mortar_coupling_manager.cc.
References from_1D(), get_config(), n_quadrature_points, n_subdivisions, quadrature, rotation_angle, rotation_axis_direction, and stage_heights.
| std::vector< Point< std::max(1, dim - 1)> > MortarManagerBase< dim >::get_points_ref | ( | const Point< dim > & | face_center, |
| const bool | is_inner ) const |
Returns the coordinates of the quadrature points at both sides of the interface in the reference space.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
Definition at line 262 of file mortar_coupling_manager.cc.
References get_config(), n_quadrature_points, n_subdivisions, quadrature, and rotation_angle.
| std::vector< double > MortarManagerBase< dim >::get_weights | ( | const Point< dim > & | face_center, |
| const bool | is_inner ) const |
Returns the weights of the quadrature points at both sides of the interface.
| [in] | face_center | Face center |
| [in] | is_inner | Boolean that indicates whether the face is part of the rotor (inner) side of the mortar interface |
Definition at line 342 of file mortar_coupling_manager.cc.
References get_config(), interface_dimensions, n_quadrature_points, n_subdivisions, quadrature, rotation_angle, and stage_heights.
| bool MortarManagerBase< dim >::is_mesh_aligned | ( | ) | const |
Verify if cells of the inner and outer domains are aligned.
Definition at line 25 of file mortar_coupling_manager.cc.
References n_subdivisions, and rotation_angle.
|
protectedpure virtual |
Convert quadrature point in real space to angle (in radians).
| [in] | point | Point in cartesian coordinates |
Implemented in MortarManagerCircle< dim >, and MortarManagerLinear< dim >.
| std::vector<double> MortarManagerBase< dim >::interface_dimensions |
Vector containing the radius at the mortar interface and the domain length in the direction of the rotation axis
Definition at line 151 of file mortar_coupling_manager.h.
|
protected |
Number of quadrature points per cell.
Definition at line 204 of file mortar_coupling_manager.h.
| std::vector<unsigned int> MortarManagerBase< dim >::n_subdivisions |
Number of cells at the interface between inner and outer domains.
Definition at line 148 of file mortar_coupling_manager.h.
|
protected |
Mortar quadrature.
Definition at line 202 of file mortar_coupling_manager.h.
|
protected |
Rotation angle for the inner domain.
Definition at line 206 of file mortar_coupling_manager.h.
|
protected |
Direction of the rotation axis (x=0, y=1, z=2).
Definition at line 208 of file mortar_coupling_manager.h.
|
protected |
Stage heights at the mortar interface along the rotation axis in 3D problems. A stage is defined as a plane perpendicular to the rotation axis containing vertices of the same height.
Definition at line 212 of file mortar_coupling_manager.h.