Пример #1
0
Real
RandomAux::computeValue()
{
  if (_random_uo)
    // Use the coupled UO to return a value
    return _random_uo->getElementalValue(_current_elem->id());
  else if (_generate_ints)
    // Use the built-in long random number generator directly
    return getRandomLong();
  else
    // Use the built-in random number generator directly
    return getRandomReal();
}
Пример #2
0
void
RandomElementalUserObject::execute()
{
  _random_data[_current_elem->id()] = getRandomLong();
}
Пример #3
0
void
RandomMaterial::computeQpProperties()
{
  _rand_real[_qp] = getRandomReal();
  _rand_long[_qp] = getRandomLong();
}