Public Member Functions | List of all members
Profile1D Class Reference

A wrapper that converts a 1d spatial profile to 2d. More...

#include <profile_1d.hpp>

Inheritance diagram for Profile1D:
Inheritance graph
[legend]
Collaboration diagram for Profile1D:
Collaboration graph
[legend]

Public Member Functions

 Profile1D (SpatialDistribution1D const &prof_1d)
 Class constructor. More...
 
double operator() (const Vector2D &r) const
 Evaluates the function. More...
 

Detailed Description

A wrapper that converts a 1d spatial profile to 2d.

This distribution will only depend on the x component of the coordinate

Definition at line 16 of file profile_1d.hpp.

Constructor & Destructor Documentation

◆ Profile1D()

Profile1D::Profile1D ( SpatialDistribution1D const &  prof_1d)
explicit

Class constructor.

Parameters
prof_1dOne dimensional profile

Definition at line 3 of file profile_1d.cpp.

Member Function Documentation

◆ operator()()

double Profile1D::operator() ( const Vector2D point) const
virtual

Evaluates the function.

Parameters
pointPosition
Returns
The value of the function at the point

Implements SpatialDistribution.

Definition at line 6 of file profile_1d.cpp.


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