Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Function Class Reference

#include <Function.h>

Inheritance diagram for dolfin::Function:

Inheritance graph
[legend]
Collaboration diagram for dolfin::Function:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Function ()
 Create a function of unspecified type.

 Function (Mesh &mesh, dolfin::Vector &x, int dim=0, int size=1)
 Create function specified on given mesh with given nodal values.

 Function (const char *name, int dim=0, int size=1)
 Create function specified by the given expression.

 Function (function fp)
 Create function from function pointer.

 Function (unsigned int N)
 Create an ODE function of given dimension.

 ~Function ()
 Destructor.

void init (Mesh &mesh, dolfin::Vector &x, int dim=0, int size=1)
 Initialize function on given mesh with given nodal values.

void init (const char *name, int dim=0, int size=1)
 Create function specified by the given expression.

void init (function fp)
 Create function from function pointer.

void init (unsigned int N)
 Create an ODE function of given dimension.

real operator() (const Node &n, real t=0.0) const
 Evaluation for given node and time.

real operator() (const Node &n, real t=0.0)
real operator() (const Point &p, real t=0.0) const
 Evaluation for given point and time.

real operator() (const Point &p, real t=0.0)
real operator() (real x, real y, real z, real t) const
 Evaluation for given coordinates and time.

real operator() (real x, real y, real z, real t)
real operator() (unsigned int i, real t) const
 Evaluation for given component and time.

real operator() (unsigned int i, real t)
real abs (const Node &n, real t=0.0)
 Absolute values.

real abs (const Point &p, real t=0.0)
real abs (real x, real y, real z, real t)
real abs (unsigned int i, real t)
void update (real t)
real time () const
Meshmesh () const
ElementDataelmdata ()
void update (FunctionSpace::ElementFunction &v, const FiniteElement &element, const Cell &cell, real t) const
void update (NewArray< real > &w, const Cell &cell, const NewPDE &pde) const

Detailed Description

A Function represents a function that can be evaluated for given input. The type of evaluation depends on which type of function that is represented.


Constructor & Destructor Documentation

Function::Function  ) 
 

Create a function of unspecified type.

Function::Function Mesh mesh,
dolfin::Vector x,
int  dim = 0,
int  size = 1
 

Create function specified on given mesh with given nodal values.

Function::Function const char *  name,
int  dim = 0,
int  size = 1
 

Create function specified by the given expression.

Function::Function function  fp  ) 
 

Create function from function pointer.

Function::Function unsigned int  N  ) 
 

Create an ODE function of given dimension.

Function::~Function  ) 
 

Destructor.


Member Function Documentation

real Function::abs unsigned int  i,
real  t
 

real Function::abs real  x,
real  y,
real  z,
real  t
 

real Function::abs const Point p,
real  t = 0.0
 

real Function::abs const Node n,
real  t = 0.0
 

Absolute values.

ElementData & Function::elmdata  ) 
 

void Function::init unsigned int  N  ) 
 

Create an ODE function of given dimension.

void Function::init function  fp  ) 
 

Create function from function pointer.

void Function::init const char *  name,
int  dim = 0,
int  size = 1
 

Create function specified by the given expression.

void Function::init Mesh mesh,
dolfin::Vector x,
int  dim = 0,
int  size = 1
 

Initialize function on given mesh with given nodal values.

Mesh & Function::mesh  )  const
 

real Function::operator() unsigned int  i,
real  t
 

real Function::operator() unsigned int  i,
real  t
const
 

Evaluation for given component and time.

real Function::operator() real  x,
real  y,
real  z,
real  t
 

real Function::operator() real  x,
real  y,
real  z,
real  t
const
 

Evaluation for given coordinates and time.

real Function::operator() const Point p,
real  t = 0.0
 

real Function::operator() const Point p,
real  t = 0.0
const
 

Evaluation for given point and time.

real Function::operator() const Node n,
real  t = 0.0
 

real Function::operator() const Node n,
real  t = 0.0
const
 

Evaluation for given node and time.

real Function::time  )  const
 

void Function::update NewArray< real > &  w,
const Cell cell,
const NewPDE pde
const
 

void Function::update FunctionSpace::ElementFunction v,
const FiniteElement element,
const Cell cell,
real  t
const
 

void Function::update real  t  ) 
 


The documentation for this class was generated from the following files:


Documentation automatically generated with Doxygen on 10 Sep 2004.