From 959289e0d49a400968dbd3b84612112451885c7a Mon Sep 17 00:00:00 2001 From: Lucas Dombroski Date: Tue, 12 Dec 2017 20:45:47 -0500 Subject: [PATCH] . . --- .../membrane_solution3.m | 0 PartB.m => Part B/PartB.m | 0 PartBFigure.png => Part B/PartBFigure.png | Bin .../membrane_solution.m | 0 PartD.m => Part D/PartD.m | 0 PartDFigure.png => Part D/PartDFigure.png | Bin membrane_solution3.asv | 21 ------------------ 7 files changed, 21 deletions(-) rename membrane_solution3.m => Part A/membrane_solution3.m (100%) rename PartB.m => Part B/PartB.m (100%) rename PartBFigure.png => Part B/PartBFigure.png (100%) rename membrane_solution.m => Part C/membrane_solution.m (100%) rename PartD.m => Part D/PartD.m (100%) rename PartDFigure.png => Part D/PartDFigure.png (100%) delete mode 100644 membrane_solution3.asv diff --git a/membrane_solution3.m b/Part A/membrane_solution3.m similarity index 100% rename from membrane_solution3.m rename to Part A/membrane_solution3.m diff --git a/PartB.m b/Part B/PartB.m similarity index 100% rename from PartB.m rename to Part B/PartB.m diff --git a/PartBFigure.png b/Part B/PartBFigure.png similarity index 100% rename from PartBFigure.png rename to Part B/PartBFigure.png diff --git a/membrane_solution.m b/Part C/membrane_solution.m similarity index 100% rename from membrane_solution.m rename to Part C/membrane_solution.m diff --git a/PartD.m b/Part D/PartD.m similarity index 100% rename from PartD.m rename to Part D/PartD.m diff --git a/PartDFigure.png b/Part D/PartDFigure.png similarity index 100% rename from PartDFigure.png rename to Part D/PartDFigure.png diff --git a/membrane_solution3.asv b/membrane_solution3.asv deleted file mode 100644 index e1c7393..0000000 --- a/membrane_solution3.asv +++ /dev/null @@ -1,21 +0,0 @@ -function [w] = membrane_solution3(T,P) - % T = Tension (microNewton/micrometer) - % P = Pressure (MPa) - - od = ones(8,1); - od(3:3:end) = 0; - k = -4*diag(ones(9,1))+diag(ones(9-3,1),3)+diag(ones(9-3,1),-3)+diag(od,1)+diag(od,-1); - - - y = -(10/4)^2*(P/T)*ones(9,1); - w = k\y; - % Solves for displacement (micrometers) - - [x,y] = meshgrid(0:10/4:10,0:10/4:10); - z = zeros(size(x)); - z(2:end-1,2:end-1) = reshape(w,[3 3]); - surf(x,y,z) - title('Membrane Displacement') - zlable - % Solution represents a 2D data set w(x,y) -end \ No newline at end of file