queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::Base1D1DFunction Class Referenceabstract

Class for one-dimensional functions. More...

#include <1D1DFunction.h>

Inheritance diagram for QUESO::Base1D1DFunction:
QUESO::Constant1D1DFunction QUESO::FuncPlusFunc1D1DFunction QUESO::FuncTimesFunc1D1DFunction QUESO::Generic1D1DFunction QUESO::LagrangeBasis1D1DFunction QUESO::LagrangePolynomial1D1DFunction QUESO::Linear1D1DFunction QUESO::PiecewiseLinear1D1DFunction QUESO::Quadratic1D1DFunction QUESO::Sampled1D1DFunction QUESO::ScalarTimesFunc1D1DFunction

Public Member Functions

Constructor/Destructor methods
 Base1D1DFunction (double minDomainValue, double maxDomainValue)
 Default constructor. More...
 
virtual ~Base1D1DFunction ()
 Destructor. More...
 
Mathematical methods
double minDomainValue () const
 Returns the minimum value of the domain of the (one-dimensional) function. More...
 
double maxDomainValue () const
 Returns the maximum value of the domain of the (one-dimensional) function. More...
 
virtual double value (double domainValue) const =0
 Returns the value of the (one-dimensional) function. See template specialization. More...
 
virtual double deriv (double domainValue) const =0
 Returns the value of the derivative of the function. See template specialization. More...
 
virtual double multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const
 TODO: Multiplies this function with function, and integrates it numerically. See template specialization. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 

Detailed Description

Class for one-dimensional functions.

Base class for one-dimensional functions.

Definition at line 53 of file 1D1DFunction.h.

Constructor & Destructor Documentation

QUESO::Base1D1DFunction::Base1D1DFunction ( double  minDomainValue,
double  maxDomainValue 
)

Default constructor.

Definition at line 33 of file 1D1DFunction.C.

References m_maxDomainValue, and m_minDomainValue.

36  :
39 {
40  queso_require_less_msg(m_minDomainValue, m_maxDomainValue, "min >= max");
41 }
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:54
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:48
QUESO::Base1D1DFunction::~Base1D1DFunction ( )
virtual

Destructor.

Definition at line 43 of file 1D1DFunction.C.

44 {
45 }

Member Function Documentation

double QUESO::Base1D1DFunction::maxDomainValue ( ) const

Returns the maximum value of the domain of the (one-dimensional) function.

Definition at line 54 of file 1D1DFunction.C.

References m_maxDomainValue.

55 {
56  return m_maxDomainValue;
57 }
double QUESO::Base1D1DFunction::minDomainValue ( ) const

Returns the minimum value of the domain of the (one-dimensional) function.

Definition at line 48 of file 1D1DFunction.C.

References m_minDomainValue.

49 {
50  return m_minDomainValue;
51 }
double QUESO::Base1D1DFunction::multiplyAndIntegrate ( const Base1D1DFunction func,
unsigned int  quadratureOrder,
double *  resultWithMultiplicationByTAsWell 
) const
virtual

TODO: Multiplies this function with function, and integrates it numerically. See template specialization.

Todo:
: Please, implement me!

Definition at line 60 of file 1D1DFunction.C.

References value().

61 {
62  double value = 0.;
63 
64  queso_not_implemented();
65 
66  if (resultWithMultiplicationByTAsWell) { // Just to eliminate INTEL compiler warnings
67  func.value((double) quadratureOrder);
68  }
69 
70  return value;
71 }
virtual double value(double domainValue) const =0
Returns the value of the (one-dimensional) function. See template specialization. ...

Member Data Documentation


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

Generated on Tue Jun 5 2018 19:49:15 for queso-0.57.1 by  doxygen 1.8.5