$extrastylesheet
transient_rb_assembly_expansion.h
Go to the documentation of this file.
00001 // rbOOmit: An implementation of the Certified Reduced Basis method.
00002 // Copyright (C) 2009, 2010 David J. Knezevic
00003 
00004 // This file is part of rbOOmit.
00005 
00006 // rbOOmit is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License, or (at your option) any later version.
00010 
00011 // rbOOmit is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 #ifndef LIBMESH_TRANSIENT_RB_ASSEMBLY_EXPANSION_H
00021 #define LIBMESH_TRANSIENT_RB_ASSEMBLY_EXPANSION_H
00022 
00023 // libMesh includes
00024 #include "libmesh/rb_assembly_expansion.h"
00025 
00026 // C++ includes
00027 
00028 namespace libMesh
00029 {
00030 
00040 // ------------------------------------------------------------
00041 // TransientRBAssemblyExpansion class definition
00042 class TransientRBAssemblyExpansion : public RBAssemblyExpansion
00043 {
00044 public:
00045 
00049   TransientRBAssemblyExpansion();
00050 
00054   void perform_M_interior_assembly(unsigned int q,
00055                                    FEMContext& context);
00056 
00060   void perform_M_boundary_assembly(unsigned int q,
00061                                    FEMContext& context);
00062 
00067   unsigned int get_n_M_terms() const;
00068 
00073   void attach_M_assembly(ElemAssembly* A_q_assembly);
00074 
00078   ElemAssembly& get_M_assembly(unsigned int q);
00079 
00080 private:
00081 
00087   std::vector<ElemAssembly*> _M_assembly_vector;
00088 
00089 };
00090 
00091 }
00092 
00093 #endif // LIBMESH_TRANSIENT_RB_ASSEMBLY_EXPANSION_H