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

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

?? ex3.c

?? 一個用來實現(xiàn)偏微分方程中網(wǎng)格的計算庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: ex3.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 3 - Solving a Poisson Problem</h1> // // This is the third example program.  It builds on // the second example program by showing how to solve a simple // Poisson system.  This example also introduces the notion // of customized matrix assembly functions, working with an // exact solution, and using element iterators. // We will not comment on things that // were already explained in the second example.// C++ include files that we need#include <iostream>#include <algorithm>#include <math.h>// Basic include files needed for the mesh functionality.#include "libmesh.h"#include "mesh.h"#include "mesh_generation.h"#include "gmv_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 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"#include "elem.h"// Define the DofMap, which handles degree of freedom// indexing.#include "dof_map.h"// Function prototype.  This is the function that will assemble// the linear system for our Poisson problem.  Note that the// function will take the  EquationSystems object and the// name of the system we are assembling as input.  From the//  EquationSystems object we have access to the  Mesh and// other objects we might need.void assemble_poisson(EquationSystems& es,                      const std::string& system_name);// Function prototype for the exact solution.Real exact_solution (const Real x,                     const Real y,                     const Real z = 0.);int main (int argc, char** argv){  // Initialize libraries, like in example 2.  LibMeshInit init (argc, argv);  // Brief message to the user regarding the program name  // and command line arguments.  std::cout << "Running " << argv[0];    for (int i=1; i<argc; i++)    std::cout << " " << argv[i];    std::cout << std::endl << std::endl;    // Create a 2D mesh.  Mesh mesh (2);      // Use the MeshTools::Generation mesh generator to create a uniform  // grid on the square [-1,1]^2.  We instruct the mesh generator  // to build a mesh of 15x15 QUAD9 elements.  Building QUAD9  // elements instead of the default QUAD4's we used in example 2  // allow us to use higher-order approximation.  MeshTools::Generation::build_square (mesh,                                        15, 15,                                       -1., 1.,                                       -1., 1.,                                       QUAD9);  // Print information about the mesh to the screen.  // Note that 5x5 QUAD9 elements actually has 11x11 nodes,  // so this mesh is significantly larger than the one in example 2.  mesh.print_info();    // Create an equation systems object.  EquationSystems equation_systems (mesh);    // Declare the Poisson system and its variables.  // The Poisson system is another example of a steady system.  equation_systems.add_system<LinearImplicitSystem> ("Poisson");  // Adds the variable "u" to "Poisson".  "u"  // will be approximated using second-order approximation.  equation_systems.get_system("Poisson").add_variable("u", SECOND);  // Give the system a pointer to the matrix assembly  // function.  This will be called when needed by the  // library.  equation_systems.get_system("Poisson").attach_assemble_function (assemble_poisson);    // Initialize the data structures for the equation system.  equation_systems.init();    // Prints information about the system to the screen.  equation_systems.print_info();  // Solve the system "Poisson".  Note that calling this  // member will assemble the linear system and invoke  // the default Petsc solver, however the solver can be  // controlled from the command line.  For example,  // you can invoke conjugate gradient with:  //  // ./ex3 -ksp_type cg  //  // and you can get a nice X-window that monitors the solver  // convergence with:  //  // ./ex3 -ksp_xmonitor  //  // if you linked against the appropriate X libraries when you  // built PETSc.  equation_systems.get_system("Poisson").solve();  // After solving the system write the solution  // to a GMV-formatted plot file.  GMVIO (mesh).write_equation_systems ("out.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");    // 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  DofMap object for this system.  The  DofMap  // object handles the index translation from node and element numbers  // to degree of freedom numbers.  We will talk more about the  DofMap  // in future examples.  const DofMap& dof_map = system.get_dof_map();    // Get a constant reference to the Finite Element type  // for the first (and only) variable in the system.  FEType fe_type = dof_map.variable_type(0);    // Build a Finite Element object of the specified type.  Since the  // FEBase::build() member dynamically creates memory we will  // store the object as an AutoPtr<FEBase>.  This can be thought  // of as a pointer that will clean up after itself.  Example 4  // describes some advantages of  AutoPtr's in the context of  // quadrature rules.  AutoPtr<FEBase> fe (FEBase::build(dim, fe_type));    // A 5th order Gauss quadrature rule for numerical integration.  QGauss qrule (dim, FIFTH);    // Tell the finite element object to use our quadrature rule.  fe->attach_quadrature_rule (&qrule);    // Declare a special finite element object for  // boundary integration.  AutoPtr<FEBase> fe_face (FEBase::build(dim, fe_type));    // Boundary integration requires one quadraure rule,  // with dimensionality one less than the dimensionality  // of the element.  QGauss qface(dim-1, FIFTH);    // Tell the finite element object to use our  // quadrature rule.  fe_face->attach_quadrature_rule (&qface);  // Here we define some references to cell-specific data that  // will be used to assemble the linear system.  //  // The element Jacobian * quadrature weight at each integration point.     const std::vector<Real>& JxW = fe->get_JxW();  // The physical XY locations of the quadrature points on the element.  // These might be useful for evaluating spatially varying material

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区中文在线| 亚洲啪啪综合av一区二区三区| 成人性生交大合| 国产一区视频在线看| 久久99精品久久久久久国产越南| 日韩成人一级片| 青青草成人在线观看| 日本视频在线一区| 日本不卡在线视频| 免费亚洲电影在线| 韩国在线一区二区| 粉嫩在线一区二区三区视频| 成人视屏免费看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 美女性感视频久久| 秋霞成人午夜伦在线观看| 免费观看30秒视频久久| 国产在线视频一区二区三区| 国产一区二区91| 99国产欧美另类久久久精品| 91老师片黄在线观看| 欧美日韩国产综合久久| 日韩小视频在线观看专区| 精品国产sm最大网站免费看| 久久久久久久精| 亚洲丝袜自拍清纯另类| 亚洲一区二区视频| 精品一区二区免费| 国产.欧美.日韩| 欧美影片第一页| 337p粉嫩大胆色噜噜噜噜亚洲| 7777女厕盗摄久久久| 精品国产免费视频| 韩国精品免费视频| 91麻豆精品国产91久久久更新时间| 国产成人免费视频网站高清观看视频 | 日韩欧美国产一区二区三区| 亚洲在线一区二区三区| jlzzjlzz欧美大全| 亚洲人成精品久久久久久| 91久久精品日日躁夜夜躁欧美| 亚洲人成精品久久久久| 欧洲视频一区二区| 欧美自拍偷拍一区| 欧美中文一区二区三区| 国产亚洲欧美色| 免费在线观看一区| 日本乱人伦aⅴ精品| 日本一区二区三级电影在线观看 | 亚洲午夜免费福利视频| 狠狠久久亚洲欧美| 欧美日韩精品欧美日韩精品一| 国产日韩欧美a| 久久国产精品免费| 欧美日韩国产精品自在自线| 综合精品久久久| 国产成人av一区二区| 91精品蜜臀在线一区尤物| 亚洲精品日韩一| 99久久精品久久久久久清纯| 国产午夜精品福利| 久久成人麻豆午夜电影| 91精品国产综合久久久蜜臀粉嫩| 亚洲精品日韩综合观看成人91| 成人小视频在线观看| 不卡的av中国片| 亚洲码国产岛国毛片在线| 国产精品久久夜| 欧美日韩国产电影| 国产成人在线看| 亚洲高清免费观看高清完整版在线观看 | 精品三级在线看| 色婷婷综合视频在线观看| 蜜臀av一区二区| 成人欧美一区二区三区黑人麻豆 | 久久电影网站中文字幕| 国产性做久久久久久| 欧美亚洲综合久久| 国产乱人伦偷精品视频免下载| 琪琪久久久久日韩精品| 欧美男同性恋视频网站| 日韩影视精彩在线| 欧美丰满一区二区免费视频 | 日韩欧美中文字幕制服| 免费久久99精品国产| 日韩欧美一级二级| 精品一区在线看| 久久一夜天堂av一区二区三区 | 亚洲视频一区二区在线| 色婷婷精品大在线视频| 亚洲va在线va天堂| 日韩一区二区三| 国产综合成人久久大片91| 久久精品人人爽人人爽| 9i在线看片成人免费| 亚洲一区二区三区爽爽爽爽爽| 欧美疯狂性受xxxxx喷水图片| 久色婷婷小香蕉久久| 精品国产乱码久久久久久老虎 | 制服丝袜亚洲色图| av高清不卡在线| 午夜激情久久久| 欧美精品一区二区三区蜜桃| 成人av午夜电影| 亚洲成国产人片在线观看| 久久久蜜桃精品| 色乱码一区二区三区88| 人人狠狠综合久久亚洲| 日本一区二区视频在线| 欧美日韩三级视频| 国产乱人伦精品一区二区在线观看| 中文字幕中文字幕在线一区| 欧美日韩视频不卡| 国产suv精品一区二区三区| 亚洲午夜三级在线| 欧美激情一区在线| 日韩一区二区精品| 一本到不卡精品视频在线观看| 日韩av中文字幕一区二区| 欧美韩国日本一区| 日韩亚洲欧美中文三级| 不卡免费追剧大全电视剧网站| 性做久久久久久免费观看欧美| 国产亚洲制服色| 欧美一级免费观看| 96av麻豆蜜桃一区二区| 国产精品性做久久久久久| 亚洲一区二区在线观看视频| 国产精品污网站| 精品欧美乱码久久久久久 | 日本不卡视频一二三区| 国产精品对白交换视频| 久久免费的精品国产v∧| 欧美专区亚洲专区| 91一区在线观看| 国产成人亚洲综合色影视| 日本成人在线一区| 视频一区视频二区中文字幕| 亚洲视频免费在线| 国产亚洲人成网站| 精品国产亚洲在线| 精品欧美黑人一区二区三区| 777午夜精品视频在线播放| 91黄视频在线观看| 色综合婷婷久久| 91蝌蚪porny| 91美女片黄在线观看| 成人动漫中文字幕| 北岛玲一区二区三区四区| 高清在线不卡av| 国产一区亚洲一区| 国产69精品久久777的优势| 国产ts人妖一区二区| 国产ts人妖一区二区| 成人av在线观| 91麻豆精品在线观看| 欧美日韩国产乱码电影| 欧美精品在线观看播放| 欧美一区二区三区在线观看| 欧美日韩国产免费一区二区| 91麻豆精品91久久久久同性| 日韩一区二区免费在线电影| 欧美成人艳星乳罩| 久久夜色精品国产噜噜av| 久久九九99视频| √…a在线天堂一区| 夜夜夜精品看看| 图片区日韩欧美亚洲| 久久国产福利国产秒拍| 国产在线国偷精品免费看| 成人免费视频国产在线观看| 99久久精品免费看国产| 欧洲av在线精品| 日韩精品中午字幕| 国产欧美日产一区| 亚洲激情第一区| 毛片av一区二区| 成人av网在线| 69精品人人人人| 欧美激情一二三区| 亚洲国产精品精华液网站| 久久99精品国产| 99精品国产91久久久久久| 欧美区一区二区三区| 国产视频一区在线观看| 亚洲综合精品久久| 国产麻豆午夜三级精品| 在线观看国产日韩| 久久久久免费观看| 亚洲一二三四在线| 国产成人综合网站| 欧美精品久久久久久久久老牛影院| 国产视频视频一区| 亚洲高清不卡在线观看| 国产成人精品www牛牛影视| 欧美日韩国产色站一区二区三区| 国产欧美一区二区在线观看| 亚洲成人av电影在线| proumb性欧美在线观看| 欧美一三区三区四区免费在线看 |