⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gmvread.h

📁 一个用来实现偏微分方程中网格的计算库
💻 H
字号:
/**************************************************************************//* Copyright Notice                                                       *//*                                                                        *//* For Scientific and Technical Information Only                          *//* Copyright 2006 Los Alamos National Security, LLC All rights reserved   *//*                                                                        *//* For All Information Unless otherwise indicated, this information has   *//* been authored by an employee or employees of the Los Alamos National   *//* Security, LLC (LANS), operator of the Los Alamos National Laboratory   *//* under Contract No. DE-AC52-06NA25396 with the U.S. Department of       *//* Energy. The U.S. Government has rights to use, reproduce, and          *//* distribute this information. The public may copy and use this          *//* information without charge, provided that this Notice and any          *//* statement of authorship are reproduced on all copies. Neither the      *//* Government nor LANS makes any warranty, express or implied, or assumes *//* any liability or responsibility for the use of this information.       *//*                                                                        *//* Author: Frank A. Ortega fao[at]lanl.gov                                *//**************************************************************************/#ifndef _GMVREADH_#define _GMVREADH_#ifndef RDATA_INIT#define EXTERN extern#else#define EXTERN /**/#endif/*  Keyword types.  */#define NODES       1#define CELLS       2#define FACES       3#define VFACES      4#define XFACES      5#define MATERIAL    6#define VELOCITY    7#define VARIABLE    8#define FLAGS       9#define POLYGONS   10#define TRACERS    11#define PROBTIME   12#define CYCLENO    13#define NODEIDS    14#define CELLIDS    15#define SURFACE    16#define SURFMATS   17#define SURFVEL    18#define SURFVARS   19#define SURFFLAG   20#define UNITS      21#define VINFO      22#define TRACEIDS   23#define GROUPS     24#define FACEIDS    25#define SURFIDS    26#define CELLPES    27#define SUBVARS    28#define GHOSTS     29#define VECTORS    30#define CODENAME   48#define CODEVER    49#define SIMDATE    50#define GMVEND     51#define INVALIDKEYWORD 52#define GMVERROR 53/*  Data types for Nodes:  */#define UNSTRUCT  100#define STRUCT 101#define LOGICALLY_STRUCT 102#define AMR 103#define VFACES2D 104#define VFACES3D 105#define NODE_V   106/*  Data types for Cells:  */#define GENERAL 110#define REGULAR 111#define VFACE2D 112#define VFACE3D 113/*  Data types for vectors, variables, materials, flags, tracers, groups: */#define NODE       200#define CELL       201#define FACE       202#define SURF       203#define XYZ        204#define TRACERDATA 205#define VEL        206#define ENDKEYWORD 207#define FROMFILE   208EXTERN struct          {          int     keyword;    /*  See above for definitions.  */          int     datatype;   /*  See above for definitions.  */          char    name1[33];  /*  hex, tri, etc, flag name, field name.  */          long    num;        /*  nnodes, ncells, nsurf, ntracers.  */          long    num2;       /*  no. of faces, number of vertices.  */          long    ndoubledata1;          double  *doubledata1;          long    ndoubledata2;          double  *doubledata2;          long    ndoubledata3;          double  *doubledata3;          long    nlongdata1;          long    *longdata1;          long    nlongdata2;          long    *longdata2;          int     nchardata1;   /*  Number of 33 character string.  */          char    *chardata1;   /*  Array of 33 character strings.  */          int     nchardata2;   /*  Number of 33 character string.  */          char    *chardata2;   /*  Array of 33 character strings.  */         }      gmv_data;EXTERN struct          {          long    nnodes;           long    ncells;          long    nfaces;          long    totfaces;          long    totverts;          int     intype;  /* CELLS, FACES, STRUCT, LOGICALLY_STRUCT, AMR. */          int     nxv;  /*  nxv, nyv, nzv for STRUCT,  */          int     nyv;  /*  LOGICALLY_STRUC and AMR.   */          int     nzv;          double  *x;  /*  Node x,y,zs, nnodes long.  */          double  *y;          double  *z;          long    *celltoface;   /*  Cell to face pointer, ncells+1 long. */          long    *cellfaces;    /*  Faces in cells, totfaces+1 long.  */          long    *facetoverts;  /*  Face to verts pointer, nfaces+1 long.*/          long    *faceverts;    /*  Verts per face, totverts long.  */          long    *facecell1;    /*  First cell face attaches to.  */          long    *facecell2;    /*  Second cell, nfaces long.  */          long    *vfacepe;      /*  Vface pe no.  */          long    *vfaceoppface;  /*  Vface opposite face no.  */          long    *vfaceoppfacepe;  /*  Vface opposite face pe no.  */          long    *cellnnode;    /*  No. of nodes per cell (regular cells).  */          long    *cellnodes;    /*  Node list per cell (regular cells).  */         }      gmv_meshdata;/*  C, C++ prototypes.  */int gmvread_checkfile(char *filnam);int gmvread_open(char *filnam);int gmvread_open_fromfileskip(char *filnam);void gmvread_close(void);void gmvread_data(void);void gmvread_mesh(void);void gmvread_printon();void gmvread_printoff();void struct2face(void);void struct2vface(void);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -