

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Human-in-the-loop Data Mgnt; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Fall 2005;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Posted: Saturday, Oct 29, 2005; Due : Tuesday, November 8, 2005 by end of class time.
This is first in a series of 3 programming assignments in which we will compare traditional vertex based finite elements with Whitney 1-forms. We will do this comparison by using the two methods to solve a resonant cavity problem in electromagnetism. We will find the eigenvalues and eigenfunctions in a resonant cavity. The physical setting (i.e the meaning of “resonant cavity”) will be explained in the next programming assignment. In the next 2 programming assignments you will do the actual finite elements work. This present homework is a preparatory step for the next 2 homeworks. In this present homework you will write Matlab functions to (1) construct and display simplicial complexes in R^2 (i.e flat triangle-meshes); (2) do barycentric subdivision of simplicial complexes; and (3) interpolate and display vector fields. The tasks are stated more precisely below in Details.
The data I am providing is a triangle mesh (simplicial complex of dimension 2). The mesh that the data describes is shown in Figure 1. The data is provided on the class webpage in standard Matlab binary format as the file mesh spec.mat. If you have trouble loading this file please let me know and I will make the ASCII version available as well. Copy the data file mesh spec.mat to where Matlab can see it. Then you can load the data into your Matlab “workspace” by typing, at Matlab prompt, the following :
load mesh_spec
This will cause the variables v, e and t to appear in your Matlab workspace. In the vertex matrix v, the first and second rows contain x- and y-coordinates of the points in the mesh. In the edge matrix e, the first and second rows contain indices of the starting and ending vertex. In the triangle matrix t, the first three rows contain indices to the vertices, given in counter clockwise order.
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
−
−1.
−
−0.
0
1
2
Figure 1: The data specifying this mesh is provided on the class web page. It consists of matrices containing the vertex locations and the connectivity information. The boundary of the mesh is a square approximately of size π on each side with center at the origin.
There is an electronic submission AND a paper submission required. Submit the following :