Skip to content

Commit 16b7a4f

Browse files
Bug fix. Math. term for left bearing divided by length of beam, not by dist. between bearings.
To divide the term for the solution of the left bearing by the distance betwenn the bearings (not the length of the beam!) is the right way to do it.
1 parent 1955a75 commit 16b7a4f

File tree

5 files changed

+3
-2
lines changed

5 files changed

+3
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

BeamCalc.jar

11.5 KB
Binary file not shown.
-3 Bytes
Binary file not shown.

doc/.DS_Store

0 Bytes
Binary file not shown.

src/org/berthold/beamCalc/BeamSolver.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public class BeamSolver {
3636
* Solves a simply supported beam.
3737
*
3838
* @param beam A simply supported {@link Beam} with two {@link Bearing}'s and at least one {@link Load}
39-
* @param floatFormat Float Format. Determines the decimal places used within the term containing the detailed solution.
39+
* @param floatFormat Float Format. Determines the decimal places used within the term containing the detailed solution.<br>
40+
* Example: "2f" means two decimal places....
4041
* @return {@link BeamResult}
4142
*/
4243
public static BeamResult getResults(Beam beam,String floatFormat) {
@@ -160,7 +161,7 @@ public static BeamResult getResults(Beam beam,String floatFormat) {
160161

161162
// For the left bearing
162163
String resultingForceAtLeftBearingFormatet=String.format("%."+floatFormat, result.getResultingForceAtLeftBearing_N());
163-
termForSolutionAtLeftBearing.append(")/" + beam.getLength() + "m = " + resultingForceAtLeftBearingFormatet + "N");
164+
termForSolutionAtLeftBearing.append(")/" + spaceBetweenBearings_m + "m = " + resultingForceAtLeftBearingFormatet + "N");
164165
result.addSolutionTermForLeftBearing(termForSolutionAtLeftBearing.toString());
165166

166167
// For the right bearing

0 commit comments

Comments
 (0)