Public Member Functions

opendx_writer< DomainType > Class Template Reference

The OpenDX writer object. Does not support segments - always the full domain is written. More...

#include <opendx_writer.hpp>

Public Member Functions

int operator() (DomainType const &domain, std::string const &filename)
 Triggers the writing of the domain to a file.
template<typename T >
void add_scalar_data_on_vertices (T const &accessor, std::string name)
 Adds scalar data on vertices for writing to the OpenDX file. Only one quantity at a time is supported!
template<typename T >
void add_scalar_data_on_cells (T const &accessor, std::string name)
 Adds scalar data on cells for writing to the OpenDX file. Note that vertex data has precedence. Only one quantity at a time is supported!

Detailed Description

template<typename DomainType>
class viennagrid::io::opendx_writer< DomainType >

The OpenDX writer object. Does not support segments - always the full domain is written.

Template Parameters:
DomainType The ViennaGrid domain.

Member Function Documentation

void add_scalar_data_on_cells ( T const &  accessor,
std::string  name 
) [inline]

Adds scalar data on cells for writing to the OpenDX file. Note that vertex data has precedence. Only one quantity at a time is supported!

void add_scalar_data_on_vertices ( T const &  accessor,
std::string  name 
) [inline]

Adds scalar data on vertices for writing to the OpenDX file. Only one quantity at a time is supported!

int operator() ( DomainType const &  domain,
std::string const &  filename 
) [inline]

Triggers the writing of the domain to a file.

Parameters:
domain A ViennaGrid domain
filename Name of the file

The documentation for this class was generated from the following file: