Public Member Functions | |
| FieldWriter () | |
| FieldWriter (Handleable< FieldWriterBase > *rawPtr) | |
| FieldWriter (const RefCountPtr< FieldWriterBase > &smartPtr) | |
| void | addMesh (const Mesh &mesh) const |
| void | addField (const std::string &name, const Playa::Handle< FieldBase > &field) |
| void | setUndefinedValue (const double &x) |
| void | impersonateParallelProc (int nProc, int rank) |
| void | write () const |
FieldWriter is the user level object for writing fields and meshes to output stream.
Write fields u0 and w0 to a VTK file "results.vtu"
FieldWriter vtkWriter = new VTKWriter("results"); vtkWriter.addField(u0); vtkWriter.addField(w0); vtkWriter.write();
Write verbose mesh information to cout
FieldWriter writer = new VerboseFieldWriter(); writer.addMesh(mesh); writer.write();
Definition at line 70 of file SundanceFieldWriter.hpp.
| Sundance::FieldWriter::FieldWriter | ( | ) | [inline] |
Empty ctor
Definition at line 74 of file SundanceFieldWriter.hpp.
| Sundance::FieldWriter::FieldWriter | ( | Handleable< FieldWriterBase > * | rawPtr | ) | [inline] |
Construct a FieldWriter with a raw pointer to a FieldWriterBase
Definition at line 74 of file SundanceFieldWriter.hpp.
| Sundance::FieldWriter::FieldWriter | ( | const RefCountPtr< FieldWriterBase > & | smartPtr | ) | [inline] |
Construct a FieldWriter with a smart pointer to a FieldWriterBase
Definition at line 74 of file SundanceFieldWriter.hpp.
| void FieldWriter::addField | ( | const std::string & | name, |
| const Playa::Handle< FieldBase > & | field | ||
| ) |
add a field, tagging it with the given std::string as a name
Definition at line 78 of file SundanceFieldWriter.cpp.
References Playa::Handle< FieldWriterBase >::ptr(), Playa::Handle< PointerType >::ptr(), and vizoutTimer().
Referenced by Sundance::DefaultIterCallback::call(), main(), Sundance::readbackTester(), Sundance::serialPartition(), Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), and Sundance::DoublingStepController::write().
| void FieldWriter::addMesh | ( | const Mesh & | mesh | ) | const |
add a mesh to the list of things to be written
Definition at line 61 of file SundanceFieldWriter.cpp.
References Playa::Handle< FieldWriterBase >::ptr(), and vizoutTimer().
Referenced by Sundance::DefaultIterCallback::call(), Sundance::Mesh::dump(), main(), Sundance::readbackTester(), Sundance::serialPartition(), Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), and Sundance::DoublingStepController::write().
| void Sundance::FieldWriter::impersonateParallelProc | ( | int | nProc, |
| int | rank | ||
| ) | [inline] |
Tell the writer to pretend that it is running as one of nProc processes with the given rank. This is used when partitioning meshes in serial.
Definition at line 91 of file SundanceFieldWriter.hpp.
References Playa::Handle< FieldWriterBase >::ptr().
Referenced by Sundance::serialPartition().
| void FieldWriter::setUndefinedValue | ( | const double & | x | ) |
set the numerical value to be written at cells on which a field is undefined. Default value is 0.0.
Definition at line 73 of file SundanceFieldWriter.cpp.
References Playa::Handle< FieldWriterBase >::ptr().
| void FieldWriter::write | ( | ) | const |
write to stream
Definition at line 67 of file SundanceFieldWriter.cpp.
References Playa::Handle< FieldWriterBase >::ptr(), and vizoutTimer().
Referenced by Sundance::DefaultIterCallback::call(), Sundance::Mesh::dump(), main(), Sundance::readbackTester(), Sundance::serialPartition(), Sundance::LinearPDEConstrainedObj::solveStateAndAdjoint(), Sundance::NonlinearPDEConstrainedObj::solveStateAndAdjoint(), and Sundance::DoublingStepController::write().