![]() |
deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
|
#include <deal.II/base/data_out_base.h>
Flags controlling the details of output in CF Conventions format.
Definition at line 1094 of file data_out_base.h.
Public Types | |
| using | AttributeValue = std::variant< int, double, std::string > |
Public Member Functions | |
| CFFlags (const double time=-std::numeric_limits< double >::infinity(), const bool keep_existing_file=false, const std::map< std::string, std::vector< std::pair< std::string, AttributeValue > > > &attributes={}) | |
| void | parse_parameters (const ParameterHandler &prm) |
| std::size_t | memory_consumption () const |
Static Public Member Functions | |
| static void | declare_parameters (ParameterHandler &prm) |
Public Attributes | |
| double | time |
| bool | keep_existing_file |
| std::map< std::string, std::vector< std::pair< std::string, AttributeValue > > > | attributes |
| using DataOutBase::CFFlags::AttributeValue = std::variant<int, double, std::string> |
Definition at line 1096 of file data_out_base.h.
|
explicit |
Constructor. Initializes the member variables with names corresponding to the argument names of this function.
Definition at line 2462 of file data_out_base.cc.
|
staticinherited |
Declare all flags with name and type as offered by this class, for use in input files.
This method does nothing, but child classes may override this method to add fields to prm.
Definition at line 575 of file data_out_base.h.
|
inherited |
Read the parameters declared in declare_parameters() and set the flags for this output format accordingly.
This method does nothing, but child classes may override this method to add fields to prm.
Definition at line 585 of file data_out_base.h.
|
inherited |
Return an estimate for the memory consumption, in bytes, of this object. This is not exact (but will usually be close) because calculating the memory usage of trees (e.g., std::map) is difficult.
Definition at line 594 of file data_out_base.h.
| double DataOutBase::CFFlags::time |
The time of the time step if this file is part of a time dependent simulation.
If this field is set to a value other than the default value of negative infinity, the output file will contain an unlimited time dimension which is used as a dimension for all data vectors. With keep_existing_file = true, consecutive time points are written to the same file. It is assumed that time is increasing.
Definition at line 1109 of file data_out_base.h.
| bool DataOutBase::CFFlags::keep_existing_file |
If this field is set to true, instead of creating a new file with a mesh definition, data vectors are added to an existing file. This is mostly used to write multiple time points to the same file by setting CFFlags::time. For example:
The current mesh must be the same as the one that was written to the existing file. When the mesh changes, e.g., when refining or coarsening, a new file must be created with the updated mesh.
Definition at line 1150 of file data_out_base.h.
| std::map<std::string, std::vector<std::pair<std::string, AttributeValue> > > DataOutBase::CFFlags::attributes |
Additional attributes written for each data vector. Can be used to set attributes that are defined or required by CF Conventions but cannot be set by deal.II due to lack of information, e.g., units. deal.II does not use these attributes in any way except adding them to the output file, but they may be required by post processing tools. For example:
The map may include the special keys that do not correspond to data vectors (and should not be used as names for data vectors):
Definition at line 1176 of file data_out_base.h.