FibreWriter< DIM > Class Template Reference

#include <FibreWriter.hpp>

Collaboration diagram for FibreWriter< DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FibreWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
 ~FibreWriter ()
void WriteAllAxi (const std::vector< c_vector< double, DIM > > &direction)
void SetWriteFileAsBinary ()

Private Attributes

OutputFileHandlermpOutputFileHandler
std::string mBaseName
bool mFileIsBinary


Detailed Description

template<unsigned DIM>
class FibreWriter< DIM >

A class for writing .axi files (files which define the fibre direction for each element) and .ortho files (files which define the fibre, sheet and normal directions for each element.

Definition at line 46 of file FibreWriter.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
FibreWriter< DIM >::FibreWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool  clearOutputDir = true 
) [inline]

Create a new FibreWriter.

Parameters:
rDirectory the directory in which to write the fibre to file
rBaseName the base name of the files in which to write the fibre data
clearOutputDir whether to clean the directory (defaults to true)

Definition at line 33 of file FibreWriter.cpp.

References FibreWriter< DIM >::mpOutputFileHandler.

template<unsigned DIM>
FibreWriter< DIM >::~FibreWriter (  )  [inline]

Destructor closes file.

Definition at line 43 of file FibreWriter.cpp.

References FibreWriter< DIM >::mpOutputFileHandler.


Member Function Documentation

template<unsigned DIM>
void FibreWriter< DIM >::WriteAllAxi ( const std::vector< c_vector< double, DIM > > &  direction  )  [inline]

Writes all axisymmetric vectors to the file.

Parameters:
direction an vector of fibre direction vectors

Definition at line 49 of file FibreWriter.cpp.

References ChasteBuildInfo::GetProvenanceString(), FibreWriter< DIM >::mBaseName, FibreWriter< DIM >::mpOutputFileHandler, and OutputFileHandler::OpenOutputFile().

template<unsigned DIM>
void FibreWriter< DIM >::SetWriteFileAsBinary (  )  [inline]

Switch to write binary fibre file

(set to write ascii files in the constructor)

Definition at line 80 of file FibreWriter.cpp.

References FibreWriter< DIM >::mFileIsBinary.


Member Data Documentation

template<unsigned DIM>
OutputFileHandler* FibreWriter< DIM >::mpOutputFileHandler [private]

template<unsigned DIM>
std::string FibreWriter< DIM >::mBaseName [private]

Base name for the input files

Definition at line 51 of file FibreWriter.hpp.

Referenced by FibreWriter< DIM >::WriteAllAxi().

template<unsigned DIM>
bool FibreWriter< DIM >::mFileIsBinary [private]

Whether all data is to be written as binary

Definition at line 52 of file FibreWriter.hpp.

Referenced by FibreWriter< DIM >::SetWriteFileAsBinary().


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

Generated on Tue May 31 14:33:25 2011 for Chaste by  doxygen 1.5.5