bar diameter
Computes the diameter of a bar based on various stress conditions.
Controller: CodeCogs
Interface
C++
Overview
Consider the case of a bar made of a certain material on which various forces are exerted along its longitudinal axis, in an upward or downward direction. This module computes the minimum diameter of the bar such that it will withstand the sum of forces that act upon it, also taking into account a safety coefficient. <b>Technical details</b> This module computes the diameter of a bar in the case of tensial and/or compressive stress, where each section of the bar is found between the origins of two consecutive forces. LetMISSING IMAGE!
1/suff_shape-378.jpg cannot be found in /users/1/suff_shape-378.jpg. Please contact the submission author.
References:
Gh. Buzdugan - "Strength of Materials"Authors
- Grigore Bentea, Lucian Bentea (October 2006)
Bar Diameter
| doublebar_diameter( | int | n | |
| double* | forces | ||
| double | sigma | ) |
Example 1
#include <codecogs/engineering/materials/strength/axial/bar_diameter.h> #include <stdio.h> int main() { // input data double F[4] = {32000, 11000, -8000, 2500}, sigma = 3.2E+8; // display the input data printf("Forces:\n\n"); for (int i = 0; i < 4; i++) printf("F[%d] = %8.2lf N\n", i+1, F[i]); printf("\nSigma = %.2lf N/sq.m\n\n", sigma); // compute the diameter of the bar double diameter = Engineering::Materials::Strength::Axial::bar_diameter (4, F, sigma); // display the result printf("Diameter = %.10lf m\n\n", diameter); return 0; }
Output
Forces: F[1] = 32000.00 N F[2] = 11000.00 N F[3] = -8000.00 N F[4] = 2500.00 N Sigma = 320000000.00 N/sq.m Diameter = 0.0130801974 m
Parameters
n the number of axial forces forces an array containing the signed value of each force (<i>Newtons</i>) sigma the value of the maximum allowable stress per unit area (<i>Newtons per sq. meters</i>)
Returns
- The diameter of the bar (<i>meters</i>).
Source Code
This module is private, for owner's use only.
Not a member, then Register with CodeCogs. Already a Member, then Login.
Bar Diameter
| doublebar_diameter( | int | n | |
| double* | forces | ||
| double | E | ||
| double | delta | ) |
Example 2
#include <codecogs/engineering/materials/strength/axial/bar_diameter.h> #include <stdio.h> int main() { // input data double F[4] = {32000, 11000, -8000, 2500}, E = 0.12E+12, delta = 1E-5; // display the input data printf("Forces:\n\n"); for (int i = 0; i < 4; i++) printf("F[%d] = %8.2lf N\n", i+1, F[i]); printf("\nE = %.2lf N/sq.m", E); printf("\nDelta = %.5lf m\n\n", delta); // compute the diameter of the bar double diameter = Engineering::Materials::Strength::Axial::bar_diameter (4, F, E, delta); // display the result printf("Diameter = %.10lf m\n\n", diameter); return 0; }
Output
Forces: F[1] = 32000.00 N F[2] = 11000.00 N F[3] = -8000.00 N F[4] = 2500.00 N E = 120000000000.00 N/sq.m Delta = 0.00001 m Diameter = 0.2135987290 m
Parameters
n the number of axial forces forces an array containing the signed value of each force (<i>Newtons</i>) E the elastic modulus (<i>Newtons per sq. meters</i>) delta the value of the maximum allowable elongation/shortening (<i>meters</i>)
Returns
- The diameter of the bar (<i>meters</i>).
Source Code
This module is private, for owner's use only.
Not a member, then Register with CodeCogs. Already a Member, then Login.

