libMesh::ConstFEMFunction< Output > Class Template Reference
#include <const_fem_function.h>

Public Member Functions | |
| ConstFEMFunction (const Output c) | |
| ~ConstFEMFunction () | |
| virtual AutoPtr < FEMFunctionBase< Output > > | clone () const |
| virtual Output | operator() (const FEMContext &, const Point &, const Real=0.) |
| virtual void | operator() (const FEMContext &, const Point &, const Real, DenseVector< Output > &output) |
| virtual void | init_context (const FEMContext &) |
| void | operator() (const FEMContext &, const Point &p, DenseVector< Output > &output) |
| virtual Output | component (const FEMContext &, unsigned int i, const Point &p, Real time=0.) |
Protected Attributes | |
| unsigned int | var_index |
Private Attributes | |
| Output | _c |
Detailed Description
template<typename Output = Number>
class libMesh::ConstFEMFunction< Output >
Definition at line 30 of file const_fem_function.h.
Constructor & Destructor Documentation
| libMesh::ConstFEMFunction< Output >::ConstFEMFunction | ( | const Output | c | ) | [inline] |
Definition at line 33 of file const_fem_function.h.
References libMesh::ConstFEMFunction< Output >::_c.
Referenced by libMesh::ConstFEMFunction< Output >::clone().
00033 {_c = c;}
| libMesh::ConstFEMFunction< Output >::~ConstFEMFunction | ( | ) | [inline] |
Definition at line 35 of file const_fem_function.h.
Member Function Documentation
| virtual AutoPtr<FEMFunctionBase<Output> > libMesh::ConstFEMFunction< Output >::clone | ( | ) | const [inline, virtual] |
Returns a new copy of the function. The new copy should be as ``deep'' as necessary to allow independent destruction and simultaneous evaluations of the copies in different threads.
Implements libMesh::FEMFunctionBase< Output >.
Definition at line 37 of file const_fem_function.h.
References libMesh::ConstFEMFunction< Output >::ConstFEMFunction().
00038 {return AutoPtr<FEMFunctionBase<Output> >( new ConstFEMFunction(*this) ); }
| Output libMesh::FEMFunctionBase< Output >::component | ( | const FEMContext & | context, | |
| unsigned int | i, | |||
| const Point & | p, | |||
| Real | time = 0. | |||
| ) | [inline, virtual, inherited] |
- Returns:
- the vector component
iat coordinatepand timetime. Subclasses aren't required to overload this, since the default implementation is based on the full vector evaluation, which is often correct. Subclasses are recommended to overload this, since the default implementation is based on a vector evaluation, which is usually unnecessarily inefficient.
Definition at line 135 of file fem_function_base.h.
Referenced by libMesh::System::project_vector().
| virtual void libMesh::FEMFunctionBase< Output >::init_context | ( | const FEMContext & | ) | [inline, virtual, inherited] |
Prepares a context object for use.
Most problems will want to reimplement this for efficiency, in order to call FE::get_*() as their particular function requires.
Definition at line 68 of file fem_function_base.h.
| void libMesh::FEMFunctionBase< Output >::operator() | ( | const FEMContext & | context, | |
| const Point & | p, | |||
| DenseVector< Output > & | output | |||
| ) | [inline, inherited] |
Return function for vectors. Returns in output the values of the data at the coordinate p.
Definition at line 146 of file fem_function_base.h.
References libMesh::FEMFunctionBase< Output >::operator()().
00148 { 00149 // Call the time-dependent function with t=0. 00150 this->operator()(context, p, 0., output); 00151 }
| virtual void libMesh::ConstFEMFunction< Output >::operator() | ( | const FEMContext & | , | |
| const Point & | p, | |||
| const | time, | |||
| DenseVector< Output > & | output | |||
| ) | [inline, virtual] |
Return function for vectors. Returns in output the values of the data at the coordinate p and for time time. Purely virtual, so you have to overload it. Note that this cannot be a const method, check MeshFunction.
Implements libMesh::FEMFunctionBase< Output >.
Definition at line 44 of file const_fem_function.h.
References libMesh::ConstFEMFunction< Output >::_c, and libMesh::DenseVector< T >::size().
00047 {for(unsigned int i = 0; i < output.size(); i++ ) 00048 output(i) = _c;}
| virtual Output libMesh::ConstFEMFunction< Output >::operator() | ( | const FEMContext & | , | |
| const Point & | p, | |||
| const | time = 0. | |||
| ) | [inline, virtual] |
- Returns:
- the scalar value at coordinate
pand timetime, which defaults to zero. Purely virtual, so you have to overload it. Note that this cannot be a const method, checkMeshFunction.
Implements libMesh::FEMFunctionBase< Output >.
Definition at line 40 of file const_fem_function.h.
References libMesh::ConstFEMFunction< Output >::_c.
00042 { return _c; }
Member Data Documentation
Output libMesh::ConstFEMFunction< Output >::_c [private] |
Definition at line 51 of file const_fem_function.h.
Referenced by libMesh::ConstFEMFunction< Output >::ConstFEMFunction(), and libMesh::ConstFEMFunction< Output >::operator()().
unsigned int libMesh::FEMFunctionBase< Output >::var_index [protected, inherited] |
Variable index to decide which overloaded function should be accessed
Definition at line 129 of file fem_function_base.h.
The documentation for this class was generated from the following file:
Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:13 UTC
Hosted By: