OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
random.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // $Id: random.h 1348 2013-08-16 00:45:07Z secanell $
3 //
4 // Copyright (C) 2006, 2007, 2008 by Guido Kanschat
5 //
6 // This file is subject to QPL and may not be distributed
7 // without copyright and license information. Please refer
8 // to the file deal.II/doc/license.html for the text and
9 // further information on this license.
10 //
11 //---------------------------------------------------------------------------
12 
13 #ifndef __deal2__appframe__random_h
14 #define __deal2__appframe__random_h
15 
16 #include <appframe/base.h>
17 
18 namespace dealii
19 {
20  class ParameterHandler;
21  template<typename T> class BlockVector;
22 }
23 
24 
25 namespace AppFrame
26 {
33  class Random : public ApplicationCopy
34  {
35  public:
41  static const Event new_value;
42 
62  bool store_vectors = false);
63 
68  ~Random ();
69  virtual void declare_parameters (ParameterHandler& param);
70 
74  void _initialize (ParameterHandler& param);
75 
76  virtual void initialize (ParameterHandler& param);
77 
82  double amplitude () const;
83 
100  virtual void solve(FEVector& start, const FEVectors& rhs);
101 
102  protected:
111  std::vector<SmartPointer<FEVector > > results;
112 
127  };
128 }
129 
130 
131 
132 #endif