Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
Public Member Functions | Private Member Functions | List of all members
sierra::nalu::NameConverter Class Reference

Does a whole bunch of nothing other than renaming variables. More...

#include <Converter.h>

Inheritance diagram for sierra::nalu::NameConverter:
sierra::nalu::Converter

Public Member Functions

 NameConverter ()
 
 NameConverter (const std::string &outputName, const std::string &inputName)
 
virtual double query (const std::vector< double > &inputs) const
 Perform the calculation. More...
 
- Public Member Functions inherited from sierra::nalu::Converter
 Converter (const std::string &converterType)
 
virtual ~Converter ()
 
const std::string & name () const
 Get the name of the variable returned by this Converter. More...
 
const std::vector< std::string > & input_names () const
 Get the list of input variables, in the order that they are to be provided to the query() call. More...
 
unsigned int dimension () const
 
void print_summary () const
 Print a summary of this Converter configuration. More...
 
virtual void read_hdf5 (H5IO &io)
 Read this Converter from the provided I/O device. More...
 

Private Member Functions

NameConverter operator= (const NameConverter &)
 

Additional Inherited Members

- Protected Attributes inherited from sierra::nalu::Converter
std::string name_
 
std::vector< std::string > inputNames_
 
unsigned int dimension_
 

Detailed Description

Does a whole bunch of nothing other than renaming variables.

This converter simply passes the input variable right through to the output, without modification. It is primarily used for testing and debugging, although it can be used for simply renaming table variables so that the Property class advertises a different input name.

Constructor & Destructor Documentation

sierra::nalu::NameConverter::NameConverter ( )
sierra::nalu::NameConverter::NameConverter ( const std::string &  outputName,
const std::string &  inputName 
)

Member Function Documentation

NameConverter sierra::nalu::NameConverter::operator= ( const NameConverter )
private
double sierra::nalu::NameConverter::query ( const std::vector< double > &  inputs) const
virtual

Perform the calculation.

Parameters
inputs: Array of independent variable values
Returns
: The resulting computed value

Implements sierra::nalu::Converter.


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