derived_rb_evaluation.h
Go to the documentation of this file.
1 // rbOOmit: An implementation of the Certified Reduced Basis method.
2 // Copyright (C) 2009, 2010 David J. Knezevic
3 
4 // This file is part of rbOOmit.
5 
6 // rbOOmit is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 
11 // rbOOmit is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 
20 #ifndef LIBMESH_DERIVED_RB_EVALUATION_H
21 #define LIBMESH_DERIVED_RB_EVALUATION_H
22 
23 // Local includes
24 #include "libmesh/dense_vector.h"
25 #include "libmesh/rb_evaluation.h"
26 
27 // C++ includes
28 
29 namespace libMesh
30 {
31 
32 class System;
33 class string;
34 
45 // ------------------------------------------------------------
46 // DerivedRBEvaluation class definition
47 
48 template<class Base>
49 class DerivedRBEvaluation : public Base
50 {
51 public:
52 
57  LIBMESH_CAN_DEFAULT_TO_COMMWORLD);
58 
62  virtual void clear();
63 
67  virtual unsigned int get_n_basis_functions() const;
68 
73  virtual void set_n_basis_functions(unsigned int n_bfs);
74 
80  virtual void write_out_basis_functions(System& sys,
81  const std::string& directory_name = "offline_data",
82  const bool write_binary_basis_functions = true);
83 
89  virtual void read_in_basis_functions(System& sys,
90  const std::string& directory_name = "offline_data",
91  const bool read_binary_basis_functions = true);
92 
93  //----------- PUBLIC DATA MEMBERS -----------//
94 
99  std::vector< DenseVector<Number> > derived_basis_functions;
100 
106 
114 
115 };
116 
117 // And introduce convenient typedefs
119 
120 }
121 
122 #endif // LIBMESH_DERIVED_RB_EVALUATION_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:04 UTC

Hosted By:
SourceForge.net Logo