https://mooseframework.inl.gov
Maxwellian.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Distribution.h"
13 
15 constexpr Real k_B = 1.380649e-23;
16 
20 class Maxwellian : public Distribution
21 {
22 public:
24 
26 
27  static Real pdf(const Real & x, const Real & mass, const Real & temperature);
28  static Real cdf(const Real & x, const Real & mass, const Real & temperature);
29  static Real quantile(const Real & p, const Real & mass, const Real & temperature);
30 
31  virtual Real pdf(const Real & x) const override;
32  virtual Real cdf(const Real & x) const override;
33  virtual Real quantile(const Real & p) const override;
34 
35 protected:
42  static Real standardDeviation(const Real mass, const Real temperature);
45 };
static Real quantile(const Real &p, const Real &mass, const Real &temperature)
Definition: Maxwellian.C:53
static InputParameters validParams()
Definition: Maxwellian.C:15
const Real _standard_deviation
the standard deviation for the equivalent normal distribution
Definition: Maxwellian.h:44
const InputParameters & parameters() const
static const std::string temperature
Definition: NS.h:60
static Real standardDeviation(const Real mass, const Real temperature)
Helper for computing the standard deviation for the equivalent normal distribution.
Definition: Maxwellian.C:35
static Real cdf(const Real &x, const Real &mass, const Real &temperature)
Definition: Maxwellian.C:47
A class used to generate a normal distribution.
Definition: Maxwellian.h:20
const std::vector< double > x
static Real pdf(const Real &x, const Real &mass, const Real &temperature)
Definition: Maxwellian.C:41
constexpr Real k_B
Boltzmann constant with units of J/K.
Definition: Maxwellian.h:15
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real p
Maxwellian(const InputParameters &parameters)
Definition: Maxwellian.C:26