|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
Fix one component of integral rho (x-center)/M_target. More...
#include <barycenter.hpp>
Public Types | |
| using | Density = discretization::blocks::density::mass |
| using | Operands = utils::types::TypeList<discretization::forms::Operand<Density>> |
| using | ResidualQuantity = dimensions::Length |
Public Types inherited from serif::equations::Contribution< TestOperandT, SupportT > | |
| using | Test = TestOperandT::term_type |
| The test type of the contribution. | |
| using | TestOperand = TestOperandT |
| The operand type of the contribution (associating a test function and a term) | |
| using | Support = SupportT |
| The domain support of the contribution (which then boils down to the dofs which are supported by the term on that test function) | |
Public Member Functions | |
| BarycenterConstraint (double target_mass, std::array< double, 3 > center={}) | |
| Use a fixed positive mass scale and the same finite center as the rotation and deformation. | |
| PointLinearization< Operands > | evaluate (const EquationPoint< Operands > &point) const |
| Differentiate the normalized first mass moment in density and physical position. | |
| double | target_mass () const noexcept |
| Inspect the fixed normalization mass. | |
| const std::array< double, 3 > & | center () const noexcept |
| Inspect the desired barycenter. | |
Static Public Member Functions | |
| static int | additional_order (discretization::forms::Operand< Density >, int position_order) |
| Include the linear position factor in quadrature selection. | |
Static Public Attributes | |
| static constexpr std::string_view | name = "barycenter constraint" |
Private Attributes | |
| double | m_target_mass |
| std::array< double, 3 > | m_center |
Fix one component of integral rho (x-center)/M_target.
| using serif::equations::BarycenterConstraint< Axis, Row >::Density = discretization::blocks::density::mass |
| using serif::equations::BarycenterConstraint< Axis, Row >::Operands = utils::types::TypeList<discretization::forms::Operand<Density>> |
| using serif::equations::BarycenterConstraint< Axis, Row >::ResidualQuantity = dimensions::Length |
|
inlineexplicit |
Use a fixed positive mass scale and the same finite center as the rotation and deformation.
|
inlinestaticnodiscard |
Include the linear position factor in quadrature selection.
|
inlinenodiscardnoexcept |
Inspect the desired barycenter.
|
inlinenodiscard |
Differentiate the normalized first mass moment in density and physical position.
|
inlinenodiscardnoexcept |
Inspect the fixed normalization mass.
|
private |
|
private |
|
staticconstexpr |