00001 /* 00002 ** --------------------------------------------------------------- 00003 ** nfr.h - Definitions and prototypes of module to read a 00004 ** two-dimensional frame model from a neutral format file. 00005 ** 00006 ** Description: 00007 ** --------------------------------------------------------------- 00008 ** 00009 ** This module contains functions to read a two-dimensional frame 00010 ** model dada from a file and to store these data in the 00011 ** adopted data structure. 00012 ** This data structure is described in file "crs.c". 00013 ** The model data is read from a stream file in the neutral file 00014 ** format adopted in Tecgraf and Civil Engineering Dept. of 00015 ** PUC-Rio. Please, refer to specific documentation on this 00016 ** format. 00017 ** 00018 ** --------------------------------------------------------------- 00019 ** 00020 ** entry pts: 00021 ** --------------------------------------------------------------- 00022 ** 00023 ** void *nfrCrsModel( FILE *fd ) 00024 ** 00025 ** fd - model data file descriptor (in) 00026 ** 00027 ** This function reads the total number of nodes and elements of 00028 ** the model from the given neutral file and initalizes the 00029 ** model in database. It returns a pointer to the created model. 00030 ** 00031 ** --------------------------------------------------------------- 00032 ** 00033 ** int nfrCrsNodes( FILE *fd ) 00034 ** 00035 ** fd - model data file descriptor (in) 00036 ** 00037 ** This function reads nodal coordinates from the given neutral 00038 ** file and stores these data in database. 00039 ** Currently, it is assumed that in the file all the nodes are 00040 ** numbered consecutively from 1 to the total number of nodes and 00041 ** that the nodal coordinates are grouped in only one section in 00042 ** the file. 00043 ** This function also reads node support conditions. 00044 ** 00045 ** --------------------------------------------------------------- 00046 ** 00047 ** int nfrCrsMembers( FILE *fd ) 00048 ** 00049 ** fd - model data file descriptor (in) 00050 ** 00051 ** This function reads beam element data from the given neutral file 00052 ** and stores these data in database. 00053 ** Currently, it is assumed that in the file all the elements are 00054 ** numbered consecutively from 1 to the total number of elements. 00055 ** This fucntion also reads material parameters, cross-section 00056 ** properties, and beam end-liberation conditions. 00057 ** 00058 ** --------------------------------------------------------------- 00059 ** 00060 ** Created: 07-Sep-2003 Luiz F. Martha 00061 ** 00062 */ 00063 00064 #ifndef _NFR_H 00065 #define _NFR_H 00066 00067 #include <stdio.h> 00068 00069 void *nfrCrsModel( FILE *fd ); 00070 int nfrCrsNodes( FILE *fd ); 00071 int nfrCrsMembers( FILE *fd ); 00072 00073 #endif
1.3.4