rb_eim_assembly.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_RB_EIM_ASSEMBLY_H 00021 #define LIBMESH_RB_EIM_ASSEMBLY_H 00022 00023 // rbOOmit includes 00024 #include "libmesh/elem_assembly.h" 00025 00026 // libMesh includes 00027 #include "libmesh/auto_ptr.h" 00028 #include "libmesh/numeric_vector.h" 00029 #include "libmesh/point.h" 00030 00031 namespace libMesh 00032 { 00033 00034 class Elem; 00035 class RBParameters; 00036 class RBEIMConstruction; 00037 00046 class RBEIMAssembly : public ElemAssembly 00047 { 00048 public: 00049 00053 RBEIMAssembly(RBEIMConstruction& rb_eim_con_in, 00054 unsigned int basis_function_index_in); 00055 00060 void evaluate_basis_function(unsigned int var, 00061 const Elem& element, 00062 const std::vector<Point>& qpoints, 00063 std::vector<Number>& values); 00064 00068 RBEIMConstruction& get_rb_eim_construction(); 00069 00070 private: 00071 00075 RBEIMConstruction& _rb_eim_con; 00076 00080 unsigned int _basis_function_index; 00081 00087 AutoPtr< NumericVector<Number> > _ghosted_basis_function; 00088 00089 }; 00090 00091 } 00092 00093 #endif // LIBMESH_RB_EIM_ASSEMBLY_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: