PSDContinuous.h File Reference
#include <fstream>
#include <vector>
#include "iostream"
#include "PSD.h"

Go to the source code of this file.

Classes

struct  PSDContinuous
 

Functions

const PSD convertPSD2ToPSD (const std::vector< PSDContinuous > &psd2)
 

Function Documentation

◆ convertPSD2ToPSD()

const PSD convertPSD2ToPSD ( const std::vector< PSDContinuous > &  psd2)
209  {
210  std::vector<DistributionElements> rp;
211  for (const auto p : psd2) {
212  rp.push_back({p.radius, p.probability});
213  }
214  PSD psd;
216  return psd;
217 }
Contains a vector with radii and probabilities of a user defined particle size distribution (PSD)
Definition: PSD.h:65
void setParticleSizeDistribution(std::vector< DistributionElements >)
set the PSD by a suitable vector.
Definition: PSD.cc:913

References PSD::setParticleSizeDistribution().