예제 #1
0
Real
NodalMaxValueFileIO::getValue()
{
  gatherMax(_value);
  std::ofstream myfile ("PeakCladTemp.out");
  if (myfile.is_open())
  {
    myfile << "PeakCladTemp = " << _value << std::endl;
    myfile.close();
  }
  else std::cout << "Unable to open file";

  return _value;
}
예제 #2
0
Real
NodalExtremeValue::getValue()
{
  switch (_type)
  {
    case MAX:
      gatherMax(_value);
      break;
    case MIN:
      gatherMin(_value);
      break;
  }

  return _value;
}
Real
PikaPhaseTimestepPostprocessor::getValue()
{
  gatherMax(_max_value);
  gatherMin(_min_value);

  // Cut-back
  if (std::abs(_min_value) - std::abs(_range[0]) > _decrease_limit)
    return _dt * _decrease_factor;
  else if (std::abs(_max_value) - std::abs(_range[1]) > _decrease_limit)
    return _dt * _decrease_factor;
  else if (std::abs(_min_value) - std::abs(_range[0]) < _increase_limit)
    return _dt * _increase_factor;
  else if (std::abs(_max_value) - std::abs(_range[1]) < _increase_limit)
    return _dt * _increase_factor;

  return _dt;
}
예제 #4
0
Real
NodalMaxVarChange::getValue()
{
  gatherMax(_value);
  return _value;
}
예제 #5
0
Real
MaxAbsoluteValuePPS::getValue()
{
    gatherMax(_value);
    return _value;
}
예제 #6
0
void
MaxAbsoluteValuePPS::finalize()
{
    gatherMax(_value);
}