MURE
Loading...
Searching...
No Matches
SerpentSurfaceCard.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 SERPENTSURFACECARD_H
20#define SERPENTSURFACECARD_H
21
27#include <fstream>
28#include <iostream>
29#include <sstream>
30#include <vector>
31#include <string>
32
33#include "SurfaceCard.hxx"
34
35using namespace std;
36
38
45{
46 public:
50 {
51 return new SerpentSurfaceCard(*this);
52 }
53
54 string Print(bool tmpvol = false);
56 string GetId(int sign = 1) const override;
58
59 private:
60 const static string NAME_PREFIX;
61 const static string SERPENT_SURFACE_COMMAND;
62 string GetArgumentString() const;
63
64};
65
66#endif // SERPENTSURFACECARD_H
#define sign(a)
Definition GenericReactorAssembly.cxx:43
Header file for SurfaceCard class.
SerpentSurfaceCard class print a mathematical surface in Serpent output format.
Definition SerpentSurfaceCard.hxx:45
static const string NAME_PREFIX
a prefix string associated to the surface number ("s"=> "s1")
Definition SerpentSurfaceCard.hxx:60
SerpentSurfaceCard * Clone() override
Definition SerpentSurfaceCard.hxx:49
static const string SERPENT_SURFACE_COMMAND
the "surf" serpent card
Definition SerpentSurfaceCard.hxx:61
string Print(bool tmpvol=false)
Print a surface in the Serpent input file.
Definition SerpentSurfaceCard.cxx:74
string GetId(int sign=1) const override
return the surface card "name" with a sign for inside/ouside of a shape
Definition SerpentSurfaceCard.cxx:61
SerpentSurfaceCard * FindExistingSurfaceCard(SerpentSurfaceCard *&S)
find if a surface card has already been defined
Definition SerpentSurfaceCard.cxx:85
SerpentSurfaceCard()
Definition SerpentSurfaceCard.cxx:39
SerpentSurfaceCard(const SerpentSurfaceCard &other)
Copy constructor.
string GetArgumentString() const
argument of the surface card (such as the radius of a sphere)
Definition SerpentSurfaceCard.cxx:45
static void UpdateMureSurfaceCardVector(SerpentSurfaceCard *&S)
verify that if the card exist or not ; if not adds it to MURE vector
Definition SerpentSurfaceCard.cxx:98
SurfaceCard class is used to define geometrical math surface for MC output format.
Definition SurfaceCard.hxx:42
the namespace of the Standard C++

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