MOAB: Mesh Oriented datABase  (version 5.2.1)
VertexConditionNumberQualityMetric.hpp
Go to the documentation of this file.
00001 /* *****************************************************************
00002     MESQUITE -- The Mesh Quality Improvement Toolkit
00003 
00004     Copyright 2004 Sandia Corporation and Argonne National
00005     Laboratory.  Under the terms of Contract DE-AC04-94AL85000
00006     with Sandia Corporation, the U.S. Government retains certain
00007     rights in this software.
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public License
00020     (lgpl.txt) along with this library; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023     diachin2@llnl.gov, djmelan@sandia.gov, mbrewer@sandia.gov,
00024     pknupp@sandia.gov, tleurent@mcs.anl.gov, tmunson@mcs.anl.gov
00025 
00026   ***************************************************************** */
00027 /*! \file VertexConditionNumberQualityMetric.hpp
00028 
00029 Header file for the MBMesquite::VertexConditionNumberQualityMetric class
00030 
00031   \author Michael Brewer
00032   \date   April 14, 2003
00033  */
00034 
00035 #ifndef VertexConditionNumberQualityMetric_hpp
00036 #define VertexConditionNumberQualityMetric_hpp
00037 
00038 #include "Mesquite.hpp"
00039 #include "VertexQM.hpp"
00040 #include "AveragingQM.hpp"
00041 
00042 namespace MBMesquite
00043 {
00044 /*! \class VertexConditionNumberQualityMetric
00045   \brief Computes the condition numbers of the corner's of elements
00046   connected to the given vertex and then averages those values.
00047 
00048   The metric does not use the sample point functionality or the
00049   compute_weighted_jacobian.  It uses the isotropic ideal
00050   element.  This metric does require a feasible region, and
00051   the metric needs to be minimized.
00052 */
00053 class VertexConditionNumberQualityMetric : public VertexQM, public AveragingQM
00054 {
00055   public:
00056     VertexConditionNumberQualityMetric();
00057 
00058     //! virtual destructor ensures use of polymorphism during destruction
00059     virtual ~VertexConditionNumberQualityMetric() {}
00060 
00061     virtual std::string get_name() const;
00062 
00063     //! 1 if metric should be minimized, -1 if metric should be maximized.
00064     virtual int get_negate_flag() const;
00065 
00066     virtual bool evaluate( PatchData& pd, size_t handle, double& value, MsqError& err );
00067 
00068     virtual bool evaluate_with_indices( PatchData& pd, size_t handle, double& value, std::vector< size_t >& indices,
00069                                         MsqError& err );
00070 };
00071 
00072 }  // namespace MBMesquite
00073 
00074 #endif  // VertexConditionNumberQualityMetric_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines