MURE
Loading...
Searching...
No Matches
SerpentSphere.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 _MMCNPSPHERE_
20#define _MMCNPSPHERE_
21#include <string>
22
23#include "MathSphere.hxx"
25
31namespace Serpent
32{
33
35
45class Sphere: public MathSphere
46{
47 public:
49
57 Sphere(double R = 0.01, double X = 0, double Y = 0, double Z = 0, double Sign = - 1);
58
63 string Print() override;
67
68 protected:
70 Sphere *CreateNewInstance(int sign = 1) override;
71 int GetMonoSurfaceType() override
72 {
73 return 1;
74 }
75
76};
77
78}
79
80#endif
#define sign(a)
Definition GenericReactorAssembly.cxx:43
Header file for MathSphere class.
Header file for SerpentSurfaceCard class.
Define a MathSphere Shape.
Definition MathSphere.hxx:48
SerpentSurfaceCard class print a mathematical surface in Serpent output format.
Definition SerpentSurfaceCard.hxx:45
Define a Sphere Shape.
Definition SerpentSphere.hxx:46
string Print() override
Print the Shape surface in Serpent cell.
Definition SerpentSphere.cxx:36
SerpentSurfaceCard * GetSurfaceCard() override
return the surface card for a Serpent Plane (sph)
Definition SerpentSphere.cxx:42
Sphere * CreateNewInstance(int sign=1) override
a new Sphere instance
Definition SerpentSphere.cxx:71
void DefineSurface(SerpentSurfaceCard *&S)
Define surface in Serpent format.
Definition SerpentSphere.cxx:58
int GetMonoSurfaceType() override
Definition SerpentSphere.hxx:71
void nullateParametersLowerThanPrecision()
set all parameter less than a precision to 0
Definition SerpentSphere.cxx:50
the namespace use to couple MURE and Serpent

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