COVISE Core
Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
covise::File29 Class Reference

#include <File29.h>

Inheritance diagram for covise::File29:
Inheritance graph
[legend]
Collaboration diagram for covise::File29:
Collaboration graph
[legend]

Classes

struct  DropRec
 

Public Types

typedef float float32
 
typedef int int32
 
- Public Types inherited from covise::StarFile
enum  {
  VELOCITY = 1 , VMAG , U , V ,
  W , PRESSURE , TE , ED ,
  TVIS , TEMPERATURE , DENSITY , LAMVIS ,
  CP , COND , DROP_COORD , DROP_VEL ,
  DROP_DENS , DROP_DIAM , DROP_TEMP , DROP_NO ,
  DROP_MASS , SCALAR
}
 

Public Member Functions

 ~File29 ()
 
 File29 (int fd, void(*dumpFunct)(const char *)=NULL)
 
int isValid ()
 
long skip_to_step (int stepNo)
 
int skip_to_time (float time)
 
int skip_to_field (int fieldNo)
 
long skip_to_next_field ()
 
float getRealTime (int step)
 
int getVertexCoordinates (int step, float *x, float *y, float *z, int *len)
 
int readField (int step, int field, int *starToCov, int elements, float *f1, float *f2, float *f3)
 
virtual ChoiceListget_choice (const char **, int) const
 
int get_num_steps ()
 
void setDumper (void(*newDumper)(const char *))
 
void findHeaders ()
 
int isFile (const char *filename)
 check whether this is the file we read More...
 
int getNumDrops (int step_no) const
 
- Public Member Functions inherited from covise::StarFile
 StarFile ()
 
virtual ~StarFile ()
 
virtual ChoiceListget_choice (const char **, int) const =0
 
char * secure_strdup (const char *string)
 
char * secure_strcat (char *s1, const char *s2)
 
char * secure_strcpy (char *s1, const char *s2)
 
char * secure_strncpy (char *s1, const char *s2, int n)
 
int secure_strcmp (const char *s1, const char *s2)
 

Public Attributes

int iter
 
float time
 
int ncell
 
int nbc
 
int nbw
 
int nbs
 
int nbb
 
int nnode
 
char title [52]
 
int nbcyc
 
int nbcut
 
int nsol
 
int numcon
 
int lvers
 
int ndrop9_
 
int ndrop9
 
int ncitem
 
int nvitem
 
int nsitem
 
int lmvgrd
 
int lct_field1 [12]
 
int field45_56 [12]
 
int lsrf_field1 [17]
 
int lct1_6
 
int field75_90 [16]
 
int lct_field2 [3]
 
int field94_98 [5]
 
int ntcell
 
int field100
 
int lct_field3 [47]
 
int field148_199 [52]
 
int nummat
 
int nsmat
 
float materials [799]
 
int lsrf_field2 [47]
 
int lsrf_field3 [47]
 
int field1095_1345 [251]
 
int lct20
 
int field1347_1799 [453]
 
int lstar [100]
 
int field1900_1909 [10]
 
int nbsio
 
int nwprsm
 
int nprsm
 
int nbsi
 
int ias
 
int itypen
 
int icoup
 
int mspin
 
int iunben
 
int field1919_2048 [130]
 
int lct [201]
 End of Header. More...
 
int lsrf [201]
 
int ndata [201][4]
 
int ndrec
 
int irasi
 
int irpsm
 
int ircnd
 
int headerBlock [50000]
 

Private Member Functions

 File29 (const File29 &)
 
File29operator= (const File29 &)
 
 File29 ()
 
void analyseHeader ()
 
long readHeader (long blockNo)
 

Static Private Member Functions

static void printStderr (const char *text)
 

Private Attributes

istreamBLK input
 
long actualHeaderBlock
 
long nextHeaderBlock
 
int numSteps
 
void(* dumper )(const char *)
 
ino_t d_inode
 
dev_t d_device
 
int d_numDrops [50000]
 
DropRecd_actDrop
 
int d_lastDropStep
 
int d_numActDrops
 
float d_elimSizeFactor
 

Member Typedef Documentation

◆ float32

typedef float covise::File29::float32

◆ int32

typedef int covise::File29::int32

Constructor & Destructor Documentation

◆ File29() [1/3]

covise::File29::File29 ( const File29 )
private

◆ File29() [2/3]

covise::File29::File29 ( )
private

◆ ~File29()

File29::~File29 ( )

◆ File29() [3/3]

File29::File29 ( int  fd,
void(*)(const char *)  dumpFunct = NULL 
)

NEW starting v3100: scan for blocks

Member Function Documentation

◆ analyseHeader()

void File29::analyseHeader ( )
private

Cell Data

Surface Data

◆ findHeaders()

void File29::findHeaders ( )

◆ get_choice()

ChoiceList * File29::get_choice ( const char **  scalarName,
int  maxList 
) const
virtual

Implements covise::StarFile.

◆ get_num_steps()

int covise::File29::get_num_steps ( )
inline

◆ getNumDrops()

int covise::File29::getNumDrops ( int  step_no) const
inline

◆ getRealTime()

float File29::getRealTime ( int  step)

◆ getVertexCoordinates()

int File29::getVertexCoordinates ( int  step,
float *  x,
float *  y,
float *  z,
int *  len 
)

◆ isFile()

int File29::isFile ( const char *  filename)

check whether this is the file we read

◆ isValid()

int covise::File29::isValid ( )
inline

◆ operator=()

File29 & covise::File29::operator= ( const File29 )
private

◆ printStderr()

void File29::printStderr ( const char *  text)
staticprivate

◆ readField()

int covise::File29::readField ( int  step,
int  field,
int *  starToCov,
int  elements,
float *  f1,
float *  f2,
float *  f3 
)

◆ readHeader()

long File29::readHeader ( long  blockNo)
private

◆ setDumper()

void File29::setDumper ( void(*)(const char *)  newDumper)

◆ skip_to_field()

int covise::File29::skip_to_field ( int  fieldNo)

◆ skip_to_next_field()

long File29::skip_to_next_field ( )

◆ skip_to_step()

long File29::skip_to_step ( int  stepNo)

◆ skip_to_time()

int covise::File29::skip_to_time ( float  time)

Member Data Documentation

◆ actualHeaderBlock

long covise::File29::actualHeaderBlock
private

◆ d_actDrop

DropRec* covise::File29::d_actDrop
private

◆ d_device

dev_t covise::File29::d_device
private

◆ d_elimSizeFactor

float covise::File29::d_elimSizeFactor
private

◆ d_inode

ino_t covise::File29::d_inode
private

◆ d_lastDropStep

int covise::File29::d_lastDropStep
private

◆ d_numActDrops

int covise::File29::d_numActDrops
private

◆ d_numDrops

int covise::File29::d_numDrops[50000]
private

◆ dumper

void(* covise::File29::dumper) (const char *)
private

◆ field100

int covise::File29::field100

◆ field1095_1345

int covise::File29::field1095_1345[251]

◆ field1347_1799

int covise::File29::field1347_1799[453]

◆ field148_199

int covise::File29::field148_199[52]

◆ field1900_1909

int covise::File29::field1900_1909[10]

◆ field1919_2048

int covise::File29::field1919_2048[130]

◆ field45_56

int covise::File29::field45_56[12]

◆ field75_90

int covise::File29::field75_90[16]

◆ field94_98

int covise::File29::field94_98[5]

◆ headerBlock

int covise::File29::headerBlock[50000]

◆ ias

int covise::File29::ias

◆ icoup

int covise::File29::icoup

◆ input

istreamBLK covise::File29::input
private

◆ irasi

int covise::File29::irasi

◆ ircnd

int covise::File29::ircnd

◆ irpsm

int covise::File29::irpsm

◆ iter

int covise::File29::iter

◆ itypen

int covise::File29::itypen

◆ iunben

int covise::File29::iunben

◆ lct

int covise::File29::lct[201]

End of Header.

◆ lct1_6

int covise::File29::lct1_6

◆ lct20

int covise::File29::lct20

◆ lct_field1

int covise::File29::lct_field1[12]

◆ lct_field2

int covise::File29::lct_field2[3]

◆ lct_field3

int covise::File29::lct_field3[47]

◆ lmvgrd

int covise::File29::lmvgrd

◆ lsrf

int covise::File29::lsrf[201]

◆ lsrf_field1

int covise::File29::lsrf_field1[17]

◆ lsrf_field2

int covise::File29::lsrf_field2[47]

◆ lsrf_field3

int covise::File29::lsrf_field3[47]

◆ lstar

int covise::File29::lstar[100]

◆ lvers

int covise::File29::lvers

◆ materials

float covise::File29::materials[799]

◆ mspin

int covise::File29::mspin

◆ nbb

int covise::File29::nbb

◆ nbc

int covise::File29::nbc

◆ nbcut

int covise::File29::nbcut

◆ nbcyc

int covise::File29::nbcyc

◆ nbs

int covise::File29::nbs

◆ nbsi

int covise::File29::nbsi

◆ nbsio

int covise::File29::nbsio

◆ nbw

int covise::File29::nbw

◆ ncell

int covise::File29::ncell

◆ ncitem

int covise::File29::ncitem

◆ ndata

int covise::File29::ndata[201][4]

◆ ndrec

int covise::File29::ndrec

◆ ndrop9

int covise::File29::ndrop9

◆ ndrop9_

int covise::File29::ndrop9_

◆ nextHeaderBlock

long covise::File29::nextHeaderBlock
private

◆ nnode

int covise::File29::nnode

◆ nprsm

int covise::File29::nprsm

◆ nsitem

int covise::File29::nsitem

◆ nsmat

int covise::File29::nsmat

◆ nsol

int covise::File29::nsol

◆ ntcell

int covise::File29::ntcell

◆ numcon

int covise::File29::numcon

◆ nummat

int covise::File29::nummat

◆ numSteps

int covise::File29::numSteps
private

◆ nvitem

int covise::File29::nvitem

◆ nwprsm

int covise::File29::nwprsm

◆ time

float covise::File29::time

◆ title

char covise::File29::title[52]

The documentation for this class was generated from the following files: