rb_theta_expansion.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_RB_THETA_EXPANSION_H
21 #define LIBMESH_RB_THETA_EXPANSION_H
22 
23 // libMesh includes
24 #include "libmesh/libmesh_common.h"
26 
27 // C++ includes
28 #include <vector>
29 
30 
31 namespace libMesh
32 {
33 
34 class RBTheta;
35 class RBParameters;
36 
44 // ------------------------------------------------------------
45 // RBThetaExpansion class definition
46 class RBThetaExpansion : public ReferenceCountedObject<RBThetaExpansion>
47 {
48 public:
49 
54 
58  virtual ~RBThetaExpansion() {}
59 
65  Number eval_A_theta(unsigned int q,
66  const RBParameters& mu);
67 
71  Number eval_F_theta(unsigned int q,
72  const RBParameters& mu);
73 
77  Number eval_output_theta(unsigned int output_index,
78  unsigned int q_l,
79  const RBParameters& mu);
80 
85  unsigned int get_n_A_terms() const;
86 
91  unsigned int get_n_F_terms() const;
92 
96  unsigned int get_n_outputs() const;
97 
101  unsigned int get_n_output_terms(unsigned int output_index) const;
102 
107  virtual void attach_A_theta(RBTheta* theta_q_a);
108 
113  virtual void attach_multiple_A_theta(std::vector<RBTheta*> theta_q_a);
114 
119  virtual void attach_F_theta(RBTheta* theta_q_f);
120 
125  virtual void attach_multiple_F_theta(std::vector<RBTheta*> theta_q_f);
126 
131  virtual void attach_output_theta(std::vector<RBTheta*> theta_q_l);
132 
137  virtual void attach_output_theta(RBTheta* theta_q_l);
138 
139 
140 private:
141 
145  std::vector<RBTheta*> _A_theta_vector;
146 
150  std::vector<RBTheta*> _F_theta_vector;
151 
155  std::vector< std::vector<RBTheta*> > _output_theta_vector;
156 
157 };
158 
159 }
160 
161 #endif // LIBMESH_RB_THETA_EXPANSION_H

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

Hosted By:
SourceForge.net Logo