Files
OpenFOAM-12/applications/test/distribution/tabulatedCumulative
Will Bainbridge e1e0e258c8 distributions: Generalise usage
The distributions have been extended in various ways to permit usage in
a greater variety of situations...

The distributions now have write methods which allow a distribution to
be written into a field file for restart, therby permitting their usage
in boundary conditions and similar. Their read methods now also support
dimension-checked unit conversions for all their parameters.

An additional selector has been added that allows a distribution to be
re-constructed with a different sample size exponent.

The distributions now own their random generator, thereby simplifying
their usage and preventing the need for a (potentially dangling)
reference member. This makes sense now as the random generators do not
rely on global state; individual sub-models can and should own their own
random generator and manage its initialisation and restart. This
principle should be extended to other parts of the code in future.
2024-06-11 10:47:23 +01:00

23 lines
398 B
Plaintext

type tabulatedCumulative;
units [mm];
distribution
(
(1 0)
(1.73 0.0281384)
(2.17 0.1972235)
(2.58 0.8949856)
(3 2.6711166)
(3.41 6.1421180)
(3.84 11.643361)
(4.27 19.306838)
(4.72 28.968245)
(5.19 40.132642)
(5.68 52.155796)
(6.18 63.564077)
(6.7 74.381959)
(7.24 83.97055)
(7.8 91.162850)
(8.39 96.259317)
(9 100)
);