RANDOM_NUMBER_GENERATOR_SEED

Solution control and techniques
*RANDOM_NUMBER_GENERATOR_SEED
"Optional title"
seed
Parameter definition
VariableDescription
seed seed value
options:
0 $\rightarrow$ System clock used to set seed
ℤ+ $\rightarrow$ Any positive integer used to set seed
ℤ- $\rightarrow$ Any negative integer used to set seed
Description

This command is used to set the seed for simulations where randomness is wanted. A random seed can be generated based on the system clock by setting seed to 0. Any positive/negative integer can also be used to set the seed. Setting it to 1 will give one specific result each consecutive simulation. Setting it to 2 will give a different, and so on.

Example
Random initial damage on a surface

Randomly distributed initial damage is defined on the top surface of a plate consisting of $32 \times 32$ linear hexahedral elements. RANDOM_NUMBER_GENERATOR_SEED is used to generate a new random damage distribution each time the solver starts. By setting a value of 0 means that the seed is set according to the system clock.


*UNIT_SYSTEM
SI
*RANDOM_NUMBER_GENERATOR_SEED
0
#
# --- MESH AND MATERIAL ---
#
*COMPONENT_BOX
1, 1, 32, 32, 1
0, 0, 0, 0.32, 0.32, 0.01
*MAT_METAL
1, 7800.0, 210.0e9, 0.3, 1
1
*FUNCTION
1
1.0e8
*PROP_DAMAGE_CL
1, 1
1.0e7
*PART
1, 1
#
# --- INITIAL DAMAGE SURFACE RANDOM ---
#
*INITIAL_DAMAGE_SURFACE_RANDOM
G, 1, 0.15, 4, 1.0, 0.01
*GEOMETRY_SEED_COORDINATE
1
0.16, 0.16, 0.01, , 1
*END