forked from nin13001/ME3255_FInalProject
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Part G
- Loading branch information
nin13001
committed
Dec 16, 2017
1 parent
7785078
commit ca8a423
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
No = linspace(.001,.01,10); | ||
n = 20; | ||
|
||
T = zeros(1,length(No)); | ||
wmax = zeros(1,length(No)); | ||
|
||
for i = 1:length(No) | ||
T(i) = tension_sol(No(i),n); | ||
w = membrane_solution(T(i),No(i),n); | ||
wmax(i) = max(w); | ||
end | ||
|
||
clf | ||
x = wmax'; | ||
y = No'; | ||
Z=x.^3; | ||
a=Z\y; | ||
x_fcn=linspace(min(x),max(x)); | ||
plot(x,y,'o',x_fcn,a*x_fcn.^3) | ||
title('Pressure vs Maximum Deflection') | ||
xlabel('Maximum Deflection (\muM)') | ||
ylabel('Pressure (MPa)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.