34 : component_m(nullptr),
35 componentPosition_m(0.), componentOrientation_m(0.),
36 startPosition_m(0.), startOrientation_m(0.),
37 endPosition_m(0.), endOrientation_m(0.) {
41 : component_m(nullptr),
42 componentPosition_m(0.), componentOrientation_m(0.),
43 startPosition_m(0.), startOrientation_m(0.),
44 endPosition_m(0.), endOrientation_m(0.) {
59 "Failed to copy RingSection");
80 return normProd >= 0. && posProd >= 0.;
92 return normProd > 0. && posProd > 0.;
128 std::vector<Vector_t> bb;
160 for (
size_t i = 0; i < virtualBB.size(); ++i) {
168 bool hasBefore =
false;
169 bool hasAfter =
false;
170 for (
size_t i = 0; i < virtualBB.size(); ++i) {
171 hasBefore = hasBefore ||
173 hasAfter = hasAfter ||
177 if (hasBefore && hasAfter)
Tps< T > cos(const Tps< T > &x)
Cosine.
Tps< T > sin(const Tps< T > &x)
Sine.
Tps< T > sqrt(const Tps< T > &x)
Square root.
Interface for a single beam element.
virtual bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B)
virtual ElementBase * clone() const =0
Return clone.
Component placement handler in ring geometry.
Vector_t componentOrientation_m
void setStartNormal(Vector_t orientation)
RingSection & operator=(const RingSection &sec)
void rotate(Vector_t &vector) const
void setStartPosition(Vector_t pos)
Vector_t getStartNormal() const
bool getFieldValue(const Vector_t &pos, const Vector_t ¢roid, const double &t, Vector_t &E, Vector_t &B) const
void rotateToCyclCoordinates(Vector_t &vec) const
Vector_t endOrientation_m
void rotate_back(Vector_t &vector) const
Vector_t startOrientation_m
bool isOnOrPastStartPlane(const Vector_t &pos) const
Vector_t componentPosition_m
bool doesOverlap(double phiStart, double phiEnd) const
Vector_t getEndPosition() const
void updateComponentOrientation()
Vector_t getStartPosition() const
void setEndPosition(Vector_t pos)
Vector_t getEndNormal() const
void setEndNormal(Vector_t orientation)
Vector_t & normalise(Vector_t &vector) const
std::vector< Vector_t > getVirtualBoundingBox() const
void rotateToTCoordinates(Vector_t &vec) const
bool isPastEndPlane(const Vector_t &pos) const
Vektor< double, 3 > Vector_t