MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
level_set_discipline.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__level_set_discipline__
21 #define __mast__level_set_discipline__
22 
23 // MAST includes
25 
26 
27 
28 namespace MAST {
29 
30  // Forward declerations
31  template <typename ValType> class FieldFunction;
32 
33 
36 
37 
38  public:
39 
40  // Constructor
41  LevelSetDiscipline(libMesh::EquationSystems& eq_sys);
42 
43 
47  virtual ~LevelSetDiscipline();
48 
49 
53  void
55 
56  libmesh_assert(!_vel);
57  _vel = &vel;
58  }
59 
64  bool
66 
67  return _vel;
68  }
69 
75 
76  return *_vel;
77  }
78 
87  }
88 
89 
90  bool if_level_set_propagation() const {
91 
93  }
94 
95  protected:
96 
97 
99 
101  };
102 }
103 
104 
105 #endif // __mast__level_set_discipline__
106 
void set_velocity_function(const MAST::FieldFunction< Real > &vel)
sets the level set function normal velocity field
const MAST::FieldFunction< Real > * _vel
void set_level_set_propagation_mode(bool f)
If true, then the level set will be propagated using the velocity specified by the velocity object in...
virtual ~LevelSetDiscipline()
virtual destructor
LevelSetDiscipline(libMesh::EquationSystems &eq_sys)
const MAST::FieldFunction< Real > & get_velocity_function() const