Files
OpenFOAM-12/applications/test/distribution/tabulatedDensity
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
364 B
Plaintext

type tabulatedDensity;
units [mm];
distribution
(
(1 0.0025)
(1.73 0.0528)
(2.17 0.2795)
(2.58 1.0918)
(3 2.3988)
(3.41 4.4227)
(3.84 6.3888)
(4.27 8.6721)
(4.72 10.3153)
(5.19 11.6259)
(5.68 12.0030)
(6.18 10.4175)
(6.7 10.8427)
(7.24 8.0016)
(7.8 6.1333)
(8.39 3.8827)
(9 3.4688)
);