MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / normal

Class normal

src/lagrangian/distributionModels/normal/normal.H:57–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55\*---------------------------------------------------------------------------*/
56
57class normal
58:
59 public distributionModel
60{
61 // Private data
62
63
64 //- Distribution minimum
65 scalar minValue_;
66
67 //- Distribution maximum
68 scalar maxValue_;
69
70
71 // Model coefficients
72
73 scalar expectation_;
74 scalar variance_;
75
76 scalar a_;
77
78
79public:
80
81 //- Runtime type information
82 TypeName("normal");
83
84
85 // Constructors
86
87 //- Construct from components
88 normal(const dictionary& dict, cachedRandom& rndGen);
89
90 //- Construct copy
91 normal(const normal& p);
92
93 //- Construct and return a clone
94 virtual autoPtr<distributionModel> clone() const
95 {
96 return autoPtr<distributionModel>(new normal(*this));
97 }
98
99
100 //- Destructor
101 virtual ~normal();
102
103
104 // Member Functions
105
106 //- Sample the distributionModel
107 virtual scalar sample() const;
108
109 //- Return the minimum value
110 virtual scalar minValue() const;
111
112 //- Return the maximum value
113 virtual scalar maxValue() const;
114

Callers 15

walkCellCutsFunction · 0.85
reCutFunction · 0.85
printFunction · 0.85
hitWallPatchFunction · 0.85
normal.CFile · 0.85
operator==Method · 0.85
magMethod · 0.85
magMethod · 0.85
magMethod · 0.85
rayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected