CubbyFlow::ConstantScalarField< N > Class Template Referencefinal

N-D constant scalar field. More...

#include <Core/Field/ConstantScalarField.hpp>

Inheritance diagram for CubbyFlow::ConstantScalarField< N >:
CubbyFlow::ScalarField< N > CubbyFlow::Field< N >

Classes

class  Builder
 Front-end to create ConstantScalarField objects step by step. More...
 

Public Member Functions

 ConstantScalarField (double value)
 Constructs a constant scalar field with given value. More...
 
double Sample (const Vector< double, N > &x) const override
 Returns the sampled value at given position x. More...
 
std::function< double(const Vector< double, N > &)> Sampler () const override
 Returns the sampler function. More...
 
- Public Member Functions inherited from CubbyFlow::ScalarField< N >
 ScalarField ()=default
 Default constructor. More...
 
 ~ScalarField () override=default
 Default destructor. More...
 
 ScalarField (const ScalarField &)=default
 Default copy constructor. More...
 
 ScalarField (ScalarField &&) noexcept=default
 Default move constructor. More...
 
ScalarFieldoperator= (const ScalarField &)=default
 Default copy assignment operator. More...
 
ScalarFieldoperator= (ScalarField &&) noexcept=default
 Default move assignment operator. More...
 
virtual Vector< double, N > Gradient (const Vector< double, N > &x) const
 Returns gradient vector at given position x. More...
 
virtual double Laplacian (const Vector< double, N > &x) const
 Returns Laplacian at given position x. More...
 
- Public Member Functions inherited from CubbyFlow::Field< N >
 Field ()=default
 Default constructor. More...
 
virtual ~Field ()=default
 Default virtual destructor. More...
 
 Field (const Field &)=default
 Default copy constructor. More...
 
 Field (Field &&) noexcept=default
 Default move constructor. More...
 
Fieldoperator= (const Field &)=default
 Default copy assignment operator. More...
 
Fieldoperator= (Field &&) noexcept=default
 Default move assignment operator. More...
 

Static Public Member Functions

static Builder GetBuilder ()
 Returns builder for ConstantScalarField. More...
 

Detailed Description

template<size_t N>
class CubbyFlow::ConstantScalarField< N >

N-D constant scalar field.

Constructor & Destructor Documentation

◆ ConstantScalarField()

template<size_t N>
CubbyFlow::ConstantScalarField< N >::ConstantScalarField ( double  value)
explicit

Constructs a constant scalar field with given value.

Member Function Documentation

◆ GetBuilder()

template<size_t N>
static Builder CubbyFlow::ConstantScalarField< N >::GetBuilder ( )
static

Returns builder for ConstantScalarField.

◆ Sample()

template<size_t N>
double CubbyFlow::ConstantScalarField< N >::Sample ( const Vector< double, N > &  x) const
overridevirtual

Returns the sampled value at given position x.

Implements CubbyFlow::ScalarField< N >.

◆ Sampler()

template<size_t N>
std::function<double(const Vector<double, N>&)> CubbyFlow::ConstantScalarField< N >::Sampler ( ) const
overridevirtual

Returns the sampler function.

Reimplemented from CubbyFlow::ScalarField< N >.


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