Chi-Tech
|
#include <PostProcessor.h>
Data Structures | |
struct | TimeHistoryEntry |
Public Member Functions | |
const std::string & | Name () const |
PPType | Type () const |
PPNumericFormat | NumericFormat () const |
size_t | NumericPrecision () const |
void | PushOntoStack (std::shared_ptr< ChiObject > &new_object) override |
void | ReceiveEventUpdate (const Event &event) override |
virtual void | Execute (const Event &event_context)=0 |
virtual const ParameterBlock & | GetValue () const |
virtual const std::vector< TimeHistoryEntry > & | GetTimeHistory () const |
const std::vector< std::string > & | PrintScope () const |
std::string | ConvertScalarValueToString (const ParameterBlock &value) const |
std::string | ConvertValueToString (const ParameterBlock &value) const |
virtual | ~PostProcessor ()=default |
Public Member Functions inherited from ChiObject | |
ChiObject () | |
ChiObject (const chi::InputParameters ¶ms) | |
void | SetStackID (size_t stack_id) |
size_t | StackID () const |
virtual void | PushOntoStack (std::shared_ptr< ChiObject > &new_object) |
virtual | ~ChiObject ()=default |
Public Member Functions inherited from chi::EventSubscriber | |
EventSubscriber ()=default | |
virtual void | ReceiveEventUpdate (const Event &event) |
virtual | ~EventSubscriber ()=default |
Static Public Member Functions | |
static InputParameters | GetInputParameters () |
Static Public Member Functions inherited from ChiObject | |
static chi::InputParameters | GetInputParameters () |
Protected Member Functions | |
PostProcessor (const InputParameters ¶ms, PPType type) | |
void | SetType (PPType type) |
Static Protected Member Functions | |
static PPType | FigureTypeFromValue (const ParameterBlock &value) |
Protected Attributes | |
const std::string | name_ |
std::vector< std::string > | subscribed_events_for_execution_ |
std::vector< std::string > | subscribed_events_for_printing_ |
PPType | type_ |
ParameterBlock | value_ |
std::vector< TimeHistoryEntry > | time_history_ |
const PPNumericFormat | print_numeric_format_ = PPNumericFormat::GENERAL |
const size_t | print_precision_ = 6 |
std::string | solvername_filter_ |
Static Private Member Functions | |
static PPNumericFormat | ConstructNumericFormat (const std::string &format_string) |
Base class for all post-processors.
Definition at line 27 of file PostProcessor.h.
|
virtualdefault |
|
explicitprotected |
Definition at line 71 of file PostProcessor.cc.
|
staticprivate |
Definition at line 93 of file PostProcessor.cc.
std::string chi::PostProcessor::ConvertScalarValueToString | ( | const ParameterBlock & | value | ) | const |
Converts a scalar value into a string format based on this post-processor's numeric specifications.
Definition at line 179 of file PostProcessor.cc.
std::string chi::PostProcessor::ConvertValueToString | ( | const ParameterBlock & | value | ) | const |
Converts a scalar and vector values into a string format based on this post-processor's numeric specifications.
Definition at line 239 of file PostProcessor.cc.
|
pure virtual |
|
staticprotected |
Lambda to check if this is a scalar
Definition at line 274 of file PostProcessor.cc.
|
static |
Definition at line 15 of file PostProcessor.cc.
|
virtual |
Definition at line 166 of file PostProcessor.cc.
|
virtual |
Gets the scalar value currently stored for the post-processor.
Definition at line 163 of file PostProcessor.cc.
const std::string & chi::PostProcessor::Name | ( | ) | const |
Returns the name of the post-processors.
Definition at line 106 of file PostProcessor.cc.
PPNumericFormat chi::PostProcessor::NumericFormat | ( | ) | const |
Returns the numeric format of the post-processor for printing.
Definition at line 109 of file PostProcessor.cc.
size_t chi::PostProcessor::NumericPrecision | ( | ) | const |
Returns the numeric precision of the post-processor for printing.
Definition at line 114 of file PostProcessor.cc.
const std::vector< std::string > & chi::PostProcessor::PrintScope | ( | ) | const |
Definition at line 171 of file PostProcessor.cc.
|
overridevirtual |
Calls the base ChiObject's method and adds a subscription to chi_physics::PhysicsEventPublisher
singleton.
Pushes onto the post-processor stack and adds a subscription to chi_physics::PhysicsEventPublisher
singleton.
Reimplemented from ChiObject.
Definition at line 118 of file PostProcessor.cc.
|
overridevirtual |
A method called by publishers to inform the object of events, only if the object subscribed to the publisher.
Reimplemented from chi::EventSubscriber.
Definition at line 138 of file PostProcessor.cc.
|
protected |
Sets the post-processor's generic type.
Definition at line 309 of file PostProcessor.cc.
PPType chi::PostProcessor::Type | ( | ) | const |
Returns the type of the post-processors. This is the generic type SCALAR, VECTOR, etc. not the c++ type.
Definition at line 107 of file PostProcessor.cc.
|
protected |
Definition at line 84 of file PostProcessor.h.
|
protected |
Definition at line 92 of file PostProcessor.h.
|
protected |
Definition at line 93 of file PostProcessor.h.
|
protected |
Definition at line 94 of file PostProcessor.h.
|
protected |
Definition at line 85 of file PostProcessor.h.
|
protected |
Definition at line 86 of file PostProcessor.h.
|
protected |
Definition at line 90 of file PostProcessor.h.
|
protected |
Definition at line 87 of file PostProcessor.h.
|
protected |
Definition at line 88 of file PostProcessor.h.