CompositeMaterials
A container for mass fractions of a composite material.
Attributes
Name | Type | Description |
---|---|---|
[material] | number |
Mass fraction of a base TabulatedMaterial component. |
This metatype behaves as a Lua table of mass fractions indexed by material names but with some restrictions detailed below.
Note
The table layout cannot be changed. However the mass fraction values can be
modified. Note that when doing so the physics properties of the
corresponding TabulatedMaterial are updated in-place
accordingly, e.g. the atomic composition
(material.elements
) or the composite
density.
Note
The standard pairs
function does not work on this metatype. Instead one
should use the CompositeMaterials.pairs method.
See also
CompositeMaterials.pairs
This method behaves as the standard pairs
function. It returns an iterator
over the base materials names and their corresponding mass fractions.
Synopsis
CompositeMaterials:pairs()
Arguments
None, except self.
Returns
Type | Description |
---|---|
function |
Standard pairs iterator over the base material names and their corresponding mass fractions. |