Advanced Multi-Physics (AMP)
On-Line Documentation
Flow1DSolver.h
Go to the documentation of this file.
1#ifndef included_AMP_Flow1DSolver
2#define included_AMP_Flow1DSolver
3
4#include "AMP/solvers/SolverStrategy.h"
5#include "AMP/solvers/SolverStrategyParameters.h"
6
7namespace AMP::Solver {
8
10
11
13{
14public:
15 explicit Flow1DSolver( std::shared_ptr<Flow1DSolverParameters> parameters );
16
17 virtual ~Flow1DSolver();
18
19 std::string type() const override { return "Flow1DSolver"; }
20
21 void apply( std::shared_ptr<const AMP::LinearAlgebra::Vector> f,
22 std::shared_ptr<AMP::LinearAlgebra::Vector> u ) override;
23
24 void setInitialGuess( std::shared_ptr<AMP::LinearAlgebra::Vector> initialGuess ) override;
25
26 void initialize( std::shared_ptr<const SolverStrategyParameters> parameters ) override;
27
28 void reset( std::shared_ptr<SolverStrategyParameters> ) override;
29
30 void resetOperator( std::shared_ptr<const AMP::Operator::OperatorParameters> params ) override;
31
32 std::shared_ptr<AMP::LinearAlgebra::Variable> getInputVariable( int varId = -1 );
33
34protected:
37 std::vector<double> zPoints;
38
39 double d_Cp;
40
41 double d_dCp;
42
44
45 double d_De;
46
47 double d_G;
48
49 double d_K;
50
51 double d_Re;
52
53 double d_Pr;
54
55 std::shared_ptr<AMP::LinearAlgebra::Variable> d_inpVariable;
56 std::shared_ptr<AMP::LinearAlgebra::Variable> d_outVariable;
57
58private:
61};
62} // namespace AMP::Solver
63
64#endif
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
void reset(std::shared_ptr< SolverStrategyParameters >) override
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable(int varId=-1)
Flow1DSolver(std::shared_ptr< Flow1DSolverParameters > parameters)
void initialize(std::shared_ptr< const SolverStrategyParameters > parameters) override
AMP::LinearAlgebra::Vector::shared_ptr d_Rhs
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
std::shared_ptr< AMP::LinearAlgebra::Variable > d_outVariable
std::vector< double > zPoints
AMP::LinearAlgebra::Vector::shared_ptr d_cladVec
void setInitialGuess(std::shared_ptr< AMP::LinearAlgebra::Vector > initialGuess) override
void resetOperator(std::shared_ptr< const AMP::Operator::OperatorParameters > params) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_inpVariable
std::string type() const override
Return the name of the solver.
std::shared_ptr< AMP::Solver::SolverStrategy > shared_ptr
SolverStrategyParameters Flow1DSolverParameters
Definition Flow1DSolver.h:9



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