⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 explicit_system.h

📁 一个用来实现偏微分方程中网格的计算库
💻 H
字号:
// $Id: explicit_system.h 2501 2007-11-20 02:33:29Z benkirk $// The libMesh Finite Element Library.// Copyright (C) 2002-2007  Benjamin S. Kirk, John W. Peterson  // 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#ifndef __explicit_system_h__#define __explicit_system_h__// C++ includes// Local Includes#include "system.h"// Forward Declarations/** * This class provides a specific system class.  It aims * at explicit systems, offering nothing more than just * the essentials needed to solve a system.  Note * that still additional vectors/matrices may be added, * as offered in the parent class \p System. */// ------------------------------------------------------------// ExplicitSystem class definitionclass ExplicitSystem : public System{public:  /**   * Constructor.  Optionally initializes required   * data structures.   */  ExplicitSystem (EquationSystems& es,		  const std::string& name,		  const unsigned int number);  /**   * Destructor.   */  ~ExplicitSystem ();   /**   * The type of system.   */  typedef ExplicitSystem sys_type;  /**   * The type of the parent   */  typedef System Parent;    /**   * @returns a clever pointer to the system.   */  sys_type & system () { return *this; }    /**   * Clear all the data structures associated with   * the system.    */  virtual void clear ();  /**   * Reinitializes the member data fields associated with   * the system, so that, e.g., \p assemble() may be used.   */  virtual void reinit ();    /**   * Assembles & solves the linear system Ax=b.    */  virtual void solve ();   /**   * @returns \p "Explicit".  Helps in identifying   * the system type in an equation system file.   */  virtual std::string system_type () const { return "Explicit"; }  /**   * The system matrix.  Implicit systems are characterized by   * the need to solve the linear system Ax=b.  This is the   * right-hand-side vector b.   */  NumericVector<Number> * rhs;  protected:    /**   * Initializes the member data fields associated with   * the system, so that, e.g., \p assemble() may be used.   */  virtual void init_data ();  private:    /**   * Add the system right-hand-side vector to the \p _vectors data structure.   * Useful in initialization.   */  void add_system_rhs ();};// ------------------------------------------------------------// ExplicitSystem inline methods#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -