Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmergrid/src/egextra.h
3196 views
1
/* feminfo.h -> egextra.h */
2
/* Functions providing the user additional information on mesh creation,
3
solution and calculation. */
4
5
int SaveSolutionDens(struct FemType *data,char *prefix,int info);
6
int SaveCellInfo(struct GridType *grid,struct CellType *cell,
7
char *prefix,int info);
8
int SaveBoundary(struct FemType *data,struct BoundaryType *bound,
9
char *prefix,int info);
10
int CreateBoundaryChain(struct FemType *data,struct BoundaryType *bound,int info);
11
int SaveBoundariesChain(struct FemType *data,struct BoundaryType *bound,
12
char *prefix,int info);
13
int SaveBoundaryLine(struct FemType *data,int direction,
14
Real c0,char* prefix,int info);
15
int SaveBoundaryForm(struct FemType *data,struct CellType *cell,
16
char* filename,int info);
17
int SaveSubcellForm(struct FemType *data,struct CellType *cell,
18
char* filename,int info);
19
20
int InspectElement(struct FemType *data,int idx);
21
22
int LoadSolutionElmer(struct FemType *data,int results,char *prefix,int info);
23
int SaveSolutionElmer(struct FemType *data,struct BoundaryType *bound,
24
int nobound,char *prefix,int decimals,int info);
25
int SaveSizeInfo(struct FemType *data,struct BoundaryType *bound,
26
char *prefix,int info);
27
int SaveElmerInputFemBem(struct FemType *data,struct BoundaryType *bound,
28
char *prefix,int decimals, int info);
29
int MeshPieces(struct FemType *data,int nomesh,int nomeshes,int info);
30
31
void InspectVector(Real *vector,int first,int last,Real *min,
32
Real *max,int *mini,int *maxi);
33
int Steepest(Real *vector,int first,int last);
34
Real MeanVector(Real *vector,int first,int last);
35
Real AbsMeanVector(Real *vector,int first,int last);
36
Real DifferVector(Real *vector1,Real *vector2,int first,int last);
37
void ReformVector(Real *vector1,int n1,Real *vector2,int n2);
38
void AdjustVector(Real max,Real min,Real *vector,int first,int last);
39
int ReadRealVector(Real *vector,int first,int last,char *filename);
40
void SaveRealVector(Real *vector,int first,int last,char *filename);
41
int ReadRealMatrix(Real **matrix,int row_first,int row_last,
42
int col_first,int col_last,char *filename);
43
void SaveRealMatrix(Real **matrix,int row_first,int row_last,
44
int col_first,int col_last,char *filename);
45
int ReadIntegerVector(int *vector,int first,int last,char *filename);
46
void SaveIntegerVector(int *vector,int first,int last,char *filename);
47
int ReadIntegerMatrix(int **matrix,int row_first,int row_last,
48
int col_first,int col_last,char *filename);
49
void SaveIntegerMatrix(int **matrix,int row_first,int row_last,
50
int col_first,int col_last,char *filename);
51
void SaveNonZeros(Real **matrix,int row_first,int row_last,
52
int col_first,int col_last,char *filename);
53
int EchoFile(char *filename);
54
int SetDiscontinuousPoints(struct FemType *data,struct PointType *point,
55
int material);
56
57