Ejemplo n.º 1
0
void
Exodus::outputPostprocessors()
{
  // List of desired postprocessor outputs
  const std::set<std::string> & pps = getPostprocessorOutput();

  // Append the postprocessor data to the global name value parameters; scalar outputs
  // also append these member variables
  for (const auto & name : pps)
  {
    _global_names.push_back(name);
    _global_values.push_back(_problem_ptr->getPostprocessorValue(name));
  }
}
Ejemplo n.º 2
0
void
Exodus::outputPostprocessors()
{
  // List of desired postprocessor outputs
  const std::vector<std::string> & pps = getPostprocessorOutput();

  // Append the postprocessor data to the global name value parameters; scalar outputs
  // also append these member variables
  for (std::vector<std::string>::const_iterator it = pps.begin(); it != pps.end(); ++it)
  {
    _global_names.push_back(*it);
    _global_values.push_back(_problem_ptr->getPostprocessorValue(*it));
  }
}
Ejemplo n.º 3
0
void
TableOutputter::outputPostprocessors()
{
  // List of names of the postprocessors to output
  const std::vector<std::string> & out = getPostprocessorOutput();

  // Loop through the postprocessor names and extract the values from the PostprocessorData storage
  for (std::vector<std::string>::const_iterator it = out.begin(); it != out.end(); ++it)
  {
    PostprocessorValue value = _problem_ptr->getPostprocessorValue(*it);
    _postprocessor_table.addData(*it, value, _time);
    _all_data_table.addData(*it, value, _time);
  }
}
Ejemplo n.º 4
0
void
TableOutput::outputPostprocessors()
{
  // List of names of the postprocessors to output
  const std::set<std::string> & out = getPostprocessorOutput();

  // Loop through the postprocessor names and extract the values from the PostprocessorData storage
  for (const auto & out_name : out)
  {
    PostprocessorValue value = _problem_ptr->getPostprocessorValue(out_name);

    _postprocessor_table.outputTimeColumn(_time_column);
    _postprocessor_table.addData(out_name, value, time());

    _all_data_table.outputTimeColumn(_time_column);
    _all_data_table.addData(out_name, value, time());
  }
}
Ejemplo n.º 5
0
void ICEUpdater::outputPostprocessors()
{
  if (_communicator.rank() != 0)
    return;

  // Get the list of Postprocessors
  const std::set<std::string> & pps = getPostprocessorOutput();
  for (std::set<std::string>::const_iterator it = pps.begin(); it != pps.end(); ++it)
  {

    // Grab the value at the current time
    PostprocessorValue value = _problem_ptr->getPostprocessorValue(*it);

    // Create a string stream to use in posting the message
    std::stringstream ss;

    // Create the message as PPName:time:value
    ss << *it << ":" << _time << ":" << value;

    // Post the message
    _updater->postMessage(ss.str());
  }
}