40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
module;
|
|
#include <mfem.hpp>
|
|
export module mean_field:integrators.centrifugal;
|
|
export import :mapping.domain_mapper;
|
|
|
|
export namespace mean_field::integrators {
|
|
class CentrifugalForceIntegrator : public mfem::BlockNonlinearFormIntegrator {
|
|
public:
|
|
CentrifugalForceIntegrator(
|
|
const mapping::DomainMapper &mapper,
|
|
const mfem::GridFunction &displacement,
|
|
const mfem::GridFunction &compactification_coordinate,
|
|
const mfem::Vector &omega
|
|
);
|
|
|
|
void SetOmega(const mfem::Vector &omega);
|
|
void SetIntegrationRule(const mfem::IntegrationRule &ir);
|
|
|
|
void AssembleElementVector(
|
|
const mfem::Array<const mfem::FiniteElement *> &el,
|
|
mfem::ElementTransformation &Tr,
|
|
const mfem::Array<const mfem::Vector *> &elfun,
|
|
const mfem::Array<mfem::Vector *> &elvec
|
|
) override;
|
|
|
|
void AssembleElementGrad(
|
|
const mfem::Array<const mfem::FiniteElement *> &el,
|
|
mfem::ElementTransformation &Tr,
|
|
const mfem::Array<const mfem::Vector *> &elfun,
|
|
const mfem::Array2D<mfem::DenseMatrix *> &elmats
|
|
) override;
|
|
|
|
private:
|
|
mapping::GridFunctionMappingEvaluator m_mapping;
|
|
mfem::Vector m_omega;
|
|
const mfem::IntegrationRule *m_ir = nullptr;
|
|
};
|
|
|
|
} // namespace mean_field::integrators
|