4 3 Object write down a discrte equation in the form 5 1 2.

Slides:



Advertisements
Similar presentations
Finite Element Method Monday, 11/11/2002 Equations assembling Displacement boundary conditions Gaussian elimination.
Advertisements

Finding Slope – Intercept From an Equation STEPS : 1. Equation must be in y = mx + b form 2. The slope is the coefficient of “x” ( m ) 3. The y - intercept.
Analog and Digital Signals AD/DA conversion BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Feb 5 Lesson 3.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Introduction to Graph “theory”
Triangular Prism Volume.
Volume of Triangular Prism. Volume of a Triangular Prism Length Volume of a prism = Area x length Area of triangle = ½ x base x height.
Finite element method – basis functions 1 Finite Elements: Basis functions 1-D elements  coordinate transformation  1-D elements  linear basis functions.
Stanford CS223B Computer Vision, Winter 2005 Lecture 5: Stereo I Sebastian Thrun, Stanford Rick Szeliski, Microsoft Hendrik Dahlkamp and Dan Morris, Stanford.
% SET CVFEM COEFICIENTS %zero out coefficient for i=1:n %loop on nodes %zero out coefficient ap(i)=0.0; %node point coefficient V(i)=0.0;
Homework 3: Use the Fixed Grid --Volume of Fluid Method with Structured Cartesian CVFEM mesh To track Filling Front h=1 h = 0 2 r = 1 3 Hand in 1. Code.
CSE351/ IT351 Modeling and Simulation
B. Un-structured Triangular Nodal Mesh Polygon Control Volumes a. Structured Rectangular Nodal Mesh Rectangular Control Volumes Control Volume Finite Elements.
CE A Mathematical Approach for Discretization In the previous set of notes we saw how we could numerically solve With boundary conditions Using.
Hints for Deforming Grid 1.Set up grid assuming a small initial radius r = 1.1 say, set  say  %definitial delt=0.005; St=1; for i=1:nodes.
Lecture 15 Chromatography Introduction and Plumbing Harris Ch. 23.
BASIC LAWS Ohm’s Law Kirchhoff’s Law Series resistors & voltage division Parallel resistors & current division Y -  transformation.
T=1 T=0 At an internal node Heat Balance gives Grid advection Note sign And volume continuity gives Deforming 2-D grid for One-Phase Stefan Problem—Compare.
With Derivation Heat balance on arbitrary FIXED area in domain Net rate of heat in = rate of increase in area  density c specific heat divergence = Fixed.
1 Model 6:Electric potentials We will determine the distribution of electrical potential (V) in a structure. x y z x y V=0 V=To be specified Insulation.
CE 230-Engineering Fluid Mechanics Lecture # 17 Reynolds transport equation Control volume equation.
Basic Mathematics for Portfolio Management. Statistics Variables x, y, z Constants a, b Observations {x n, y n |n=1,…N} Mean.
I i row1 row2 row3 row4 col1 col2 col3 col4 a. Grid b. Mesh c. Cloud A control volume solution based on an unstructured mesh (Linear Triangular Elements)
Capacitors as Circuit Elements The most common use of capacitors is in electric circuits. They are used primarily as a means of storing charge, which can.
Unit 2 Present Progressive and Simple Present. Unit 2 Present Progressive and Simple Present 2 Present Progressive.
Bending in 2 Planes Parametric form assuming small deflections and no torsion.
1 Convection Boundary Condition –Happens when a structure is surrounded by fluid –Does not exist in structural problems –BC includes unknown temperature.
Finding Slope – Intercept From an Equation STEPS : 1. Equation must be in y = mx + b form 2. The slope is the coefficient of “x” ( m ) 3. The y - intercept.
An introduction to the finite element method using MATLAB
Eng Ship Structures 1 Matrix Analysis Using MATLAB Example.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Structural Analysis 7 th Edition in SI Units Russell C. Hibbeler Chapter 15: Beam Analysis Using the Stiffness Method.
Principles of Computer-Aided Design and Manufacturing Second Edition 2004 ISBN Author: Prof. Farid. Amirouche University of Illinois-Chicago.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Triangulations. If two triangles have some intersection, it is either on common vertex or a common full edge. In particular, two different triangles.
ANSWER is 25% of what number ANSWER 40% 4.What percent of 90 is 36? ANSWER d = 4 ANSWER x = Solve:
By: Riley Sweeney. Midpoint Formula The midpoint formula is simple. The equation is:
Intro to Matlab Yipei Wang & Qihui Li {yipeiw,
Pythagorean Theorem and Special Right Triangles. Anatomy of a Right Triangle Why is a right triangle called a right triangle? Because it is a triangle.
SECTION 2.4 Factoring polynomials. Do-Now  Factor the following polynomials.  x 2 + 5x + 6  4x 2 – 1  Solve the following equations.  2x 2 – 28x.
$200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200.
1 The total inflow rate of momentum into the control volume is thus MOMENTUM CONSERVATION: CAUCHY EQUATION Consider the illustrated control volume, which.
The Finite Element Approach to Thermal Analysis Appendix A.
CSCE 441 Lecture 2: Scan Conversion of Lines
Information flow from DNA to trait
BASIC LAWS Ohm’s Law Kirchhoff’s Law
ECE 1304 Introduction to Electrical and Computer Engineering
Specify coordinate system on the Domain pane.
Solving Simultaneous Equations using Matlab
4.4 The Rational Root Theorem
Scan Conversion of Lines
Node Voltage and dependent sources Quiz 2
4.4 The Rational Root Theorem
تحليل وتصميم شبكات التغذيــــه بالميـاه بإستخدام الحاسب الآلي
GPU Implementations for Finite Element Methods
Chapter 18: Direct-Current Circuits Sources of emf and internal resistance Resistors in series Req = R1+R2+… Resistors in.
Chromatography Introduction and Plumbing Harris Ch. 23
Equation Review Given in class 10/4/13.
Combining Like Terms.
What is Fin? Fin is an extended surface, added onto a surface of a structure to enhance the rate of heat transfer from the structure. Example: The fins.
Notes Over 3.7 Solve for the indicated variable. 1. Area of a Triangle.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Steady-State Heat Transfer (Initial notes are designed by Dr
Nodal and Mesh Analysis
Objective: To know the equations of simple straight lines.
Derivation of the 2D Rotation Matrix
Equation Review.
Stewart Commons El Mercado Southwest: Inaccessible Entrance
Solving Systems of Equations by Elimination Part 2
Objective: To know the equations of simple straight lines.
Presentation transcript:

4 3 Object write down a discrte equation in the form 5 1 2

%Simple Point code clear all %store coefficents a=zeros(5,1); Vol_i=0; %CV area % Global coordinates x(1)=0; y(1)=0; x(2)=1; y(2)=0; x(3)=1; y(3)=1; x(4)=0; y(4)=1; x(5)=0.5; y(5)=0.5; %known values for tri=1:4 %loop on triangles %Local to global nodes L1=5; L2=tri; if tri<4 L3=tri+1; else L3=1; end xL(1)=x(L1); yL(1)=y(L1); xL(2)=x(L2); yL(2)=y(L2); xL(3)=x(L3); yL(3)=y(L3); %2Xelemnt area v=xL(2)*yL(3)-xL(3)*yL(2)... -xL(1)*yL(3)+xL(1)*yL(2)+yL(1)*xL(3)-yL(1)*xL(2); Vol_i=Vol_i+v/6; %contribution to CV volume Nx(1)=(yL(2)-yL(3))/v; %Nx=shape function Nx(2)=(yL(3)-yL(1))/v; Nx(3)=(yL(1)-yL(2))/v; Ny(1)=-(xL(2)-xL(3))/v; %Ny=shape function Ny(2)=-(xL(3)-xL(1))/v; Ny(3)=-(xL(1)-xL(2))/v; %Face 1 %directed lengths delx= [(xL(1)+xL(2)+xL(3))/3]-[(xL(1)+xL(2))/2]; dely= [(yL(1)+yL(2)+yL(3))/3]-[(yL(1)+yL(2))/2]; %point coeficient a(L1) = a(L1) - Nx(1) * dely + Ny(1) * delx; %note - sign %Neigbouring coeff a(L2)=a(L2)+ Nx(2) * dely - Ny(2) * delx; a(L3)=a(L3)+ Nx(3) * dely - Ny(3) * delx; %Face 2 delx= [(xL(1)+xL(3))/2]-[(xL(1)+xL(2)+xL(3))/3]; dely= [(yL(1)+yL(3))/2]-[(yL(1)+yL(2)+yL(3))/3]; end

Assembly using MATLAB unstructured data struture p= 0.5 1 0.707107 0.353553 0.92388 0.382683 0.341015 0.600135 0.676035 0.658327 0.46707 0.240332 points 3 8 2 8 5 5 9 10 4 7 6 10 4 9 12 7 6 1 11 11 3 1 2 t= 6 8 1 7 3 9 4 5 10 2 11 triangles Nodes N= size(p,2) Number of columns in p Elements Ntri=size(t,2) Number of columns in t tri=t’ transpose of t

In element 1<=1 itri <= Ntri xL(1) = p(1,k1); %x-values of ele. vert. xL(2) = p(1,k2); xL(3) = p(1,k3); yL(1) = p(2,k1); %y-values of ele. vert. yL(2) = p(2,k2); yL(3) = p(2,k3); k1=t(3,itri) 3 Nx(1)= (yL(2)-yL(3))/(2*v); %Nx=shape function Nx(2)= (yL(3)-yL(1))/(2*v); Nx(3)= (yL(1)-yL(2))/(2*v); Ny(1)=-(xL(2)-xL(3))/(2*v); %Ny=shape function Ny(2)=-(xL(3)-xL(1))/(2*v); Ny(3)=-(xL(1)-xL(2))/(2*v); 2 1 k1=t(2,itri) k1=t(1,itri) element area Coefficient for Flow IN across face %Face 1 separates node K1 from node K2 delx(1)= (xL(1)+xL(2)+xL(3))/3-(xL(1)+xL(2))/2; dely(1)= (yL(1)+yL(2)+yL(3))/3-(yL(1)+yL(2))/2; %Face 2 separates node K2 from node K3 delx(2)= (xL(1)+xL(2)+xL(3))/3-(xL(2)+xL(3))/2; dely(2)= (yL(1)+yL(2)+yL(3))/3-(yL(2)+yL(3))/2; %Face 3 separates node K3 from node K1 delx(3)= (xL(1)+xL(2)+xL(3))/3-(xL(1)+xL(3))/2; dely(3)= (yL(1)+yL(2)+yL(3))/3-(yL(1)+yL(3))/2; %FL(i,j) is coef. asso. with kj for flow across face i FL(1,:)=Nx(:)*dely(1)-Ny(:)*delx(1); FL(2,:)=Nx(:)*dely(2)-Ny(:)*delx(2); FL(3,:)=Nx(:)*dely(3)-Ny(:)*delx(3); Contributions To ap(k1)=ap(k1)-FL(1,1)+FL(3,1); ap(k2)=ap(k2)-FL(2,2)+FL(1,2); ap(k3)=ap(k3)-FL(3,3)+FL(2,3); a(k1,k2)=a(k1,k2)+FL(1,2)-FL(3,2); a(k1,k3)=a(k1,k3)+FL(1,3)-FL(3,3); a(k2,k1)=a(k2,k1)+FL(2,1)-FL(1,1); a(k2,k3)=a(k2,k3)+FL(2,3)-FL(1,3); a(k3,k1)=a(k3,k1)+FL(3,1)-FL(2,1); a(k3,k2)=a(k3,k2)+FL(3,2)-FL(2,2);