Advanced Multi-Physics (AMP)
On-Line Documentation
SubchannelToPointMap.h
Go to the documentation of this file.
1#ifndef included_AMP_SubchannelToPointMapMap
2#define included_AMP_SubchannelToPointMapMap
3
4#include "AMP/mesh/Mesh.h"
5#include "AMP/operators/Operator.h"
6#include "AMP/operators/subchannel/SubchannelPhysicsModel.h"
7#include "AMP/operators/subchannel/SubchannelToPointMapParameters.h"
8#include "AMP/utils/AMP_MPI.h"
9
10namespace AMP::Operator {
11
12
20{
21public:
23 explicit SubchannelToPointMap( std::shared_ptr<const SubchannelToPointMapParameters> params );
24
27
28 std::string type() const override { return "SubchannelToPointMap"; }
29
42
43 std::shared_ptr<AMP::LinearAlgebra::Variable> getInputVariable() const override
44 {
45 return std::shared_ptr<AMP::LinearAlgebra::Variable>(
46 new AMP::LinearAlgebra::Variable( "Flow" ) );
47 }
48
49
50 std::shared_ptr<AMP::LinearAlgebra::Variable> getOutputVariable() const override
51 {
52 return d_outputVar;
53 }
54
55
56private:
58 std::vector<double> d_point_x, d_point_y, d_point_z;
59 std::shared_ptr<AMP::LinearAlgebra::Variable> d_outputVar;
60
61 // Create the subchannel grid for all processors
63 std::vector<double> d_subchannel_x; // x-coordinates of the center of the subchannel
64 std::vector<double> d_subchannel_y; // y-coordinates of the center of the subchannel
65 std::vector<double> d_subchannel_z; // z-coordinates of the z-faces of the subchannel
66 void createGrid();
67
68 std::shared_ptr<SubchannelPhysicsModel> d_subchannelPhysicsModel;
69};
70} // namespace AMP::Operator
71
72#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
A description of the data in the vector.
Definition Variable.h:46
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
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29
A class used to map subchannel properties to points.
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f) override
Perform the map.
std::shared_ptr< SubchannelPhysicsModel > d_subchannelPhysicsModel
virtual ~SubchannelToPointMap()
Deconstructor.
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
std::string type() const override
Return the name of the operator.
SubchannelToPointMap(std::shared_ptr< const SubchannelToPointMapParameters > params)
Default constructor.
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
std::shared_ptr< AMP::LinearAlgebra::Variable > d_outputVar



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