Diffpack Documentation
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Search
FieldSummary Class Reference
summary of a field (max, min, points).
More...
#include <FieldSummary.h>
Inheritance diagram for FieldSummary::
List of all members.
Detailed Description
summary of a field (max, min, points).
NAME: FieldSummary - summary of a field (max, min, points)
DESCRIPTION:
The class collects information from fields at various time levels and computes a summary of the field during the simulation. In stochastic problems solved by Monte Carlo simulation, class "FieldSummary" is convenient for supplementing ordinary moments and probability density estimators for the solution field (in such problems the various realizations correspond to the time levels in this documentation).
The summary consists of 1) extremum values, 2) location of extremum values, 3) time level when extremum values occured, 4) mean value and 5) standard deviation. The latter two quantities are computed from all nodal values at all time levels.
The usage of the class is very simple. Prior to the computations, one calls the "attach" and "init" functions. Then at every time step (typically inside the "timeLoop" function or in "updateDataStructures" or "updateEstimators" type of functions) one calls "update", see the example below. When the simulation is over, the various extreme values, locations etc. are available as public data in the class. However, the main application of the class is probably when the multiple loop option of the menu system is active. The results are then often reported using a "MultipleReporter" class, and "FieldSummary" has two functions "writeHeadings" and "writeResults" which are particularly suited for summary reports in the "MultipleReporter" class. The former function fills an array of strings with suitable headings for a summary table, while the latter fills an array strings with the summary results.
In case of vector fields, the magnitudes of the vectors are first calculated and represented as a scalar field. The summary is then computed from this scalar field.
One must have a "FieldSummary" object for every field where summary information is desired.
Constructor & Destructor Documentation
|
FieldSummary::FieldSummary (
|
)
|
|
|
|
There is no constructor. The "attach" function must be called to attach a field to the object. The "init" function must thereafter be called. |
|
FieldSummary::~FieldSummary (
|
) [inline, virtual]
|
|
Member Function Documentation
|
|
attaches a "FieldFE" or "FieldLattice" object to the class. This object is used every time "update" is called. |
|
NUMT FieldSummary::getMeanValue (
|
)
|
|
|
NUMT FieldSummary::getStDevValue (
|
)
|
|
|
void FieldSummary::init (
|
)
|
|
|
|
must be called after "attach" and before any calls to "update". |
|
void FieldSummary::print (
|
Os os )
|
|
|
void FieldSummary::update (
|
real time = DUMMY )
|
|
|
|
updates the information of the object. The function is typically called at every time step where new field values are computed. In a stationary simulation it is called only once. |
|
void FieldSummary::writeHeadings (
|
StringList & headings )
|
|
|
void FieldSummary::writeResults (
|
StringList & results )
|
|
Member Data Documentation
|
String FieldSummary::fieldname
|
|
|
NUMT FieldSummary::max_in_last_update
|
|
|
int FieldSummary::max_node
|
|
|
Ptv(real) FieldSummary::max_pt
|
|
|
NUMT FieldSummary::max_value
|
|
NUMT FieldSummary::mean_value [protected]
|
|
|
NUMT FieldSummary::min_in_last_update
|
|
|
int FieldSummary::min_node
|
|
|
Ptv(real) FieldSummary::min_pt
|
|
|
NUMT FieldSummary::min_value
|
|
int FieldSummary::nsamples [protected]
|
|
real FieldSummary::stdev [protected]
|
|
|
real FieldSummary::time_pt_max
|
|
|
real FieldSummary::time_pt_min
|
|
|
real FieldSummary::time_start
|
|
|
real FieldSummary::time_stop
|
|
The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.