MURE
Loading...
Searching...
No Matches
MCNPSurfaceCard.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 _MCNPSURFACECARD_HXX_
20#define _MCNPSURFACECARD_HXX_
21
27#include <fstream> // for std
28#include <string> // for string
29
30using namespace std;
31#include "SurfaceCard.hxx"
32
34
41{
42 public:
47 MCNPSurfaceCard(int Number = 0);
49 ~MCNPSurfaceCard() =default ;
50// ~MCNPSurfaceCard() =default override; //!< destructor.
52 {
53 return new MCNPSurfaceCard(*this);
54 }
55
56
57 string Print(bool tmpvol = false);
58
59 void SetReflectingCode(char c)
60 {
61 fReflectingCode = c;
62 }
64 {
65 return fReflectingCode;
66 }
68 {
69 fPeriodicPlane = num;
70 }
73 string GetId(int sign = 1) const override;
74 private:
77};
78
79#endif
80
#define sign(a)
Definition GenericReactorAssembly.cxx:43
Header file for SurfaceCard class.
MCNPSurfaceCard class print a mathematical surface in MCNP output format.
Definition MCNPSurfaceCard.hxx:41
char GetReflectingCode()
Definition MCNPSurfaceCard.hxx:63
static void UpdateMureSurfaceCardVector(MCNPSurfaceCard *&S)
Definition MCNPSurfaceCard.cxx:111
void SetReflectingCode(char c)
Definition MCNPSurfaceCard.hxx:59
char fReflectingCode
the reflecting code (mirror='*' or white boundary='+')
Definition MCNPSurfaceCard.hxx:75
string Print(bool tmpvol=false)
Print a MCNP surface in the surface block.
Definition MCNPSurfaceCard.cxx:67
string GetId(int sign=1) const override
Definition MCNPSurfaceCard.cxx:140
~MCNPSurfaceCard()=default
destructor.
int fPeriodicPlane
MCNP Number of periodic plane.
Definition MCNPSurfaceCard.hxx:76
MCNPSurfaceCard * Clone() override
Definition MCNPSurfaceCard.hxx:51
MCNPSurfaceCard * FindExistingSurfaceCard(MCNPSurfaceCard *&S)
Definition MCNPSurfaceCard.cxx:93
void SetPeriodicPlaneNumber(int num)
Definition MCNPSurfaceCard.hxx:67
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