Simulation Using C
Instead of a Matlab program, a C program is presented below. You can download
this file by clicking on the image displayed below. This file, called fcb_1pha.cpp,
can be complied just as a C program and no feature of C++ has been used in
this program. This program produces an output file called tran_v1.csv and
stores in it in the same directory in which the source file is located. This
file can be opened by a spreadsheet program like EXCEL and the plots displayed
can be obtained.
The responses obtained for L1=1.5, L2=0.2 and a
= 30o are produced below.
Another C program is presented below. This program carries out the harmonic
analysis. This file, called fcb_1phb.cpp, can be downloaded. It can also be
compiled as a C program. It produces an output file, called harm_v1.csv.
The results obtained are presented below.
TO THE TOP
|