![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <deal.II/base/config.h>#include <core/lethe_grid_tools.h>#include <core/parameters.h>#include <core/utilities.h>#include <deal.II/base/mpi_noncontiguous_partitioner.h>#include <deal.II/fe/fe_system.h>#include <deal.II/matrix_free/fe_point_evaluation.h>Go to the source code of this file.
Functions | |
| template<int dim> | |
| std::vector< unsigned int > | compute_number_interface_cells (const Triangulation< dim > &triangulation, const Parameters::Mortar< dim > &mortar_parameters) |
| template<int dim> | |
| std::tuple< std::vector< double >, double > | compute_interface_dimensions_circular (const Triangulation< dim > &triangulation, const Mapping< dim > &mapping, const Parameters::Mortar< dim > &mortar_parameters) |
| template<int dim> | |
| std::pair< double, double > | compute_interface_dimensions_linear (const Triangulation< dim > &triangulation, const Mapping< dim > &mapping, const Parameters::Mortar< dim > &mortar_parameters) |
| template<int dim> | |
| Quadrature< dim > | construct_quadrature (const Quadrature< dim > &quadrature, const Parameters::Mortar< dim > &mortar_parameters) |
| template<int dim> | |
| std::vector< double > | compute_stage_heights (const Triangulation< dim > &triangulation, const Parameters::Mortar< dim > &mortar_parameters) |
| template<int dim> | |
| void | mortar_workload_imbalance (const Triangulation< dim > &triangulation, const Parameters::Mortar< dim > &mortar_parameters, const ConditionalOStream &pcout) |
| template<int dim, typename Number> | |
| Number | contract (const Tensor< 1, dim, Number > &grad, const Tensor< 1, dim, Number > &normal) |
| template<int dim, typename Number> | |
| Tensor< 1, dim, Number > | contract (const Tensor< 2, dim, Number > &grad, const Tensor< 1, dim, Number > &normal) |
| template<int n_components, int dim, typename Number> | |
| Tensor< 1, n_components, Number > | contract (const Tensor< 1, n_components, Tensor< 1, dim, Number > > &grad, const Tensor< 1, dim, Number > &normal) |
| template<int dim, typename Number> | |
| Tensor< 1, dim, Number > | outer (const Number &value, const Tensor< 1, dim, Number > &normal) |
| template<int dim, typename Number> | |
| Tensor< 2, dim, Number > | outer (const Tensor< 1, dim, Number > &value, const Tensor< 1, dim, Number > &normal) |
| template<int n_components, int dim, typename Number> | |
| Tensor< 1, n_components, Tensor< 1, dim, Number > > | outer (const Tensor< 1, n_components, Number > &value, const Tensor< 1, dim, Number > &normal) |
| template<int dim, int dim_, typename Number> | |
| DEAL_II_ALWAYS_INLINE void | symm_scalar_product_add (Tensor< 1, dim_, Tensor< 1, dim, Number > > &v_gradient, const Tensor< 2, dim, Number > &u_gradient, const Number &factor) |
| template<int dim, typename Number> | |
| DEAL_II_ALWAYS_INLINE void | symm_scalar_product_add (Tensor< 2, dim, Number > &v_gradient, const Tensor< 2, dim, Number > &u_gradient, const Number &factor) |
| template<typename Number> | |
| DEAL_II_ALWAYS_INLINE void | symm_scalar_product_add (Tensor< 1, 1, Number > &v_gradient, const Tensor< 1, 1, Number > &u_gradient, const Number &factor) |
| std::tuple< std::vector< double >, double > compute_interface_dimensions_circular | ( | const Triangulation< dim > & | triangulation, |
| const Mapping< dim > & | mapping, | ||
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Compute circular mortar interface dimensions and the rotor mesh pre-rotation angle.
| [in] | triangulation | The triangulation object |
| [in] | mapping | Mapping associated to the domain |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 596 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::center_of_rotation, LetheGridTools::find_point_line_distance(), point_to_angle(), Parameters::Mortar< dim >::radius_tolerance, Parameters::Mortar< dim >::rotation_axis_direction, Parameters::Mortar< dim >::rotor_boundary_id, and Parameters::Mortar< dim >::stator_boundary_id.
| std::pair< double, double > compute_interface_dimensions_linear | ( | const Triangulation< dim > & | triangulation, |
| const Mapping< dim > & | mapping, | ||
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Compute linear mortar interface dimensions.
| [in] | triangulation | The triangulation object |
| [in] | mapping | Mapping associated to the domain |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 724 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::rotor_boundary_id.
| std::vector< unsigned int > compute_number_interface_cells | ( | const Triangulation< dim > & | triangulation, |
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Compute the number of cells located at the mortar interface.
| [in] | triangulation | The triangulation object |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 501 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::radius_tolerance, Parameters::Mortar< dim >::rotation_axis_direction, and Parameters::Mortar< dim >::rotor_boundary_id.
| std::vector< double > compute_stage_heights | ( | const Triangulation< dim > & | triangulation, |
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Compute the stage heights in the direction of the rotation axis at the mortar interface. Stages are defined as planes perpendicular to the rotation axis containing vertices of the same height. There will always be one more stage than the number of cells in the rotation axis direction.
| [in] | triangulation | The triangulation object |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 791 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::rotation_axis_direction, and Parameters::Mortar< dim >::stator_boundary_id.
| Quadrature< dim > construct_quadrature | ( | const Quadrature< dim > & | quadrature, |
| const Parameters::Mortar< dim > & | mortar_parameters ) |
Construct oversampled quadrature.
| [in] | quadrature | Quadrature for local cell operations |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
Definition at line 774 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::oversampling_factor.
|
inline |
Compute inner product.
| [in] | grad | Rank-1 tensor |
| [in] | normal | Rank-1 tensor |
Definition at line 531 of file mortar_coupling_manager.h.
|
inline |
Compute outer product for the multicomponent case.
| [in] | grad | Rank-1 tensor |
| [in] | normal | Rank-1 tensor |
Definition at line 564 of file mortar_coupling_manager.h.
|
inline |
Compute inner product.
| [in] | grad | Rank-2 tensor |
| [in] | normal | Rank-1 tensor |
Definition at line 547 of file mortar_coupling_manager.h.
| void mortar_workload_imbalance | ( | const Triangulation< dim > & | triangulation, |
| const Parameters::Mortar< dim > & | mortar_parameters, | ||
| const ConditionalOStream & | pcout ) |
Compute workload imbalance of mortar cells.
| [in] | triangulation | The triangulation object |
| [in] | mortar_parameters | The information about the mortar method control, including the rotor mesh parameters |
| [in] | pcout | Parallel conditional output stream used to print the information |
Definition at line 869 of file mortar_coupling_manager.cc.
References Parameters::Mortar< dim >::rotor_boundary_id, and Parameters::Mortar< dim >::stator_boundary_id.
|
inline |
Compute outer product.
| [in] | value | Rank-0 tensor |
| [in] | normal | Rank-1 tensor |
Definition at line 585 of file mortar_coupling_manager.h.
|
inline |
Compute outer product.
| [in] | value | Rank-1 tensor |
| [in] | normal | Rank-1 tensor |
Definition at line 601 of file mortar_coupling_manager.h.
|
inline |
Compute outer product.
| [in] | value | Rank-1 tensor for n_components |
| [in] | normal | Rank-1 tensor |
Definition at line 621 of file mortar_coupling_manager.h.
|
inline |
Compute scalar product.
| [in,out] | v_gradient | Rank-2 tensor where result is stored |
| [in] | u_gradient | Rank-2 tensor |
| [in] | factor | Scalar factor |
Definition at line 692 of file mortar_coupling_manager.h.
|
inline |
Compute scalar product.
| [in,out] | v_gradient | Rank-1 tensor within rank-1 tensor where result is stored |
| [in] | u_gradient | Rank-2 tensor |
| [in] | factor | Scalar factor |
Definition at line 642 of file mortar_coupling_manager.h.
|
inline |
Compute scalar product.
| [in,out] | v_gradient | Rank-2 tensor where result is stored |
| [in] | u_gradient | Rank-2 tensor |
| [in] | factor | Scalar factor |
Definition at line 667 of file mortar_coupling_manager.h.