Course announcements
How to save and plot the electrostatic potential matrix
FILE *fp = fopen("a.dat","w"); mesh(reshape(load('a.dat'),51,51)); Please note that, at step (1), we saved the electrostatic potential in file "a.dat". At step (2) we should load the same file in Matlab and plot it. When you do that make sure that the current directory in Matlab is the directory where you saved your "a.dat" file. To do that you can use the following command: "cd c:\YourDirrectory". Also, at step (2), "51,51" denote your (Nx+1) and (Ny+1) values. You might want to change them according to your values. Software for linear systems of equations
SuperLU2.0 library (800K) - sparse linear system of equations (Microsoft Visual C++ 6.0), CLapack library (3.6M) - dense system of equations (Microsoft Visual Studio.NET). To open a project, unzip the files and open the *.dsw if you are using Microsoft Visual C++ 6.0 or the *.sin file if you are using Microsoft Visual Studio.NET. These libraries can be easily modified if you work in C and not C++. If you are working in Linux or Unix you might want to download the above libraries from http://crd.lbl.gov/~xiaoye/SuperLU/ and http://www.netlib.org/clapack/. If you are not satisfied with these libraries than you can find plenty of other libraries on the web. Please let me know if you need any help. Course meeting times
Syllabus
Target Audience
Course description
C language will be extensively used in the implementation of various numerical algorithms discussed during the course. The dates for the lecture notes are tentative. The content may also be slightly adjusted during the semester.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||