asmhandler.hpp
Go to the documentation of this file.
size_t getEqns() const Get the number of equations in the system. Definition: asmhandler.hpp:58 fixMap fixedNodes The map holding information about our fixed nodes. Definition: asmhandler.hpp:208 size_t maxeqn The number of equations in the system. Definition: asmhandler.hpp:223 void printLoadVector() const Print the current load vector. Definition: asmhandler_impl.hpp:243 Definition: applier.hpp:18 void addDOF(int row, int erow, const Dune::FieldMatrix< double, esize, esize > *K, const Dune::FieldVector< double, esize > *S, const LeafIndexSet &set, const LeafIterator &cell, Vector *b, double scale=1.f) Internal function. Assemble entries for a single DOF. Definition: asmhandler_impl.hpp:52 void preprocess() Internal function. Generate meqn for registered MPC/fixed nodes. Definition: asmhandler_impl.hpp:317 GridType::LeafGridView::template Codim< 0 >::Iterator LeafIterator An iterator over grid cells. Definition: asmhandler.hpp:38 const GridType & gv A reference to the grid in use. Definition: asmhandler.hpp:220 std::vector< std::set< int > > AdjacencyPattern For storing matrix adjacency/sparsity patterns. Definition: matrixops.hpp:26 void extractValues(Dune::FieldVector< double, comp > &v, const Vector &u, const LeafIterator &it) Extract values corresponding to cell. Definition: asmhandler_impl.hpp:114 static const int dim The dimension of the grid. Definition: asmhandler.hpp:32 std::pair< Direction, NodeValue > fixEntry Fixed nodes. Definition: asmhandler.hpp:199 Vector & getLoadVector() Obtain a reference to the load vector. Definition: asmhandler.hpp:81 A class for representing a general multi-point constraint equation. Definition: mpc.hh:58 void addElement(const Dune::FieldMatrix< double, esize, esize > *K, const Dune::FieldVector< double, esize > *S, const LeafIterator &cell, Vector *b=NULL) Add an element matrix/vector to the system. Definition: asmhandler_impl.hpp:85 ASMHandler(const GridType &gv_) The default constructor. Definition: asmhandler.hpp:42 Dune::FieldVector< double, dim > NodeValue A vectorial node value. Definition: asmhandler.hpp:54 std::map< int, MPC * > MPCMap A mapping from dof to MPCs. Definition: mpc.hh:159 Dune::BCRSMatrix< Dune::FieldMatrix< double, 1, 1 > > Matrix A sparse matrix holding our operator. Definition: matrixops.hpp:23 void expandSolution(Vector &result, const Vector &u) Expand a system vector to a solution vector. Definition: asmhandler_impl.hpp:147 Helper class with some matrix operations. void resolveMPCChain(MPC *mpc) Internal function. Handles a single MPC. Definition: asmhandler_impl.hpp:252 bool isFixed(int node) Check if a node is marked as fixed (in any direction) Definition: asmhandler.hpp:132 void updateFixedNode(int node, const std::pair< Direction, NodeValue > &entry) Update/add a fixed node. Definition: asmhandler_impl.hpp:216 Logging helper utilities. void determineAdjacencyPattern() Internal function. Calculate adjacency pattern. Definition: asmhandler_impl.hpp:377 AdjacencyPattern adjacencyPattern Holds the adjacency pattern of the sparse matrix. Definition: asmhandler.hpp:211 void printOperator() const Print the current operator. Definition: asmhandler_impl.hpp:237 void nodeAdjacency(const LeafIterator &it, int vertexsize, int row) Internal function. Generate adjacency pattern for a given node. Definition: asmhandler_impl.hpp:353 Matrix & getOperator() Obtain a reference to the linear operator. Definition: asmhandler.hpp:74 Representation of multi-point constraint (MPC) equations. void initForAssembly() This function needs to be called before starting the element assembly. Definition: asmhandler_impl.hpp:22 std::vector< int > meqn Vector of (interleaved) dof<->eqn mapping. Definition: asmhandler.hpp:196 std::map< int, fixEntry > fixMap A mapping from dof to fix value info. Definition: asmhandler.hpp:202 void addMPC(MPC *mpc) Add a MPC. Definition: asmhandler_impl.hpp:189 MPC * getMPC(int node, int dof) Look for and return a MPC for a specified node+dof. Definition: asmhandler_impl.hpp:207 Class handling finite element assembly - template implementations. void resolveMPCChains() Resolve chained MPCs. Definition: asmhandler.hpp:151 Dune::BlockVector< Dune::FieldVector< double, 1 > > Vector A vector holding our RHS. Definition: matrixops.hpp:29 GridType::LeafGridView::IndexSet LeafIndexSet A set of indices. Definition: asmhandler.hpp:35 int getEquationForDof(int node, int dof) Get the equation number for a given dof on a given node. Definition: asmhandler.hpp:67 AdjacencyPattern & getAdjacencyPattern() Access current adjacency pattern. Definition: asmhandler.hpp:145 fixMap::iterator fixIt Iterator over a fixmap. Definition: asmhandler.hpp:205 |