0% found this document useful (0 votes)
53 views

Computer Aided Design of Flywheel Using C' Program: A. Thirugnanam, Rohitkumar and Lenin Rakesh

Uploaded by

Ankit Bhadesia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Computer Aided Design of Flywheel Using C' Program: A. Thirugnanam, Rohitkumar and Lenin Rakesh

Uploaded by

Ankit Bhadesia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Middle-East Journal of Scientific Research 20 (5): 577-579, 2014

ISSN 1990-9233
© IDOSI Publications, 2014
DOI: 10.5829/idosi.mejsr.2014.20.05.11337

Computer Aided Design of Flywheel Using ‘C’ Program

A. Thirugnanam, Rohitkumar and Lenin Rakesh

Department of Mechanical Engineering,


Bharath Institute of Science and Technology,
P.O 600073, Chennai, India

Abstract: Flywheel, a machineelement is used to store rotational energy. Itwill have a specificmoment of inertia
and resists changes in speed. The amount of energy stored in it, is proportional to the square of its rotational
speed. Energy is stored in a flywheel by applying torque to it, thereby increasing its rotational speed. Then it
releases stored energy by applying torque to a mechanical load, thereby decreasing its rotational speed.

Key words: Flywheel C Programming

INTRODUCTION

Flywheel is a rotating machine element that is used to


store rotational energy. Flywheels have a specific moment
of inertia and thus resist changes in rotational speed.
The amount of energy stored in a flywheel is proportional
to the square of its rotational speed. Energy is transferred
to a flywheel by applying torque to it, thereby increasing
its rotational speed and hence its stored energy.
Conversely, a flywheel releases stored energy by
applying torque to a mechanical load, thereby decreasing Interface. Withthe increasing popularity of object-
its rotational speed [1]. oriented programming, C is being rapidly replaced as the
programming language by C++, a superset of the C
Function of Flywheel: They provide continuous energy language that uses an entirely different set of
when the energy source is discontinuous. programming concepts and by Java, a language similar to
They deliver energybeyond the ability of a but simpler than C++.
continuously supplied energy from source. This happens
by collecting energy in the flywheel over a period of time Programming Language: The function available as a part
and then released whenever requiredquickly [2]. of the language work as building block to develop more
They control the orientation of a mechanical system. function. C language offers all essentials of structured
In such applications, the angular momentum of a flywheel programming in term of writing program such as logically-
is purposely transferred to a load when energy is defined functions, functions returning values and
transferred to orfrom the flywheel functions keeping private variable. C language, offers
only handful of functions, which form the core of the
Introduction of ‘C’: C is a structured, procedural language; rest of the functions available in libraries are
programming language that is being used for operating developed using the core functions offer by the
systems and applications. Many versions of based on language.thus the highly independent function can be
operating systems are written in C. C has been written and stored in a library containing other functions
standardized as part of the Portable Operating System to be used as and when necessary.

Corresponding Author: A. Thirugnanam, Department of Mechanical Engineering,


Bharath Institute of Science and Technology,
P.O 600073, Chennai, India.
577
Middle-East J. Sci. Res., 20 (5): 577-579, 2014

These three are known as library function which is When the value of s is calculated it needs to be
use as a backup for any program. displayed on the screen. Output to screen is achieved
#include<stdio.h> using readymade library function printf( ). The general
#include<conio.h> form of printf( ) function is,
#include<math.h> printf ( "<format string>", <list of variables> );
Following are some examples of usage of printf( )
Any program start with library functions which function:
define the type of operation, like mathematical operation printf("Enter the Power to be transmitted \n");
the types of data structures provided by c can be printf("\nEnter the Newton value \n");
classified as Fundamental data types, Derived data types printf("\n\n Nominal Torque transmitted is %f nm \n",s);
Fundamental data types include the data types at the What is ‘\n’ doing in this statement? It is called newline.
lowest level, i.e. those which are used for actual data Therefore, you get the output split over two lines. ‘\n’ is
representation in the memory. All other data types are one of the several Escape Sequences available in C.
based on the fundamental data types. printf( ) can not only print values of variables and also
print the result of an expression. An expression is nothing
The fundamental data types: but a valid combination of constants, variables and
char: stand for characters and strings operators.
int: for integers getch();give the information to the computer programming
float: for numbers with decimals such as amounts, has completed.
quotients and salary
main( ) is a collective name given to a set of statements. Program:
All statements that belong to main( ) are enclosed within #include<stdio.h>
a pair of braces { } as shown below. #include<conio.h>
main( ) #include<math.h>
{ int p, n;
statement 1; float s, m, z,r;
statement 2; int main()
statement 3; { voidtorquecal();
} voidmaxtorq();
void diameter();
Technically speaking,main( ) is a function. Every voidbendstress();
function has a pair of parentheses ( ) associated with it. void elliptical();
Any variable used in the program must be declared printf("Enter the Power to be transmitted \n");
before using it. scanf("%d", and p);
printf("\nEnter the Newton value \n");
For example, scanf("%d", and n);
int p, n; torquecal();
float s m,z,r; maxtorq();
Any C statement always ends with a; diameter();
For example, bendstress();
floats,m,z, r; elliptical();
In the statement, getch();
s=(p*60)/(2*3.14*n); }
r=(m*1000*v)/(n*s*1000); voidtorquecal()
{ s=(p*60)/(2*3.14*n);
‘*’and ‘/’ are the arithmetic operators. The printf("\n\n Nominal Torque transmitted is %f nm \n",s);
arithmetic operators available in C are +, -, * and /. C is }
very rich in operators. There are about 45 operators voidmaxtorq()
available in C. { m=2*s;

578
Middle-East J. Sci. Res., 20 (5): 577-579, 2014

printf(" \n\n Maximum Torque is %f Nm \n", m); CONCLUSION


}
void diameter() The flywheel was studied and we got the analytical
{ float t=(16*m*1000)/(3.14*40); solution of the flywheel. Thereafter we studied about the
z=pow(t,(1/3.0)); ‘C’ and we got the ‘c’ program solution. Hereafter we
z=2*z; compared both the results and results are found to be
printf("\n\n Diameter of the hub is %f mm \n", z); same.
}
voidbendstress() REFERENCES
{ int D= 1000, n=4, s=15;
float v =D-z; 1. Prabhu, T.J., 2009. Fundamental Of Machine Design;
r=(m*1000*v)/(n*s*1000); 5th edition; pp: 21.1-21.4.
printf("\n\n Bending stress in the arm, section modulus is 2. Balaguru Swami, 2009. Object oriented programming
%f mm3 \n",r); C; 3rd edition.
}
void elliptical()
{
float s;
s=(64*r)/3.14;
s=pow(s,(1/3.0));
s=s/2;
printf("\n\n Minor axis c = %f mm \n",s);
}

579

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy