CubbyFlow::VectorField< N > Class Template Referenceabstract

Abstract base class for N-D vector field. More...

#include <Core/Field/VectorField.hpp>

Inheritance diagram for CubbyFlow::VectorField< N >:
CubbyFlow::Field< N > CubbyFlow::ConstantVectorField< N > CubbyFlow::CustomVectorField< N > CubbyFlow::VectorGrid< N > CubbyFlow::CollocatedVectorGrid< N > CubbyFlow::FaceCenteredGrid< N > CubbyFlow::CellCenteredVectorGrid< N > CubbyFlow::VertexCenteredVectorGrid< N >

Public Member Functions

 VectorField ()=default
 Default constructor. More...
 
 ~VectorField () override=default
 Default destructor. More...
 
 VectorField (const VectorField &)=default
 Default copy constructor. More...
 
 VectorField (VectorField &&) noexcept=default
 Default move constructor. More...
 
VectorFieldoperator= (const VectorField &)=default
 Default copy assignment operator. More...
 
VectorFieldoperator= (VectorField &&) noexcept=default
 Default move assignment operator. More...
 
virtual Vector< double, N > Sample (const Vector< double, N > &x) const =0
 Returns sampled value at given position x. More...
 
virtual double Divergence (const Vector< double, N > &x) const
 Returns divergence at given position x. More...
 
virtual GetCurl< N >::Type Curl (const Vector< double, N > &x) const
 Returns curl at given position x. More...
 
virtual std::function< Vector< double, N >const Vector< double, N > &)> Sampler () const
 Returns sampler function object. 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...
 

Detailed Description

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

Abstract base class for N-D vector field.

Constructor & Destructor Documentation

◆ VectorField() [1/3]

template<size_t N>
CubbyFlow::VectorField< N >::VectorField ( )
default

Default constructor.

◆ ~VectorField()

template<size_t N>
CubbyFlow::VectorField< N >::~VectorField ( )
overridedefault

Default destructor.

◆ VectorField() [2/3]

template<size_t N>
CubbyFlow::VectorField< N >::VectorField ( const VectorField< N > &  )
default

Default copy constructor.

◆ VectorField() [3/3]

template<size_t N>
CubbyFlow::VectorField< N >::VectorField ( VectorField< N > &&  )
defaultnoexcept

Default move constructor.

Member Function Documentation

◆ Curl()

template<size_t N>
virtual GetCurl<N>::Type CubbyFlow::VectorField< N >::Curl ( const Vector< double, N > &  x) const
virtual

◆ Divergence()

template<size_t N>
virtual double CubbyFlow::VectorField< N >::Divergence ( const Vector< double, N > &  x) const
virtual

Returns divergence at given position x.

Reimplemented in CubbyFlow::FaceCenteredGrid< N >, CubbyFlow::CollocatedVectorGrid< N >, and CubbyFlow::CustomVectorField< N >.

◆ operator=() [1/2]

template<size_t N>
VectorField& CubbyFlow::VectorField< N >::operator= ( const VectorField< N > &  )
default

Default copy assignment operator.

◆ operator=() [2/2]

template<size_t N>
VectorField& CubbyFlow::VectorField< N >::operator= ( VectorField< N > &&  )
defaultnoexcept

Default move assignment operator.

◆ Sample()

template<size_t N>
virtual Vector<double, N> CubbyFlow::VectorField< N >::Sample ( const Vector< double, N > &  x) const
pure virtual

◆ Sampler()

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

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