PTEMS  0.1.0-dev+git.81fd0e4
PolyTopic Element Method Solver
ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree Struct Reference

Type for specifying the polynomial order of the space for one component. More...

#include <ptems/space.hpp>

Inheritance diagram for ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree:
Collaboration diagram for ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree:

Public Member Functions

std::size_t operator[] (std::size_t elementIdx) const
 Gets the polynomial degree for the specified element. More...
 
std::size_t operator() (std::size_t elementIdx) const
 Gets the polynomial degree for the specified element. More...
 
std::size_t size () const
 Gets the number of elements in the mesh underlying the space. More...
 
void WriteVariable (DataFileWriter< DIM > &writer, const std::string &name) const override
 Writes the polynomial degree vector to the specified data file. More...
 

Friends

class DiscreteFunctionSpace
 

Detailed Description

template<std::size_t DIM, typename X, std::size_t N>
struct ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree

Type for specifying the polynomial order of the space for one component.

Member Function Documentation

◆ operator()()

template<std::size_t DIM, typename X , std::size_t N>
std::size_t ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree::operator() ( std::size_t  elementIdx) const
inline

Gets the polynomial degree for the specified element.

Parameters
elementIdxThe element index to get the polynomial degree for
Returns
The polynomial degree

◆ operator[]()

template<std::size_t DIM, typename X , std::size_t N>
std::size_t ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree::operator[] ( std::size_t  elementIdx) const
inline

Gets the polynomial degree for the specified element.

Parameters
elementIdxThe element index to get the polynomial degree for
Returns
The polynomial degree

◆ size()

template<std::size_t DIM, typename X , std::size_t N>
std::size_t ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree::size ( ) const
inline

Gets the number of elements in the mesh underlying the space.

◆ WriteVariable()

template<std::size_t DIM, typename X , std::size_t N>
void ptems::DiscreteFunctionSpace< DIM, X, N >::SpacePolynomialDegree::WriteVariable ( DataFileWriter< DIM > &  writer,
const std::string name 
) const
inlineoverridevirtual

Writes the polynomial degree vector to the specified data file.

Parameters
writerWriter for data file to write to
nameThe name to use for the output variable

Implements ptems::WritableVariable< DIM >.


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