ParMooN
 All Classes Functions Variables Friends Pages
SSMUM.h
1 // =======================================================================
2 // SSMUM.h
3 //
4 // Purpose: shear slip mesh update method
5 //
6 // Authors: Volker John, 2008/05/22
7 //
8 // =======================================================================
9 
10 #ifndef __SSMUM__
11 #define __SSMUM__
12 
13 /*******************************************************************************/
14 //
15 // WriteGridGnu
16 // writes a gnuplot output for the grid, just for debugging
17 //
18 /*******************************************************************************/
19 
20 int WriteGridGnu(const char *name, TCollection *coll);
21 
22 
23 /*******************************************************************************/
24 //
25 // checks if the point (x,y) is in cell
26 // works only for triangles
27 // input: cell and x,y coordinates of the vertices
28 // output 0 - no, 1 yes
29 //
30 /*******************************************************************************/
31 
32 int PointInCell(TBaseCell *cell, double x_coord, double y_coord);
33 
34 /*******************************************************************************/
35 //
36 // SwapEdges
37 // routine for swapping the edges in the shear slip mesh update method in 2d
38 //
39 /*******************************************************************************/
40 
41 void SwapEdges(const char *name, TCollection *coll,
42  TFEFunction2D *u1, TFEFunction2D *u2,
43  double *tangential_values_ssl);
44 
45 /*******************************************************************************/
46 //
47 // RotateGrid
48 // controls the grid rotation
49 //
50 /*******************************************************************************/
51 
52 int RotateGrid(const char *name, TCollection *coll, double swap_rotation, double &angle,
53  double *uoldx, double *uoldy, double *uold1, double *uold2,
54  TFEFunction2D *u1, TFEFunction2D *u2, double *tangential_values_ssl);
55 
56 
57 /*******************************************************************************/
58 //
59 // VelocityInNewPositions
60 // computes the velicity values in the position after the rotation
61 //
62 /*******************************************************************************/
63 
64 int VelocityAtNewPositions(TCollection *coll,
66  double *values);
67 
68 void FillNewVelocity(TCollection *coll,
69  double *uoldx, double *uoldy, double *uold1, double *uold2,
70  TFEFunction2D *u1, TFEFunction2D *u2, double *tangential_values_ssl);
71 
72 void MakeBubblesDivFree(TCollection *coll,
73  TFEFunction2D *u1, TFEFunction2D *u2,
74  TFEFunction2D *p,
75  TMatrix2D *matrixB1, TMatrix2D *matrixB2);
76 
77 #endif
store cells in an array, used by cell iterators
Definition: Collection.h:18
Definition: Matrix2D.h:20
information for finite element data structure
Definition: BaseCell.h:25
Definition: FEFunction2D.h:24