OPALX (Object Oriented Parallel Accelerator Library for Exascal)
master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
OpalSolenoid.h
Go to the documentation of this file.
1
//
2
// Class OpalSolenoid
3
// The SOLENOID element.
4
//
5
// Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// This file is part of OPAL.
9
//
10
// OPAL is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17
//
18
#ifndef OPAL_OpalSolenoid_HH
19
#define OPAL_OpalSolenoid_HH
20
21
#include "
Elements/OpalElement.h
"
22
23
class
OpalSolenoid
:
public
OpalElement
{
24
public
:
26
enum
{
27
KS
=
COMMON
,
// The longitudinal magnetic field.
28
DKS
,
// The longitudinal magnetic field error.
29
FMAPFN
,
// The Field filename
30
FAST
,
// Faster but less accurate
31
SIZE
32
};
33
35
OpalSolenoid
();
36
37
virtual
~OpalSolenoid
();
38
40
virtual
OpalSolenoid
*
clone
(
const
std::string& name);
41
43
virtual
void
update
();
44
45
private
:
46
// Not implemented.
47
OpalSolenoid
(
const
OpalSolenoid
&);
48
void
operator=
(
const
OpalSolenoid
&);
49
50
// Clone constructor.
51
OpalSolenoid
(
const
std::string& name,
OpalSolenoid
* parent);
52
};
53
54
#endif
// OPAL_OpalSolenoid_HH
OpalElement.h
OpalElement
Definition
OpalElement.h:31
OpalElement::COMMON
@ COMMON
Definition
OpalElement.h:57
OpalSolenoid
Definition
OpalSolenoid.h:23
OpalSolenoid::FAST
@ FAST
Definition
OpalSolenoid.h:30
OpalSolenoid::DKS
@ DKS
Definition
OpalSolenoid.h:28
OpalSolenoid::FMAPFN
@ FMAPFN
Definition
OpalSolenoid.h:29
OpalSolenoid::KS
@ KS
Definition
OpalSolenoid.h:27
OpalSolenoid::SIZE
@ SIZE
Definition
OpalSolenoid.h:31
OpalSolenoid::~OpalSolenoid
virtual ~OpalSolenoid()
Definition
OpalSolenoid.cpp:41
OpalSolenoid::clone
virtual OpalSolenoid * clone(const std::string &name)
Make clone.
Definition
OpalSolenoid.cpp:43
OpalSolenoid::OpalSolenoid
OpalSolenoid()
Exemplar constructor.
Definition
OpalSolenoid.cpp:24
OpalSolenoid::OpalSolenoid
OpalSolenoid(const OpalSolenoid &)
OpalSolenoid::update
virtual void update()
Update the embedded OPALX solenoid.
Definition
OpalSolenoid.cpp:45
OpalSolenoid::operator=
void operator=(const OpalSolenoid &)
src
Elements
OpalSolenoid.h
Generated on Mon Jun 1 2026 10:40:52 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8