|
| | ParaViewDataCollection (const std::string &collection_name, Mesh *mesh_=nullptr) |
| | Constructor. The collection name is used when saving the data.
|
| |
| const CoeffFieldMap::MapType & | GetCoeffFieldMap () const |
| | Get a const reference to the internal coefficient-field map.
|
| |
| const VCoeffFieldMap::MapType & | GetVCoeffFieldMap () const |
| |
| void | RegisterCoeffField (const std::string &field_name, Coefficient *coeff) |
| | Add a Coefficient or VectorCoefficient to the collection.
|
| |
| void | RegisterVCoeffField (const std::string &field_name, VectorCoefficient *vcoeff) |
| |
| void | DeregisterCoeffField (const std::string &field_name) |
| | Remove a Coefficient or VectorCoefficient from the collection.
|
| |
| void | DeregisterVCoeffField (const std::string &field_name) |
| |
| void | Save () override |
| |
| | ParaViewDataCollectionBase (const std::string &name, Mesh *mesh) |
| |
| void | SetLevelsOfDetail (int levels_of_detail_) |
| | Set the refinement level.
|
| |
| void | SetCompressionLevel (int compression_level_) |
| | Set the zlib compression level.
|
| |
| void | SetHighOrderOutput (bool high_order_output_) |
| | Sets whether or not to output the data as high-order elements (false by default).
|
| |
| void | SetBoundaryOutput (bool bdr_output_) |
| | Configures collection to save only fields evaluated on boundaries of the mesh.
|
| |
| int | GetCompressionLevel () const |
| | If compression is enabled, return the compression level, else return 0.
|
| |
| void | SetDataFormat (VTKFormat fmt) |
| | Set the data format for the ParaView output files.
|
| |
| bool | IsBinaryFormat () const |
| | Returns true if the output format is BINARY or BINARY32, false if ASCII.
|
| |
| void | UseRestartMode (bool restart_mode_) |
| | Enable or disable restart mode.
|
| |
| | DataCollection (const std::string &collection_name, Mesh *mesh_=NULL) |
| | Initialize the collection with its name and Mesh.
|
| |
| virtual void | RegisterField (const std::string &field_name, GridFunction *gf) |
| | Add a grid function to the collection.
|
| |
| virtual void | DeregisterField (const std::string &field_name) |
| | Remove a grid function from the collection.
|
| |
| virtual void | RegisterQField (const std::string &field_name, QuadratureFunction *qf) |
| | Add a QuadratureFunction to the collection.
|
| |
| virtual void | DeregisterQField (const std::string &field_name) |
| | Remove a QuadratureFunction from the collection.
|
| |
| bool | HasField (const std::string &field_name) const |
| | Check if a grid function is part of the collection.
|
| |
| GridFunction * | GetField (const std::string &field_name) |
| | Get a pointer to a grid function in the collection.
|
| |
| MPI_Comm | GetComm () const |
| | Return the associated MPI communicator or MPI_COMM_NULL.
|
| |
| ParGridFunction * | GetParField (const std::string &field_name) |
| | Get a pointer to a parallel grid function in the collection.
|
| |
| bool | HasQField (const std::string &field_name) const |
| | Check if a QuadratureFunction with the given name is in the collection.
|
| |
| QuadratureFunction * | GetQField (const std::string &field_name) |
| | Get a pointer to a QuadratureFunction in the collection.
|
| |
| const FieldMapType & | GetFieldMap () const |
| | Get a const reference to the internal field map.
|
| |
| const QFieldMapType & | GetQFieldMap () const |
| | Get a const reference to the internal q-field map.
|
| |
| Mesh * | GetMesh () |
| | Get a pointer to the mesh in the collection.
|
| |
| virtual void | SetMesh (Mesh *new_mesh) |
| | Set/change the mesh associated with the collection.
|
| |
| virtual void | SetMesh (MPI_Comm comm, Mesh *new_mesh) |
| | Set/change the mesh associated with the collection.
|
| |
| void | SetCycle (int c) |
| | Set time cycle (for time-dependent simulations)
|
| |
| void | SetTime (real_t t) |
| | Set physical time (for time-dependent simulations)
|
| |
| void | SetTimeStep (real_t ts) |
| | Set the simulation time step (for time-dependent simulations)
|
| |
| int | GetCycle () const |
| | Get time cycle (for time-dependent simulations)
|
| |
| real_t | GetTime () const |
| | Get physical time (for time-dependent simulations)
|
| |
| real_t | GetTimeStep () const |
| | Get the simulation time step (for time-dependent simulations)
|
| |
| const std::string & | GetCollectionName () const |
| | Get the name of the collection.
|
| |
| void | SetOwnData (bool o) |
| | Set the ownership of collection data.
|
| |
| void | SetPrecision (int prec) |
| | Set the precision (number of digits) used for the text output of doubles.
|
| |
| virtual void | SetPadDigits (int digits) |
| | Set the number of digits used for both the cycle and the MPI rank.
|
| |
| virtual void | SetPadDigitsCycle (int digits) |
| | Set the number of digits used for the cycle.
|
| |
| virtual void | SetPadDigitsRank (int digits) |
| | Set the number of digits used for the MPI rank in filenames.
|
| |
| virtual void | SetFormat (int fmt) |
| | Set the desired output mesh and data format.
|
| |
| virtual void | SetCompression (bool comp) |
| | Set the flag for use of gz compressed files.
|
| |
| void | SetPrefixPath (const std::string &prefix) |
| | Set the path where the DataCollection will be saved.
|
| |
| const std::string & | GetPrefixPath () const |
| | Get the path where the DataCollection will be saved.
|
| |
| virtual void | SaveMesh () |
| | Save the mesh, creating the collection directory.
|
| |
| virtual void | SaveField (const std::string &field_name) |
| | Save one field, assuming the collection directory already exists.
|
| |
| virtual void | SaveQField (const std::string &field_name) |
| | Save one q-field, assuming the collection directory already exists.
|
| |
| virtual void | Load (int cycle_=0) |
| | Load the collection. Not implemented in the base class DataCollection.
|
| |
| virtual | ~DataCollection () |
| | Delete the mesh and fields if owned by the collection.
|
| |
| int | Error () const |
| | Get the current error state.
|
| |
| void | ResetError (int err_state=No_Error) |
| | Reset the error state.
|
| |
|
| void | WritePVTUHeader (std::ostream &out) |
| |
| void | WritePVTUFooter (std::ostream &out, const std::string &vtu_prefix) |
| |
| void | SaveDataVTU (std::ostream &out, int ref) |
| |
| void | SaveGFieldVTU (std::ostream &out, int ref_, const FieldMapIterator &it) |
| |
| void | SaveCoeffFieldVTU (std::ostream &out, int ref_, const std::string &name, Coefficient &coeff) |
| |
| void | SaveVCoeffFieldVTU (std::ostream &out, int ref_, const std::string &name, VectorCoefficient &coeff) |
| |
| const char * | GetDataFormatString () const |
| |
| const char * | GetDataTypeString () const |
| |
| std::string | GenerateCollectionPath () |
| |
| std::string | GenerateVTUFileName (const std::string &prefix, int rank) |
| |
| std::string | GenerateVTUPath () |
| |
| std::string | GeneratePVDFileName () |
| |
| std::string | GeneratePVTUFileName (const std::string &prefix) |
| |
| std::string | GeneratePVTUPath () |
| |
| void | DeleteData () |
| | Delete data owned by the DataCollection keeping field information.
|
| |
| void | DeleteAll () |
| | Delete data owned by the DataCollection including field information.
|
| |
| std::string | GetMeshShortFileName () const |
| |
| std::string | GetMeshFileName () const |
| |
| std::string | GetFieldFileName (const std::string &field_name) const |
| |
| void | SaveOneField (const FieldMapIterator &it) |
| | Save one field to disk, assuming the collection directory exists.
|
| |
| void | SaveOneQField (const QFieldMapIterator &it) |
| | Save one q-field to disk, assuming the collection directory exists.
|
| |
Writer for ParaView visualization (PVD and VTU format)
Definition at line 584 of file datacollection.hpp.