PyNE C++
source.h
1 
6 #ifndef PYNE_IQ4M73STINHJDPRV6KWUZZXOYE
7 #define PYNE_IQ4M73STINHJDPRV6KWUZZXOYE
8 
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <fstream>
12 #include <iostream>
13 #include <map>
14 #include <set>
15 #include <string>
16 
17 #ifndef PYNE_IS_AMALGAMATED
18 #include "h5wrap.h"
19 #include "utils.h"
20 #endif
21 
22 namespace pyne {
23 
24 class Source {
25  public:
27  Source();
28 
29  ~Source();
30 
31  // mcnp tally
32  virtual std::string mcnp(int version=5) const {return "";}
33 
34  // fluka tally
35  virtual std::string fluka() {}
36 };
37 
38 class PointSource : public Source {
39  public:
41  PointSource(double _x = 0, double _y = 0, double _z = 0, double _u = 0,
42  double _v = 0, double _w = 0, double _E = 14, std::string _particle = "Neutron",
43  double _weight = 1);
44 
45  ~PointSource();
46 
47  // mcnp tally
48  virtual std::string mcnp(int version=5) const;
49 
50  // fluka tally
51  std::string fluka();
52 
53 
54 
55  double x;
56  double y;
57  double z;
58 
59  double u;
60  double v;
61  double w;
62 
63  double E;
64  double weight;
65  std::string particle;
66 };
67 
69 std::ostream& operator<<(std::ostream& os, Source source);
70 
71 // End pyne namespace
72 } // namespace pyne
73 
74 #endif
Source()
Source Constructors.
Definition: source.cpp:26
virtual std::string mcnp(int version=5) const
default destructor
Definition: source.h:32
~Source()
empty constructor
Definition: source.cpp:29
Definition: source.h:24
Definition: source.h:38
Provides some HDF5 helper functionality in its own namespace.
std::ostream & operator<<(std::ostream &os, Material mat)
Definition: material.cpp:1446
A container representing enrichment cascades.
Definition: _atomic_data.h:16