Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
includeLinks/MultiplyQualityMetric.hpp
Go to the documentation of this file.
1 /* *****************************************************************
2  MESQUITE -- The Mesh Quality Improvement Toolkit
3 
4  Copyright 2004 Sandia Corporation and Argonne National
5  Laboratory. Under the terms of Contract DE-AC04-94AL85000
6  with Sandia Corporation, the U.S. Government retains certain
7  rights in this software.
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  (lgpl.txt) along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 
23  diachin2@llnl.gov, djmelan@sandia.gov, mbrewer@sandia.gov,
24  pknupp@sandia.gov, tleurent@mcs.anl.gov, tmunson@mcs.anl.gov
25 
26  ***************************************************************** */
27 // -*- Mode : c++; tab-width: 3; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 3 -*-
28 
38 #ifndef MultiplyQualityMetric_hpp
39 #define MultiplyQualityMetric_hpp
40 
41 #include "Mesquite.hpp"
42 #include "QualityMetric.hpp"
43 
44 namespace Mesquite
45 {
46  class Vector3D;
47  class MsqError;
48  class PatchData;
49  class MsqMeshEntity;
50  class MsqVertex;
51 
60  {
61  public:
71  MsqError &err);
72 
73  // virtual destructor ensures use of polymorphism during destruction
75  { }
76 
77  bool evaluate_element(PatchData& pd, MsqMeshEntity *element,double &value,
78  MsqError &err);
79  bool evaluate_vertex(PatchData& pd, MsqVertex *vertex, double &value,
80  MsqError &err);
81 
82  protected:
83 
84  private:
85 
88 
89 
90  };
91 
92 
93 } //namespace
94 
95 
96 #endif // MultiplyQualityMetric_hpp
97 
98 
99 
100 
101 
102 
103 
Used to hold the error state and return it to the application.
Base class for concrete quality metrics.
bool evaluate_vertex(PatchData &pd, MsqVertex *vertex, double &value, MsqError &err)
MsqMeshEntity is the Mesquite object that stores information about the elements in the mesh...
bool evaluate_element(PatchData &pd, MsqMeshEntity *element, double &value, MsqError &err)
Combines two quality metrics (qMetric1 and qMetric2 defined in the parent class CompositeQualityMetri...
NVec< 3, double > Vector3D
MultiplyQualityMetric(QualityMetric *qm1, QualityMetric *qm2, MsqError &err)
MsqVertex is the Mesquite object that stores information about the vertices in the mesh...