elem_assembly.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 #ifndef LIBMESH_ELEM_ASSEMBLY_H
19 #define LIBMESH_ELEM_ASSEMBLY_H
20 
22 #include "libmesh/dense_matrix.h"
23 
24 namespace libMesh
25 {
26 
27 class FEMContext;
28 class System;
29 class Node;
30 
38 class ElemAssembly : public ReferenceCountedObject<ElemAssembly>
39 {
40 public:
41 
47  {}
48 
52  virtual ~ElemAssembly () {}
53 
57  virtual void interior_assembly(FEMContext &) { }
58 
62  virtual void boundary_assembly(FEMContext &) { }
63 
68  virtual void
69  get_nodal_values(std::vector<dof_id_type>& ,
72  const System & ,
73  const Node &)
74  {
75  // Do nothing by default
76  }
77 
78 protected:
79 
80 };
81 
82 }
83 
84 #endif // LIBMESH_ELEM_ASSEMBLY_H
A geometric point in (x,y,z) space associated with a DOF.
Definition: node.h:52
virtual void interior_assembly(FEMContext &)
Definition: elem_assembly.h:57
virtual void get_nodal_values(std::vector< dof_id_type > &, DenseMatrix< Number > &, DenseVector< Number > &, const System &, const Node &)
Definition: elem_assembly.h:69
virtual void boundary_assembly(FEMContext &)
Definition: elem_assembly.h:62
Manages consistently variables, degrees of freedom, and coefficient vectors.
Definition: system.h:92