class RASizeDistributionList
Rocky PrePost Scripting wrapper to manipulate the size properties in a single Particle. To get theRASizeDistributionList from a RAParticle, use:
RASizeDistributionList contains methods to set the size type and add, remove and
retrieve individual size distribution entries. It corresponds to the items on a Particle’s
“Size” tab on the Rocky UI.
The following examples add, remove and access individual entries in the size distribution list:
RASizeDistributionList is a list of RASizeDistribution.
Methods:
Clear()
Remove all items from the list.GetCgmScaleFactor()
Get the value of “Cgm Scale Factor”.GetSizeType()
Get “Size Type” as a string.- Returns: The returned value will be one of [‘sieve’, ‘equivalent_diameter’, ‘original_size_scale’].
GetValidSizeTypeValues()
Get a list of all possible values for “Size Type”.- Returns: The returned list is [‘sieve’, ‘equivalent_diameter’, ‘original_size_scale’].
New()
Add a new item. Returns the newly created item.Remove(item: T)
Remove an item from the list.SetCgmScaleFactor(value: str | float)
Set the value of “Cgm Scale Factor”.- Parameters: value – The value to set. This value can be an expression with input variables or float type.
SetSizeType(value: str)
Set the value of “Size Type”.- Parameters: value – The value to set. Must be one of [‘sieve’, ‘equivalent_diameter’, ‘original_size_scale’].
- Raises: RockyApiError – If value is not a valid “Size Type” option.