![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <mortar_coupling_manager.h>
Public Member Functions | |
| CouplingOperator (const Mapping< dim > &mapping, const DoFHandler< dim > &dof_handler, const AffineConstraints< Number > &constraints, const std::shared_ptr< CouplingEvaluationBase< dim, Number > > &evaluator, const std::shared_ptr< MortarManagerBase< dim > > &mortar_manager, const unsigned int bid_m, const unsigned int bid_p, const double sip_factor) | |
| const AffineConstraints< Number > & | get_affine_constraints () const |
| template<typename VectorType> | |
| void | vmult_add (VectorType &dst, const VectorType &src) const |
| template<typename VectorType> | |
| void | add_diagonal_entries (VectorType &diagonal) const |
| void | add_sparsity_pattern_entries (SparsityPatternBase &dsp) const |
| void | add_system_matrix_entries (TrilinosWrappers::SparseMatrix &system_matrix) const |
Protected Attributes | |
| unsigned int | q_data_size |
| const unsigned int | bid_m |
| const unsigned int | bid_p |
| std::vector< unsigned int > | relevant_dof_indices |
| unsigned int | n_dofs_per_cell |
| Utilities::MPI::NoncontiguousPartitioner | partitioner |
| std::vector< types::global_dof_index > | dof_indices |
| std::vector< types::global_dof_index > | dof_indices_ghost |
| std::vector< Point< dim, Number > > | all_points_ref |
| CouplingEvaluationData< dim, Number > | data |
| AffineConstraints< Number > | constraints_extended |
| std::shared_ptr< const Utilities::MPI::Partitioner > | partitioner_extended |
| std::shared_ptr< CouplingEvaluationBase< dim, Number > > | evaluator |
| std::shared_ptr< MortarManagerBase< dim > > | mortar_manager |
Private Member Functions | |
| Number | compute_penalty_parameter (const typename Triangulation< dim >::cell_iterator &cell) const |
| Point< dim > | get_face_center (const typename Triangulation< dim >::cell_iterator &cell, const typename Triangulation< dim >::face_iterator &face) const |
| std::vector< types::global_dof_index > | get_dof_indices (const typename DoFHandler< dim >::active_cell_iterator &cell) const |
Static Private Member Functions | |
| static Number | compute_penalty_factor (const unsigned int degree, const Number factor) |
Private Attributes | |
| const Mapping< dim > & | mapping |
| const DoFHandler< dim > & | dof_handler |
| std::vector< std::tuple< std::vector< double >, typename Triangulation< dim >::active_cell_iterator, std::vector< Point< dim > >, typename Triangulation< dim >::active_cell_iterator, std::vector< Point< dim > >, std::vector< Tensor< 1, dim, Number > >, Number > > | all_intersections |
Base class for the Coupling Operator Base.
Definition at line 802 of file mortar_coupling_manager.h.
| CouplingOperator< dim, Number >::CouplingOperator | ( | const Mapping< dim > & | mapping, |
| const DoFHandler< dim > & | dof_handler, | ||
| const AffineConstraints< Number > & | constraints, | ||
| const std::shared_ptr< CouplingEvaluationBase< dim, Number > > & | evaluator, | ||
| const std::shared_ptr< MortarManagerBase< dim > > & | mortar_manager, | ||
| const unsigned int | bid_m, | ||
| const unsigned int | bid_p, | ||
| const double | sip_factor ) |
Mortar coupling operator constructor.
| [in] | mapping | Mapping associated to the domain |
| [in] | dof_handler | DoFHandler associated to the triangulation |
| [in] | constraints | Constraints object |
| [in] | evaluator | Mortar evaluation data |
| [in] | mortar_manager | Mortar manager |
| [in] | bid_m | Boundary ID of the face whose outwards-pointing normal shows in the same direction as the normal provided by mortar_manager. |
| [in] | bid_p | Boundary ID of the face whose outwards-pointing normal shows in the opposite direction as the normal provided by mortar_manager. |
| [in] | sip_factor | Penalty factor used in SIPG term |
Definition at line 976 of file mortar_coupling_manager.cc.
References all_points_ref, bid_m, bid_p, compute_penalty_factor(), compute_penalty_parameter(), constraints_extended, data, dof_handler, dof_indices, dof_indices_ghost, evaluator, get_dof_indices(), get_face_center(), mapping, mortar_manager, n_dofs_per_cell, partitioner, partitioner_extended, q_data_size, and relevant_dof_indices.
| template void CouplingOperator< dim, Number >::add_diagonal_entries | ( | VectorType & | diagonal | ) | const |
Add mortar coupling terms in diagonal entries.
| [in,out] | diagonal | Matrix diagonal |
Definition at line 1511 of file mortar_coupling_manager.cc.
References all_points_ref, bid_m, bid_p, constraints_extended, data, dof_handler, evaluator, get_dof_indices(), mortar_manager, n_dofs_per_cell, partitioner_extended, and q_data_size.
| void CouplingOperator< dim, Number >::add_sparsity_pattern_entries | ( | SparsityPatternBase & | dsp | ) | const |
Add mortar coupling terms in the sparsity pattern.
| [in,out] | dsp | Dynamic Sparsity Pattern object |
Definition at line 1586 of file mortar_coupling_manager.cc.
References constraints_extended, dof_indices, dof_indices_ghost, and n_dofs_per_cell.
| void CouplingOperator< dim, Number >::add_system_matrix_entries | ( | TrilinosWrappers::SparseMatrix & | system_matrix | ) | const |
Add mortar coupling terms in the system matrix.
| [in,out] | system_matrix | System matrix |
Definition at line 1605 of file mortar_coupling_manager.cc.
References all_points_ref, bid_m, bid_p, constraints_extended, data, dof_handler, dof_indices, dof_indices_ghost, evaluator, mortar_manager, n_dofs_per_cell, partitioner, and q_data_size.
|
staticprivate |
Compute penalty factor used in weak imposition of coupling at the rotor-stator interface.
| [in] | degree | Polynomial degree of the FE approximation |
| [in] | factor | Penalty factor (akin to penalty factor in SIPG) |
Definition at line 1315 of file mortar_coupling_manager.cc.
|
private |
Compute penalty parameter in a cell.
| [in] | cell | Cell iterator |
Definition at line 1323 of file mortar_coupling_manager.cc.
References bid_m, bid_p, dof_handler, and mapping.
| const AffineConstraints< Number > & CouplingOperator< dim, Number >::get_affine_constraints | ( | ) | const |
Return object containing problem constraints.
Definition at line 1308 of file mortar_coupling_manager.cc.
References constraints_extended.
|
private |
Returns dof indices.
| [in] | cell | Cell iterator |
Definition at line 1379 of file mortar_coupling_manager.cc.
References dof_handler, n_dofs_per_cell, and relevant_dof_indices.
|
private |
Returns the point corresponding to the cell center.
| [in] | cell | Cell iterator |
| [in] | face | Face iterator |
Definition at line 1369 of file mortar_coupling_manager.cc.
References mapping.
| template void CouplingOperator< dim, Number >::vmult_add | ( | VectorType & | dst, |
| const VectorType & | src ) const |
Add matrix-vector multiplication.
| [in,out] | dst | Destination vector holding the result |
| [in] | src | Input source vector |
Definition at line 1397 of file mortar_coupling_manager.cc.
References all_points_ref, bid_m, bid_p, constraints_extended, data, dof_handler, evaluator, get_dof_indices(), mortar_manager, n_dofs_per_cell, partitioner, partitioner_extended, and q_data_size.
|
private |
Definition at line 937 of file mortar_coupling_manager.h.
|
protected |
Vectors storing information at quadrature points for all cells at the rotor-stator interface
Definition at line 962 of file mortar_coupling_manager.h.
|
protected |
Boundary ID of the face whose outwards-pointing normal shows in the same direction as the normal provided by mortar_manager
Definition at line 945 of file mortar_coupling_manager.h.
|
protected |
Boundary ID of the face whose outwards-pointing normal shows in the opposite direction as the normal provided by mortar_manager
Definition at line 948 of file mortar_coupling_manager.h.
|
protected |
Constraints extended according to mortar entries.
Definition at line 966 of file mortar_coupling_manager.h.
|
protected |
Definition at line 963 of file mortar_coupling_manager.h.
|
private |
DoFHandler associated to the triangulation.
Definition at line 928 of file mortar_coupling_manager.h.
|
protected |
Definition at line 957 of file mortar_coupling_manager.h.
|
protected |
Definition at line 958 of file mortar_coupling_manager.h.
|
protected |
Definition at line 969 of file mortar_coupling_manager.h.
|
private |
Mapping associated to the domain.
Definition at line 926 of file mortar_coupling_manager.h.
|
protected |
Definition at line 970 of file mortar_coupling_manager.h.
|
protected |
Number of DoFs per cell.
Definition at line 953 of file mortar_coupling_manager.h.
|
protected |
Definition at line 955 of file mortar_coupling_manager.h.
|
protected |
Definition at line 967 of file mortar_coupling_manager.h.
|
protected |
Number of data points per quadrature point.
Definition at line 941 of file mortar_coupling_manager.h.
|
protected |
List of relevant DoF indices per cell.
Definition at line 951 of file mortar_coupling_manager.h.