MAST
level_set_volume_output.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 
21 #ifndef _mast__level_set_volume_output_h__
22 #define _mast__level_set_volume_output_h__
23 
24 // MAST includes
26 
27 
28 namespace MAST {
29 
30  // Forward declerations
31  class LevelSetIntersection;
32 
35 
36  public:
37 
39 
40  virtual ~LevelSetVolume();
41 
45  virtual void
46  set_elem_data(unsigned int dim,
47  const libMesh::Elem& ref_elem,
48  MAST::GeomElem& elem) const { }
49 
54  virtual void
55  init(const MAST::GeomElem& elem);
56 
65  virtual void zero_for_analysis();
66 
67 
73  virtual void zero_for_sensitivity();
74 
83  virtual Real output_for_elem();
84 
88  virtual Real output_total();
89 
98 
107 
117  // does not make sense for this output. // should not get called.
118  libmesh_error();
119  }
120 
121 
131  virtual void evaluate();
132 
139  virtual void evaluate_sensitivity(const MAST::FunctionBase& f);
140 
148 
149  libmesh_assert(false); // to be implemented
150  }
151 
158 
159  protected:
160 
164  };
165 
166 }
167 
168 
169 
170 
171 #endif // _mast__level_set_volume_output_h__
LevelSetVolume(MAST::LevelSetIntersection &intersection)
virtual Real output_sensitivity_total(const MAST::FunctionBase &p)
virtual void evaluate_topology_sensitivity(const MAST::FunctionBase &f, const MAST::FieldFunction< RealVectorX > &vel)
This evaluates the contribution to the topology sensitivity on the boundary .
const MAST::LevelSetIntersection & _intersection
This provides the base class for definitin of element level contribution of output quantity in an ana...
virtual void init(const MAST::GeomElem &elem)
initializes the object for calculation of element quantities for the specified elem.
virtual Real output_sensitivity_for_elem(const MAST::FunctionBase &p)
libMesh::Real Real
virtual void set_elem_data(unsigned int dim, const libMesh::Elem &ref_elem, MAST::GeomElem &elem) const
virtual function, nothing to be done for level set
virtual void evaluate()
this is the abstract interface to be implemented by derived classes.
virtual void evaluate_sensitivity(const MAST::FunctionBase &f)
this evaluates all relevant sensitivity components on the element.
virtual void evaluate_shape_sensitivity(const MAST::FunctionBase &f)
this evaluates all relevant shape sensitivity components on the element.
virtual void zero_for_sensitivity()
zeroes the output quantity values stored inside this object so that assembly process can begin...
virtual void output_derivative_for_elem(RealVectorX &dq_dX)
returns the output quantity derivative with respect to state vector in dq_dX.
Matrix< Real, Dynamic, 1 > RealVectorX
This class acts as a wrapper around libMesh::Elem for the purpose of providing a uniform interface fo...
Definition: geom_elem.h:59
virtual void zero_for_analysis()
zeroes the output quantity values stored inside this object so that assembly process can begin...