Commit b8972c83 authored by Jianjun Yang's avatar Jianjun Yang
Browse files

add a function getFieldDimensions() to get the dimension of a 3D box

parent bee3fb9a
......@@ -226,6 +226,8 @@ void Astra1DDynamic::getFieldDimensions(double &zBegin, double &zEnd, double &rB
zEnd = zend_m;
}
void Astra1DDynamic::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DDynamic::swap()
{ }
......
......@@ -9,6 +9,7 @@ public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual void swap();
virtual void getInfo(Inform *);
virtual double getFrequency() const;
......
......@@ -258,6 +258,7 @@ void Astra1DDynamic_fast::getFieldDimensions(double &zBegin, double &zEnd, doubl
zBegin = zbegin_m;
zEnd = zend_m;
}
void Astra1DDynamic_fast::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DDynamic_fast::swap()
{ }
......
......@@ -11,6 +11,7 @@ public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual void swap();
virtual void getInfo(Inform *);
virtual double getFrequency() const;
......
......@@ -204,6 +204,8 @@ void Astra1DElectroStatic::getFieldDimensions(double &zBegin, double &zEnd, doub
zEnd = zend_m;
}
void Astra1DElectroStatic::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DElectroStatic::swap()
{ }
......
......@@ -8,6 +8,7 @@ class Astra1DElectroStatic: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
......@@ -237,6 +237,7 @@ void Astra1DElectroStatic_fast::getFieldDimensions(double &zBegin, double &zEnd,
zBegin = zbegin_m;
zEnd = zend_m;
}
void Astra1DElectroStatic_fast::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DElectroStatic_fast::swap()
{ }
......
......@@ -10,6 +10,7 @@ class Astra1DElectroStatic_fast: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
......@@ -199,6 +199,7 @@ void Astra1DMagnetoStatic::getFieldDimensions(double &zBegin, double &zEnd, doub
zBegin = zbegin_m;
zEnd = zend_m;
}
void Astra1DMagnetoStatic::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DMagnetoStatic::swap()
{ }
......
......@@ -8,6 +8,7 @@ class Astra1DMagnetoStatic: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
......@@ -236,6 +236,8 @@ void Astra1DMagnetoStatic_fast::getFieldDimensions(double &zBegin, double &zEnd,
zEnd = zend_m;
}
void Astra1DMagnetoStatic_fast::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void Astra1DMagnetoStatic_fast::swap()
{ }
......
......@@ -10,6 +10,7 @@ class Astra1DMagnetoStatic_fast: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
......@@ -202,6 +202,8 @@ void FM1DDynamic::getFieldDimensions(double &zBegin, double &zEnd, double &rBegi
rEnd = rend_m;
}
void FM1DDynamic::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void FM1DDynamic::swap()
{ }
......
......@@ -9,6 +9,7 @@ public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual void swap();
virtual void getInfo(Inform *);
virtual double getFrequency() const;
......
......@@ -231,6 +231,8 @@ void FM1DDynamic_fast::getFieldDimensions(double &zBegin, double &zEnd, double &
rEnd = rend_m;
}
void FM1DDynamic_fast::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void FM1DDynamic_fast::swap()
{ }
......
......@@ -11,6 +11,7 @@ public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual void swap();
virtual void getInfo(Inform *);
virtual double getFrequency() const;
......
......@@ -177,6 +177,7 @@ void FM1DElectroStatic::getFieldDimensions(double &zBegin, double &zEnd, double
rBegin = rbegin_m;
rEnd = rend_m;
}
void FM1DElectroStatic::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void FM1DElectroStatic::swap()
{ }
......
......@@ -8,6 +8,7 @@ class FM1DElectroStatic: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
......@@ -219,6 +219,7 @@ void FM1DElectroStatic_fast::getFieldDimensions(double &zBegin, double &zEnd, do
rBegin = rbegin_m;
rEnd = rend_m;
}
void FM1DElectroStatic_fast::getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const {}
void FM1DElectroStatic_fast::swap()
{ }
......
......@@ -10,6 +10,7 @@ class FM1DElectroStatic_fast: public Fieldmap {
public:
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
virtual void getFieldDimensions(double &zBegin, double &zEnd, double &rBegin, double &rEnd) const;
virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
virtual bool getFieldstrength_fdiff(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
virtual void swap();
virtual void getInfo(Inform *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment