EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
egnative.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file egnative.h
1 /* egnative.h */
2 /* Subroutines for creating and manipulating the native format of ElmerGrid. */
3 
4 void InitGrid(struct GridType *grid);
5 void CreateExampleGrid(int dim,struct GridType **grids,int *nogrids,int info);
6 void SetElementDivision(struct GridType *grid,Real relh,int info);
7 void SetCellData(struct GridType *grid,struct CellType *cell,int info);
8 int SetCellKnots(struct GridType *grid, struct CellType *cell,int info);
9 int SetCellKnots1D(struct GridType *grid, struct CellType *cell,int info);
10 int GetKnotCoordinate(struct CellType *cell,int i,int j,Real *x,Real *y);
11 int GetKnotIndex(struct CellType *cell,int i,int j);
12 int GetElementIndices(struct CellType *cell,int i,int j,int *ind);
13 int GetElementIndex(struct CellType *cell,int i,int j);
14 int GetElementCoordinates(struct CellType *cell,int i,int j,
15  Real *globalcoord,int *ind);
16 int GetSideInfo(struct CellType *cell,int cellno,int side,int element,
17  int *elemind);
18 void SetElementDivisionExtruded(struct GridType *grid,int info);
19 void SetElementDivisionCylinder(struct GridType *grid,int info);
20 
21 int SaveElmergrid(struct GridType *grid,int nogrids,char *prefix,int info);
22 int LoadElmergrid(struct GridType **grid,int *nogrids,char *prefix,int info);
23 void InitParameters(struct ElmergridType *eg);
24 int LoadCommands(char *prefix,struct ElmergridType *eg,
25  struct GridType *grid, int mode,const char *IOmethods[],
26  int info);
27 int CreateElmerGridMesh(struct GridType *grid,
28  struct FemType *data,struct BoundaryType *boundaries,
29  Real relh,int info);