FEApp_SolutionAverageResponseFunction.hpp

Go to the documentation of this file.
00001 // $Id$ 
00002 // $Source$ 
00003 // @HEADER
00004 // ***********************************************************************
00005 // 
00006 //                           Sacado Package
00007 //                 Copyright (2006) Sandia Corporation
00008 // 
00009 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00010 // the U.S. Government retains certain rights in this software.
00011 // 
00012 // This library is free software; you can redistribute it and/or modify
00013 // it under the terms of the GNU Lesser General Public License as
00014 // published by the Free Software Foundation; either version 2.1 of the
00015 // License, or (at your option) any later version.
00016 //  
00017 // This library is distributed in the hope that it will be useful, but
00018 // WITHOUT ANY WARRANTY; without even the implied warranty of
00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 // Lesser General Public License for more details.
00021 //  
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License along with this library; if not, write to the Free Software
00024 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00025 // USA
00026 // Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
00027 // (etphipp@sandia.gov).
00028 // 
00029 // ***********************************************************************
00030 // @HEADER
00031 
00032 #ifndef FEAPP_SOLUTIONAVERAGERESPONSEFUNCTION_HPP
00033 #define FEAPP_SOLUTIONAVERAGERESPONSEFUNCTION_HPP
00034 
00035 #include "FEApp_AbstractResponseFunction.hpp"
00036 #include "Epetra_Map.h"
00037 #include "Epetra_Import.h"
00038 #include "Epetra_Vector.h"
00039 
00040 namespace FEApp {
00041 
00045   class SolutionAverageResponseFunction : public AbstractResponseFunction {
00046   public:
00047   
00049     SolutionAverageResponseFunction();
00050 
00052     virtual ~SolutionAverageResponseFunction();
00053 
00055     virtual unsigned int numResponses() const;
00056 
00058     virtual void 
00059     evaluateResponses(const Epetra_Vector* xdot,
00060                       const Epetra_Vector& x,
00061                       const Teuchos::Array< Teuchos::RCP<ParamVec> >& p,
00062                       Epetra_Vector& g);
00063 
00065     virtual void 
00066     evaluateTangents(
00067      const Epetra_Vector* xdot,
00068      const Epetra_Vector& x,
00069      const Teuchos::Array< Teuchos::RCP<ParamVec> >& p,
00070      const Teuchos::Array< Teuchos::RCP<ParamVec> >& deriv_p,
00071      const Teuchos::Array< Teuchos::RCP<Epetra_MultiVector> >& dxdot_dp,
00072      const Teuchos::Array< Teuchos::RCP<Epetra_MultiVector> >& dx_dp,
00073      Epetra_Vector* g,
00074      const Teuchos::Array< Teuchos::RCP<Epetra_MultiVector> >& gt);
00075 
00077     virtual void 
00078     evaluateGradients(
00079     const Epetra_Vector* xdot,
00080     const Epetra_Vector& x,
00081     const Teuchos::Array< Teuchos::RCP<ParamVec> >& p,
00082     const Teuchos::Array< Teuchos::RCP<ParamVec> >& deriv_p,
00083     Epetra_Vector* g,
00084     Epetra_MultiVector* dg_dx,
00085     Epetra_MultiVector* dg_dxdot,
00086     const Teuchos::Array< Teuchos::RCP<Epetra_MultiVector> >& dg_dp);
00087 
00088 #if SG_ACTIVE
00090     virtual void 
00091     evaluateSGResponses(const Stokhos::VectorOrthogPoly<Epetra_Vector>* sg_xdot,
00092       const Stokhos::VectorOrthogPoly<Epetra_Vector>& sg_x,
00093       const ParamVec* p,
00094       const ParamVec* sg_p,
00095       const Teuchos::Array<SGType>* sg_p_vals,
00096       Stokhos::VectorOrthogPoly<Epetra_Vector>& sg_g);
00097 #endif
00098 
00099   private:
00100 
00102     SolutionAverageResponseFunction(const SolutionAverageResponseFunction&);
00103     
00105     SolutionAverageResponseFunction& operator=(const SolutionAverageResponseFunction&);
00106 
00107   };
00108 
00109 }
00110 
00111 #endif // FEAPP_SOLUTIONAVERAGERESPONSEFUNCTION_HPP

Generated on Wed May 12 21:39:33 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7