DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::Euler::OutputPicker Class Reference

Registry that maps named cell-scalar output fields to getter lambdas. More...

#include <EulerBC.hpp>

Public Types

using tMap = std::map< std::string, tCellScalarFGet >
 Name-to-getter mapping type.
 

Public Member Functions

void setMap (const tMap &v)
 Register (or replace) the full set of available output fields.
 
tCellScalarList getSubsetList (const std::vector< std::string > &names)
 Extract a subset of registered output fields by name.
 

Detailed Description

Registry that maps named cell-scalar output fields to getter lambdas.

Used to select which derived quantities (e.g. Mach number, pressure coefficient) are written to output files. Call setMap() to register all available fields, then getSubsetList() to extract a user-requested subset.

Definition at line 715 of file EulerBC.hpp.

Member Typedef Documentation

◆ tMap

using DNDS::Euler::OutputPicker::tMap = std::map<std::string, tCellScalarFGet>

Name-to-getter mapping type.

Definition at line 718 of file EulerBC.hpp.

Member Function Documentation

◆ getSubsetList()

tCellScalarList DNDS::Euler::OutputPicker::getSubsetList ( const std::vector< std::string > &  names)
inline

Extract a subset of registered output fields by name.

Asserts that every requested name exists in the registry.

Parameters
namesOrdered list of field names to extract.
Returns
A tCellScalarList with the requested (name, getter) pairs.

Definition at line 739 of file EulerBC.hpp.

◆ setMap()

void DNDS::Euler::OutputPicker::setMap ( const tMap v)
inline

Register (or replace) the full set of available output fields.

Parameters
vMap of field names to their getter functions.

Definition at line 726 of file EulerBC.hpp.


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