DiFfRG
|
A class to output finite element data to disk as .vtu files and .pvd time series. More...
#include <fe_output.hh>
Public Member Functions | |
FEOutput (std::string top_folder, std::string output_name, std::string output_folder, const JSONValue &json) | |
Construct a new FEOutput object. | |
FEOutput () | |
~FEOutput () | |
void | attach (const DoFHandler< dim > &dof_handler, const VectorType &solution, const std::string &name) |
Attach a solution to the output. | |
void | attach (const DoFHandler< dim > &dof_handler, const VectorType &solution, const std::vector< std::string > &names) |
Attach a solution to the output. | |
void | flush (double time) |
Flush all attached solutions to disk. | |
Private Attributes | |
const std::string | top_folder |
const std::string | output_name |
const std::string | output_folder |
DataOut< safe_dim > | data_out |
uint | series_number |
uint | subdivisions |
std::vector< std::pair< double, std::string > > | time_series |
std::thread | output_thread |
std::vector< typename VectorMemory< VectorType >::Pointer > | attached_solutions |
GrowingVectorMemory< VectorType > | mem |
Static Private Attributes | |
static constexpr uint | safe_dim = dim == 0 ? 1 : dim |
A class to output finite element data to disk as .vtu files and .pvd time series.
dim | Dimension of the problem |
VectorType | Type of the vector |
DiFfRG::FEOutput< dim, VectorType >::FEOutput | ( | std::string | top_folder, |
std::string | output_name, | ||
std::string | output_folder, | ||
const JSONValue & | json ) |
Construct a new FEOutput object.
dof_handler | DoFHandler associated with the solution |
top_folder | Folder where the output will be written, i.e. the folder containing the .pvd file. |
output_name | Name of the output, i.e. the name of the .pvd file. |
output_folder | Folder where the .vtu files will be saved. Should be relative to top_folder. |
subdivisions | Number of subdivisions of the cells in the .vtu files. |
DiFfRG::FEOutput< dim, VectorType >::FEOutput | ( | ) |
DiFfRG::FEOutput< dim, VectorType >::~FEOutput | ( | ) |
void DiFfRG::FEOutput< dim, VectorType >::attach | ( | const DoFHandler< dim > & | dof_handler, |
const VectorType & | solution, | ||
const std::string & | name ) |
Attach a solution to the output.
dof_handler | The DoFHandler associated with the solution. |
solution | The solution to attach. |
name | The name of the solution. |
void DiFfRG::FEOutput< dim, VectorType >::attach | ( | const DoFHandler< dim > & | dof_handler, |
const VectorType & | solution, | ||
const std::vector< std::string > & | names ) |
Attach a solution to the output.
dof_handler | The DoFHandler associated with the solution. |
solution | The solution to attach. |
names | The names of each component of the solution. |
void DiFfRG::FEOutput< dim, VectorType >::flush | ( | double | time | ) |
Flush all attached solutions to disk.
time | The time tag to attach to the solution. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
|
private |
|
private |
|
private |