Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
includeLinks/SteepestDescent.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  ***************************************************************** */
39 #ifndef Mesquite_SteepestDescent_hpp
40 #define Mesquite_SteepestDescent_hpp
41 
42 #include "Mesquite.hpp"
43 #include "VertexMover.hpp"
44 #include "ObjectiveFunction.hpp"
45 
46 
47 namespace Mesquite
48 {
49 
55  class SteepestDescent : public VertexMover
56  {
57  public:
59 
60  virtual ~SteepestDescent() { }
61 
65  void set_maximum_iteration(int iter){
66  maxIteration=iter;}
67 
70  void set_lower_gradient_bound(double gradc){
71  gradientLessThan=gradc;}
72 
73 
74  protected:
75  virtual void initialize(PatchData &pd, MsqError &err);
76  virtual void optimize_vertex_positions(PatchData &pd,
77  MsqError &err);
78  virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err);
79  virtual void terminate_mesh_iteration(PatchData &pd, MsqError &err);
80  virtual void cleanup();
81 
82  private:
85  };
86 
87 }
88 
89 #endif
virtual void terminate_mesh_iteration(PatchData &pd, MsqError &err)
virtual void optimize_vertex_positions(PatchData &pd, MsqError &err)
Used to hold the error state and return it to the application.
virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err)
Base class for concrete Objective Functions ObjectiveFunction contains a pointer to a QualityMetric...