Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Size_Metric_2 Class Reference

2D Size Metric Class More...

#include <Algebraic_Metrics_2.h>

Inheritance diagram for Size_Metric_2:
Collaboration diagram for Size_Metric_2:

Public Member Functions

 Size_Metric_2 (double r_area)
 Construct a 2D Size metric. More...
 
virtual void compute (double atts[]) const
 Calculate the shape metric value. More...
 
- Public Member Functions inherited from Alg_Metric_Base_2
 Alg_Metric_Base_2 ()
 Constructor. More...
 
virtual ~Alg_Metric_Base_2 ()
 Virtual Destructor. More...
 
virtual void initialize (Vector_3< double > n[], int type)
 Initialize a 2D Algebraic Metric. More...
 
virtual void initialize (Element_node_enumerator &ene)
 
virtual double maxValue () const
 The maximum value for this metric. More...
 
virtual double minValue () const
 The minimum value for this metric. More...
 
- Public Member Functions inherited from Metric
 Metric ()
 
virtual ~Metric ()
 

Private Attributes

double ref_area
 

Additional Inherited Members

- Protected Member Functions inherited from Alg_Metric_Base_2
double compute_size (double ref_area=1.) const
 Compute the size metric. More...
 
double compute_shape () const
 Compute the shape metric. More...
 
double compute_skew () const
 Compute the skew metric. More...
 
- Protected Attributes inherited from Alg_Metric_Base_2
double alpha [4]
 
J_Matrix A [4]
 
Matrix L [4]
 
int type_
 

Detailed Description

2D Size Metric Class

Definition at line 108 of file Algebraic_Metrics_2.h.

Constructor & Destructor Documentation

Size_Metric_2 ( double  r_area)
inlineexplicit

Construct a 2D Size metric.

Parameters
r_areaThe reference area for this element..

Definition at line 115 of file Algebraic_Metrics_2.h.

References ref_area.

115 { ref_area=r_area; }

Member Function Documentation

void compute ( double  atts[]) const
virtual

Calculate the shape metric value.

Parameters
atts[]Computed value(s) placed here.

Implements Metric.

Definition at line 159 of file Algebraic_Metrics_2.C.

Referenced by main().

159  {
160  atts[0] = compute_size(ref_area);
161 }
double compute_size(double ref_area=1.) const
Compute the size metric.

Here is the caller graph for this function:

Member Data Documentation

double ref_area
private

Definition at line 124 of file Algebraic_Metrics_2.h.

Referenced by Size_Metric_2().


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