#include <SubchannelFourEqLinearOperator.h>

Public Types | |
| typedef std::unique_ptr< AMP::Mesh::MeshElement > | ElementPtr |
| typedef std::shared_ptr< AMP::Operator::Operator > | shared_ptr |
Protected Member Functions | |
| void | getBackendFromInput (std::shared_ptr< AMP::Database > db) |
| std::shared_ptr< OperatorParameters > | getJacobianParameters (AMP::LinearAlgebra::Vector::const_shared_ptr u) override |
| Gets parameters from nonlinear operator for use in linear operator. | |
| virtual std::shared_ptr< OperatorParameters > | getJacobianParameters (std::shared_ptr< const AMP::LinearAlgebra::Vector >) |
| void | setMemoryAndBackendParameters (std::shared_ptr< AMP::Database > db) |
Protected Attributes | |
| AMP::Utilities::Backend | d_backend = AMP::Utilities::Backend::Serial |
| int | d_iDebugPrintInfoLevel = 0 |
| std::shared_ptr< AMP::LinearAlgebra::Variable > | d_inputVariable |
| int | d_iObject_id |
| std::shared_ptr< AMP::LinearAlgebra::Matrix > | d_matrix |
| AMP::Utilities::MemoryType | d_memory_location = AMP::Utilities::MemoryType::none |
| std::shared_ptr< AMP::Mesh::Mesh > | d_Mesh |
| std::shared_ptr< AMP::LinearAlgebra::Variable > | d_outputVariable |
| std::shared_ptr< const SubchannelOperatorParameters > | d_params |
| std::shared_ptr< SubchannelPhysicsModel > | d_subchannelPhysicsModel |
Static Protected Attributes | |
| static int | d_iInstance_id |
Private Member Functions | |
| double | DynamicViscosity (double, double) |
| ElementPtr | getAxiallyAdjacentLateralFace (const AMP::Mesh::MeshElement *, const AMP::Mesh::MeshElement &, const std::map< AMP::Mesh::Point, ElementPtr > &) |
| double | Temperature (double, double) |
| double | Volume (double, double) |
Lnear operator class for the 4-equation formulation of the subchannel equations: see /AMPFuel-Docs/technicalInfo/flow/SubchannelFlow.pdf for details
Definition at line 15 of file SubchannelFourEqLinearOperator.h.
| typedef std::unique_ptr<AMP::Mesh::MeshElement> AMP::Operator::SubchannelFourEqLinearOperator::ElementPtr |
Definition at line 18 of file SubchannelFourEqLinearOperator.h.
|
inherited |
Definition at line 29 of file Operator.h.
|
explicit |
Constructor.
|
inlinevirtual |
Destructor.
Definition at line 24 of file SubchannelFourEqLinearOperator.h.
|
overridevirtualinherited |
The apply function for this operator, A, performs the following operation: f = A(u) Here, A(u) is simply a Matrix-Vector multiplication.
| [in] | u | input vector. |
| [out] | f | residual/output vector. |
Reimplemented in AMP::Operator::IdentityOperator, AMP::Operator::PetscMatrixShellOperator, AMP::Operator::TrilinosMatrixShellOperator, and AMP::Operator::BDFRadDifOpPJac.
|
pure virtualinherited |
This base class can not give a meaningful definition of apply. See the derived classes for how they define apply. Each operator is free to define apply in a way that is appropriate for that operator.
| u | shared pointer to const input vector u |
| f | shared pointer to output vector storing result of applying this operator |
Implemented in AMP::Operator::RadDifOp, AMP::Operator::RadDifOpPJac, AMP::Operator::FunctionOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
|
overridevirtualinherited |
Get a input vector ( For \(\mathbf{A(x)}\), \(\mathbf{x}\) is a input vector )
Reimplemented from AMP::Operator::Operator.
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::RadDifOpPJac.
|
overridevirtualinherited |
Get an output vector ( For \(\mathbf{y=A(x)}\), \(\mathbf{y}\) is an output vector )
Reimplemented from AMP::Operator::Operator.
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator.
| void AMP::Operator::SubchannelFourEqLinearOperator::fillSubchannelGrid | ( | std::shared_ptr< AMP::Mesh::Mesh > | ) |
| void AMP::Operator::SubchannelFourEqLinearOperator::getAxialFaces | ( | const AMP::Mesh::MeshElement & | , |
| ElementPtr & | , | ||
| ElementPtr & | |||
| ) |
|
private |
|
protectedinherited |
| std::map< AMP::Mesh::Point, double > AMP::Operator::SubchannelFourEqLinearOperator::getGapWidths | ( | std::shared_ptr< AMP::Mesh::Mesh > | , |
| const std::vector< double > & | , | ||
| const std::vector< double > & | , | ||
| const std::vector< double > & | |||
| ) |
Makes map of gap widths to their xy positions.
|
inline |
Get the Inlet Temperature [K].
Definition at line 48 of file SubchannelFourEqLinearOperator.h.
References d_Tin.
|
inlineoverridevirtualinherited |
Return the input variable.
Reimplemented from AMP::Operator::Operator.
Reimplemented in AMP::Operator::MassLinearFEOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::PetscMatrixShellOperator, AMP::Operator::TrilinosMatrixShellOperator, and AMP::TimeIntegrator::LinearTimeOperator.
Definition at line 63 of file LinearOperator.h.
References AMP::Operator::LinearOperator::d_inputVariable.
|
overrideprotected |
Gets parameters from nonlinear operator for use in linear operator.
|
inlineprotectedvirtualinherited |
This function returns a OperatorParameters object constructed by the operator which contains parameters from which new Jacobian operators can be created. Returning a parameter object instead of an Operator itself is meant to give users more flexibility.
Definition at line 180 of file Operator.h.
| void AMP::Operator::SubchannelFourEqLinearOperator::getLateralFaces | ( | std::shared_ptr< AMP::Mesh::Mesh > | , |
| std::map< AMP::Mesh::Point, ElementPtr > & | , | ||
| std::map< AMP::Mesh::Point, ElementPtr > & | |||
| ) |
Makes map of lateral gaps to their centroids.
|
virtualinherited |
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator.
|
inlineinherited |
Definition at line 89 of file Operator.h.
References AMP::Operator::Operator::d_memory_location.
|
inlineinherited |
Return the mesh.
Definition at line 149 of file Operator.h.
References AMP::Operator::Operator::d_Mesh.
|
inlineinherited |
Return the mesh.
Definition at line 152 of file Operator.h.
References AMP::Operator::Operator::d_Mesh.
|
inline |
Get the Outlet Pressure [Pa].
Definition at line 51 of file SubchannelFourEqLinearOperator.h.
References d_Pout.
|
inlineoverridevirtualinherited |
Return the output variable.
Reimplemented from AMP::Operator::Operator.
Reimplemented in AMP::Operator::MassLinearFEOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::PetscMatrixShellOperator, AMP::Operator::TrilinosMatrixShellOperator, and AMP::TimeIntegrator::LinearTimeOperator.
Definition at line 67 of file LinearOperator.h.
References AMP::Operator::LinearOperator::d_outputVariable.
|
virtualinherited |
This function returns a OperatorParameters object constructed by the operator which contains parameters from which new operators can be created. Returning a parameter object instead of an Operator itself is meant to give users more flexibility. Examples of how this functionality might be used would be the construction of Jacobian, frozen Jacobian, preconditioner approximations to the Jacobian, adjoint operators etc
| type | std:string specifying type of return operator parameters being requested. Currently the valid option is Jacobian |
| u | const pointer to current solution vector |
| params | pointer to additional parameters that might be required to construct the return parameters |
Reimplemented in AMP::Operator::IdentityOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
|
inline |
Get the current operator parameters.
Definition at line 54 of file SubchannelFourEqLinearOperator.h.
References d_params.
|
inline |
Get the element physics model.
Definition at line 42 of file SubchannelFourEqLinearOperator.h.
References d_subchannelPhysicsModel.
|
inlinevirtualinherited |
given a vector return whether it is valid or not
Reimplemented in AMP::Operator::BDFRadDifOp, AMP::Operator::RadDifOp, AMP::Operator::ColumnOperator, AMP::Operator::CoupledOperator, AMP::TimeIntegrator::TimeOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
Definition at line 146 of file Operator.h.
|
virtualinherited |
virtual interface used to make a vector consistent in an operator defined way. An example of where an operator is required to make a vector consistent is in the context of AMR where ghost values on coarse-fine interfaces are filled in an operator dependent way. The default implementation is to simply call the vector makeConsistent(SET)
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::MemorySpaceMigrationOperator, and AMP::TimeIntegrator::TimeOperator.
|
inlinevirtualinherited |
re-initialize a vector, e.g. after a regrid operation has happened. This is useful for example when numerical overshoots or undershoots have happened due to interpolation for example The default is a null op
Reimplemented in AMP::TimeIntegrator::TimeOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
Definition at line 167 of file Operator.h.
|
overridevirtual |
This function is useful for re-initializing/updating an operator
| params | parameter object containing parameters to change |
Reimplemented from AMP::Operator::Operator.
|
virtualinherited |
Default base class implementation of the residual: f-L(u)
| f | shared pointer to const vector rhs |
| u | shared pointer to const vector u |
| r | shared pointer to vector residual |
Reimplemented in AMP::Solver::AMG::HasDeferConsistency< AMP::Operator::LinearOperator >, AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::MemorySpaceMigrationOperator, AMP::TimeIntegrator::IDATimeOperator, and AMP::TimeIntegrator::TimeOperator.
|
overridevirtual |
Return the selector for input vectors.
Reimplemented from AMP::Operator::Operator.
|
overridevirtual |
Return the selector for output vectors.
Reimplemented from AMP::Operator::Operator.
Specify level of diagnostic information printed during iterations.
| level | zero prints none or minimal information, higher numbers provide increasingly verbose debugging information. |
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
Definition at line 97 of file Operator.h.
References AMP::Operator::Operator::d_iDebugPrintInfoLevel.
|
inline |
Sets frozen solution vector.
Definition at line 36 of file SubchannelFourEqLinearOperator.h.
References d_frozenVec.
|
virtualinherited |
Copies the shared pointer for the matrix representation of this linear operator.
| [in] | in_mat | The matrix representation of this linear operator. |
Reimplemented in AMP::Operator::IdentityOperator.
Referenced by AMP::Solver::AMG::coarse_operator< Config >::coarse_operator(), and AMP::Operator::EpetraMatrixOperator::EpetraMatrixOperator().
|
protectedinherited |
|
inlinevirtualinherited |
Definition at line 56 of file LinearOperator.h.
References AMP::Operator::LinearOperator::d_inputVariable, and AMP::Operator::LinearOperator::d_outputVariable.
Referenced by AMP::Solver::AMG::coarse_operator< Config >::coarse_operator().
|
inherited |
Subset input vector.
|
inherited |
Subset input vector.
|
inherited |
Subset output vector.
|
inherited |
Subset output vector.
|
inlineoverridevirtual |
Return the name of the operator.
Reimplemented from AMP::Operator::LinearOperator.
Definition at line 27 of file SubchannelFourEqLinearOperator.h.
|
protectedinherited |
Definition at line 197 of file Operator.h.
|
private |
Definition at line 113 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 112 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 116 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 87 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 90 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 94 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 92 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 91 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 109 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 108 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 88 of file SubchannelFourEqLinearOperator.h.
Referenced by setFrozenVector().
|
private |
Definition at line 100 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 124 of file SubchannelFourEqLinearOperator.h.
|
protectedinherited |
Definition at line 187 of file Operator.h.
Referenced by AMP::Operator::Operator::setDebugPrintInfoLevel().
|
staticprotectedinherited |
Definition at line 191 of file Operator.h.
|
private |
Definition at line 85 of file SubchannelFourEqLinearOperator.h.
|
protectedinherited |
Definition at line 88 of file LinearOperator.h.
Referenced by AMP::Operator::LinearOperator::getInputVariable(), AMP::Operator::IdentityOperator::setInputVariable(), and AMP::Operator::LinearOperator::setVariables().
|
protectedinherited |
Definition at line 189 of file Operator.h.
|
private |
Definition at line 106 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 121 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 98 of file SubchannelFourEqLinearOperator.h.
|
protectedinherited |
Definition at line 92 of file LinearOperator.h.
|
protectedinherited |
Definition at line 195 of file Operator.h.
Referenced by AMP::Operator::Operator::getMemoryLocation().
|
protectedinherited |
Definition at line 193 of file Operator.h.
Referenced by AMP::Operator::Operator::getMesh(), AMP::Operator::Operator::getMesh(), and AMP::Operator::ContactResidualCorrection::setMasterMesh().
|
private |
Definition at line 118 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 134 of file SubchannelFourEqLinearOperator.h.
|
protectedinherited |
Definition at line 90 of file LinearOperator.h.
Referenced by AMP::Operator::LinearOperator::getOutputVariable(), AMP::Operator::IdentityOperator::setOutputVariable(), and AMP::Operator::LinearOperator::setVariables().
|
private |
Definition at line 129 of file SubchannelFourEqLinearOperator.h.
|
protected |
Definition at line 80 of file SubchannelFourEqLinearOperator.h.
Referenced by getParams().
|
private |
Definition at line 96 of file SubchannelFourEqLinearOperator.h.
Referenced by getOutletPressure().
|
private |
Definition at line 105 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 125 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 126 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 104 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 114 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 115 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 110 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 123 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 131 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 133 of file SubchannelFourEqLinearOperator.h.
|
protected |
Definition at line 82 of file SubchannelFourEqLinearOperator.h.
Referenced by getSubchannelPhysicsModel().
|
private |
Definition at line 101 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 97 of file SubchannelFourEqLinearOperator.h.
Referenced by getInletTemperature().
|
private |
Definition at line 102 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 99 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 128 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 128 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 128 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 120 of file SubchannelFourEqLinearOperator.h.
|
private |
Definition at line 119 of file SubchannelFourEqLinearOperator.h.
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:44. Comments on this page |