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

📄 nonlinearpde.h

📁 利用C
💻 H
字号:
// Copyright (C) 2005-2007 Garth N. Wells.// Licensed under the GNU LGPL Version 2.1.//// Modified by Anders Logg, 2007//// First added:  2005-10-24// Last changed: 2007-05-15#ifndef __NONLINEAR_PDE_H#define __NONLINEAR_PDE_H#include <dolfin/nls/NonlinearProblem.h>#include <dolfin/nls/NewtonSolver.h>#include <dolfin/fem/Assembler.h>#include <dolfin/fem/DofMapSet.h>namespace dolfin{  /// This class provides automated solution of nonlinear PDEs.    class NonlinearPDE : public NonlinearProblem, public Parametrized  {  public:    /// Constructor    NonlinearPDE(Form& a, Form& L, Mesh& mesh, BoundaryCondition& bc);    /// Constructor    NonlinearPDE(Form& a, Form& L, Mesh& mesh, Array<BoundaryCondition*>& bcs);    /// Destructor    ~NonlinearPDE();    /// Function called before Jacobian matrix and RHS vector are formed. Users    /// can supply this function to perform updates.    virtual void update(const GenericVector& x);    /// User-defined function to compute F(u) its Jacobian    void form(GenericMatrix& A, GenericVector& b, const GenericVector& x);     /// Solve PDE    void solve(Function& u, real& t, const real& T, const real& dt);  private:    // The bilinear form    Form& a;        // The linear form    Form& L;    // The mesh    Mesh& mesh;    // The boundary conditions    Array<BoundaryCondition*> bcs;    // The solution vector    Vector x;    // Assembler     Assembler assembler;    // Solver    NewtonSolver newton_solver;        };}#endif

⌨️ 快捷键说明

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