RandSeed Command

From OSUPDOCS
Revision as of 17:28, 17 April 2024 by Nairnj (talk | contribs)
Jump to navigation Jump to search

Some MPM materials have options to randomly assign certain properties (e.g., an Isotropic Softening Material). Similar, you can write expressions for any use to generate random numbers.

They can only be entered using XML commands and they must be in the <Header> block:

<DevelFlag Number='0'>2</DevelFlag>

This command sets a development flag by number, which must be from 0 to 4. The value must be an integer. The default for all flags is zero. Any non-zero flags will be listed in the output file after the description. During development or in specific calculations, the code might be modified to alter the calculations depending on these flags. These flags should not, however, be relied upon to mean anything permanent.

To insert a developer flag when using scripted input commands, you can use an XMLData Command targeted to the "Header" section:

XMLData "Header"
    <DevelFlag Number='0'>2</DevelFlag>
EndXMLData