MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
point_load_condition.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2020 Manav Bhatia and MAST authors
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__point_load_condition__
21 #define __mast__point_load_condition__
22 
23 // C++ includes
24 #include <set>
25 
26 // MAST includes
28 
29 // libMesh includes
30 #include "libmesh/node.h"
31 
32 namespace MAST {
33 
41 
42  public:
43 
45 
46  virtual ~PointLoadCondition();
47 
48 
52  void add_node(const libMesh::Node& nd);
53 
58  const std::set<const libMesh::Node*>& get_nodes() const;
59 
60 
65  std::set<const libMesh::Node*>& get_nodes();
66 
67 
68  protected:
69 
70 
74  std::set<const libMesh::Node*> _nodes;
75 
76  };
77 }
78 
79 #endif // __mast__point_load_condition__
std::set< const libMesh::Node * > _nodes
set of nodes on which load is specified
PointLoadCondition(MAST::BoundaryConditionType t)
This class allows for the specification of load associated with specified nodes in a user-provided se...
void add_node(const libMesh::Node &nd)
adds the node on which this object defines a point load
const std::set< const libMesh::Node * > & get_nodes() const