-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
The factory keyword is used to bind a default component to a facilityArray. Within a .cfg file or on the command line, we can assign an array of components, but we cannot assign a single component acting as the array.
Example
A materials array with a default factory creating an array with one facility.
Ok: Use the default
materials.homogeneous = materials.ElasticOk: Create array of two materials.
materials = [one, two]
materials.one = materials.Elastic
materials.two = materials.PlasticFails: Replace default factory with another factory.
materials = materials.ElasticPlastic
# This is interpreted as materials = [materials.ElasticPlastic]