Panzer
Version of the Day
|
#include <Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp>
Classes | |
struct | RemovedFieldsSearchUnaryFunctor |
Static Public Member Functions | |
static void | bucketByBasisType (const std::vector< std::pair< std::string, Teuchos::RCP< const panzer::PureBasis > > > &providedDofs, std::map< std::string, std::vector< std::string > > &basisBucket) |
Private Member Functions | |
void | computeReferenceCentroid (const std::map< std::string, Teuchos::RCP< const panzer::PureBasis > > &bases, int baseDimension, Kokkos::DynRankView< double, PHX::Device > ¢roid) const |
void | deleteRemovedFields (const std::vector< std::string > &removedFields, std::vector< std::pair< std::string, Teuchos::RCP< const panzer::PureBasis > > > &fields) const |
Delete from the argument all the fields that are in the removedFields array. More... | |
Private Attributes | |
Teuchos::RCP< STK_Interface > | mesh_ |
std::unordered_map < std::string, double > | fieldToScalar_ |
std::unordered_set< std::string > | scaledFieldsHash_ |
std::vector< std::pair < std::string, Teuchos::RCP < const panzer::PureBasis > > > | additionalFields_ |
std::vector< std::string > | removedFields_ |
bool | addSolutionFields_ |
bool | addCoordinateFields_ |
Additional Inherited Members | |
Protected Member Functions inherited from panzer::EvaluatorsRegistrar | |
EvaluatorsRegistrar () | |
Default ctor initializes WorksetDetails index to 0. More... | |
virtual | ~EvaluatorsRegistrar () |
template<typename EvalT > | |
void | registerEvaluator (PHX::FieldManager< panzer::Traits > &fm, const Teuchos::RCP< PHX::Evaluator< panzer::Traits > > &op) const |
This class defines a response based solution writer.
Definition at line 25 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
inline |
Definition at line 28 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
inlinevirtual |
Definition at line 31 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
virtual |
Build the response object used by this factory. This object assumes the role of the scatter target and will be accessible by all the evaluators in the field managers.
[in] | responseName | Name of response to be built. This name will be used for looking up the response in the GlobalEvaluationDataContainer object. |
Definition at line 32 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
inlinevirtual |
Build the response object used by this factory. This object assumes the role of the scatter target and will be accessible by all the evaluators in the field managers. This is the sideset version of the buildResponseObject function.
[in] | responseName | Name of response to be built. This name will be used for looking up the response in the GlobalEvaluationDataContainer object. |
[in] | wkstdescs | A vector of descriptors for the elements this response is over. |
Implements panzer::ResponseEvaluatorFactory< EvalT >.
Definition at line 44 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
virtual |
Build and register evaluators for a response on a particular physics block.
[in] | responseName | The name of the response to be constructed by these evaluators. |
[in,out] | fm | Field manager to be fuild with the evaluators. |
[in] | physicsBlock | What physics block is being used for constructing the evaluators |
[in] | user_data | The user data parameter list, this stores things that the user may find useful. |
Implements panzer::ResponseEvaluatorFactory< EvalT >.
Definition at line 39 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
virtual |
Is this evaluation type supported by the factory. This is used to determine cases where a response may support a particular evaluation type, however at runtime the user decides not to enable the (say) Jacobian evaluation of this response.
Note that use of this mechanism is complementary to having the builder return Teuchos::null
for a particular evaluation type.
Implements panzer::ResponseEvaluatorFactory< EvalT >.
Definition at line 321 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
static |
Take a vector of (std::string (field name), RCP<PureBasis>) pairs and bucket them by basis name. What is returned is a map pairing the basis to a vector of field names.
Definition at line 261 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
void panzer_stk::ResponseEvaluatorFactory_SolutionWriter< EvalT >::scaleField | ( | const std::string & | fieldName, |
double | fieldScalar | ||
) |
Scale a field before writing out to STK by a prescribed value (the implicit default is 1.0). A warning will be printed if no field is found of that name when buildAndRegisterEvaluators
is called.
[in] | fieldName | HGRAD field to scale. |
[in] | fieldScalar | Value to scale the field by. |
Definition at line 314 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
void panzer_stk::ResponseEvaluatorFactory_SolutionWriter< EvalT >::addAdditionalField | ( | const std::string & | fieldName, |
const Teuchos::RCP< const panzer::PureBasis > & | basis | ||
) |
Add an additional (solution) field to write out that is not in the physics blocks.
Definition at line 331 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
inline |
Enable/disable addition of solution fields. Note that this "true" by default.
Definition at line 96 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
inline |
Enable/disable addition of coordinate fields. Note that this "true" by default.
Definition at line 101 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
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 108 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 275 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
private |
Delete from the argument all the fields that are in the removedFields array.
Definition at line 338 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter_impl.hpp.
|
private |
Definition at line 126 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 128 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 129 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 131 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 132 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 133 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.
|
private |
Definition at line 134 of file Panzer_STK_ResponseEvaluatorFactory_SolutionWriter.hpp.