Panzer  Version of the Day
Public Member Functions | Public Attributes | Private Attributes | List of all members
panzer_stk::RespFactorySolnWriter_Builder Struct Reference

#include <Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp>

Public Member Functions

 RespFactorySolnWriter_Builder ()
 
void scaleField (const std::string &fieldName, double fieldScalar)
 
void addAdditionalField (const std::string &fieldName, const Teuchos::RCP< const panzer::PureBasis > &basis)
 
void removeField (const std::string &fieldName)
 
template<typename T >
Teuchos::RCP< panzer::ResponseEvaluatorFactoryBasebuild () const
 
void setAddSolutionFields (bool asf)
 
void setAddCoordinateFields (bool acf)
 

Public Attributes

Teuchos::RCP< panzer_stk::STK_Interfacemesh
 

Private Attributes

std::unordered_map< std::string, double > fieldToScalar_
 
std::vector< std::pair< std::string, Teuchos::RCP< const panzer::PureBasis > > > additionalFields_
 
std::vector< std::string > removedFields_
 
bool addSolutionFields_
 
bool addCoordinateFields_
 

Detailed Description

A simple builder for this the SolutionWriter response factory, simply set the mesh and this will build the response factories for you. (Pass into ResponseLibrary::addResponse)

Definition at line 140 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.

Constructor & Destructor Documentation

◆ RespFactorySolnWriter_Builder()

panzer_stk::RespFactorySolnWriter_Builder::RespFactorySolnWriter_Builder ( )
inline

Member Function Documentation

◆ scaleField()

void panzer_stk::RespFactorySolnWriter_Builder::scaleField ( const std::string &  fieldName,
double  fieldScalar 
)
inline

◆ addAdditionalField()

void panzer_stk::RespFactorySolnWriter_Builder::addAdditionalField ( const std::string &  fieldName,
const Teuchos::RCP< const panzer::PureBasis > &  basis 
)
inline

◆ removeField()

void panzer_stk::RespFactorySolnWriter_Builder::removeField ( const std::string &  fieldName)
inline

Remove a field (even a solution field) from the response. Note that even if a field has not been added, it will be removed by any previous or following call to removeField. This implies that removeField takes precedence.

Definition at line 155 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.

◆ build()

template<typename T >
Teuchos::RCP<panzer::ResponseEvaluatorFactoryBase> panzer_stk::RespFactorySolnWriter_Builder::build ( ) const
inline

◆ setAddSolutionFields()

void panzer_stk::RespFactorySolnWriter_Builder::setAddSolutionFields ( bool  asf)
inline

Enable/disable addition of solution fields. Note that this "true" by default.

Definition at line 187 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.

◆ setAddCoordinateFields()

void panzer_stk::RespFactorySolnWriter_Builder::setAddCoordinateFields ( bool  acf)
inline

Enable/disable addition of coordinate fields. Note that this "true" by default.

Definition at line 192 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.

Member Data Documentation

◆ mesh

Teuchos::RCP<panzer_stk::STK_Interface> panzer_stk::RespFactorySolnWriter_Builder::mesh

◆ fieldToScalar_

std::unordered_map<std::string,double> panzer_stk::RespFactorySolnWriter_Builder::fieldToScalar_
private

◆ additionalFields_

std::vector<std::pair<std::string,Teuchos::RCP<const panzer::PureBasis> > > panzer_stk::RespFactorySolnWriter_Builder::additionalFields_
private

◆ removedFields_

std::vector<std::string> panzer_stk::RespFactorySolnWriter_Builder::removedFields_
private

◆ addSolutionFields_

bool panzer_stk::RespFactorySolnWriter_Builder::addSolutionFields_
private

◆ addCoordinateFields_

bool panzer_stk::RespFactorySolnWriter_Builder::addCoordinateFields_
private

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