亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产99精品视频| 精品日本一线二线三线不卡| 美女视频一区二区| 一区二区三区四区乱视频| 国产三级精品视频| 日韩一二在线观看| 欧美一个色资源| 日韩三级精品电影久久久| 欧美高清www午色夜在线视频| 色噜噜偷拍精品综合在线| 国产suv一区二区三区88区| 水野朝阳av一区二区三区| 久久狠狠亚洲综合| 亚洲欧美在线视频| 国产精品天干天干在观线| 久久久电影一区二区三区| 国产午夜精品一区二区三区视频 | 欧美三级一区二区| 欧美日韩在线精品一区二区三区激情| 94-欧美-setu| 欧美午夜在线一二页| 欧美人牲a欧美精品| 欧美成人一区二区三区片免费 | 婷婷夜色潮精品综合在线| 五月天中文字幕一区二区| 热久久久久久久| 黑人精品欧美一区二区蜜桃| 6080午夜不卡| 欧美va日韩va| 亚洲国产精华液网站w| 中文字幕在线不卡一区二区三区| 亚洲欧洲另类国产综合| 亚洲国产一区视频| 麻豆国产一区二区| 成人精品免费网站| 欧美视频精品在线| 精品日韩在线观看| 亚洲美女免费在线| 蜜臀久久99精品久久久久久9| 国产精品综合在线视频| 99久久精品一区二区| 欧美日韩国产高清一区二区三区| 日韩三级视频在线观看| 国产精品久久久久久久久动漫| 亚洲成人激情综合网| 国产真实乱偷精品视频免| av在线不卡免费看| 日韩欧美一区二区免费| 一区免费观看视频| 狠狠久久亚洲欧美| 精品欧美久久久| 99精品视频在线观看| 国产经典欧美精品| 欧美吞精做爰啪啪高潮| 精品日韩欧美在线| 亚洲一区二区中文在线| 国产精品综合久久| 欧美日韩免费一区二区三区视频| 中文字幕av一区二区三区免费看| 亚洲成人自拍偷拍| 99久久免费国产| 精品国产乱码久久久久久闺蜜| 亚洲综合色噜噜狠狠| 成人免费不卡视频| 精品久久久久香蕉网| 亚洲最大成人综合| av不卡在线观看| 国产亚洲va综合人人澡精品| 麻豆国产精品官网| 欧亚一区二区三区| 亚洲免费大片在线观看| 成人综合婷婷国产精品久久蜜臀 | 亚洲高清久久久| av一区二区三区黑人| 久久亚洲私人国产精品va媚药| 视频一区在线播放| 欧美另类一区二区三区| 一区二区成人在线| 色综合天天视频在线观看 | 国产精品一区二区在线播放 | 视频一区二区三区在线| 欧美探花视频资源| 亚洲美女屁股眼交| 色噜噜狠狠成人中文综合| 中文字幕色av一区二区三区| 国产不卡一区视频| 国产日韩欧美综合一区| 成人免费看视频| 国产精品美女久久久久aⅴ | 国产夫妻精品视频| 国产一区二区三区在线看麻豆| 欧美一区二区视频在线观看| 天天综合色天天综合色h| 欧美日本在线播放| 午夜激情综合网| 91精品国产综合久久香蕉的特点 | 色偷偷久久人人79超碰人人澡 | 综合网在线视频| 色88888久久久久久影院按摩| 亚洲人成伊人成综合网小说| 91精彩视频在线| 日本网站在线观看一区二区三区 | 久久av老司机精品网站导航| 精品精品欲导航| 国产91精品久久久久久久网曝门| 欧美国产亚洲另类动漫| 在线视频观看一区| 午夜精品福利视频网站 | 日本不卡一二三| 久久一区二区视频| 国产99一区视频免费| 亚洲精品成a人| 欧美一区二视频| 成人丝袜18视频在线观看| 夜夜爽夜夜爽精品视频| 日韩一区二区在线观看视频| 成人综合在线视频| 午夜精品福利在线| 欧美激情一区二区在线| 欧美午夜电影一区| 国产麻豆91精品| 亚洲一区二区三区四区五区中文| 精品国产乱码久久久久久夜甘婷婷| 成人毛片在线观看| 蜜桃视频一区二区| 亚洲视频精选在线| 精品免费99久久| 在线观看一区二区视频| 国产一区在线观看视频| 亚洲一区二区三区国产| 国产精品网站在线| 欧美一区二区三区四区高清| av网站免费线看精品| 老司机精品视频导航| 亚洲午夜一二三区视频| 国产视频一区在线播放| 欧美日韩一区二区在线观看| 粉嫩av一区二区三区在线播放 | 欧美日本精品一区二区三区| 懂色av一区二区三区蜜臀| 日韩av不卡在线观看| 悠悠色在线精品| 国产日产欧美一区二区视频| 日韩精品综合一本久道在线视频| 91搞黄在线观看| 成人av电影在线网| 国产成人精品一区二区三区四区 | 欧美一区二区三区喷汁尤物| 色欧美片视频在线观看| av激情亚洲男人天堂| 国内精品国产三级国产a久久| 青青草国产精品亚洲专区无| 亚洲午夜成aⅴ人片| 一区二区在线观看免费| 国产精品不卡在线观看| 中文字幕av一区 二区| 国产欧美日韩精品a在线观看| 精品国产91乱码一区二区三区| 欧美一区二区在线免费播放| 欧美久久高跟鞋激| 欧美日韩精品欧美日韩精品| 色综合久久久久久久久久久| 91网页版在线| 99久久精品国产麻豆演员表| www.亚洲精品| 99v久久综合狠狠综合久久| 成人av资源在线观看| 99久久99久久精品免费看蜜桃| 成人禁用看黄a在线| 成人国产精品免费观看动漫 | 18成人在线观看| 亚洲你懂的在线视频| 一区二区三区日韩欧美精品| 亚洲欧美区自拍先锋| 亚洲猫色日本管| 亚洲成人在线免费| 日韩电影在线观看电影| 看电视剧不卡顿的网站| 国产福利91精品一区| 99国产精品视频免费观看| 91久久免费观看| 91精品黄色片免费大全| 久久先锋影音av鲁色资源网| 国产精品伦一区二区三级视频| 亚洲色图制服诱惑| 午夜精品久久久久久不卡8050 | 久久网这里都是精品| 国产精品视频一二三区| 一二三四社区欧美黄| 青椒成人免费视频| 成人免费观看视频| 在线观看日韩精品| 精品少妇一区二区三区视频免付费 | 久久国内精品自在自线400部| 国内外成人在线| 在线观看日产精品| 精品裸体舞一区二区三区| 国产精品盗摄一区二区三区| 天天av天天翘天天综合网色鬼国产| 裸体歌舞表演一区二区|