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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ex12.c

?? 一個用來實現(xiàn)偏微分方程中網(wǎng)格的計算庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: ex12.C 2968 2008-08-10 20:38:50Z benkirk $ *//* The Next Great Finite Element Library. *//* Copyright (C) 2003  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 */ // <h1>Example 12 - The <code>MeshData</code> class</h1> // // The previous examples covered the certainly involved // aspects of simulating multiple equation systems, and prior  // to this even using adaptive refinement.  I.e.: cool stuff. // // This example now reduces brain effort significantly, // and presents some supplements concerning data I/O, // especially how to handle the <code> MeshData </code> object. // The <code> MeshData </code> class may be used for handling input // data for a simulation, like actual material properties,  // (not indicators, like in the <code> BoundaryInfo </code> class), // or mode shapes that serve as input for acoustic radiation // simulations.  The use of the <code> MeshData </code> during simulation // is straightforward:  the  // <ul> // <li> //  <code>Number MeshData::operator()(const Node*, int)</code>, //   get the i-th floating-point value associated with the node // </li> // <li> // <code> bool MeshData::has_data(const Node*)</code>, //   verify whether a certain node has data associated // </li> // <li> // <code>std::vector<Number>& MeshData::get_data (const Node* node)</code> //   to get read-access to the data associated with this node (better //   make sure first that this node <i>has</i> data, see <code> has_data() ) // </li> // <li> // iterator for nodal data <code>MeshData::const_node_data_iterator</code> //   to directly iterate over the set of nodes that hold data,  //   instead of asking through <code>has_data()</code> each time again. // </li> // </ul> // (and corresponding methods for <code> const Elem*</code>) provide access to // the floating-point data associated with nodes/elements. // This example does <i>not</i> show how to use these aforementioned // methods, this is straightforward.  Simply check if the current  // <code>Elem*</code> has a node with data. If so, add this contribution to the  // RHS, or whatever. Or ask the <code> MeshData </code> for each <code>Elem*</code> for its  // material properties... // // Here, only the actual file I/O necessary to handle such  // nodal/element data is presented.  Lean back, relax...// C++ include files that we need.#include <math.h>// Functions to initialize the library// and provide some further features (e.g. // our own pi)#include "libmesh.h"// Basic include files needed for the mesh and // <code> MeshData </code> functionality.#include "mesh.h"#include "mesh_tools.h"#include "mesh_data.h"#include "unv_io.h"#include "gmv_io.h"// The definition of a geometric vertex associated with a Mesh#include "node.h"// Function prototype for creating artificial nodal data// that can be inserted into a <code>MeshData</code> object.void create_artificial_data (const Mesh& mesh,                             std::map<const Node*, std::vector<Number> >& art_data);// The main program.int main (int argc, char** argv){  // Initialize the library.  LibMeshInit init (argc, argv);  if (libMesh::n_processors() > 1)    {      if (libMesh::processor_id() == 0)        {          std::cerr << "ERROR: Skipping example 12. " << std::endl;          std::cerr << "MeshData objects currently only work in serial." << std::endl;        }      return 0;    }  // Check for proper usage. The program is designed to be run  //  as follows:  // <pre>  //  $ ./ex12 -d 3 in_mesh.unv  // </pre>  // where in_mesh.unv should be a Universal file.  if (argc < 4)    {      if (libMesh::processor_id() == 0)        std::cerr << "Usage: " << argv[0] << " -d <dim> in_mesh.unv"                  << std::endl;            libmesh_error();    }  // Get the dimensionality of the mesh from argv[2]  const unsigned int dim = std::atoi(argv[2]);    // The filename of the mesh  const std::string mesh_file = argv[3];  // The following example makes currently sense  // only with a Universal file  if (mesh_file.rfind(".unv") >= mesh_file.size())    {      if (libMesh::processor_id() == 0)        std::cerr << "ERROR:  This example works only properly with a Universal mesh file!"                << std::endl;            libmesh_error();    }  // Some notes on <code>MeshData</code>:  // <ul>  //  <li>  // The <code>MeshData</code> is <i>not</i> a mesh!  Consult the <code>Mesh</code>,  //   <code>MeshBase</code>, and <code>BoundaryMesh</code> classes for details on  //   handling meshes!  // </li>  //  <li>  // The <code>MeshData</code> is an object handling arbitrary floating-point   //   data associated with mesh entities (nodes, elements), currently  //   most features only available for nodal data.  However,  //   extending to element-data (does <i>anybody</i> need this?)  //   is straightforward.  // </li>  // <li>  // Currently std::vector<Number> is the data (associated  //   with nodes/elements) that can be handled by <code>MeshData</code>,  // </li>  // <li>  // In order to provide <i>full</i> functionality, the <code>MeshData</code>  //   <i>has</i> to be activated prior to reading in a mesh.  However,  //   there is a so-called compatibility mode available when you   //   (intentionally) forgot to "turn on" the <code>MeshData</code>.  // </li>  // <li>  // It is possible to provide user-defined nodal data that  //   may subsequently be used or written to file.  // </li>  // <li>  // Translate the nodal-/element-associated data to formats  //   suitable for visual inspection, e.g. GMV files.  // </li>  // <li>  // Two I/O file formats are currently supported: the Universal   //   file format with dataset 2414, and an extension of   //   the libMesh-own xda/xdr format, named xtr, xta.  //   Some details on this:  // </li>  // <li>  //    The xtr/xta format is simply an extension of the  //     xdr/xda format to read/write also nodal/element-associated  //     floating-point data.  The xtr interface of the <code>MeshData</code>  //     creates stand-alone files that may be binary or ASCII.  //     You cannot append files created by the <code>MeshData</code> I/O methods  //     to a mesh file (xdr/xda).  //     The xtr files may be seen as a "backdrop", especially when  //     binary files are preferred.  Note that unv files are <i>always</i>  //     ASCII and may become pretty big!  //</li>  // <li>  //    The unv format is an extremely versatile text-based file format  //     for arbitrary data.  Its functionality is <i>large</i>, and <code>libMesh</code>  //     supports only a small share: namely the I/O for nodes, elements and  //     arbitrary node-/element-associated data, stored in the   //     so-called datasets "2411", "2412", and "2414", respectively.  //     Here, only the last dataset is covered.  The two first datasets are  //     implemented in the Universal support for I/O of meshes.  A single  //     unv file may hold <i>multiple</i> datasets of type "2414".  To  //     distinguish data, each dataset has a header.  The <code>libMesh</code> pendant  //     to this header is the <code>MeshDataUnvHeader</code> class.  When you  //     read/write unv files using the <code>MeshData</code>, you <i>always</i>  //     automatically also read/write such headers.  // </li>  // </ul>  // Enough babble for now.  Examples.   {    // Create a mesh with the requested dimension.    // Below we require a 3-dim mesh, therefore assert    // it.    libmesh_assert (dim == 3);    Mesh mesh(dim);    MeshData mesh_data(mesh);      // Activate the <code>MeshData</code> of the mesh, so that    // we can remember the node and element ids used    // in the file.  When we do not activate the <code>MeshData</code>,    // then there is no chance to import node- or element-    // associated data.    mesh_data.activate();    // Now we can safely read the input mesh.  Note that    // this should be an .xda/.xdr or .unv file only, otherwise    // we cannot load/save associated data.    mesh.read (mesh_file, &mesh_data);        // Print information about the mesh and the data    // to the screen.  Obviously, there is no data    // (apart from node & element ids) in it, yet.    std::cout << std::endl               << "Finished reading the mesh.  MeshData is active but empty:" << std::endl              << "---------------------------------------------------------" << std::endl;        mesh.print_info();    mesh_data.print_info();      // Create some artificial node-associated data and store    // it in the mesh's <code>MeshData</code>.  Use a <code>std::map</code> for this.     // Let the function <code>create_artificial_data()</code> do the work.    {      std::map<const Node*, std::vector<Number> > artificial_data;            create_artificial_data (mesh, artificial_data);            // Before we let the map go out of scope, insert it into      // the <code>MeshData</code>.  Note that by default the element-associated      // data containers are closed, so that the <code>MeshData</code> is      // ready for use.      mesh_data.insert_node_data(artificial_data);      // Let <code>artificial_data()</code> go out of scope    }        // Print information about the data to the screen.    std::cout << std::endl               << "After inserting artificial data into the MeshData:" << std::endl              << "--------------------------------------------------" << std::endl;        mesh_data.print_info();    // Write the artificial data into a universal    // file.  Use a default header for this.    std::string first_out_data="data_first_out_with_default_header.unv";    std::cout << "Writing MeshData to: " << first_out_data << std::endl;    mesh_data.write(first_out_data);    // Alternatively, create your own header.    std::cout << std::endl               << "Attach our own MeshDataUnvHeader to the MeshData:" << std::endl

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产不卡视频在线观看| 亚洲一卡二卡三卡四卡五卡| 视频一区在线播放| 日本午夜精品一区二区三区电影| 精品一区二区三区影院在线午夜| 99热在这里有精品免费| 欧美成人三级在线| 亚洲欧美一区二区三区极速播放 | 91美女蜜桃在线| 欧美变态凌虐bdsm| 亚洲国产精品久久久久秋霞影院| 国产精品影视在线观看| 欧美高清激情brazzers| 樱桃视频在线观看一区| 粗大黑人巨茎大战欧美成人| 日韩三级精品电影久久久 | 国产精品久久一级| 麻豆国产一区二区| 欧美日韩在线播放三区| 亚洲男女毛片无遮挡| 成人中文字幕在线| 久久你懂得1024| 精品夜夜嗨av一区二区三区| 欧美日本韩国一区| 亚洲午夜精品网| 91久久久免费一区二区| 亚洲欧美在线aaa| youjizz久久| 国产欧美一区二区三区鸳鸯浴 | 中文字幕佐山爱一区二区免费| 日本欧美一区二区在线观看| 欧美亚洲国产一区二区三区va | 五月天一区二区| 在线欧美一区二区| 洋洋av久久久久久久一区| 91在线国产观看| 亚洲日本一区二区| 色狠狠色狠狠综合| 一区二区视频免费在线观看| 在线观看区一区二| 亚洲18色成人| 日韩欧美色综合| 狠狠色丁香婷婷综合久久片| 久久久综合激的五月天| 国产不卡视频一区| 亚洲欧美日韩国产手机在线| 在线视频综合导航| 首页综合国产亚洲丝袜| 日韩欧美中文字幕一区| 国产麻豆成人精品| 亚洲欧洲日韩av| 欧美日韩一区二区三区视频| 视频一区二区三区在线| 91精品国产欧美一区二区| 精品一区二区三区免费毛片爱| 久久久久久9999| av午夜精品一区二区三区| 国产在线视频不卡二| 亚洲国产精品传媒在线观看| 色婷婷久久久综合中文字幕| 午夜视频久久久久久| 精品久久人人做人人爱| 不卡视频一二三四| 午夜视频一区在线观看| 久久久夜色精品亚洲| 色婷婷综合中文久久一本| 婷婷丁香久久五月婷婷| 国产亚洲一区字幕| 91福利国产成人精品照片| 秋霞午夜鲁丝一区二区老狼| 国产精品沙发午睡系列990531| 在线观看视频欧美| 国产一区二区伦理片| 玉足女爽爽91| 2020国产精品自拍| 在线观看视频91| 国产精品18久久久久久久久 | 日日夜夜免费精品| 欧美国产日产图区| 欧美日韩国产经典色站一区二区三区| 国产一区二区三区不卡在线观看| 亚洲精品美国一| 久久精品欧美一区二区三区麻豆| 色吊一区二区三区| 国产成人自拍网| 视频一区二区中文字幕| 成人欧美一区二区三区1314| 欧美mv和日韩mv的网站| 日本高清不卡视频| 丁香啪啪综合成人亚洲小说| 日韩电影在线一区二区| 亚洲色图视频网| 久久久一区二区三区捆绑**| 欧美放荡的少妇| 日本韩国一区二区| 国产mv日韩mv欧美| 狠狠色丁香九九婷婷综合五月| 亚洲成人精品在线观看| 亚洲图片欧美激情| 久久久精品tv| 日韩精品中午字幕| 欧美高清精品3d| 欧美日韩电影在线| 一本久久综合亚洲鲁鲁五月天| 成人午夜免费视频| 国产精品一区二区三区四区| 极品少妇xxxx精品少妇| 日韩在线卡一卡二| 午夜精品久久久久久久99水蜜桃| 亚洲乱码国产乱码精品精可以看| 国产精品久久久久影院亚瑟 | 91精品国产综合久久福利软件| 日本福利一区二区| av色综合久久天堂av综合| 欧美丰满一区二区免费视频| 91福利精品视频| 欧美性感一类影片在线播放| 在线影视一区二区三区| 色先锋aa成人| 欧美色区777第一页| 欧美又粗又大又爽| 欧美午夜一区二区三区| 在线精品视频免费播放| 欧美在线一区二区三区| 欧美日韩一区高清| 欧美高清视频www夜色资源网| 欧美一区二区三区在线观看| 欧美一区二区三区婷婷月色| 欧美电影免费观看高清完整版在| 日韩精品中文字幕在线不卡尤物| wwwwww.欧美系列| 欧美国产精品中文字幕| 国产精品久久久久久久久免费樱桃| 国产精品美日韩| 一区二区在线观看免费| 五月天精品一区二区三区| 久久国产婷婷国产香蕉| 国产福利精品导航| 91麻豆免费观看| 欧美日韩亚洲丝袜制服| 日韩美女视频在线| 亚洲国产精品精华液ab| 一区二区三区四区国产精品| 青草av.久久免费一区| 国产在线视频不卡二| aaa亚洲精品| 69精品人人人人| 国产欧美日韩三区| 亚洲高清免费观看高清完整版在线观看| 婷婷一区二区三区| 国产福利视频一区二区三区| 欧亚一区二区三区| 精品少妇一区二区三区在线播放 | 2024国产精品视频| 亚洲日本在线天堂| 久久国产精品72免费观看| 不卡一区中文字幕| 91精品黄色片免费大全| 欧美极品美女视频| 日韩在线一区二区三区| 成人av电影免费在线播放| 6080午夜不卡| 中文字幕亚洲在| 精品一区免费av| 欧美日韩综合一区| 国产日韩成人精品| 午夜免费欧美电影| av成人动漫在线观看| 日韩午夜av电影| 一区二区三区加勒比av| 国产精品自产自拍| 欧美久久久久久久久中文字幕| 中文字幕巨乱亚洲| 久久精品久久精品| 欧美日韩免费一区二区三区| 中日韩免费视频中文字幕| 久久国产乱子精品免费女| 欧美亚洲国产一卡| 中文字幕一区在线观看视频| 国产永久精品大片wwwapp| 555夜色666亚洲国产免| 亚洲欧美日韩国产综合在线| 懂色av一区二区三区蜜臀| 日韩精品一区二区三区蜜臀| 亚洲一级电影视频| 91老师片黄在线观看| 国产精品女上位| 国产一区视频导航| 欧美α欧美αv大片| 日韩精品电影在线| 欧美视频在线观看一区| 亚洲人成小说网站色在线| 懂色av一区二区三区免费观看| 欧美精品一区二区在线播放| 另类综合日韩欧美亚洲| 5858s免费视频成人| 香蕉加勒比综合久久| 欧美日韩国产一二三| 亚洲国产成人精品视频| 欧美日韩一区久久|