MURE
Loading...
Searching...
No Matches
MCNPCylinder.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 _MCNPCYLINDER_HXX_
20#define _MCNPCYLINDER_HXX_
21
22#include <string>
23
24#include "MathCylinder.hxx"
25#include "MCNPSurfaceCard.hxx"
26#include "MCNPNode.hxx"
27
28class MCNPSurfaceCard;
29class SurfaceCard;
30
31namespace MCNP
32{
33
40
50class Cylinder : public MathCylinder
51{
52 public :
65 Cylinder(double R = 0.01, double X = 0, double Y = 0, double Z = 0,
66 double dX = 0, double dY = 0, double dZ = 1, int Sign = - 1);
71 string Print() override;
72 SurfaceCard *GetSurfaceCard() override;
74
75 protected:
76 Cylinder *CreateNewInstance(int sign = 1) override;
78};
79}
80
81#endif
#define sign(a)
Definition GenericReactorAssembly.cxx:43
Header file for MCNP::Node class.
Header file for MCNPSurfaceCard class.
Header file for MathCylinder class.
MCNPSurfaceCard class print a mathematical surface in MCNP output format.
Definition MCNPSurfaceCard.hxx:41
Infinite cylinder Shape.
Definition MCNPCylinder.hxx:51
Cylinder * CreateNewInstance(int sign=1) override
a new Cylinder instance.
Definition MCNPCylinder.cxx:148
string Print() override
Print the Shape surface in MCNP cell.
Definition MCNPCylinder.cxx:44
SurfaceCard * GetSurfaceCard() override
return the surface card for a MCNP cylinder(cx, ...)
Definition MCNPCylinder.cxx:52
void DefineSurface(MCNPSurfaceCard *&S)
Define surface in MCNP format.
Definition MCNPCylinder.cxx:62
Infinite cylinder Shape.
Definition MathCylinder.hxx:47
SurfaceCard class is used to define geometrical math surface for MC output format.
Definition SurfaceCard.hxx:42
This MCNP (concrete) class is used to built a reactor assembly.
Definition MCNPBrick.hxx:41

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