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

📄 userfunction.h

📁 利用C
💻 H
字号:
// Copyright (C) 2005-2008 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2005-11-26// Last changed: 2008-03-17#ifndef __USER_FUNCTION_H#define __USER_FUNCTION_H#include "GenericFunction.h"namespace dolfin{  class Function;  /// This class implements the functionality for a user-defined  /// function defined by overloading the evaluation operator in  /// the class Function.  class UserFunction : public GenericFunction, public ufc::function  {  public:    /// Create user-defined function    UserFunction(Mesh& mesh, Function* f);    /// Destructor    ~UserFunction();    /// Return the rank of the value space    uint rank() const;    /// Return the dimension of the value space for axis i    uint dim(uint i) const;    /// Interpolate function to vertices of mesh    void interpolate(real* values) const;    /// Interpolate function to finite element space on cell    void interpolate(real coefficients[],                     const ufc::cell& cell,                     const ufc::finite_element& finite_element) const;    /// Evaluate function at given point    void eval(real* values, const real* x) const;    /// Evaluate function at given point in cell (UFC function interface)    void evaluate(real* values,                  const real* coordinates,                  const ufc::cell& cell) const;  private:    // Pointer to Function with overloaded evaluation operator    Function* f;  };}#endif

⌨️ 快捷键说明

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