亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? plt_loader.h

?? 一個用來實現(xiàn)偏微分方程中網(wǎng)格的計算庫
?? H
字號:
// $Id: plt_loader.h 2789 2008-04-13 02:24:40Z roystgnr $// Copyright (C) 2002-2007  Benjamin S. Kirk  // This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.  // This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU// Lesser General Public License for more details.  // You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA#ifndef __plt_loader_h__#define __plt_loader_h__// C++ includes#include <string>#include <vector>// Local includes#include "libmesh_common.h"/** * This class will read a binary \p .plt file.  These types of files * are for use with Amtec's <a href="http://www.tecplot.com">Tecplot</a> * visualization package. * * @author Benjamin S. Kirk, 2004. */class PltLoader{public:  /**   * Constructor.  Initializes data.   */  PltLoader  (const bool v=false);  /**   * Constructor.  Reads the file specified by \p name.   */  PltLoader  (const std::string& name, const bool v=false);  /**   * Destructor.   */   ~PltLoader ();  /**   * Clear all data and return to a pristine state.   */  void clear ();    /**   * Returns the verbosity.   */  bool verbose () const { return _verbose; }    /**   * Reads the .plt file specified by \p name.     */  void read (const std::string& name);  /**   * Writes an ASCII Tecplot file.  The optional parameter \p version   * specifies the version format to write.   */  void write_dat (const std::string& name,		  const unsigned int version=10) const;// BSK - this functionality requires FORTRAN subrouitine calls,//       and there is no need to "dirty up" \p libMesh with FORTRAN//       just to enable these methods.//   /**//    * Writes a plot3d files.  The grid will be in basename.g and//    * the solution will be in basename.q.  It is assumed that the//    * first three variables from the .plt file are the (x,y,z)//    * locations of the grid points.  The optional parameter \p reverse//    * specifies if the output file will have reversed byte ordering.//    *///   void write_plot3d (const std::string& basename,// 		     const bool reverse=false,// 		     const bool gridonly=false) const;//   /**//    * Writes a Cart3D .tri component file.  The number of components//    * will be the number of zones in the .plt file.//    *///   void write_tri (const std::string& name,// 		  const bool reverse=false,// 		  const bool gridonly=false) const;     //--------------------------------------------------------------  // Data access    /**   * Enum defining the zone type in the Tecplot binary file,   * for use with the old .plt format.   */    enum OldZoneType { BLOCK=0,		     POINT,		     FEBLOCK,		     FEPOINT };  /**   * Enum defining the zone type in the Tecplot binary file,   * for use with the new .plt format.   */    enum NewZoneType { ORDERED=0,		     FELINESEG,		     FETRIANGLE,		     FEQUADRILATERAL,		     FETETRAHEDRON,		     FEBRICK };  /**   * Enum defining the data type of each variable.   */  enum DataType { FLOAT=1,		  DOUBLE,		  LONGINT,		  SHORTINT,		  BYTE,		  BIT};  /**   * Enum defining the finite element types   */  enum FEType { TRI=0,		QUAD,		TET,		HEX };      //--------------------------------------------------------------  // Public Data Access  /**   * @returns the Tecplot version number string.  This identifies the   * version of Tecplot (or preplot) that wrote the binary file.  Currently,   * PltLoader understands versions "#!TDV7X " and "#!TDV1XX"   */  const std::string & version () const { return _version; }  /**   * @returns \p true if the binary type of the file is different than the   * machine that is reading it.  If this is the case we must perform an   * endian-swap on all input data.   */  bool is_foreign () const { return _is_foreign; }    /**   * @returns the data set title   */  const std::string & title () const { return _title; }  /**   * @returns the number of variables in the data set.   */  unsigned int n_vars () const { return _n_vars; }  /**   * @returns the name of variable \p v.   */  const std::string & var_name (const unsigned int v) const;  /**   * @returns the type of variable \p v   */  unsigned int var_type (const unsigned int v) const;  /**   * @returns the number of zones.   */  unsigned int n_zones () const { return _n_zones; }  /**   * @returns the type of zone \p z   */  unsigned int zone_type (const unsigned int z) const;  /**   * @returns the name of zone \p z.   */  const std::string & zone_name (const unsigned int z) const;  /**   * @returns the data packing flag for zone \p z.   */  unsigned int zone_pack (const unsigned int z) const;  /**   * @returns \p imax for zone \p z.   */  unsigned int imax (const unsigned int z) const;  /**   * @returns \p jmax for zone \p z.   */  unsigned int jmax (const unsigned int z) const;  /**   * @returns \p kmax for zone \p z.   */  unsigned int kmax (const unsigned int z) const;  /**   * @returns the number of nodes in the mesh (for unstructured meshes).   */  unsigned int n_nodes (const unsigned int z) const;  /**   * @returns the number of elements in the mesh (for unstructured meshes).   */  unsigned int n_elem (const unsigned int z) const;  /**   * @returns the element type for the \p zth zone (for unstructured meshes).   */  FEType elem_type (const unsigned int z) const;  /**   * @returns a reference to the data read from the file   */  const std::vector<std::vector<std::vector<float> > > & get_data () const;    /**   * Enum defining the number of nodes for each element type.   */  static const unsigned int NNodes[4];  private:  /**   * Read the header of the binary file.   */  void read_header (std::istream& in);  /**   * Read data from the binary file.   */  void read_data (std::istream& in);   /**   * Read data for the zth zone in BLOCK structured format.   */  void read_block_data (std::istream& in, const unsigned int zn);   /**   * Read data for the zth zone in POINT structured format.   */  void read_point_data (std::istream& in, const unsigned int zn);   /**   * Read data for the zth zone in FEBLOCK unstructured format.   */  void read_feblock_data (std::istream& in, const unsigned int zn);   /**   * Read data for the zth zone in FEPOINT unstructured format.   */  void read_fepoint_data (std::istream& in, const unsigned int zn);  //--------------------------------------------------------------  // Private Data Access  /**   * @returns the Tecplot version number string.   */  std::string & version () { return _version; }    /**   * @returns \p true if the binary type of the file is different than the   * machine that is reading it.  If this is the case we must perform an   * endian-swap on all input data.   */  bool & is_foreign () { return _is_foreign; }  /**   * @returns the data set title   */  std::string & title () { return _title; }  /**   * @returns the number of variables in the data set.   */  void set_n_vars (const unsigned int nv);  /**   * @returns the name of variable \p v.   */  std::string & var_name (const unsigned int v);  /**   * @returns the type of variable \p v   */  unsigned int & var_type (const unsigned int v);  /**   * @returns the number of zones.   */  void set_n_zones (const unsigned int nz);  /**   * @returns the type of zone \p z   */  unsigned int & zone_type (const unsigned int z);  /**   * @returns the name of zone \p z.   */  std::string & zone_name (const unsigned int z);  /**   * @returns the data pack flag for zone \p z.   */  unsigned int & zone_pack (const unsigned int z);  /**   * @returns \p imax for zone \p z.   */  unsigned int & imax (const unsigned int z);  /**   * @returns \p jmax for zone \p z.   */  unsigned int & jmax (const unsigned int z);  /**   * @returns \p kmax for zone \p z.   */  unsigned int & kmax (const unsigned int z);  //--------------------------------------------------------------  // Private Data    /**   * Verbosity   */  const bool _verbose;  /**   * The Tecplot Version number string.   */  std::string _version;  /**   * Is the data foreign?   */  bool _is_foreign;    /**   * The Tecplot data set title.   */  std::string _title;  /**   * The number of variables in the data set.   */  unsigned int _n_vars;  /**   * The name for each variable.   */  std::vector<std::string> _var_names;  /**   * The type of each variable.  Must be one of the   * enumerated \p DataType types.   */  std::vector<unsigned int> _var_types;  /**   * The number of zones.   */  unsigned int _n_zones;  /**   * The type of each zone.   */  std::vector<unsigned int> _zone_types;  /**   * The name of each zone.   */  std::vector<std::string> _zone_names;  /**   * The data packing for each zone (new version only)   */  std::vector<unsigned int> _zone_pack;  /**   * The (imax,jmax,kmax) value for each zone.   */  std::vector<unsigned int> _imax;  std::vector<unsigned int> _jmax;  std::vector<unsigned int> _kmax;  /**   * Vector to hold the data.   */  std::vector<std::vector<std::vector<float> > >  _data;  /**   * Vectors to hold the connectivity for each zone   * (only for unstructured files).   */  std::vector<std::vector<int> > _conn;  /**   * Scratch data & relevant sizes.   */  mutable char buf[512];};//---------------------------------------------------------// PltLoader inline membersinlinePltLoader::PltLoader (const bool v) :  _verbose      (v),  _is_foreign   (false),  _n_vars       (0),  _n_zones      (0){}inlinePltLoader::PltLoader (const std::string& name, const bool v) :  _verbose      (v),  _is_foreign   (false),  _n_vars       (0),  _n_zones      (0){   this->read (name);}inlinePltLoader::~PltLoader(){}inlineconst std::string & PltLoader::var_name (const unsigned int v) const{  libmesh_assert (v < this->n_vars());  libmesh_assert (v < _var_names.size());  libmesh_assert (this->n_vars() == _var_names.size());  return _var_names[v];}inlinestd::string & PltLoader::var_name (const unsigned int v){  libmesh_assert (v < this->n_vars());  libmesh_assert (v < _var_names.size());  libmesh_assert (this->n_vars() == _var_names.size());  return _var_names[v];}inlineunsigned int PltLoader::var_type (const unsigned int v) const{  libmesh_assert (v < this->n_vars());  libmesh_assert (v < _var_types.size());  libmesh_assert (this->n_vars() == _var_types.size());  return _var_types[v];}inlineunsigned int & PltLoader::var_type (const unsigned int v){  libmesh_assert (v < this->n_vars());  libmesh_assert (v < _var_types.size());  libmesh_assert (this->n_vars() == _var_types.size());  return _var_types[v];}inlineunsigned int PltLoader::zone_type (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_types.size());  libmesh_assert (this->n_zones() == _zone_types.size());  return _zone_types[z];}inlineunsigned int & PltLoader::zone_type (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_types.size());  libmesh_assert (this->n_zones() == _zone_types.size());  return _zone_types[z];}inlineconst std::string & PltLoader::zone_name (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_names.size());  libmesh_assert (this->n_zones() == _zone_names.size());  return _zone_names[z];}inlinestd::string & PltLoader::zone_name (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_names.size());  libmesh_assert (this->n_zones() == _zone_names.size());  return _zone_names[z];}inlineunsigned int PltLoader::zone_pack (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_pack.size());  libmesh_assert (this->n_zones() == _zone_pack.size());  return _zone_pack[z];}inlineunsigned int & PltLoader::zone_pack (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (z < _zone_pack.size());  libmesh_assert (this->n_zones() == _zone_pack.size());  return _zone_pack[z];}inlineunsigned int PltLoader::imax (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (_imax.size() == this->n_zones());  return _imax[z];}inlineunsigned int & PltLoader::imax (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (_imax.size() == this->n_zones());  return _imax[z];}inlineunsigned int PltLoader::jmax (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (_jmax.size() == this->n_zones());  return _jmax[z];}inlineunsigned int & PltLoader::jmax (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (_jmax.size() == this->n_zones());  return _jmax[z];}inlineunsigned int PltLoader::kmax (const unsigned int z) const{  libmesh_assert (z < this->n_zones());  libmesh_assert (_kmax.size() == this->n_zones());  return _kmax[z];}inlineunsigned int & PltLoader::kmax (const unsigned int z){  libmesh_assert (z < this->n_zones());  libmesh_assert (_kmax.size() == this->n_zones());  return _kmax[z];}inlineunsigned int PltLoader::n_nodes (const unsigned int z) const{  libmesh_assert (z < this->n_zones());    // Only for unstructured zones!  libmesh_assert (this->zone_type(z) > 1);    return this->imax(z);}inlineunsigned int PltLoader::n_elem (const unsigned int z) const{  libmesh_assert (z < this->n_zones());    // Only for unstructured zones!  libmesh_assert (this->zone_type(z) > 1);    return this->jmax(z);}inlinePltLoader::FEType PltLoader::elem_type (const unsigned int z) const{  libmesh_assert (z < this->n_zones());    // Only for unstructured zones!  libmesh_assert (this->zone_type(z) > 1);    return static_cast<FEType>(this->kmax(z));}inlineconst std::vector<std::vector<std::vector<float> > > &PltLoader::get_data () const{  return _data;}#endif // #ifndef __plt_loader_h__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成av人片一区二区| ww久久中文字幕| 成人毛片在线观看| 极品美女销魂一区二区三区免费| 一区二区三区精品在线观看| 亚洲视频在线一区观看| 中文字幕一区二区三区四区不卡| 国产精品免费视频网站| 亚洲三级久久久| 亚洲精品少妇30p| 午夜电影网亚洲视频| 麻豆极品一区二区三区| 狠狠久久亚洲欧美| 成人高清av在线| 色美美综合视频| 欧美精品精品一区| 精品成人a区在线观看| 久久这里只有精品6| 中文字幕免费一区| 夜色激情一区二区| 精彩视频一区二区三区| 成人午夜视频网站| 精品视频一区二区三区免费| 精品国产一区二区三区不卡| 国产精品人妖ts系列视频| 一区二区欧美精品| 精品影院一区二区久久久| av电影在线观看一区| 欧美日韩精品综合在线| 久久久久九九视频| 一区二区三区免费网站| 精品在线观看免费| 欧美在线视频日韩| 欧美高清在线视频| 日韩成人一级片| 99re这里只有精品视频首页| 欧美一级生活片| 成人欧美一区二区三区白人 | 日韩毛片在线免费观看| 亚洲成av人在线观看| 丁香网亚洲国际| 日韩视频在线观看一区二区| 亚洲色图欧美偷拍| 精彩视频一区二区| 欧美日韩一级视频| 中文字幕在线一区| 国产麻豆精品theporn| 欧美日韩国产在线播放网站| 国产精品久久久爽爽爽麻豆色哟哟 | 捆绑调教美女网站视频一区| 色综合色狠狠综合色| 久久久国际精品| 日本少妇一区二区| 欧美在线不卡视频| 日韩一区有码在线| 成人精品视频一区| 久久久久久久久岛国免费| 日本强好片久久久久久aaa| 91麻豆精品秘密| 国产精品乱人伦中文| 黄网站免费久久| 日韩精品最新网址| 日韩福利视频网| 精品久久久久久久人人人人传媒| 亚洲欧美日韩综合aⅴ视频| 国产91精品一区二区麻豆亚洲| 日韩一级片在线播放| 日日夜夜免费精品视频| 欧美色网站导航| 亚洲夂夂婷婷色拍ww47| 91国内精品野花午夜精品| 亚洲人成7777| 在线观看亚洲精品视频| 亚洲自拍另类综合| 欧美久久久一区| 日韩激情中文字幕| 日韩亚洲欧美成人一区| 久久福利资源站| 久久久精品国产99久久精品芒果 | 久久国产生活片100| 日韩欧美一区二区在线视频| 免费xxxx性欧美18vr| 26uuu另类欧美亚洲曰本| 国产乱码精品一区二区三| 久久综合久久99| 成人激情小说网站| 一区二区在线看| 欧美一区二区不卡视频| 韩国v欧美v日本v亚洲v| 欧美激情一区二区三区不卡 | 亚洲精品国久久99热| 精品视频一区二区三区免费| 免费精品视频最新在线| 久久亚洲影视婷婷| 91精品免费观看| 久久综合九色综合97婷婷女人| 精品中文字幕一区二区| 国产精品欧美一级免费| 欧美综合一区二区| 久久国产三级精品| 国产精品三级av| 911精品国产一区二区在线| 精品一区二区免费看| 日韩理论片在线| 日韩欧美国产三级| 不卡欧美aaaaa| 日韩电影在线观看网站| 亚洲国产精品av| 欧美老女人在线| 成人激情图片网| 亚洲丰满少妇videoshd| 国产色产综合色产在线视频| 欧美在线免费播放| 国产乱码精品一品二品| 亚洲精品国产成人久久av盗摄| 日韩亚洲欧美在线观看| av成人动漫在线观看| 琪琪久久久久日韩精品| 1000精品久久久久久久久| 日韩欧美精品三级| 91免费视频观看| 国产精品一区二区无线| 亚洲va欧美va国产va天堂影院| 国产人成一区二区三区影院| 正在播放一区二区| 91免费版在线| 丁香六月久久综合狠狠色| 国产盗摄精品一区二区三区在线 | 欧美mv日韩mv国产网站| 色老汉av一区二区三区| 成人午夜电影网站| 激情综合色播五月| 日本视频一区二区三区| 亚洲自拍都市欧美小说| 亚洲欧美精品午睡沙发| 国产精品色噜噜| 国产日韩精品一区二区浪潮av| 日韩亚洲欧美中文三级| 欧美视频在线观看一区| 日本韩国视频一区二区| 不卡的av网站| 成人午夜激情在线| 成人黄动漫网站免费app| 国产精品一区二区久久不卡| 久久精品国产亚洲高清剧情介绍 | 欧美大片拔萝卜| 91精品国产91综合久久蜜臀| 欧美三级三级三级| 欧美三级电影网| 欧美精品v日韩精品v韩国精品v| 欧美午夜精品一区二区蜜桃| 在线观看精品一区| 欧日韩精品视频| 51久久夜色精品国产麻豆| 欧美日本一道本| 日韩视频免费观看高清在线视频| 欧美日韩国产综合久久| 欧美一区二区私人影院日本| 欧美一区二区视频观看视频| 日韩欧美在线1卡| 久久综合久久99| 国产蜜臀97一区二区三区| 国产精品久久久久久妇女6080| 中文字幕亚洲一区二区va在线| 亚洲欧洲日韩av| 亚洲成人福利片| 全国精品久久少妇| 国产一区视频在线看| www.视频一区| 欧美日韩综合不卡| 日韩亚洲欧美成人一区| 国产农村妇女精品| 亚洲精品国产成人久久av盗摄| 舔着乳尖日韩一区| 国产一区二区三区在线观看免费视频| 国产成人精品免费网站| 99re这里都是精品| 欧美一三区三区四区免费在线看 | 亚洲国产乱码最新视频 | 国产一区999| 99精品国产91久久久久久 | 91麻豆自制传媒国产之光| 精品污污网站免费看| 欧美精品一区二区三区一线天视频| 久久日一线二线三线suv| 亚洲人成伊人成综合网小说| 六月婷婷色综合| 91蝌蚪国产九色| 日韩欧美一二三四区| 自拍偷拍国产精品| 免费av成人在线| 日韩精品一区二区三区视频 | 亚洲精品中文在线| 麻豆成人91精品二区三区| 99精品久久99久久久久| 精品日产卡一卡二卡麻豆| 一区二区三区四区不卡在线| 国产乱人伦精品一区二区在线观看 | 日韩毛片在线免费观看| 久久99国产精品久久99|