ME412-Quiz 4-1_Sp20-1

pdf

School

California Polytechnic State University, San Luis Obispo *

*We aren’t endorsed by this school

Course

412

Subject

Mechanical Engineering

Date

Apr 3, 2024

Type

pdf

Pages

5

Uploaded by JusticeJaguar4146

Report
Quiz 4-1 Write a computer program using MATLAB to calculate the mechanical behavior of unidirectional lamina of a Graphite/Epoxy composite materials for the following: 1. Elastic Moduli ( E 1 , E 2 , G 12 , and n 12 ) The properties are given for the fiber and matrix in the following table. Use the rule-of- mixtures micromechanics equations. Use MATLAB only to the following: A. Plot the graph for each of the elastic moduli (E 1 , E 2 , G 12 , and n 12 ) as a function of fiber volume fraction from 5 to 95% using increments of 5. Note x-axis will be the volume fraction. 1. Please label all the titles, axes and add the legend names for each curve. 2. Please organize your output as shown in the given example below for questions A. 3. Submit, on Poly Learn, your MATLAB code as (.m) file and your output results as a pdf file showing the code, results, and graphs. 4. Please add comments inside your MATLAB file. See the example shown below. I will need to run your MATLAB code and check your output results.
%% file name % Input variables % rhof= r v density of fiber % rhom= r m density of matrix % Vf=fiber volume fraction % Output variables % rohc_1=density of composite_1 %% Inputs rhof=2500; rhom=1200; fprintf('\nFiber Density: %g ',rhof) fprintf('\nMatrix Ensity: %g ',rhom) % Testing for a particular Vf and Input desired Vf Vf=0.6; % Call function: beta_micro [rhoc_1]=Rhoc_composite_1(rhof,rhom,Vf); % Results for a particular Vf fprintf('\n\nFiber Volume Fraction: %G\n\n',Vf) disp('Density of Composite_1') disp('___________________________') fprintf('\n rohc_1 | %G\n\n\n\n',rhoc) % Table of Rohc_1 of a Unidirectional Lamina as a Function of Fiber Volume Fraction for i=1:1:11 Vf(i)=i/10-0.1; rhoc_1(i)=Rhoc_composite_1(rhof,rhom,Vf(i)); end % continue % Table of results disp('Density of Composite_1') disp('________________________________') disp(' Vf | rohc ') for i=1:1:11 fprintf(' %3.2f | g\n',Vf(i),rhoc_1(i)) End % Graph of Density of a Unidirectional Lamina as a Function of Fiber Volume Fraction for i=1:1:101 Vf(i)=i/100-0.01; rhoc_1(i)=Rhoc_composite_1(rhof,rhom,Vf(i)); end hold on plot(Vf,rhoc,'LineWidth',2) grid legend('rohc') title('Density of Composite_1 vs. Fiber Volume Fraction') xlabel('Fiber Volume Fraction') ylabel('Density of Composite_1') hold off % Function name for composite unidirectional lamina_1 % Rhoc_composite_1 rhoc_1=rhof*Vf+rhom*(1-Vf); End Example for MATLAB
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Example for Outputs Results for Elastic Moduli Example for Outputs Results for Elastic Moduli for one composite materials lamina
Example for graphs Outputs