MAST
level_set_parameter.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 #ifndef __mast__level_set_parameter__
21 #define __mast__level_set_parameter__
22 
23 
24 // MAST includes
25 #include "base/parameter.h"
26 
27 // libMesh includes
28 #include "libmesh/node.h"
29 
30 
31 namespace MAST {
32 
39  public MAST::Parameter {
40 
41  public:
42 
43  LevelSetParameter(const std::string& nm,
44  const Real& val,
45  const libMesh::Node* node):
46  MAST::Parameter(nm, val),
47  _node(node) { }
48 
49  virtual ~LevelSetParameter() {
50 
51  }
52 
53 
54  const libMesh::Node* level_set_node() const {
55 
56  return _node;
57  }
58 
59  protected:
60 
64  const libMesh::Node* _node;
65  };
66 }
67 
68 #endif // __mast__level_set_parameter__
const libMesh::Node * level_set_node() const
This defines a parameter that is a level set function and stores a pointer to the node in the level-s...
This is a scalar function whose value can be changed and one that can be used as a design variable in...
Definition: parameter.h:35
const libMesh::Node * _node
Pointer to the level set node.
libMesh::Real Real
LevelSetParameter(const std::string &nm, const Real &val, const libMesh::Node *node)