MURE
Loading...
Searching...
No Matches
SerpentTimeEnergyGrid.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 SerpentTimeEnergyGrid_H
20#define SerpentTimeEnergyGrid_H
21#include <string>
22#include <utility>
23#include <vector>
24#include <sstream>
25#include <fstream>
26
28
29using namespace std;
35namespace Serpent
36{
38
46{
47 public:
48
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 private:
61 const static string NAME_PREFIX;
62 const static string COMMAND;
63};
64
65}
66#endif // SerpentTimeEnergyGrid_H
Header file for MureTimeEnergyGrid Abstract class.
Define a Time and/or Energy Grid for tallies (abstract class)
Definition MureTimeEnergyGrid.hxx:40
Define a Time and/or Energy Grid for tallies.
Definition SerpentTimeEnergyGrid.hxx:46
string GetName() override
return the grid name (prefix+number)
Definition SerpentTimeEnergyGrid.cxx:64
TimeEnergyGrid(const TimeEnergyGrid &other)=default
Copy constructor.
TimeEnergyGrid()
default constructor.
Definition SerpentTimeEnergyGrid.hxx:49
TimeEnergyGrid * Clone() override
clone method
Definition SerpentTimeEnergyGrid.hxx:52
static const string COMMAND
Serpent card for energy grid ("ene" card)
Definition SerpentTimeEnergyGrid.hxx:62
void Print(ofstream &Out) override
Print the grid to serpent input file.
Definition SerpentTimeEnergyGrid.cxx:37
static const string NAME_PREFIX
grid prefix for name ("e"=> "e1")
Definition SerpentTimeEnergyGrid.hxx:61
TimeEnergyGrid(int Number)
normal constructor.
Definition SerpentTimeEnergyGrid.hxx:50
the namespace use to couple MURE and Serpent
the namespace of the Standard C++

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