Advanced Multi-Physics (AMP)
On-Line Documentation
MassElement.h
Go to the documentation of this file.
1#ifndef included_AMP_MassElement
2#define included_AMP_MassElement
3
4#include <memory>
5#include <vector>
6
7// AMP files
8#include "AMP/operators/ElementOperation.h"
9#include "AMP/operators/libmesh/MassDensityModel.h"
10
11// Libmesh headers
13#include "libmesh/libmesh_config.h"
14#undef LIBMESH_ENABLE_REFERENCE_COUNTING
15#include "libmesh/elem.h"
16#include "libmesh/fe_base.h"
17#include "libmesh/fe_type.h"
18#include "libmesh/quadrature_gauss.h"
20
21
22namespace AMP::Operator {
23
25{
26public:
27 explicit MassElement( std::shared_ptr<const ElementOperationParameters> params );
28
29 virtual ~MassElement() {}
30
31 void initializeForCurrentElement( const libMesh::Elem *elem,
32 std::shared_ptr<MassDensityModel> densityModel );
33
34protected:
35 std::shared_ptr<libMesh::FEType> d_feType;
36
37 std::shared_ptr<libMesh::FEBase> d_fe;
38
39 std::shared_ptr<libMesh::QBase> d_qrule;
40
41 const std::vector<libMesh::Real> *d_JxW;
42
43 const std::vector<std::vector<libMesh::Real>> *d_phi;
44
45 const libMesh::Elem *d_elem;
46
47 std::shared_ptr<MassDensityModel> d_densityModel;
48
49private:
50};
51} // namespace AMP::Operator
52
53#endif
std::shared_ptr< libMesh::QBase > d_qrule
Definition MassElement.h:39
std::shared_ptr< MassDensityModel > d_densityModel
Definition MassElement.h:47
const libMesh::Elem * d_elem
Definition MassElement.h:45
std::shared_ptr< libMesh::FEBase > d_fe
Definition MassElement.h:37
MassElement(std::shared_ptr< const ElementOperationParameters > params)
const std::vector< libMesh::Real > * d_JxW
Definition MassElement.h:41
std::shared_ptr< libMesh::FEType > d_feType
Definition MassElement.h:35
const std::vector< std::vector< libMesh::Real > > * d_phi
Definition MassElement.h:43
void initializeForCurrentElement(const libMesh::Elem *elem, std::shared_ptr< MassDensityModel > densityModel)
#define DISABLE_WARNINGS
Re-enable warnings.
#define ENABLE_WARNINGS
Suppress all warnings.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page