www.mooseframework.org
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
FeatureVolumeFraction Class Reference

#include <FeatureVolumeFraction.h>

Inheritance diagram for FeatureVolumeFraction:
[legend]

Public Member Functions

 FeatureVolumeFraction (const InputParameters &parameters)
 
virtual void initialize () override
 
virtual void execute () override
 
virtual Real getValue () override
 

Protected Types

enum  ValueType { ValueType::VOLUME_FRACTION, ValueType::AVRAMI }
 

Protected Member Functions

Real calculateAvramiValue ()
 

Protected Attributes

const ValueType _value_type
 
const PostprocessorValue & _mesh_volume
 
const VectorPostprocessorValue & _feature_volumes
 
Real _volume_fraction
 
Real _equil_fraction
 
Real _avrami_value
 

Detailed Description

Definition at line 18 of file FeatureVolumeFraction.h.

Member Enumeration Documentation

enum FeatureVolumeFraction::ValueType
strongprotected
Enumerator
VOLUME_FRACTION 
AVRAMI 

Definition at line 30 of file FeatureVolumeFraction.h.

31  {
32  VOLUME_FRACTION,
33  AVRAMI,
34  };

Constructor & Destructor Documentation

FeatureVolumeFraction::FeatureVolumeFraction ( const InputParameters &  parameters)

Definition at line 28 of file FeatureVolumeFraction.C.

29  : GeneralPostprocessor(parameters),
30  _value_type(getParam<MooseEnum>("value_type").getEnum<ValueType>()),
31  _mesh_volume(getPostprocessorValue("mesh_volume")),
32  _feature_volumes(getVectorPostprocessorValue("feature_volumes", "feature_volumes")),
33  _equil_fraction(getParam<Real>("equil_fraction")),
34  _avrami_value(0)
35 {
36 }
const VectorPostprocessorValue & _feature_volumes
const PostprocessorValue & _mesh_volume

Member Function Documentation

Real FeatureVolumeFraction::calculateAvramiValue ( )
protected

Definition at line 73 of file FeatureVolumeFraction.C.

Referenced by execute().

74 {
75  return std::log(std::log(1.0 / (1.0 - (_volume_fraction / _equil_fraction))));
76 }
void FeatureVolumeFraction::execute ( )
overridevirtual

Definition at line 44 of file FeatureVolumeFraction.C.

45 {
46  Real volume = 0.0;
47 
48  // sum the values in the vector to get total volume
49  for (const auto & feature_volume : _feature_volumes)
50  volume += feature_volume;
51 
52  mooseAssert(!MooseUtils::absoluteFuzzyEqual(_mesh_volume, 0.0), "Mesh volume is zero");
53  _volume_fraction = volume / _mesh_volume;
54 
56 }
const VectorPostprocessorValue & _feature_volumes
const PostprocessorValue & _mesh_volume
Real FeatureVolumeFraction::getValue ( )
overridevirtual

Definition at line 59 of file FeatureVolumeFraction.C.

void FeatureVolumeFraction::initialize ( )
overridevirtual

Definition at line 39 of file FeatureVolumeFraction.C.

40 {
41 }

Member Data Documentation

Real FeatureVolumeFraction::_avrami_value
protected

Definition at line 42 of file FeatureVolumeFraction.h.

Referenced by execute(), and getValue().

Real FeatureVolumeFraction::_equil_fraction
protected

Definition at line 41 of file FeatureVolumeFraction.h.

Referenced by calculateAvramiValue().

const VectorPostprocessorValue& FeatureVolumeFraction::_feature_volumes
protected

Definition at line 38 of file FeatureVolumeFraction.h.

Referenced by execute().

const PostprocessorValue& FeatureVolumeFraction::_mesh_volume
protected

Definition at line 37 of file FeatureVolumeFraction.h.

Referenced by execute().

const ValueType FeatureVolumeFraction::_value_type
protected

Definition at line 36 of file FeatureVolumeFraction.h.

Referenced by getValue().

Real FeatureVolumeFraction::_volume_fraction
protected

Definition at line 40 of file FeatureVolumeFraction.h.

Referenced by calculateAvramiValue(), execute(), and getValue().


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