Plugins
no_normal_stress_outflow_base.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2013: G-CSC, Goethe University Frankfurt
3  * Authors: Dmitry Logashenko, Andreas Vogel
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #ifndef __H__UG__PLUGINS__NAVIER_STOKES__INCOMPRESSIBLE__BND__NO_NORMAL_STRESS_OUTFLOW_BASE__
34 #define __H__UG__PLUGINS__NAVIER_STOKES__INCOMPRESSIBLE__BND__NO_NORMAL_STRESS_OUTFLOW_BASE__
35 
36 // other ug4 modules
37 #include "common/common.h"
38 #include "lib_grid/lg_base.h"
39 
40 // library intern headers
44 
45 #include "../incompressible_navier_stokes_base.h"
46 
47 namespace ug{
48 namespace NavierStokes{
49 
50 
53 
55 
69 template< typename TDomain>
71  : public IElemDisc<TDomain>
72 {
73  protected:
76 
79 
80  public:
82  static const int dim = base_type::dim;
83 
84  public:
87 
89  void add(const char* subsets);
90 
91  protected:
94 
96  virtual void set_density(SmartPtr<CplUserData<number, dim> > data) = 0;
97 
98  public:
100  virtual bool requests_local_time_series() {return true;}
101 
102  protected:
105 
107  std::vector<std::string> m_vScheduledBndSubSets; // names
108  std::vector<int> m_vBndSubSetIndex; // indices
109 
110  void extract_scheduled_data(); // convert m_vScheduledBndSubSets -> m_vBndSubSetIndex
111 };
112 
114 
115 } // namespace NavierStokes
116 } // end namespace ug
117 
118 #endif /*__H__UG__PLUGINS__NAVIER_STOKES__INCOMPRESSIBLE__BND__NO_NORMAL_STRESS_OUTFLOW_BASE__*/
function NavierStokes(fcts, subsets, discType)
static const int dim
Finite Volume Element Discretization for the incompressible Navier-Stokes Equation.
Definition: incompressible_navier_stokes_base.h:146
The zero-stress (neutral) outflow boundary condition for the incompressible NS equation.
Definition: no_normal_stress_outflow_base.h:72
virtual void set_kinematic_viscosity(SmartPtr< CplUserData< number, dim > > data)=0
sets the kinematic viscosity
IElemDisc< TDomain > base_type
Base class type.
Definition: no_normal_stress_outflow_base.h:75
std::vector< std::string > m_vScheduledBndSubSets
The boundary subsets:
Definition: no_normal_stress_outflow_base.h:107
static const int dim
World dimension.
Definition: no_normal_stress_outflow_base.h:82
std::vector< int > m_vBndSubSetIndex
Definition: no_normal_stress_outflow_base.h:108
NavierStokesNoNormalStressOutflowBase< TDomain > this_type
own type
Definition: no_normal_stress_outflow_base.h:78
SmartPtr< IncompressibleNavierStokesBase< TDomain > > m_spMaster
The master discretization:
Definition: no_normal_stress_outflow_base.h:104
void extract_scheduled_data()
Definition: no_normal_stress_outflow_base.cpp:47
NavierStokesNoNormalStressOutflowBase(SmartPtr< IncompressibleNavierStokesBase< TDomain > > spMaster)
Constructor (setting default values)
Definition: no_normal_stress_outflow_base.cpp:107
virtual bool requests_local_time_series()
returns if local time series is needed
Definition: no_normal_stress_outflow_base.h:100
virtual void set_density(SmartPtr< CplUserData< number, dim > > data)=0
sets the density
void add(const char *subsets)
adds a boundary segment
Definition: no_normal_stress_outflow_base.cpp:94