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

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

?? ex4.c

?? 一個(gè)用來(lái)實(shí)現(xiàn)偏微分方程中網(wǎng)格的計(jì)算庫(kù)
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* $Id: ex4.C 2837 2008-05-08 17:23:37Z roystgnr $ *//* 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 4 - Solving a 1D, 2D or 3D Poisson Problem in Parallel</h1> // // This is the fourth example program.  It builds on // the third example program by showing how to formulate // the code in a dimension-independent way.  Very minor // changes to the example will allow the problem to be // solved in one, two or three dimensions. // // This example will also introduce the PerfLog class // as a way to monitor your code's performance.  We will // use it to instrument the matrix assembly code and look // for bottlenecks where we should focus optimization efforts. // // This example also shows how to extend example 3 to run in // parallel.  Notice how litte has changed!  The significant // differences are marked with "PARALLEL CHANGE".// C++ include files that we need#include <iostream>#include <algorithm>#include <math.h>// Basic include file needed for the mesh functionality.#include "libmesh.h"#include "mesh.h"#include "mesh_generation.h"#include "gmv_io.h"#include "gnuplot_io.h"#include "linear_implicit_system.h"#include "equation_systems.h"// Define the Finite Element object.#include "fe.h"// Define Gauss quadrature rules.#include "quadrature_gauss.h"// Define the DofMap, which handles degree of freedom// indexing.#include "dof_map.h"// Define useful datatypes for finite element// matrix and vector components.#include "sparse_matrix.h"#include "numeric_vector.h"#include "dense_matrix.h"#include "dense_vector.h"// Define the PerfLog, a performance logging utility.// It is useful for timing events in a code and giving// you an idea where bottlenecks lie.#include "perf_log.h"// The definition of a geometric element#include "elem.h"#include "string_to_enum.h"#include "getpot.h"// Function prototype.  This is the function that will assemble// the linear system for our Poisson problem.  Note that the// function will take the \p EquationSystems object and the// name of the system we are assembling as input.  From the// \p EquationSystems object we have acess to the \p Mesh and// other objects we might need.void assemble_poisson(EquationSystems& es,                      const std::string& system_name);// Exact solution function prototype.Real exact_solution (const Real x,                     const Real y = 0.,                     const Real z = 0.);// Begin the main program.int main (int argc, char** argv){  // Initialize libMesh and any dependent libaries, like in example 2.  LibMeshInit init (argc, argv);  // Declare a performance log for the main program  // PerfLog perf_main("Main Program");    // Create a GetPot object to parse the command line  GetPot command_line (argc, argv);    // Check for proper calling arguments.  if (argc < 3)    {      if (libMesh::processor_id() == 0)        std::cerr << "Usage:\n"                  <<"\t " << argv[0] << " -d 2(3)" << " -n 15"                  << std::endl;      // This handy function will print the file name, line number,      // and then abort.  Currrently the library does not use C++      // exception handling.      libmesh_error();    }    // Brief message to the user regarding the program name  // and command line arguments.  else     {      std::cout << "Running " << argv[0];            for (int i=1; i<argc; i++)        std::cout << " " << argv[i];            std::cout << std::endl << std::endl;    }    // Read problem dimension from command line.  Use int  // instead of unsigned since the GetPot overload is ambiguous  // otherwise.  int dim = 2;  if ( command_line.search(1, "-d") )    dim = command_line.next(dim);    // Read number of elements from command line  int ps = 15;  if ( command_line.search(1, "-n") )    ps = command_line.next(ps);    // Read FE order from command line  std::string order = "SECOND";   if ( command_line.search(2, "-Order", "-o") )    order = command_line.next(order);  // Read FE Family from command line  std::string family = "LAGRANGE";   if ( command_line.search(2, "-FEFamily", "-f") )    family = command_line.next(family);    // Cannot use dicontinuous basis.  if ((family == "MONOMIAL") || (family == "XYZ"))    {      std::cout << "ex4 currently requires a C^0 (or higher) FE basis." << std::endl;      libmesh_error();    }      // Create a mesh with user-defined dimension.  Mesh mesh (dim);    // Use the MeshTools::Generation mesh generator to create a uniform  // grid on the square [-1,1]^D.  We instruct the mesh generator  // to build a mesh of 8x8 \p Quad9 elements in 2D, or \p Hex27  // elements in 3D.  Building these higher-order elements allows  // us to use higher-order approximation, as in example 3.  if ((family == "LAGRANGE") && (order == "FIRST"))    {      // No reason to use high-order geometric elements if we are      // solving with low-order finite elements.      MeshTools::Generation::build_cube (mesh,                                         ps, ps, ps,                                         -1., 1.,                                         -1., 1.,                                         -1., 1.,                                         (dim==1)    ? EDGE2 :                                          ((dim == 2) ? QUAD4 : HEX8));    }    else    {      MeshTools::Generation::build_cube (mesh,                                         ps, ps, ps,                                         -1., 1.,                                         -1., 1.,                                         -1., 1.,                                         (dim==1)    ? EDGE3 :                                          ((dim == 2) ? QUAD9 : HEX27));    }    // Print information about the mesh to the screen.  mesh.print_info();      // Create an equation systems object.  EquationSystems equation_systems (mesh);    // Declare the system and its variables.  // Create a system named "Poisson"  LinearImplicitSystem& system =    equation_systems.add_system<LinearImplicitSystem> ("Poisson");    // Add the variable "u" to "Poisson".  "u"  // will be approximated using second-order approximation.  system.add_variable("u",                      Utility::string_to_enum<Order>   (order),                      Utility::string_to_enum<FEFamily>(family));  // Give the system a pointer to the matrix assembly  // function.  system.attach_assemble_function (assemble_poisson);    // Initialize the data structures for the equation system.  equation_systems.init();  // Print information about the system to the screen.  equation_systems.print_info();  mesh.print_info();  // Solve the system "Poisson", just like example 2.  equation_systems.get_system("Poisson").solve();  // After solving the system write the solution  // to a GMV-formatted plot file.  if(dim == 1)  {            GnuPlotIO plot(mesh,"Example 4, 1D",GnuPlotIO::GRID_ON);    plot.write_equation_systems("out_1",equation_systems);  }  else  {    GMVIO (mesh).write_equation_systems ((dim == 3) ?       "out_3.gmv" : "out_2.gmv",equation_systems);  }    // All done.    return 0;}//////// We now define the matrix assembly function for the// Poisson system.  We need to first compute element// matrices and right-hand sides, and then take into// account the boundary conditions, which will be handled// via a penalty method.void assemble_poisson(EquationSystems& es,                      const std::string& system_name){  // It is a good idea to make sure we are assembling  // the proper system.  libmesh_assert (system_name == "Poisson");  // Declare a performance log.  Give it a descriptive  // string to identify what part of the code we are  // logging, since there may be many PerfLogs in an  // application.  PerfLog perf_log ("Matrix Assembly");      // Get a constant reference to the mesh object.  const MeshBase& mesh = es.get_mesh();  // The dimension that we are running  const unsigned int dim = mesh.mesh_dimension();  // Get a reference to the LinearImplicitSystem we are solving  LinearImplicitSystem& system = es.get_system<LinearImplicitSystem>("Poisson");    // A reference to the \p DofMap object for this system.  The \p DofMap  // object handles the index translation from node and element numbers  // to degree of freedom numbers.  We will talk more about the \p DofMap

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲自拍一区| 国产成人精品免费视频网站| 色综合久久综合中文综合网| 国产精品美女久久久久aⅴ国产馆| 国产成人a级片| 国产精品久久久久久久浪潮网站| av在线不卡电影| 亚洲欧美激情视频在线观看一区二区三区| 99久久国产免费看| 一区二区在线观看av| 欧美视频日韩视频在线观看| 日韩av电影天堂| 精品国产一区二区精华| 国产一区91精品张津瑜| 国产精品美女久久久久久2018| 色综合久久九月婷婷色综合| 亚洲成av人片www| 日韩欧美一区中文| 丁香网亚洲国际| 洋洋成人永久网站入口| 91精品国产色综合久久不卡蜜臀| 精品影视av免费| 国产欧美日韩在线| 99精品视频在线观看| 婷婷夜色潮精品综合在线| 日韩欧美中文字幕公布| 99视频一区二区| 日韩不卡一区二区三区| 久久精品一区二区三区不卡牛牛| 91日韩精品一区| 美女mm1313爽爽久久久蜜臀| 中文字幕第一区二区| 欧美日韩一区二区不卡| 国产电影精品久久禁18| 亚洲小少妇裸体bbw| 国产欧美一区二区在线观看| 欧美三级电影精品| 国产激情91久久精品导航| 亚洲 欧美综合在线网络| 国产三级一区二区| 欧美日韩综合在线| 成人免费三级在线| 欧美aaaaa成人免费观看视频| 亚洲欧洲一区二区在线播放| 日韩天堂在线观看| 日本精品一区二区三区高清| 国产高清无密码一区二区三区| 亚洲高清不卡在线| 中文字幕一区日韩精品欧美| 日韩一区二区三区电影在线观看| 色婷婷综合久久久久中文 | 久久久久久久久久久久久久久99| 色哦色哦哦色天天综合| 精品一区二区精品| 亚洲一区av在线| 亚洲欧美在线另类| 久久久久久久久久久黄色| 777午夜精品视频在线播放| 91麻豆自制传媒国产之光| 激情小说欧美图片| 日韩中文字幕麻豆| 亚洲第一福利一区| 亚洲三级小视频| 国产精品亲子乱子伦xxxx裸| 337p粉嫩大胆噜噜噜噜噜91av| 欧美性受极品xxxx喷水| 色偷偷88欧美精品久久久| 成人avav在线| 国产成人精品亚洲日本在线桃色| 精品亚洲国内自在自线福利| 天天av天天翘天天综合网| 一区二区三区蜜桃网| 成人欧美一区二区三区白人| 国产精品色噜噜| 国产精品伦一区| 国产精品美女久久久久久2018| 久久精品一区二区三区不卡牛牛 | xvideos.蜜桃一区二区| 日韩精品自拍偷拍| 日韩欧美一级二级| 欧美成人精品高清在线播放| 精品成人一区二区三区四区| 26uuu亚洲| 久久久久久免费毛片精品| 国产日韩成人精品| 欧美国产日韩亚洲一区| 中文字幕精品三区| 亚洲欧美激情一区二区| 亚洲精品v日韩精品| 亚洲图片欧美色图| 天天综合色天天| 久草在线在线精品观看| 国产一区二区三区电影在线观看| 国产精选一区二区三区| 成人精品小蝌蚪| 91蝌蚪porny成人天涯| 日本乱人伦一区| 欧美精品久久久久久久多人混战| 88在线观看91蜜桃国自产| 精品久久久久久久一区二区蜜臀| 久久在线免费观看| 国产精品福利一区| 亚洲一区二区三区视频在线播放 | 91在线精品秘密一区二区| 一本一本久久a久久精品综合麻豆| 欧美丝袜丝nylons| 日韩视频免费观看高清完整版在线观看 | 极品美女销魂一区二区三区| 国产成人av电影免费在线观看| 99久久精品免费| 欧美日韩国产中文| 久久精品男人天堂av| 日韩伦理免费电影| 美女视频黄久久| 99精品视频在线免费观看| 欧美日本一区二区三区| 国产亚洲人成网站| 亚洲午夜一区二区三区| 国产乱码字幕精品高清av| 色婷婷一区二区| 久久人人爽爽爽人久久久| 综合久久一区二区三区| 日本午夜精品一区二区三区电影 | 国产精品国产三级国产有无不卡| 亚洲国产精品尤物yw在线观看| 精品亚洲免费视频| 在线观看免费成人| 国产日韩综合av| 日韩福利视频导航| 91蜜桃在线观看| 久久久国产精品麻豆| 性做久久久久久免费观看欧美| 国产老肥熟一区二区三区| 欧美日韩高清一区| 亚洲欧美日韩电影| 国产成人自拍高清视频在线免费播放| 欧美在线观看18| 中文字幕一区二区三| 欧美亚洲日本国产| 久久免费精品国产久精品久久久久| 亚洲日本一区二区| 国产成人免费视频精品含羞草妖精| 欧美三级日本三级少妇99| 国产精品美女久久久久久久网站| 久久99精品一区二区三区三区| 欧洲另类一二三四区| 国产精品国产三级国产aⅴ无密码| 精品在线你懂的| 欧美一区二区二区| 亚洲午夜在线视频| 日本国产一区二区| **欧美大码日韩| 成人深夜视频在线观看| 26uuu亚洲婷婷狠狠天堂| 琪琪一区二区三区| 4438成人网| 亚洲国产成人tv| 欧美日韩中文另类| 一区二区三区日韩欧美精品| 波多野结衣91| 中文字幕 久热精品 视频在线 | 久久青草国产手机看片福利盒子 | 麻豆成人免费电影| 欧美精品久久99| 日韩av一二三| 91精品欧美一区二区三区综合在| 亚洲一区二区三区激情| 91久久精品一区二区| 亚洲免费在线观看视频| 91视频.com| 亚洲精品视频在线| 在线亚洲+欧美+日本专区| 一区二区三区四区在线播放| 91免费观看视频在线| 亚洲一区二区高清| 3d动漫精品啪啪一区二区竹菊| 日本午夜一本久久久综合| 日韩欧美一级特黄在线播放| 精品一区二区三区在线视频| 久久综合国产精品| 成人网男人的天堂| 亚洲免费观看高清完整版在线观看| 成人av网址在线观看| 亚洲美女屁股眼交| 欧美精品久久99| 精品一区二区免费在线观看| 国产日韩欧美综合在线| 91在线国产观看| 婷婷综合在线观看| 精品va天堂亚洲国产| 国产成人午夜电影网| 亚洲美女少妇撒尿| 日韩欧美中文字幕精品| 国产精品一区二区无线| 亚洲欧洲无码一区二区三区| 91成人国产精品| 精品一区二区综合| 亚洲男女毛片无遮挡| 欧美美女网站色| 国产麻豆精品视频|