NComponentFunction< dim, number > Class Template Reference

Developer Documentation: MeltPoolDG::Functions::NComponentFunction< dim, number > Class Template Reference
Developer Documentation
MeltPoolDG::Functions::NComponentFunction< dim, number > Class Template Reference

Adapter to create a two-component function from a scalar function. More...

#include <functions.hpp>

Inheritance diagram for MeltPoolDG::Functions::NComponentFunction< dim, number >:
[legend]
Collaboration diagram for MeltPoolDG::Functions::NComponentFunction< dim, number >:
[legend]

Public Member Functions

 NComponentFunction (const dealii::Function< dim > &function_in, const unsigned int n_components=2)
 
number value (const dealii::Point< dim > &p, const unsigned int) const override
 

Private Attributes

const dealii::Function< dim > & function
 

Detailed Description

template<int dim, typename number>
class MeltPoolDG::Functions::NComponentFunction< dim, number >

Adapter to create a two-component function from a scalar function.

This class wraps a single-component dealii::Function and exposes it as an n component function by returning the same scalar value for all components.

Constructor & Destructor Documentation

◆ NComponentFunction()

template<int dim, typename number >
MeltPoolDG::Functions::NComponentFunction< dim, number >::NComponentFunction ( const dealii::Function< dim > &  function_in,
const unsigned int  n_components = 2 
)
inline

Member Function Documentation

◆ value()

template<int dim, typename number >
number MeltPoolDG::Functions::NComponentFunction< dim, number >::value ( const dealii::Point< dim > &  p,
const unsigned int   
) const
inlineoverride

Member Data Documentation

◆ function

template<int dim, typename number >
const dealii::Function<dim>& MeltPoolDG::Functions::NComponentFunction< dim, number >::function
private

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