Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmergrid/src/egnative.h
3196 views
1
/* femelmer.h + femmesh.h -> egnative.h */
2
void Instructions();
3
void Goodbye();
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
void CreateCells(struct GridType *grid,struct CellType **cell,int info);
9
void DestroyCells(struct CellType **cell);
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
24
void InitParameters(struct ElmergridType *eg);
25
int InlineParameters(struct ElmergridType *eg,int argc,char *argv[],int first,int info);
26
int LoadCommands(char *prefix,struct ElmergridType *eg,
27
struct GridType *grid, int mode,int info);
28
29
int LoadElmerInput(struct FemType *data,struct BoundaryType *bound,
30
char *prefix,int nonames, int info);
31
int SaveElmerInput(struct FemType *data,struct BoundaryType *bound,
32
char *prefix,int decimals,int nooverwrite, int info);
33
int CreateElmerGridMesh(struct GridType *grid,
34
struct FemType *data,struct BoundaryType *boundaries,
35
Real relh,int info);
36
37