| 1 | /* | 
|---|
| 2 | * Matice.h | 
|---|
| 3 | */ | 
|---|
| 4 |  | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef _MATICE_H | 
|---|
| 7 | #define _MATICE_H | 
|---|
| 8 |  | 
|---|
| 9 |  | 
|---|
| 10 | /* "friend" functionality: */ | 
|---|
| 11 | #include "../DataSet/DataSet.h" | 
|---|
| 12 |  | 
|---|
| 13 | /* input file-specific defines: */ | 
|---|
| 14 | #include "./InputFormats.h" | 
|---|
| 15 |  | 
|---|
| 16 | typedef struct { | 
|---|
| 17 | char    name[LARGEFIELDWIDTH+1]; | 
|---|
| 18 | int             mid; | 
|---|
| 19 | double  B; | 
|---|
| 20 | double  n; | 
|---|
| 21 | } Matice; | 
|---|
| 22 |  | 
|---|
| 23 |  | 
|---|
| 24 | /* creation, initialisation: */ | 
|---|
| 25 |  | 
|---|
| 26 | Matice* NewMatice(void); | 
|---|
| 27 | int     MaticeInit(Matice* this); | 
|---|
| 28 |  | 
|---|
| 29 |  | 
|---|
| 30 | /* "virtual functions", used or required by DataSet: */ | 
|---|
| 31 |  | 
|---|
| 32 | void  DeleteMatice( void* *vpthis);             /* void*'s only for compatibility */ | 
|---|
| 33 | void  MaticeEcho( void* vpthis); | 
|---|
| 34 | int   MaticeSizeOfInDoubles( void* vpthis); | 
|---|
| 35 | void  MaticeShrinkWrap( void* to, void* vpthis); | 
|---|
| 36 | int   MaticeUnwrap( void* vpthis); | 
|---|
| 37 | void  MaticeMarshall( char* *pbuffer, void* vpthis, int* size); | 
|---|
| 38 | void* MaticeDemarshall( DataSet* ds, char* *pbuffer, int machine_flag); | 
|---|
| 39 | int   MaticeGetID( void* this); | 
|---|
| 40 | int   MaticeSetVirtualFunctions( void* vf); | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | /* other member functions: */ | 
|---|
| 44 |  | 
|---|
| 45 | /* alternative interface to DataSetAddObject */ | 
|---|
| 46 | int MaticeAddToDataSet( DataSet* dataset, Matice* this); | 
|---|
| 47 | int MaticeGetViscosity2d(double* pmu, void* vpthis, double* epsilon); | 
|---|
| 48 | int MaticeGetViscosity3d(double* pmu, void* vpthis, double* epsilon); | 
|---|
| 49 | int MaticeSetFlowLawParameter(void* vpthis,double B_value); | 
|---|
| 50 | int MaticeGetViscosity2(double* pmu2, void* vpthis, double* epsilon); | 
|---|
| 51 |  | 
|---|
| 52 | /* other "virtual" functions: */ | 
|---|
| 53 |  | 
|---|
| 54 | /* general: */ | 
|---|
| 55 |  | 
|---|
| 56 | char* MaticeGetName( void* vpthis); | 
|---|
| 57 |  | 
|---|
| 58 |  | 
|---|
| 59 | #endif  /* _MATICE_H */ | 
|---|
| 60 |  | 
|---|