Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source_Exponential.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_EXPONENTIAL_INCLUDED
15 #define SOURCE_EXPONENTIAL_INCLUDED
16 
17 #include "source.h"
18 #include "index_lex.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
23 //- parameters class
25 {
26  public:
28 };
29 //- end
30 
32 
41 class Source_Exponential : public Source
42 {
43  public:
44 
46 
47  void set_parameters(const Parameters& params);
48  void set_parameters(const valarray<int>& source_position,
49  const double slope, const double power);
50 
51  void set(Field& v, int j);
52 
53  private:
55  valarray<int> m_source_position;
56  double m_slope, m_power;
57  bool m_in_node;
59 };
60 #endif /* SOURCE_EXPONENTIAL_INCLUDED */