Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// ============================================================================
// == ==
// == crystal growth group ==
// == ==
// == Stiftung caesar ==
// == Ludwig-Erhard-Allee 2 ==
// == 53175 Bonn ==
// == germany ==
// == ==
// ============================================================================
// == ==
// == http://www.caesar.de/cg/AMDiS ==
// == ==
// ============================================================================
/** \file ElInfo1d.h */
#ifndef AMDIS_ELINFO1D_H
#define AMDIS_ELINFO1D_H
#include "ElInfo.h"
#include "MemoryManager.h"
namespace AMDiS {
// ============================================================================
// ===== class ElInfo1d =======================================================
// ============================================================================
/** \ingroup Traverse
* \brief
* ElInfo class for 1-dimensional elements (\ref Line).
*/
class ElInfo1d : public ElInfo
{
public:
MEMORY_MANAGED(ElInfo1d);
/** \brief
* Constructor. Calls ElInfo's protected Constructor.
*/
ElInfo1d(Mesh* aMesh)
: ElInfo(aMesh)
{}
/** \brief
* 1-dimensional realisation of ElInfo's fillElInfo method.
*/
void fillElInfo(int ichild, const ElInfo *elinfo_old);
/** \brief
* 1-dimensional realisation of ElInfo's fillMacroInfo method.
*/
void fillMacroInfo(const MacroElement *);
/** \brief
* 1-dimensional realisation of ElInfo's worldToCoord method.
*/
const int worldToCoord(const WorldVector<double>& w, DimVec<double>* l) const;
/** \brief
* 1-dimensional realisation of ElInfo's calcGrdLambda method.
*/
double calcGrdLambda(DimVec<WorldVector<double> >& grd_lam);
/** \brief
* 1-dimensional realisation of ElInfo's getNormal method.
*/
double getNormal(int side, WorldVector<double> &normal);
/** \brief
* 1-dimensional realisation of ElInfo's getElementNormal method.
*/
double getElementNormal( WorldVector<double> &normal) const;

Thomas Witkowski
committed
int getSideOfNeighbour(int i) {
return (i + 1) % 2;
void getRefSimplexCoords(DimMat<double> *coords) const;
void getSubElementCoords(DimMat<double> *coords,
};
}
#endif // AMDIS_ELINFO1D_H