Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 75d4c99b authored by kraus's avatar kraus
Browse files

Fixing computation of chord length in rectangular bend

parent 6d4ff07f
No related branches found
No related tags found
1 merge request!87Resolve "Calculation of chord length in RBend wrong"
......@@ -154,8 +154,9 @@ bool RBend::findChordLength(Inform &msg,
*/
const double angle = getBendAngle();
if (std::abs(angle) > 0.0) {
double E1 = std::copysign(1.0, angle) * getEntranceAngle();
chordLength = 2 * getLength() * sin(0.5 * std::abs(angle)) /
(sin(getEntranceAngle()) + sin(std::abs(angle) - getEntranceAngle()));
(sin(E1) + sin(std::abs(angle) - E1));
} else {
double refMass = RefPartBunch_m->getM();
double refGamma = designEnergy_m / refMass + 1.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment