Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Metric.h
Go to the documentation of this file.
1 /* *******************************************************************
2  * Rocstar Simulation Suite *
3  * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4  * *
5  * Illinois Rocstar LLC *
6  * Champaign, IL *
7  * www.illinoisrocstar.com *
8  * sales@illinoisrocstar.com *
9  * *
10  * License: See LICENSE file in top level of distribution package or *
11  * http://opensource.org/licenses/NCSA *
12  *********************************************************************/
13 /* *******************************************************************
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21  * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22  *********************************************************************/
23 // $Id: Metric.h,v 1.6 2008/12/06 08:45:23 mtcampbe Exp $
24 
25 
33 #ifndef __METRIC_H__
34 #define __METRIC_H__
35 
36 #include "mopbasic.h"
37 #include "Matrix.h"
38 #include "Connectivity.h"
39 #include "Element_accessors.h"
40 
42 using COM::Element_node_enumerator;
43 using COM::Element_node_vectors_k_const;
44 
46 
48 class Metric {
49 public:
50 
51  Metric() {}
52 
53  virtual ~Metric(){;}
54 
55  virtual void initialize(Vector_3<double> n[], int type)=0;
56  virtual void initialize(Element_node_enumerator &ene)=0;
57 
59  virtual double maxValue() const =0;
60 
62  virtual double minValue() const =0;
63 
65  virtual void compute(double atts[]) const=0;
66 };
67 
69 
70 #endif
71 
72 
73 
74 
75 
76 
An adaptor for enumerating node IDs of an element.
virtual ~Metric()
Definition: Metric.h:53
Metric Base Class.
Definition: Metric.h:48
virtual void compute(double atts[]) const =0
Compute the value of this metric.
virtual void initialize(Vector_3< double > n[], int type)=0
virtual double maxValue() const =0
Return maximum value for this metric.
const NT & n
virtual double minValue() const =0
Return minimum value for this metric.
#define MOP_END_NAMESPACE
Definition: mopbasic.h:29
Declaration of Matrix class.
Contains the prototype of Connectivity.
Metric()
Definition: Metric.h:51
#define MOP_BEGIN_NAMESPACE
Definition: mopbasic.h:28