#include "vect.h"
#include <vector>
#include "IGBheader.h"
Go to the source code of this file.
|
| enum | SingularityDetector_t { face_based =0
, vol_based
} |
| |
| enum | singularity_t { PhaseSingularity =1
, FilamentSegment =2
} |
| |
| enum | Elem_t {
Tetra =0
, Hexa
, Octa
, Pyramid
,
Prism
, Quad
, Tri
, Line
,
TetP2
, TriP2
, TetraBubble
, HexaBubble
,
PrismBubble
, PyramidBubble
, TriBubble
, QuadBubble
} |
| |
|
| int | init_filament_IO (const char *meshname, int numT, FILE *fh[]) |
| |
| void | write_filaments (filament *f, FILE *fh[], float t) |
| |
| int | write_connections (ElemList *elst, NodeList *nlst, filament *f, FILE *filHdls[], float t) |
| |
| int | write_elems_martin (ElemList *elst, NodeList *nlst, filament *f, FILE *filHdls[], float t) |
| |
| void | close_filament_IO (FILE *fh[]) |
| |
| void | interpolateTBuffer (tbuffer *tbf) |
| |
| void | interpolate_vm (int numNodes, float **d, int M, float **rd, float rDist) |
| |
| bool | compute_filament (float *d0, float *d1, float vth, ElemList *elst, NodeList *nlst, filament *f, SingularityDetector_t meth) |
| |
◆ BLOCK_ALLOC
◆ log_msg
| #define log_msg |
( |
|
F, |
|
|
|
L, |
|
|
|
O, |
|
|
|
... |
|
) |
| fprintf( stderr, __VA_ARGS__ ) |
◆ ElemList
◆ FilSeg
◆ NodeList
◆ PS
◆ singularity
◆ Elem_t
| Enumerator |
|---|
| Tetra | |
| Hexa | |
| Octa | |
| Pyramid | |
| Prism | |
| Quad | |
| Tri | |
| Line | |
| TetP2 | |
| TriP2 | |
| TetraBubble | |
| HexaBubble | |
| PrismBubble | |
| PyramidBubble | |
| TriBubble | |
| QuadBubble | |
Definition at line 16 of file filament.h.
◆ singularity_t
| Enumerator |
|---|
| PhaseSingularity | |
| FilamentSegment | |
Definition at line 15 of file filament.h.
◆ SingularityDetector_t
| Enumerator |
|---|
| face_based | |
| vol_based | |
Definition at line 14 of file filament.h.
◆ close_filament_IO()
| void close_filament_IO |
( |
FILE * |
fh[] | ) |
|
Close filaments I/O
- Parameters
-
| fh | file handles for writing filament data |
Definition at line 414 of file filament.cc.
◆ compute_filament()
interpolate data onto a data point at rDist from central sample
- Parameters
-
| d0 | data at instant t-dt/2 |
| d1 | data at instant t+dt/2 |
| vth | voltage threshold for isolines |
| elst | element list |
| nlst | node list |
| f | filament array |
| meth | detection method |
- Postcondition
- filament structure filled with detected filament segments or phase singularities
- Returns
- true if filaments detected, false otherwise
Definition at line 171 of file filament.cc.
◆ init_filament_IO()
| int init_filament_IO |
( |
const char * |
meshname, |
|
|
int |
numT, |
|
|
FILE * |
fh[] |
|
) |
| |
interpolate data onto a data point at rDist from central sample
- Parameters
-
| meshname | base name of mesh to derive names for filament files |
| numT | number of time slices at which filaments are detected |
| fh | file handles for filament IO |
- Postcondition
- file handle array filled with file pointers
- Returns
- 1 if file open was successful, -1 otherwise
Definition at line 270 of file filament.cc.
◆ interpolate_vm()
| void interpolate_vm |
( |
int |
numNodes, |
|
|
float ** |
d, |
|
|
int |
M, |
|
|
float ** |
rd, |
|
|
float |
rdist |
|
) |
| |
interpolate data onto a data point at rDist from central sample
- Parameters
-
| numNodes | number of data items in vector |
| d | data vectors at input dt sampling |
| M | number of vectors in d |
| rd | resampled data at +/- rDist |
| rdist | relative distance from central sample |
- Postcondition
- rd[0] filled with data on -rdist, rd[1] with data at +rdist
Definition at line 147 of file filament.cc.
◆ interpolateTBuffer()
| void interpolateTBuffer |
( |
tbuffer * |
tbf | ) |
|
interpolate data from time slice buffer wrapper function for interpolate_vm
- Parameters
-
- Postcondition
- tbuffer->dr[0] filled with data on -tbf->rdist, tbuffer->dr[1] with data at + tbf->rdist
Definition at line 124 of file filament.cc.
◆ write_connections()
◆ write_elems_martin()
◆ write_filaments()
| void write_filaments |
( |
filament * |
f, |
|
|
FILE * |
filHdls[], |
|
|
float |
t |
|
) |
| |
Output filaments to file
- Parameters
-
| filament | filament data for current time slice |
| filHdls | file handles for writing filament data |
| t | current time slice |
- Returns
- number of filaments written
Definition at line 348 of file filament.cc.