ConstantVectorFunction Class Reference

#include <ConstantVectorFunction.H>

Inheritance diagram for ConstantVectorFunction:

Inheritance graph
[legend]

List of all members.


Detailed Description

This VectorFunction subclass represents a function that returns a constant value everywhere in space and time.

Public Member Functions

 ConstantVectorFunction (const RealVect &a_value)
 ~ConstantVectorFunction ()
 Destructor.
RealVect operator() (const RealVect &a_x, Real a_t) const
RealVect derivative (const IntVect &a_order, const RealVect &a_x, Real a_t) const

Private Attributes

RealVect m_value

Constructor & Destructor Documentation

ConstantVectorFunction::ConstantVectorFunction ( const RealVect a_value  )  [explicit]

Creates a constant scalar function returning the given value.

Parameters:
a_value The value returned by the function.

ConstantVectorFunction::~ConstantVectorFunction (  ) 

Destructor.


Member Function Documentation

RealVect ConstantVectorFunction::operator() ( const RealVect a_x,
Real  a_t 
) const [virtual]

Override this method to evaluate this function at the given point in space and time.

Parameters:
a_x A point in $D$-dimensional space.
a_t The time at which the function is evaluated.

Implements VectorFunction.

RealVect ConstantVectorFunction::derivative ( const IntVect a_order,
const RealVect a_x,
Real  a_t 
) const [virtual]

Override this method to evaluate the given partial derivative of the function at the given point in space and time.

Parameters:
a_order A multi-index identifying the order(s) of the partial derivative of the function to be evaluated.
a_x A point in $D$-dimensional space.
a_t The time at which the derivative is to be evaluated.

Reimplemented from VectorFunction.


Member Data Documentation


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

Generated on Fri Apr 5 04:24:58 2019 for Chombo + EB by  doxygen 1.5.5