Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
includeLinks/FeasibleNewton.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 //
29 // AUTHOR: Thomas Leurent <tleurent@mcs.anl.gov>
30 // ORG: Argonne National Laboratory
31 // E-MAIL: tleurent@mcs.anl.gov
32 //
33 // ORIG-DATE: 15-Jan-03 at 08:05:56
34 // LAST-MOD: 23-May-03 at 11:20:14 by Thomas Leurent
35 //
36 // DESCRIPTION:
37 // ============
50 // DESCRIP-END.
51 //
52 
53 #ifndef MSQ_FeasibleNewton_hpp
54 #define MSQ_FeasibleNewton_hpp
55 
56 #include "Mesquite.hpp"
57 #include "VertexMover.hpp"
58 #include "ObjectiveFunction.hpp"
59 #include "MsqHessian.hpp"
60 
61 namespace Mesquite
62 {
63 
93  class FeasibleNewton : public VertexMover
94  {
95  public:
97 
98  virtual ~FeasibleNewton()
99  { delete coordsMem; }
100 
103  void set_lower_gradient_bound(double gradc){
104  convTol=gradc;}
105 
106 
107  protected:
108  virtual void initialize(PatchData &pd, MsqError &err);
109  virtual void optimize_vertex_positions(PatchData &pd,
110  MsqError &err);
111  virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err);
112  virtual void terminate_mesh_iteration(PatchData &pd, MsqError &err);
113  virtual void cleanup();
114 
115  private:
116  double convTol;
119  };
120 
121 }
122 
123 #endif // MSQ_FeasibleNewton_hpp
PatchDataVerticesMemento * coordsMem
Used to hold the error state and return it to the application.
virtual void optimize_vertex_positions(PatchData &pd, MsqError &err)
Vector3D is the object that effeciently stores the objective function Hessian each entry is a Matrix3...
virtual void terminate_mesh_iteration(PatchData &pd, MsqError &err)
Contains a copy of the coordinates of a PatchData.
virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err)
High Performance implementation of the Feasible Newton algorythm.
Base class for concrete Objective Functions ObjectiveFunction contains a pointer to a QualityMetric...