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

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

?? ex12.c

?? 一個用來實現偏微分方程中網格的計算庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
              << "-------------------------------------------------" << std::endl              << " (note the warning: the number of values per node in" << std::endl              << "  my_header is not correct)" << std::endl << std::endl;    MeshDataUnvHeader my_header;    // Specify an int for this dataset.    // This is particularly helpful    // when there are multiple datasets in    // a file and you want to find a specific one.    // For this, use MeshDataUnvHeader::which_dataset(int),    // which is not covered here.    my_header.dataset_label = 3;    // Specify some text that helps the <i>user</i>     // identify the data.  This text is <i>not</i> used for    // finding a specific dataset.  Leave default for    // the remaining 2 lines.    my_header.id_lines_1_to_5[0] = "Artificial data";    my_header.id_lines_1_to_5[1] = "sin curve in z-direction";    my_header.id_lines_1_to_5[2] = "line in x-direction";        // Also some float data, not associated with nodes,    // can be stored in the header.    my_header.record_12[0] = libMesh::pi;        // Now attach this header to the <code>MeshData</code>, and write    // the same file again, but with the personalized header.    mesh_data.set_unv_header(&my_header);    // Write again to file.    std::string second_out_data="data_second_with_header_out.unv";    std::cout << "Writing MeshData to: " << second_out_data << std::endl;    mesh_data.write(second_out_data);        // Print information about the data to the screen.    std::cout << std::endl               << "Before clearing the MeshData:" << std::endl              << "-----------------------------" << std::endl;    mesh_data.print_info();    // Now clear only the data associated with nodes/elements,    // but keep the node/element ids used in the mesh.  To    // clear also these ids, use MeshData::slim() (not used here).    mesh_data.clear();    // Print information about the data to the screen.    std::cout << std::endl               << "After clearing the MeshData:" << std::endl              << "----------------------------" << std::endl;    mesh_data.print_info();    // Now the <code>MeshData</code> is open again to read data from    // file.  Read the file that we created first.    mesh_data.read(first_out_data);        std::cout << std::endl               << "After re-reading the first file:" << std::endl              << "--------------------------------" << std::endl;    mesh_data.print_info();    // Let the mesh, the unv_header etc go out of scope, and    // do another example.  }      std::cout << std::endl             << "----------------------------------------------" << std::endl            << "---------- next example with MeshData --------" << std::endl            << "----------------------------------------------" << std::endl;  // Create a new mesh, read it again -- but this time  // with de-activated <code>MeshData</code>.  Then we are  // able to use the compatibility mode not only for  // handling <code>MeshData</code> dat, but also to <i>write</i>   // a mesh in unv format.  // The libMesh-internal node and element ids are used.  {    Mesh mesh(dim);    MeshData mesh_data(mesh);        // Read the input mesh, but with deactivated <code>MeshData</code>.    mesh.read(mesh_file, &mesh_data);        // Print information about the mesh and the data    // to the screen.    std::cout << std::endl               << "De-activated MeshData:" << std::endl              << "----------------------" << std::endl;    mesh.print_info();    mesh_data.print_info();    // Write the <i>mesh</i> (not the MeshData!) as .unv file.    // In general, the <code>MeshBase</code> interface for .unv I/O    // needs an active <code>MeshData</code>.  However, use compatibility    // mode to at least write a .unv file, but with the     // ids from libMesh.    const std::string out_mesh = "mesh_with_libmesh_ids.unv";    std::cout << "Writing _Mesh_ to: " << out_mesh << std::endl              << "Try 'diff " << out_mesh << " " << mesh_file << "'" << std::endl              << "to see the differences in node numbers." << std::endl              << "---------------------------------------" << std::endl              << std::endl;    mesh.write(out_mesh, &mesh_data);    // Again create some artificial node-associated data,    // as before.    {      std::map<const Node*, std::vector<Number> > artificial_data;      create_artificial_data (mesh, artificial_data);      mesh_data.insert_node_data(artificial_data);    }    // Note that even with (only) compatibility mode MeshData    // data can be written.  But again, the ids from libMesh    // are used.  Consult the warning messages issued in    // DEBUG mode.  And the user <i>has</i> to specify that the    // <code>MeshData</code> should change to compatibility mode.    mesh_data.enable_compatibility_mode();    // Now that compatibility mode is used, data can be written.    // _Without_ explicitly enabling compatibility mode, we    // would get an error message and (with the following write()    // statement).    std::string mesh_data_file = "data_third_with_libmesh_ids_out.unv";    std::cout << std::endl               << "Writing MeshData to: " << mesh_data_file << std::endl              << "----------------------------------------------------------"               << std::endl << std::endl;    mesh_data.write (mesh_data_file);#ifdef HAVE_ZLIB_H    // As may already seen, UNV files are text-based, so they may    // become really big.  When <code>./configure</code> found <code>zlib.h</code>,    // then we may also <i>read</i> or <i>write</i> <code>.unv</code> files in gzip'ed     // format! -- Pretty cool, and also pretty fast, due to zlib.h.    //    // Note that this works also for mesh files, not only for     // meshdata files.    //    // In order to write a ".unv.gz" file instead of a ".unv" file,    // simply provide the full name with ".gz" appended to the    // write method; it will then figure out whether this file should    // be gzip'ed or not.    std::string packed_mesh_data_file =  "packed_" + mesh_data_file + ".gz";    std::cout << std::endl               << "Writing gzip'ed MeshData to: " << packed_mesh_data_file << std::endl              << "---------------------------------------------------------------------------" << std::endl              << " To verify the integrity of the packed version, type:" << std::endl << std::endl              << "   gunzip " << packed_mesh_data_file << "; " << std::endl              << "   diff packed_" << mesh_data_file << " "               << mesh_data_file << std::endl << std::endl;        mesh_data.write (packed_mesh_data_file);    #endif          // And now a last gimmick: The <code>MeshData::translate()</code>    // conveniently converts the nodal- or element-associated    // data (currently only nodal) to vectors that may be used     // for writing a mesh with "solution" vectors, where the solution     // vector contains the data from the <code>MeshData</code>.  Particularly    // useful for <i>inspecting</i> the data contained in <code> MeshData</code>.    //    // And even better: the user can choose the mesh for which    // to export the data.  E.g. not only use the <code> mesh</code>    // itself, but alternatively use the <code> BoundaryMesh </code>    // (any mesh that uses the <i>same nodes</i>, i.e. the <code> Node*</code>     // have to be the same.  Only exception that will not work:    // A mesh created using <code> Mesh::create_submesh() </code>    // actually will <i>not</i> work with <code> MeshData::translate() </code>).    //    // All in all not bad, hm?    {      // have a vector for the actual values and a vector      // for the names of the data available.      std::vector<Number> translated_data;      std::vector<std::string> data_names;            // Use the <code> mesh</code> itself.  Alternatively, use the       // <code> BoundaryMesh</code> of <code> mesh</code>.      mesh_data.translate (mesh,                           translated_data,                           data_names);      // And write the data to a GMV file      const std::string gmv_file = "data_and_mesh_out.gmv";      std::cout << std::endl                 << "Writing the data from the MeshData to the GMV file "                 << gmv_file << std::endl                << "------------------------------------------------------------------------"                 << std::endl;            GMVIO(mesh).write_nodal_data (gmv_file,                                    translated_data,                                    data_names);            // Let the vectors with translated data      // go out of scope.    }        // Let the second mesh go out of scope.  }  // All done.  return 0;}// This function creates the data to populate the <code> MeshData</code> objectvoid create_artificial_data (const Mesh& mesh,                             std::map<const Node*, std::vector<Number> >& art_data){  // get the bounding box to have some sensible data  MeshTools::BoundingBox b_box = MeshTools::bounding_box(mesh);  const Real z_min = b_box.first (2);  const Real z_max = b_box.second(2);  libmesh_assert (fabs(z_max-z_min) > TOLERANCE);  const Real x_min = b_box.first (0);  const Real x_max = b_box.second(0);  libmesh_assert (fabs(x_max-x_min) > TOLERANCE); //  const_node_iterator node_it = mesh.nodes_begin();//   const const_node_iterator node_end = mesh.nodes_end();  MeshBase::const_node_iterator       node_it  = mesh.nodes_begin();  const MeshBase::const_node_iterator node_end = mesh.nodes_end();  for (; node_it != node_end; ++node_it)    {      // All the vectors in <code> artificial</code>_data <i>have</i> to have the      // same size.  Here we use only two entries per node,      // but theoretically arbitrary size is possible.      std::vector<Number> node_data;      node_data.resize(2);      // Use a sin curve in z-direction and a linear      // increase in x-direction      const Point& p = **node_it;              const Real z_normalized = (p(2)-z_min)/(z_max-z_min);      const Real x_normalized = (p(0)-x_min)/(x_max-x_min);      node_data[0] = sin(2*libMesh::pi*z_normalized);      node_data[1] = x_normalized;            // Insert the current data together with a pointer to      // the current node in the map.      art_data.insert (std::make_pair(*node_it,node_data));    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品一区二区| 免费欧美在线视频| 日韩av电影天堂| 成人黄色a**站在线观看| 欧美日韩视频在线一区二区| 国产午夜亚洲精品不卡| 亚洲国产精品自拍| 99久久精品免费看| 亚洲精品一区二区三区福利| 亚洲国产综合人成综合网站| 成人黄色在线网站| 日韩精品资源二区在线| 亚洲高清在线精品| 一本到三区不卡视频| 久久精品水蜜桃av综合天堂| 麻豆精品视频在线| 91精品国产91久久久久久最新毛片 | 国产成人av一区| 日韩一区二区三区在线| 亚洲一区在线观看免费| 成人黄色a**站在线观看| 2021久久国产精品不只是精品| 亚洲成年人网站在线观看| 91免费国产在线观看| 国产精品久久久久久久久搜平片 | 欧美久久一二区| 亚洲一级二级三级| 日本道精品一区二区三区 | 欧美精品一区二区在线播放| 日本一不卡视频| 欧美一区二区视频在线观看2022| 亚洲v日本v欧美v久久精品| 欧美中文一区二区三区| 亚洲在线观看免费| 欧美日韩一区视频| 亚洲风情在线资源站| 欧亚一区二区三区| 亚洲成人动漫一区| 欧美一区日韩一区| 老鸭窝一区二区久久精品| 日韩午夜激情免费电影| 久久精品72免费观看| 精品久久久久一区| 国产风韵犹存在线视精品| 欧美激情艳妇裸体舞| av不卡在线观看| 亚洲欧美日韩国产一区二区三区| 在线视频欧美精品| 午夜精品成人在线| 日韩欧美中文字幕制服| 精品一区二区三区视频| 国产丝袜欧美中文另类| av电影在线不卡| 亚洲国产成人av网| 日韩欧美一级片| 国v精品久久久网| 亚洲欧美中日韩| 欧美日韩久久一区| 国产原创一区二区三区| 综合亚洲深深色噜噜狠狠网站| 欧美性淫爽ww久久久久无| 久久国产尿小便嘘嘘| 中文字幕的久久| 欧美性受极品xxxx喷水| 免费成人你懂的| 国产精品电影一区二区三区| 欧美日韩一区不卡| 国产精品99久久久久久宅男| 一区二区三区高清不卡| 欧美电影免费观看高清完整版在线| 成人毛片老司机大片| 亚洲二区在线观看| 欧美激情资源网| 69堂精品视频| 99麻豆久久久国产精品免费| 三级欧美韩日大片在线看| 中文字幕乱码久久午夜不卡| 欧美男生操女生| 成人av综合一区| 免费国产亚洲视频| 亚洲综合视频网| 国产午夜精品福利| 91精品欧美福利在线观看 | 捆绑调教一区二区三区| 国产精品久久久久7777按摩| 日韩一二三区不卡| 99久久精品免费看国产免费软件| 免费在线观看精品| 又紧又大又爽精品一区二区| 国产日产欧美精品一区二区三区| 欧美日韩亚洲综合一区| fc2成人免费人成在线观看播放| 免费精品视频最新在线| 亚洲综合激情另类小说区| 中文字幕国产精品一区二区| 精品国产免费一区二区三区四区 | 亚洲综合一二区| 中文字幕高清不卡| 久久午夜免费电影| 日韩欧美国产麻豆| 在线不卡的av| 在线免费不卡视频| 色域天天综合网| 成人三级伦理片| 国产福利精品导航| 99久久er热在这里只有精品66| 男人操女人的视频在线观看欧美 | 肉色丝袜一区二区| 亚洲激情中文1区| 17c精品麻豆一区二区免费| 国产日韩欧美高清在线| 久久天天做天天爱综合色| 26uuu亚洲| 久久综合狠狠综合久久激情| 日韩精品资源二区在线| 欧美成人性福生活免费看| 日韩精品最新网址| 自拍偷在线精品自拍偷无码专区| 日韩欧美一二三| 欧美日韩激情一区二区| 欧美日韩二区三区| 3d成人h动漫网站入口| 7777精品伊人久久久大香线蕉最新版| 欧美性色欧美a在线播放| 欧美美女网站色| 欧美一级免费大片| 日韩久久免费av| 国产欧美日韩亚州综合| 中文字幕免费一区| 亚洲人成影院在线观看| 亚洲免费在线观看视频| 亚洲a一区二区| 秋霞国产午夜精品免费视频| 美美哒免费高清在线观看视频一区二区| 日本怡春院一区二区| 国模一区二区三区白浆| 成人av电影免费在线播放| 日本久久一区二区三区| 欧美日韩精品一区二区天天拍小说| 91精品国产综合久久香蕉的特点| 日韩欧美黄色影院| 国产精品久久久久久久久免费丝袜| 亚洲欧美日韩成人高清在线一区| 亚洲电影一级黄| 精品亚洲成a人在线观看| 欧美在线免费观看亚洲| 91免费视频网址| 欧美日本一道本| 日韩欧美国产高清| 亚洲欧洲一区二区三区| 肉肉av福利一精品导航| 欧美无人高清视频在线观看| 91精品国产色综合久久ai换脸| 欧美mv和日韩mv国产网站| 中文字幕日韩欧美一区二区三区| 亚洲国产综合人成综合网站| 国产在线播放一区二区三区| 99re热视频这里只精品| 日韩欧美中文字幕一区| 国产精品久99| 久久精品二区亚洲w码| 色丁香久综合在线久综合在线观看| 欧美一级高清片在线观看| 中文字幕佐山爱一区二区免费| 六月婷婷色综合| 色综合久久精品| 国产欧美日韩亚州综合| 日本亚洲三级在线| 色哟哟国产精品免费观看| 久久精品一二三| 日韩成人精品视频| 91成人在线精品| 中文字幕第一页久久| 久久国产免费看| 制服丝袜中文字幕亚洲| 亚洲精品免费在线| jlzzjlzz欧美大全| 久久无码av三级| 久久精品999| 欧美一区二区三区色| 亚洲综合av网| 色哦色哦哦色天天综合| 国产精品久久久久影院| 国产一区二区三区在线看麻豆| 在线电影国产精品| 亚欧色一区w666天堂| 日本高清不卡在线观看| 亚洲图片激情小说| 成人黄色片在线观看| 久久精品日韩一区二区三区| 看片网站欧美日韩| 日韩欧美国产麻豆| 美腿丝袜亚洲综合| 日韩一级免费观看| 青青草国产成人av片免费| 欧美裸体一区二区三区| 五月综合激情婷婷六月色窝| 欧美午夜不卡视频| 亚洲国产精品尤物yw在线观看| 欧美探花视频资源|