#include <Map1Dto3D.h>

Public Types | |
| typedef std::shared_ptr< AMP::Operator::Operator > | shared_ptr |
Protected Member Functions | |
| void | getBackendFromInput (std::shared_ptr< AMP::Database > db) |
| 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 |
| unsigned int | d_boundaryId |
| int | d_iDebugPrintInfoLevel = 0 |
| std::shared_ptr< AMP::LinearAlgebra::Variable > | d_inpVariable = nullptr |
| int | d_iObject_id |
| AMP_MPI | d_MapComm |
| std::shared_ptr< AMP::Mesh::Mesh > | d_MapMesh |
| 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_outVariable = nullptr |
| bool | d_useGaussVec = false |
| std::vector< double > | d_zLocations |
| std::shared_ptr< AMP::LinearAlgebra::Vector > | outputVec = nullptr |
Static Protected Attributes | |
| static int | d_iInstance_id |
Private Attributes | |
| Discretization::createLibmeshElements | libmeshElements |
Class Map1Dto3D is used to map the 1D solution from simple vector onto the 2D Surface by injunction as the 1D location are constructed by the nodal points on the 2D surface. The 2D surface has to be on the d_MapAdapater from the MapOperator class.
Definition at line 25 of file Map1Dto3D.h.
|
inherited |
Definition at line 29 of file Operator.h.
|
explicit |
Default Constructor.
|
inlinevirtual |
De-constructor.
Definition at line 32 of file Map1Dto3D.h.
|
override |
For this operator the apply function would map the solution by injunction from Simple Vector in u to NodalScalar Vector in r.
| [in] | u | input vector. |
| [out] | r | output vector. |
|
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.
| void AMP::Operator::Map1Dto3D::apply_Gauss | ( | AMP::LinearAlgebra::Vector::const_shared_ptr | u, |
| AMP::LinearAlgebra::Vector::shared_ptr | f | ||
| ) |
| void AMP::Operator::Map1Dto3D::apply_Nodal | ( | AMP::LinearAlgebra::Vector::const_shared_ptr | u, |
| AMP::LinearAlgebra::Vector::shared_ptr | f | ||
| ) |
| void AMP::Operator::Map1Dto3D::computeZGaussLocations | ( | ) |
| void AMP::Operator::Map1Dto3D::computeZNodeLocations | ( | ) |
This function is used to compute 1D locations from the output vector.
|
inlinevirtualinherited |
Reimplemented in AMP::Operator::Map3Dto1D.
Definition at line 50 of file MapOperator.h.
|
virtualinherited |
Get a input vector ( For \(\mathbf{A(x)}\), \(\mathbf{x}\) is a input vector )
Reimplemented in AMP::Operator::IdentityOperator, AMP::Operator::LinearOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::MemorySpaceMigrationOperator, AMP::Operator::BDFRadDifOpPJac, AMP::Operator::RadDifOp, and AMP::Operator::RadDifOpPJac.
|
inlinevirtualinherited |
Reimplemented in AMP::Operator::Map3Dto1D.
Definition at line 58 of file MapOperator.h.
|
virtualinherited |
Get a left vector ( For \(\mathbf{y=A(x)}\), \(\mathbf{y}\) is an output vector )
Reimplemented in AMP::Operator::IdentityOperator, AMP::Operator::LinearOperator, AMP::Operator::MemorySpaceMigrationLinearOperator, and AMP::Operator::MemorySpaceMigrationOperator.
|
protectedinherited |
|
inlineoverridevirtual |
Return the input variable.
Reimplemented from AMP::Operator::Operator.
Definition at line 58 of file Map1Dto3D.h.
References d_inpVariable.
|
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.
|
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 |
This function returns the number of 1D locations.
Definition at line 76 of file Map1Dto3D.h.
References d_zLocations.
|
inlineoverridevirtual |
Return the output variable.
Reimplemented from AMP::Operator::Operator.
Definition at line 64 of file Map1Dto3D.h.
References d_outVariable.
|
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.
This function returns the 1D locations stl vector.
Definition at line 80 of file Map1Dto3D.h.
References d_zLocations.
|
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 reads the entries of the database for the operator and can also be used to change the parameters if required.
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.
|
virtualinherited |
Return the selector for input vectors.
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::MemorySpaceMigrationOperator, AMP::Operator::FlowFrapconJacobian, AMP::Operator::FlowFrapconOperator, AMP::Operator::SubchannelFourEqLinearOperator, and AMP::Operator::SubchannelFourEqNonlinearOperator.
|
virtualinherited |
Return the selector for output vectors.
Reimplemented in AMP::Operator::MemorySpaceMigrationLinearOperator, AMP::Operator::MemorySpaceMigrationOperator, AMP::Operator::FlowFrapconJacobian, AMP::Operator::FlowFrapconOperator, AMP::Operator::SubchannelFourEqLinearOperator, and AMP::Operator::SubchannelFourEqNonlinearOperator.
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.
|
inlinevirtualinherited |
Definition at line 66 of file MapOperator.h.
|
protectedinherited |
|
inlinevirtualinherited |
Definition at line 71 of file MapOperator.h.
| void AMP::Operator::Map1Dto3D::setVector | ( | AMP::LinearAlgebra::Vector::shared_ptr | vec | ) |
This function sets the 1D locations stl vector. Note: This routine will check that the values are unique and in sorted order. It may modify the resulting internal vector accordingly.
|
inherited |
Subset input vector.
|
inherited |
Subset input vector.
|
inherited |
Subset output vector.
|
inherited |
Subset output vector.
|
inlineoverridevirtual |
Return the name of the operator.
Implements AMP::Operator::Operator.
Definition at line 35 of file Map1Dto3D.h.
|
protectedinherited |
Definition at line 197 of file Operator.h.
Definition at line 77 of file MapOperator.h.
Referenced by AMP::Operator::MapOperator::MapOperator().
|
protectedinherited |
Definition at line 187 of file Operator.h.
Referenced by AMP::Operator::Operator::setDebugPrintInfoLevel().
|
staticprotectedinherited |
Definition at line 191 of file Operator.h.
|
protected |
Definition at line 97 of file Map1Dto3D.h.
Referenced by getInputVariable().
|
protectedinherited |
Definition at line 189 of file Operator.h.
|
protectedinherited |
Definition at line 82 of file MapOperator.h.
|
protectedinherited |
Definition at line 79 of file MapOperator.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().
|
protected |
Definition at line 99 of file Map1Dto3D.h.
Referenced by getOutputVariable().
Definition at line 103 of file Map1Dto3D.h.
|
protected |
std vector to store 1D z locations.
Definition at line 101 of file Map1Dto3D.h.
Referenced by getNumZlocations(), and getZLocations().
|
private |
Definition at line 106 of file Map1Dto3D.h.
|
protected |
Definition at line 95 of file Map1Dto3D.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 |