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

📄 monoadaptivefixedpointsolver.h

📁 利用C
💻 H
字号:
// Copyright (C) 2005-2006 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2005-01-28// Last changed: 2006-08-08#ifndef __MONO_ADAPTIVE_FIXED_POINT_SOLVER_H#define __MONO_ADAPTIVE_FIXED_POINT_SOLVER_H#include <dolfin/common/types.h>#include "TimeSlabSolver.h"namespace dolfin{  class MonoAdaptiveTimeSlab;    /// This class implements fixed-point iteration on mono-adaptive  /// time slabs. In each iteration, the solution is updated according  /// to the fixed-point iteration x = g(x).  class MonoAdaptiveFixedPointSolver : public TimeSlabSolver  {  public:    /// Constructor    MonoAdaptiveFixedPointSolver(MonoAdaptiveTimeSlab& timeslab);    /// Destructor    ~MonoAdaptiveFixedPointSolver();    /// Solve system    //bool solve();  protected:    // Make an iteration    real iteration(real tol, uint iter, real d0, real d1);    /// Size of system    uint size() const;  private:    // The time slab    MonoAdaptiveTimeSlab& ts;    // Old values at right end-point used to compute the increment    real* xold;    // Damping (alpha = 1.0 for no damping)    real alpha;    // Stabilization    bool stabilize;    // Stabilization parameters    // Number of stabilizing iterations    uint mi;    // Number of ramping iterations    uint li;    // Ramping coefficient    real ramp;    // Ramping factor    real rampfactor;  };}#endif

⌨️ 快捷键说明

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