ReFRACtor
FullPhysics::ScatteringMomentInterpolate2Point Class Reference

The calculation of the phase function scattering matrix moments is fairly expensive. More...

#include <scattering_moment_interpolator.h>

+ Collaboration diagram for FullPhysics::ScatteringMomentInterpolate2Point:

Public Member Functions

 ScatteringMomentInterpolate2Point (double Wn1, const blitz::Array< double, 2 > &Pf_mom1, double Wn2, const blitz::Array< double, 2 > &Pf_mom2)
 Constructor, this takes the two wave numbers and scattering matrices to interpolate. More...
 
blitz::Array< double, 2 > operator() (double wn, int nummom=-1, int numscat=-1) const
 Interpolate the data to give the phase function scattering moments for the given wave number. More...
 

Detailed Description

The calculation of the phase function scattering matrix moments is fairly expensive.

As an optimization, we interpolate between full calculated points to get the points in between. This class handles this interpolation.

Normally, you don't directly use this class. Instead, Atmosphere uses this class to speed up its calculations.

Definition at line 18 of file scattering_moment_interpolator.h.

Constructor & Destructor Documentation

◆ ScatteringMomentInterpolate2Point()

FullPhysics::ScatteringMomentInterpolate2Point::ScatteringMomentInterpolate2Point ( double  Wn1,
const blitz::Array< double, 2 > &  Pf_mom1,
double  Wn2,
const blitz::Array< double, 2 > &  Pf_mom2 
)
inline

Constructor, this takes the two wave numbers and scattering matrices to interpolate.

Definition at line 24 of file scattering_moment_interpolator.h.

Member Function Documentation

◆ operator()()

blitz::Array<double, 2> FullPhysics::ScatteringMomentInterpolate2Point::operator() ( double  wn,
int  nummom = -1,
int  numscat = -1 
) const
inline

Interpolate the data to give the phase function scattering moments for the given wave number.

You can optionally specify the number of moments and scattering matrix elements to return, the default is to return all of them. This returns a matrix that is number_moment + 1 x number scattering elements in size.

Definition at line 42 of file scattering_moment_interpolator.h.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:13