Two Files Describing a 1D Finite Difference Model (original) (raw)
FD1D is a data directory which contains examples of 1D FD files, which define a finite difference model.
The FD format is a simple dataset of two files that can be used to describe a finite difference model.
The finite difference model is assumed to include just two kinds of information:
- Node coordinates in 1D;
- Node values (scalars, vectors, or any set of data);
FD File Characteristics:
- ASCII
- Each line is one "record"
- Each record is either a comment record or a data record;
- Comment records begin with the "#" character;
- A data record records node coordinates for one node, or the set of node data for one node;
- For a given file, each data record contains the same number of items, separated by blanks.
Licensing:
The computer code and data files described and made available on this web page are distributed underthe GNU LGPL license.
Related Data and Programs:
FD_TO_TEC, a MATLAB program which converts FD (finite difference) models into TECPLOT ASCII files.
FD1D_DISPLAY, a MATLAB program which reads a pair of files defining a 1D finite difference model, and plots the data.
FD2D, a data directory which contains examples of 2D FD files, two text files that can be used to describe many finite difference models;
FD3D, a data directory which contains examples of 3D FD files, two text files that can be used to describe many finite difference models;
Sample Files:
ARCTAN contains sample data from the arctangent function at 29 non-uniformly spaced nodes.
- <arctan%5Fnodes.txt>
- <arctan%5Fvalues.txt>
- <arctan.png>, a PNG snapshot of the plot.
FD1D_BVP_TEST01 contains the computed and exact solutions for a boundary value problem.
- <fd1d%5Fbvp%5Ftest01%5Fnodes.txt>, the nodes for test 1.
- <fd1d%5Fbvp%5Ftest01%5Fvalues.txt>, the computed and exact values for test 1.
- <fd1d%5Fbvp%5Ftest01.png>, a PNG image of a plot of the computed and exact values.
PAIR shows how a plot is made when there are two columns of data in the "values" file. The first column is a copy of the original ARCTAN data, and the second column is some perturbed values.
- <pair%5Fnodes.txt>
- <pair%5Fvalues.txt>
- <pair.png>, a PNG snapshot of the plot.
You can go up one level to the DATA directory.
Last revised on 29 January 2011.