feat(support): continued migration to new field dof support system
mass normaliztion, gravity, displacement, and hydrostatic equilibrium are now migrated
This commit is contained in:
@@ -6,6 +6,7 @@ module;
|
||||
|
||||
export module mean_field:operators.prepared_gravity_source;
|
||||
export import :fem;
|
||||
export import :field.mfem;
|
||||
export import :mapping.domain_mapper;
|
||||
|
||||
export namespace mean_field::operators {
|
||||
@@ -16,17 +17,21 @@ export namespace mean_field::operators {
|
||||
const mapping::DomainMapperStateless &domain_mapper
|
||||
);
|
||||
|
||||
void Prepare(const mfem::Vector &displacement_true);
|
||||
void Prepare(const mfem::Vector &displacement);
|
||||
void Mult(
|
||||
const mfem::Vector &density_true,
|
||||
const mfem::Vector &density,
|
||||
mfem::Vector &action
|
||||
) const override;
|
||||
|
||||
[[nodiscard]] bool IsPrepared() const noexcept;
|
||||
[[nodiscard]] std::uint64_t GetPreparationCount() const noexcept;
|
||||
|
||||
[[nodiscard]] const field::FieldDofMap &GetDensityMap() const noexcept;
|
||||
[[nodiscard]] const field::FieldDofMap &GetPotentialMap() const noexcept;
|
||||
[[nodiscard]] const field::FieldDofMap &GetDisplacementMap() const noexcept;
|
||||
|
||||
void MultTranspose(
|
||||
const mfem::Vector &potential_true,
|
||||
const mfem::Vector &potential,
|
||||
mfem::Vector &action
|
||||
) const override;
|
||||
|
||||
@@ -52,9 +57,18 @@ export namespace mean_field::operators {
|
||||
const fem::FEM &m_fem;
|
||||
const mapping::DomainMapperStateless &m_domain_mapper;
|
||||
|
||||
field::FieldDofMap m_density_map;
|
||||
field::FieldDofMap m_potential_map;
|
||||
field::FieldDofMap m_displacement_map;
|
||||
|
||||
mfem::Array<int> m_stellar_marker;
|
||||
std::vector<ElementPAData> m_elements;
|
||||
|
||||
mutable mfem::Vector m_density_true;
|
||||
mutable mfem::Vector m_potential_true;
|
||||
mutable mfem::Vector m_action_true;
|
||||
mfem::Vector m_displacement_true;
|
||||
|
||||
std::uint64_t m_preparation_count{0};
|
||||
bool m_is_prepared{false};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user