oomph::ParaviewHelper Namespace Reference

Namespace for paraview-style output helper functions. More...

Functions

void write_pvd_header (std::ofstream &pvd_file)
 Write the pvd file header. More...
 
void write_pvd_information (std::ofstream &pvd_file, const std::string &output_filename, const double &time)
 
void write_pvd_footer (std::ofstream &pvd_file)
 Write the pvd file footer. More...
 

Detailed Description

Namespace for paraview-style output helper functions.

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Function Documentation

◆ write_pvd_footer()

void oomph::ParaviewHelper::write_pvd_footer ( std::ofstream &  pvd_file)

Write the pvd file footer.

9640  {
9641  pvd_file << "</Collection>" << std::endl << "</VTKFile>";
9642  }

Referenced by InterfaceProblem< ELEMENT, TIMESTEPPER >::unsteady_run().

◆ write_pvd_header()

void oomph::ParaviewHelper::write_pvd_header ( std::ofstream &  pvd_file)

Write the pvd file header.

9616  {
9617  pvd_file << "<?xml version=\"1.0\"?>" << std::endl
9618  << "<VTKFile type=\"Collection\" version=\"0.1\">" << std::endl
9619  << "<Collection>" << std::endl;
9620  }

Referenced by InterfaceProblem< ELEMENT, TIMESTEPPER >::unsteady_run().

◆ write_pvd_information()

void oomph::ParaviewHelper::write_pvd_information ( std::ofstream &  pvd_file,
const std::string &  output_filename,
const double time 
)

Add name of output file and associated continuous time to pvd file.

9627  {
9628  // Output the actual time values
9629  pvd_file << "<DataSet timestep=\"" << time << "\" ";
9630 
9631  // Apparently this has to go in
9632  pvd_file << "part=\"0\" ";
9633 
9634  // Add the name of the file, so that the pvd file knows what it is called
9635  pvd_file << "file=\"" << output_filename << "\"/>" << std::endl;
9636  }

Referenced by InterfaceProblem< ELEMENT, TIMESTEPPER >::doc_solution().