FDF Class Reference
[Input/Output]
#include <FDF.h>
Detailed Description
Enables working with files in the FDF Format.Class FDF manages for reading and writing file in FDF (Field Data File) format. This format is used for files containing fields (Solutions from finite element codes).
Public Member Functions | |
| void | Close () |
| Close FDF file. | |
| FDF (const string &file, int access) | |
| Constructor using file name. | |
| FDF () | |
| Default constructor. | |
| int | get (EdgeVect< double > &v, double &time) |
| Get an ElementVect instance from file with time value time. | |
| int | get (EdgeVect< double > &v) |
| Get EdgeVect instance v from file. | |
| int | get (SideVect< double > &v, double &time) |
| Get ElementVect instance v from file with time value time. | |
| int | get (SideVect< double > &v) |
| Get SideVect instance v from file. | |
| int | get (ElementVect< double > &v, double &time) |
| Get ElementVect instance v from file with time value time. | |
| int | get (ElementVect< double > &v) |
| Get ElementVect instance v from file. | |
| int | get (NodeVect< double > &v, double &time) |
| Get NodeVect instance v from file. | |
| int | get (NodeVect< double > &v) |
| Get NodeVect instance v from file. | |
| double | get (Vect< double > &v) |
| Get Vect v instance from file. | |
| int | getType () const |
| Return field type. | |
| void | Open (const string &file, int access) |
| Open an FDF file. | |
| void | Open () |
| Open an FDF file. | |
| void | put (const Vect< double > &v, const string &name="u", size_t nb_dof=1, double t=0, int type=NODE_FIELD) |
| Store Vect instance v in file with time value t. | |
| void | put (const SideVect< double > &v) |
| Store SideVect instance v in file. | |
| void | put (const ElementVect< double > &v) |
| Store ElementVect instance v in file. | |
| void | put (const NodeVect< double > &v) |
| Store NodeVect instance v in file. | |
| void | View (vector< double > &tm) |
| List all time step values stored in file. | |
| ~FDF () | |
| Destructor. | |
Constructor & Destructor Documentation
| FDF | ( | const string & | file, | |
| int | access | |||
| ) |
Constructor using file name.
- Parameters:
-
[in] file File name. [in] access Access code. This number is to be chosen among two enumerated values: - FDF_READ to read the FDF file
- FDF_WRITE to write on it
Member Function Documentation
| double get | ( | Vect< double > & | v | ) |
| void Open | ( | const string & | file, | |
| int | access | |||
| ) |
| void Open | ( | ) |
Open an FDF file.
Case where only file name has been previously given.
| void put | ( | const Vect< double > & | v, | |
| const string & | name = "u", |
|||
| size_t | nb_dof = 1, |
|||
| double | t = 0, |
|||
| int | type = NODE_FIELD | |||
| ) |
Store Vect instance v in file with time value t.
- Parameters:
-
[in] v Vect instance to store [in] name Name to assign to vector [in] nb_dof Number of degrees of freedom per entity (by node, side or element) [default: 1] [in] t Time value to store (default = 1) [in] type Type of vector to store (to choose among enumerated values NODE_FIELD, ELEMENT_FIELD, or SIDE_FIELD)