Plugins
Loading...
Searching...
No Matches
ls_analytic.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015: G-CSC, Goethe University Frankfurt
3 * Authors: Christian Wehner, Dmitriy Logashenko
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__LEVEL_SET__LS_ANALYTIC_H__
34#define __H__UG__PLUGINS__LEVEL_SET__LS_ANALYTIC_H__
35
36#include "common/common.h"
37
38namespace ug{
39namespace LevelSet{
40
44template<typename TGridFunction>
46{
48 typedef typename TGridFunction::domain_type domain_type;
49
51 typedef typename TGridFunction::algebra_type algebra_type;
52
54 static const int dim = domain_type::dim;
55
56public:
57
60 : m_time (0)
61 {};
62
63 void set_time(number t) {m_time = t;}
64 number get_time() {return m_time;};
65
69
70 bool fill_v_vec(TGridFunction& vel,int component);
71 bool init_function(TGridFunction& u);
72
73private:
74
76};
77
78} // end namespace LevelSet
79} // end namespace ug
80
81// include implementation
82#include "ls_analytic_impl.h"
83
84#endif /* __H__UG__PLUGINS__LEVEL_SET__LS_ANALYTIC_H__ */
85
86/* End of File */
Definition ls_analytic.h:46
static const int dim
world dimension
Definition ls_analytic.h:54
bool analytic_velocity(MathVector< dim > &, number, MathVector< dim >)
Definition ls_analytic_impl.h:37
TGridFunction::domain_type domain_type
domain type
Definition ls_analytic.h:48
number analytic_source(number, MathVector< dim >)
Definition ls_analytic_impl.h:62
LevelSetAnalytic()
class constructor
Definition ls_analytic.h:59
bool init_function(TGridFunction &u)
Definition ls_analytic_impl.h:144
number get_time()
Definition ls_analytic.h:64
number analytic_solution(number, MathVector< dim >)
Definition ls_analytic_impl.h:77
number m_time
Definition ls_analytic.h:75
void set_time(number t)
Definition ls_analytic.h:63
TGridFunction::algebra_type algebra_type
algebra type
Definition ls_analytic.h:51
bool fill_v_vec(TGridFunction &vel, int component)
Definition ls_analytic_impl.h:110
double number