Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
global_subdivision_multi_grid_refiner.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014-2019: G-CSC, Goethe University Frankfurt
3 * Author: Martin Stepniewski
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__LIB_GRID__GLOBAL_SUBDIVISION_MULTI_GRID_REFINER__
34#define __H__LIB_GRID__GLOBAL_SUBDIVISION_MULTI_GRID_REFINER__
35
36#include "lib_grid/lg_base.h"
37#include "lib_grid/multi_grid.h"
40
41namespace ug
42{
43
46
48
53template <class TAPosition>
55{
56 public:
58
60
63
65
67 void set_linear_manifold_subsets(MGSubsetHandler& linearManifoldSH, const char* linearManifoldSubsets);
68
72
76
78 void assign_position_attachment(TAPosition* aPos);
79 void assign_position_attachment(TAPosition& aPos);
80
82 void set_constrained_subdivision(bool constrained) {m_bConstrained = constrained;}
83
85 void nest_hierarchy();
86
87 protected:
89 void smooth();
90
92 virtual void refinement_step_ends();
93
94 protected:
98// SmartPtr<MGSubsetHandler> m_spLinearManifoldSH;
99 TAPosition* m_pAPos;
101};
102
104}// end of namespace
105
106#endif
Definition global_multi_grid_refiner.h:48
Specialization of the GlobalMultiGridRefiner class to incorporate subdivision refinement.
Definition global_subdivision_multi_grid_refiner.h:55
void set_constrained_subdivision(bool constrained)
sets constrained subdivision volumes scheme
Definition global_subdivision_multi_grid_refiner.h:82
void set_linear_manifold_subsets(MGSubsetHandler &linearManifoldSH, const char *linearManifoldSubsets)
sets the manifold subsets which shall be linearly refined
Definition global_subdivision_multi_grid_refiner.cpp:95
void assign_mark_subset_handler(MGSubsetHandler &markSH)
Definition global_subdivision_multi_grid_refiner.h:75
bool m_bConstrained
Definition global_subdivision_multi_grid_refiner.h:100
virtual void refinement_step_ends()
wrapper for smooth() method in parallel case (see class ParallelGlobalSubdivisionRefiner)
Definition global_subdivision_multi_grid_refiner.cpp:136
void smooth()
performs subdivision smoothing on the marked elements after base class regular refinement
Definition global_subdivision_multi_grid_refiner.cpp:142
MGSubsetHandler * m_spLinearManifoldSH
Definition global_subdivision_multi_grid_refiner.h:97
void assign_subset_handler(MGSubsetHandler *sh)
sets the default SubsetHandler
Definition global_subdivision_multi_grid_refiner.h:70
virtual ~GlobalSubdivisionMultiGridRefiner()
Definition global_subdivision_multi_grid_refiner.cpp:88
void assign_position_attachment(TAPosition *aPos)
sets the position attachment depending on the world dimension
Definition global_subdivision_multi_grid_refiner.cpp:114
void assign_subset_handler(MGSubsetHandler &sh)
Definition global_subdivision_multi_grid_refiner.h:71
MGSubsetHandler * m_pMarkSH
Definition global_subdivision_multi_grid_refiner.h:96
MGSubsetHandler * m_pSH
Definition global_subdivision_multi_grid_refiner.h:95
void assign_mark_subset_handler(MGSubsetHandler *markSH)
sets the SubsetHandler designated for obligatory marked manifold elements
Definition global_subdivision_multi_grid_refiner.h:74
void nest_hierarchy()
projection of the vertices of all levels to their smooth subdivision limit positions to ensure node n...
Definition global_subdivision_multi_grid_refiner.cpp:125
TAPosition * m_pAPos
Definition global_subdivision_multi_grid_refiner.h:99
SPRefinementProjector projector()
Definition refiner_interface.h:78
Definition multi_grid.h:72
Handles subsets on a per level basis.
Definition subset_handler_multi_grid.h:60
const NullSmartPtr SPNULL
The equivalent to NULL for smart pointers.
Definition smart_pointer.h:90
the ug namespace