OpenFCST: The open-source Fuel Cell Simulation Toolbox
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
contrib
appframe
appframe
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
61
Random
(
ApplicationBase
&
app
,
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
119
double
scaled_amplitude
;
126
bool
store_vectors
;
127
};
128
}
129
130
131
132
#endif
Generated on Fri Aug 30 2013 17:15:54 for OpenFCST: The open-source Fuel Cell Simulation Toolbox by
1.8.2