Advanced Multi-Physics (AMP)
On-Line Documentation
NodeToGaussPointOperator.h
Go to the documentation of this file.
1#ifndef included_AMP_NodeToGaussPointOperator
2#define included_AMP_NodeToGaussPointOperator
3
4#include "AMP/discretization/createLibmeshElements.h"
5#include "AMP/operators/Operator.h"
6
7
8namespace AMP::Operator {
9
11{
12public:
13 explicit NodeToGaussPointOperator( std::shared_ptr<const OperatorParameters> params );
14
16
17 std::string type() const override { return "NodeToGaussPointOperator"; }
18
21
22 std::shared_ptr<AMP::LinearAlgebra::Variable> getOutputVariable() const override
23 {
24 return d_GaussPtVariable;
25 }
26
27 std::shared_ptr<AMP::LinearAlgebra::Variable> getInputVariable() const override
28 {
29 return d_NodalVariable;
30 }
31
32protected:
34 int d_dim;
35 std::shared_ptr<AMP::LinearAlgebra::Variable> d_NodalVariable;
36 std::shared_ptr<AMP::LinearAlgebra::Variable> d_GaussPtVariable;
39 std::vector<std::vector<AMP::Mesh::MeshElementID>> d_nodes;
40 std::vector<unsigned short int> d_N_quad;
41 std::vector<std::vector<double>> d_phi;
42};
43} // namespace AMP::Operator
44
45#endif
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
std::shared_ptr< const Vector > const_shared_ptr
Definition Vector.h:65
A class used to iterate over elements in a Mesh.
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f) override
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
std::shared_ptr< AMP::LinearAlgebra::Variable > d_NodalVariable
std::vector< std::vector< AMP::Mesh::MeshElementID > > d_nodes
std::string type() const override
Return the name of the operator.
std::vector< std::vector< double > > d_phi
std::vector< unsigned short int > d_N_quad
std::shared_ptr< AMP::LinearAlgebra::Variable > d_GaussPtVariable
Discretization::createLibmeshElements d_libmeshElements
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
NodeToGaussPointOperator(std::shared_ptr< const OperatorParameters > params)
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29



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