|
TpsaVector.hpp
Go to the documentation of this file.
Mutable reference to the seven equations of a single cell. Definition: TpsaVector.hpp:76 EntryProxy & operator-=(const EqVector &value) Subtract a dense 7x1 block from the equations of the cell. EntryProxy & operator=(const EntryProxy &other) Copy the equations of one cell to another. EntryProxy & operator+=(const EqVector &value) Add a dense 7x1 block to the equations of the cell. EntryProxy(IstlVector &v, std::size_t dofIdx) Construct a handle on the equations of one cell. Definition: TpsaVector.hpp:85 static constexpr std::size_t size() Number of equations the proxy exposes. Definition: TpsaVector.hpp:96 EntryProxy & operator=(Scalar value) Set all seven equations of the cell to a scalar. EntryProxy & operator*=(Scalar factor) Scale all seven equations of the cell. Scalar operator[](std::size_t eqIdx) const Read one equation of the cell. Definition: TpsaVector.hpp:120 Scalar & operator[](std::size_t eqIdx) Access one equation of the cell. Definition: TpsaVector.hpp:108 EntryProxy & operator=(const EqVector &value) Scatter a dense 7x1 block into the sub-vectors. EntryProxy operator[](std::size_t dofIdx) Writable handle on the seven equations of cell dofIdx. Definition: TpsaVector.hpp:333 Scalar two_norm() const Euclidean norm of the vector. Definition: TpsaVector.hpp:305 IstlVector & istlVector() The underlying multi-type vector handed to the linear solver. Definition: TpsaVector.hpp:343 std::size_t size_type Type used for sizes and indices. Definition: TpsaVector.hpp:68 EqVector operator[](std::size_t dofIdx) const The seven equations of cell dofIdx, gathered into a dense block. Dune::FieldVector< Scalar, numTpsaEq > EqVector Dense block holding the seven equations of a single cell. Definition: TpsaVector.hpp:59 TpsaMultiVector< Scalar > IstlVector What the linear solver operates on. Definition: TpsaVector.hpp:65 Scalar infinity_norm() const Largest absolute value over all entries. void resize(std::size_t numDof) Resize every sub-vector to the given number of cells. void scaleFields(const std::array< Scalar, numTpsaFields > &factors) Multiply each field by factor. TpsaVector(std::size_t numDof) Construct a vector sized for the given number of cells. Definition: TpsaVector.hpp:211 ScalarT Scalar Field type of the vector entries. Definition: TpsaVector.hpp:53 TpsaVector & operator*=(Scalar factor) Scale every entry of every field. EqVector block_type Dense block holding the seven equations of a single cell. Definition: TpsaVector.hpp:62 std::size_t N() const Number of cells the vector holds equations for. Definition: TpsaVector.hpp:234 ScalarT field_type Field type of the vector entries. Definition: TpsaVector.hpp:56 TpsaVector & operator+=(const TpsaVector &other) Add another vector field by field. TpsaVector()=default Construct an empty vector; call resize() before use. TpsaVector & operator=(Scalar value) Set every entry of every field to a scalar. TpsaVector & operator-=(const TpsaVector &other) Subtract another vector field by field. const IstlVector & istlVector() const The underlying multi-type vector handed to the linear solver. Definition: TpsaVector.hpp:349 std::size_t size() const Number of cells the vector holds equations for. Definition: TpsaVector.hpp:228 Definition: bicgstabsolver.hh:42 Dune::MultiTypeBlockVector< DispVector0T< Scalar >, DispVector1T< Scalar >, DispVector2T< Scalar >, RotVectorT< Scalar >, SPresVectorT< Scalar > > TpsaMultiVector The vector the Krylov solver and the preconditioner operate on. Definition: TpsaTypes.hpp:120 constexpr int numTpsaEq Total number of TPSA equations per cell. Definition: TpsaTypes.hpp:49 |