A certain requirement for a magnetic circuit (an iron toroidal ring wth an air g
ID: 3349601 • Letter: A
Question
A certain requirement for a magnetic circuit (an iron toroidal ring wth an air gap cut into it) has a unique shape for the cross section of the iron; it is triangular in shape. Obviously the iron faces on each side of the air gap are triangular and the area of the air gap is triangular Cneglecting any fringing effec). One of the design requirements is to find the amount of magnetic flux in the air gap (same as in the ring) from certain required flux densities. B. and various triangular dimensions. (Recall. the flux equation is: =Bx A.) The lengths f the sides nf a triangle aeiven by the vales of the variables X, Y and Z. Then the area of the triangle can be computed fiom where W-X+!+z Write a BASIC, Fo, C,or Java computpogram to do the following: a. Input values ofx. Y and Z(in meters) and B (in Telsa) from the keybcard. b. Compute the area of the triangle and the flux. c. Output a heading identitying X, Y.ZandFLUX, followed by their values in an exponential format.Explanation / Answer
a and b solution:
10 INPUT ”INPUT X,Y,Z IN METERS,SEPARATED BY COMMAS”,
X,Y,Z
15 INPUT “INPUT FLUX DENSITY, B(IN TESLA)”,B
20 W = (X + Y + Z)/2
30 AREA = (W*(W-X)*(W-Y)*(W-Z)^.5
36 FLUX = B*AREA
40 PRINT “SIDE X”, “SIDE Y”, “SIDE Z”, “AREA”, “FLUX”
50 PRINT USING “#.###^^^^”;X,Y,Z,AREA,FLUX
60 END
c) solution:
A typical output for a test input of X = 0.002, Y = 0.00282, Z = 0.002 and B = 1.0 gives
RUN
INPUT X,Y,Z IN METERS, SEPERATED BY COMMAS 0.002, 0.00282, 0.002
INPUT FLUX DENSITY, B (IN TESLA) 1.0
SIDE X SIDE Y SIDE W AREA FLUX
0.200E-02 0.282E-02 0.200E-02 0.200E-05 0.200E-05
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.