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

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

?? ex11.c

?? 一個用來實現偏微分方程中網格的計算庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: ex11.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 11 - Stokes Equations - Systems of Equations</h1> // // This example shows how a simple, linear system of equations // can be solved in parallel.  The system of equations are the familiar // Stokes equations for low-speed incompressible fluid flow.// 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 "equation_systems.h"#include "fe.h"#include "quadrature_gauss.h"#include "dof_map.h"#include "sparse_matrix.h"#include "numeric_vector.h"#include "dense_matrix.h"#include "dense_vector.h"#include "linear_implicit_system.h"// For systems of equations the \p DenseSubMatrix// and \p DenseSubVector provide convenient ways for// assembling the element matrix and vector on a// component-by-component basis.#include "dense_submatrix.h"#include "dense_subvector.h"// The definition of a geometric element#include "elem.h"// Function prototype.  This function will assemble the system// matrix and right-hand-side.void assemble_stokes (EquationSystems& es,                      const std::string& system_name);// The main program.int main (int argc, char** argv){  // Initialize libMesh.  LibMeshInit init (argc, argv);  // Set the dimensionality of the mesh = 2  const unsigned int dim = 2;           // Create a two-dimensional mesh.  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.  MeshTools::Generation::build_square (mesh,                                       15, 15,                                       0., 1.,                                       0., 1.,                                       QUAD9);    // 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 transient system named "Convection-Diffusion"  LinearImplicitSystem & system =     equation_systems.add_system<LinearImplicitSystem> ("Stokes");    // Add the variables "u" & "v" to "Stokes".  They  // will be approximated using second-order approximation.  system.add_variable ("u", SECOND);  system.add_variable ("v", SECOND);  // Add the variable "p" to "Stokes". This will  // be approximated with a first-order basis,  // providing an LBB-stable pressure-velocity pair.  system.add_variable ("p", FIRST);  // Give the system a pointer to the matrix assembly  // function.  system.attach_assemble_function (assemble_stokes);    // Initialize the data structures for the equation system.  equation_systems.init ();  equation_systems.parameters.set<unsigned int>("linear solver maximum iterations") = 250;  equation_systems.parameters.set<Real>        ("linear solver tolerance") = TOLERANCE;        // Prints information about the system to the screen.  equation_systems.print_info();      // Assemble & solve the linear system,  // then write the solution.  equation_systems.get_system("Stokes").solve();  GMVIO(mesh).write_equation_systems ("out.gmv",                                      equation_systems);  // All done.    return 0;}void assemble_stokes (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 == "Stokes");    // 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 Convection-Diffusion system object.  LinearImplicitSystem & system =    es.get_system<LinearImplicitSystem> ("Stokes");  // Numeric ids corresponding to each variable in the system  const unsigned int u_var = system.variable_number ("u");  const unsigned int v_var = system.variable_number ("v");  const unsigned int p_var = system.variable_number ("p");    // Get the Finite Element type for "u".  Note this will be  // the same as the type for "v".  FEType fe_vel_type = system.variable_type(u_var);    // Get the Finite Element type for "p".  FEType fe_pres_type = system.variable_type(p_var);  // Build a Finite Element object of the specified type for  // the velocity variables.  AutoPtr<FEBase> fe_vel  (FEBase::build(dim, fe_vel_type));      // Build a Finite Element object of the specified type for  // the pressure variables.  AutoPtr<FEBase> fe_pres (FEBase::build(dim, fe_pres_type));    // A Gauss quadrature rule for numerical integration.  // Let the \p FEType object decide what order rule is appropriate.  QGauss qrule (dim, fe_vel_type.default_quadrature_order());  // Tell the finite element objects to use our quadrature rule.  fe_vel->attach_quadrature_rule (&qrule);  fe_pres->attach_quadrature_rule (&qrule);    // 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_vel->get_JxW();    // The element shape function gradients for the velocity  // variables evaluated at the quadrature points.  const std::vector<std::vector<RealGradient> >& dphi = fe_vel->get_dphi();  // The element shape functions for the pressure variable  // evaluated at the quadrature points.  const std::vector<std::vector<Real> >& psi = fe_pres->get_phi();    // 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  // in future examples.  const DofMap & dof_map = system.get_dof_map();  // Define data structures to contain the element matrix  // and right-hand-side vector contribution.  Following  // basic finite element terminology we will denote these  // "Ke" and "Fe".  DenseMatrix<Number> Ke;  DenseVector<Number> Fe;  DenseSubMatrix<Number>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲mv在线观看| 国产凹凸在线观看一区二区| 国产一区二区在线看| av男人天堂一区| 日韩欧美一二三区| 一区二区三区在线观看欧美| 国产成人免费视频一区| 精品少妇一区二区三区| 午夜精品影院在线观看| 99久久久久免费精品国产| 日韩一区二区三| 亚洲国产精品欧美一二99| 成人国产视频在线观看| 亚洲精品一线二线三线| 免费观看在线综合| 欧美日韩午夜在线视频| 亚洲综合无码一区二区| 99久久国产综合色|国产精品| 久久精品视频在线免费观看 | 欧美一区二区三区播放老司机| 国产精品卡一卡二卡三| 国产乱码精品一区二区三区av| 欧美一区二区日韩| 五月天久久比比资源色| 欧美日韩亚洲不卡| 亚洲国产视频a| 欧美色欧美亚洲另类二区| 亚洲欧美日韩综合aⅴ视频| 99久久久无码国产精品| 亚洲视频一区二区在线| 93久久精品日日躁夜夜躁欧美| 国产精品久久久久四虎| a在线欧美一区| 亚洲日本在线视频观看| 91玉足脚交白嫩脚丫在线播放| 国产精品丝袜久久久久久app| 大胆亚洲人体视频| 1024亚洲合集| 欧洲一区二区av| 午夜精品久久久久久久蜜桃app| 欧美日韩视频专区在线播放| 日本中文在线一区| 日韩精品一区二区三区在线观看| 麻豆精品久久久| 国产午夜精品理论片a级大结局 | 欧美自拍丝袜亚洲| 亚洲黄一区二区三区| 欧美日韩在线综合| 久久精品国产第一区二区三区| 精品国产乱码久久久久久牛牛 | 久久亚洲综合色一区二区三区| 久88久久88久久久| 国产精品女主播av| 欧美视频在线一区二区三区 | 粉嫩绯色av一区二区在线观看| 久久久精品欧美丰满| 99久久久精品| 日韩精品一级二级| 中文字幕av不卡| 欧美日韩午夜影院| 国产精品123区| 亚洲国产精品嫩草影院| 精品国产sm最大网站| 99久久免费视频.com| 男女男精品视频| 中文字幕一区二区三区乱码在线| 欧美色视频一区| 粗大黑人巨茎大战欧美成人| 亚洲国产中文字幕在线视频综合| 欧美一级欧美三级| 99这里只有久久精品视频| 婷婷综合五月天| 亚洲国产高清在线观看视频| 欧美性生活影院| 成人一区二区在线观看| 视频一区二区三区在线| 国产精品美女久久久久aⅴ| 制服丝袜亚洲色图| 91麻豆高清视频| 激情文学综合丁香| 午夜欧美2019年伦理| 国产精品国产三级国产aⅴ无密码| 欧美疯狂性受xxxxx喷水图片| 成人av免费观看| 国内成人免费视频| 香蕉久久一区二区不卡无毒影院 | 色欲综合视频天天天| 国产一区二区三区日韩| 亚欧色一区w666天堂| 亚洲免费毛片网站| 国产日韩视频一区二区三区| 欧美丰满嫩嫩电影| 在线观看免费亚洲| caoporen国产精品视频| 国产成人精品综合在线观看 | 午夜精品在线看| 亚洲男人的天堂在线aⅴ视频| 久久久91精品国产一区二区精品 | 亚洲色图一区二区| 国产精品污污网站在线观看 | 国产69精品久久99不卡| 麻豆一区二区三| 日韩精品免费视频人成| 一区二区欧美精品| 亚洲精品国产a| 亚洲免费视频中文字幕| 综合久久国产九一剧情麻豆| 国产精品入口麻豆九色| 中文字幕精品一区二区精品绿巨人| www一区二区| 国产婷婷一区二区| 日本一区二区三级电影在线观看| 精品国产一区二区三区久久影院| 日韩视频中午一区| 欧美videossexotv100| 日韩美女主播在线视频一区二区三区| 91精品国产色综合久久不卡电影| 欧美日韩久久久一区| 制服丝袜激情欧洲亚洲| 日韩午夜激情视频| 久久久久综合网| 国产精品久久福利| 亚洲女人****多毛耸耸8| 亚洲国产精品综合小说图片区| 亚洲成人av资源| 裸体歌舞表演一区二区| 国产精品一区二区在线观看网站| 懂色一区二区三区免费观看| 91在线播放网址| 欧美电影影音先锋| 久久久亚洲国产美女国产盗摄| 国产精品青草久久| 一区二区三区在线高清| 视频一区免费在线观看| 国产综合色视频| 99riav一区二区三区| 欧美精品v国产精品v日韩精品| 日韩欧美一二三区| 国产精品欧美一区二区三区| 亚洲日本韩国一区| 免费人成精品欧美精品 | 在线观看av不卡| 日韩一区二区三区视频在线| 国产精品日产欧美久久久久| 亚洲电影一区二区三区| 韩国三级中文字幕hd久久精品| av中文字幕不卡| 在线不卡免费欧美| 中文幕一区二区三区久久蜜桃| 亚洲成人福利片| 国产suv精品一区二区三区| 在线免费观看日本欧美| 久久青草国产手机看片福利盒子 | 亚洲免费在线视频| 激情伊人五月天久久综合| 成人午夜激情视频| 91精品国产欧美一区二区成人| 国产欧美一区二区精品性色超碰| 香蕉乱码成人久久天堂爱免费| 国产成人综合亚洲网站| 欧美午夜视频网站| 国产精品免费看片| 久久国产精品第一页| 欧洲精品一区二区三区在线观看| 精品日本一线二线三线不卡| 一区二区免费视频| 成人精品国产福利| 日韩一级片在线播放| 亚洲一区二区三区视频在线| 成人午夜短视频| 精品日韩av一区二区| 亚洲成人你懂的| 色婷婷综合久色| 日本一区二区三级电影在线观看| 麻豆精品视频在线| 欧美日韩一二三区| 一区二区三区四区亚洲| 国产91丝袜在线播放0| 欧美成人aa大片| 婷婷久久综合九色国产成人| 91免费看片在线观看| 国产日本一区二区| 国产一区二区精品久久99| 91精品国产综合久久久久久久久久 | 国产福利一区二区三区视频在线| 欧美一级一级性生活免费录像| 亚洲一区二区三区视频在线播放 | 亚洲国产人成综合网站| 色诱亚洲精品久久久久久| 一区免费观看视频| av成人免费在线| 亚洲色图欧美激情| 99免费精品视频| 亚洲天堂a在线| 91在线观看成人| 一区二区三区四区亚洲| 欧美综合视频在线观看| 五月综合激情日本mⅴ| 欧美日本一区二区| 蜜桃精品视频在线|