Public Member Functions | List of all members
Collela Class Reference

A smooth spatial distribution attributed to Philip Collela. More...

#include <collela.hpp>

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

Public Member Functions

 Collela (double ref, double a, double l, double offset)
 Class constructor. More...
 
double operator() (double x) const
 Calculates initial conditions. More...
 
- Public Member Functions inherited from SpatialDistribution1D
virtual ~SpatialDistribution1D (void)
 Abstract class for initial conditions. More...
 

Detailed Description

A smooth spatial distribution attributed to Philip Collela.

For more information refer to section 4.6 in W. Zhang, A. MacFadyen, "RAM: A Relativistic Adaptive Mesh Refinement Hydrodynamics Code", ApJS 164, 255 (2006) .

Definition at line 14 of file collela.hpp.

Constructor & Destructor Documentation

◆ Collela()

Collela::Collela ( double  ref,
double  a,
double  l,
double  offset 
)

Class constructor.

Parameters
refUnperturbed value
aRelative amplitude of the wave
lWavelength
offsetHorizontal offset

Definition at line 6 of file collela.cpp.

Member Function Documentation

◆ operator()()

double Collela::operator() ( double  x) const
virtual

Calculates initial conditions.

Parameters
xPosition
Returns
Value of the function at x

Implements SpatialDistribution1D.

Definition at line 9 of file collela.cpp.

Here is the call graph for this function:

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