Advanced Multi-Physics (AMP)
On-Line Documentation
CoupledFlow1DSolver.h
Go to the documentation of this file.
1#ifndef included_AMP_CoupledFlow1DSolver
2#define included_AMP_CoupledFlow1DSolver
3
4#include "AMP/operators/map/MapOperator.h"
5#include "AMP/solvers/SolverStrategy.h"
6#include "AMP/solvers/SolverStrategyParameters.h"
7#include "AMP/solvers/libmesh/CoupledFlow1DSolverParameters.h"
8#include "AMP/solvers/libmesh/Flow1DSolver.h"
9
10
11namespace AMP::Solver {
12
14{
15public:
16 explicit CoupledFlow1DSolver( std::shared_ptr<SolverStrategyParameters> parameters );
17
19
20 std::string type() const override { return "CoupledFlow1DSolver"; }
21
22 void apply( std::shared_ptr<const AMP::LinearAlgebra::Vector> f,
23 std::shared_ptr<AMP::LinearAlgebra::Vector> u ) override;
24
25 void setInitialGuess( std::shared_ptr<AMP::LinearAlgebra::Vector> initialGuess ) override;
26
27 void reset( std::shared_ptr<SolverStrategyParameters> ) override;
28
29 void resetOperator( std::shared_ptr<const AMP::Operator::OperatorParameters> params ) override;
30
31protected:
34 std::vector<double> zPoints;
35
36 std::shared_ptr<AMP::LinearAlgebra::Variable> d_inpVariable;
37 std::shared_ptr<AMP::LinearAlgebra::Variable> d_outVariable;
38
39private:
40 std::shared_ptr<AMP::LinearAlgebra::Variable> d_SimpleVariable;
46
49
50 std::shared_ptr<AMP::Solver::Flow1DSolver> d_flow1DSolver;
51};
52} // namespace AMP::Solver
53
54#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
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29
std::shared_ptr< AMP::Solver::Flow1DSolver > d_flow1DSolver
AMP::Operator::MapOperator::shared_ptr d_flowInternal3to1
void resetOperator(std::shared_ptr< const AMP::Operator::OperatorParameters > params) override
void apply(std::shared_ptr< const AMP::LinearAlgebra::Vector > f, std::shared_ptr< AMP::LinearAlgebra::Vector > u) override
AMP::LinearAlgebra::Vector::shared_ptr d_Sol
void setInitialGuess(std::shared_ptr< AMP::LinearAlgebra::Vector > initialGuess) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_SimpleVariable
std::shared_ptr< AMP::LinearAlgebra::Variable > d_inpVariable
AMP::LinearAlgebra::Vector::shared_ptr d_flowInput
CoupledFlow1DSolver(std::shared_ptr< SolverStrategyParameters > parameters)
AMP::Operator::MapOperator::shared_ptr d_flowInternal1to3
void reset(std::shared_ptr< SolverStrategyParameters >) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_outVariable
AMP::LinearAlgebra::Vector::const_shared_ptr d_Rhs
AMP::LinearAlgebra::Vector::shared_ptr d_flowOutput
std::string type() const override
Return the name of the solver.
std::shared_ptr< AMP::Solver::SolverStrategy > shared_ptr



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