MURE
Loading...
Searching...
No Matches
MCNPTimeEnergyGrid.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef MCNPTimeEnergyGrid_H
20#define MCNPTimeEnergyGrid_H
21#include <string>
22#include <utility>
23#include <vector>
24#include <sstream>
25#include <fstream>
26
28
29using namespace std;
35namespace MCNP
36{
37
39
47{
48 public:
50 TimeEnergyGrid(int Number): MureTimeEnergyGrid(Number) {}
51 TimeEnergyGrid(const TimeEnergyGrid &other) = default;
53 {
54 return new TimeEnergyGrid(*this);
55 }
56
57 void Print(ofstream &Out) override;
58 string GetName() override;
59};
60
61}
62#endif // MCNPTimeEnergyGrid_H
Header file for MureTimeEnergyGrid Abstract class.
Define a Time and/or Energy Grid for tallies.
Definition MCNPTimeEnergyGrid.hxx:47
void Print(ofstream &Out) override
Print the grid to serpent input file.
Definition MCNPTimeEnergyGrid.cxx:35
string GetName() override
return the grid number as a string
Definition MCNPTimeEnergyGrid.cxx:102
TimeEnergyGrid(const TimeEnergyGrid &other)=default
Copy constructor.
TimeEnergyGrid(int Number)
normal constructor.
Definition MCNPTimeEnergyGrid.hxx:50
TimeEnergyGrid * Clone() override
clone method
Definition MCNPTimeEnergyGrid.hxx:52
TimeEnergyGrid()
default constructor.
Definition MCNPTimeEnergyGrid.hxx:49
Define a Time and/or Energy Grid for tallies (abstract class)
Definition MureTimeEnergyGrid.hxx:40
This MCNP (concrete) class is used to built a reactor assembly.
Definition MCNPBrick.hxx:41
the namespace of the Standard C++

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024