Diffpack Documentation

(Functionality not available, requires installation of an additional Diffpack Toolbox)


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

GridFilterCore Class Reference

grid filter core. More...

#include <GridFilterCore.h>

Inheritance diagram for GridFilterCore::

HandleId AbaqusFilterCore AnsysFilterCore NastranFilterCore AnsysInFilterCore AnsysOutFilterCore AnsysOutFilterBlockedCore AnsysOutFilterUnBlockedCore List of all members.

Public Types

enum  type {
  s_int, s_real, s_String, s_empty,
  s_unknown
}

Public Methods

 GridFilterCore ()
virtual ~GridFilterCore ()
virtual void import2dp (const String &import_file_name, GridFE &grid_, const String &log_file_name, const String &bo_ind_file_name, bool make_logfile=false)

Protected Methods

void rebindFile ()
virtual void beforeRedim ()=0
void setImportName (const String &import_name)
void setNoBoInd (int i)
void setNoMaterials (int i)
void newBoInd (const String &label, int &nbind)
void growNoNodes (int import_node_number)
void growNoElms (int import_element_number)
void setElmTypeIfNew (String &import_elm_name, String &dp_elm_name, int nne_, int nsd_)
virtual void afterRedim ()=0
int getNoSpaceDim () const
int getNoNodes () const
int getNoElms () const
int getNoBoInd () const
int getNoElmTypes () const
int getNoNodesInElms () const
int getMaxNoNodesInElms () const
int getNoMaterials () const
void setCoords (int import_node_number, real x, real y=0, real z=0)
void newLabel (String &label, const real value1=0, const real value2=0, const real value3=0, const real value4=0)
void setBoIndN (const String &label, int nbind, int node_number)
void setBoIndE (const String &label, int nbind, int element_number)
void setBoIndToAllNodesInElm (int nbind, int element_number)
bool contains (const String &name, bool from_start_of_line=false)
void checkFormat (const String &name)
void tuneNumData (String &buf)
int numberOf (const String &name, const String &line)
GridFilterCore :: type stringType (String name)
void split (VecSimple(String) &tokens, String line, int split_size)
void split (VecSimple(String) &tokens, String line, const char split_char)

Protected Attributes

VecSimple(int) dp_node
VecSimple(int) dp_element
VecSimple(Stringbo_ind
Is importfile
Handle(GridFEgrid

Detailed Description

grid filter core.

NAME: GridFilterCore - grid filter core

DESCRIPTION:

The class is the base class for the translation from different analysis programms to a finite element grid. It creates a "GridFE" object based on data from different analysis programms.


Member Enumeration Documentation

enum GridFilterCore::type
 

Enumeration values:
s_int  
s_real  
s_String  
s_empty  
s_unknown  


Constructor & Destructor Documentation

GridFilterCore::GridFilterCore ( )
 

The class has an empty constructor.

GridFilterCore::~GridFilterCore ( ) [inline, virtual]
 


Member Function Documentation

void GridFilterCore::afterRedim ( ) [protected, pure virtual]
 

this function must be implemented by all sub classes. It is called by this class after the redim function.

void GridFilterCore::beforeRedim ( ) [protected, pure virtual]
 

this function must be implemented by all sub classes. It is called by this class before the redim function.

void GridFilterCore::checkFormat ( const String & name ) [protected]
 

this function will print an error if the current line in the importfile do not contain "name".

bool GridFilterCore::contains ( const String & name,
bool from_start_of_line = false ) [protected]
 

returns true if next line in the importfile contains "name".

int GridFilterCore::getMaxNoNodesInElms ( ) const [inline, protected]
 

get the maximum number of nodes in an element.

int GridFilterCore::getNoBoInd ( ) const [inline, protected]
 

get the number of boundary indicators in the grid.

int GridFilterCore::getNoElmTypes ( ) const [inline, protected]
 

get the number of elements types in the grid.

int GridFilterCore::getNoElms ( ) const [inline, protected]
 

get the number of elements in the grid.

int GridFilterCore::getNoMaterials ( ) const [inline, protected]
 

get number of material types in the grid.

int GridFilterCore::getNoNodes ( ) const [inline, protected]
 

get the number of nodes in the grid.

int GridFilterCore::getNoNodesInElms ( ) const [inline, protected]
 

get the number of nodes in an element.

int GridFilterCore::getNoSpaceDim ( ) const [inline, protected]
 

get the number of space dimensions in the grid.

void GridFilterCore::growNoElms ( int import_element_number ) [protected]
 

this function sets number of elements and fills the dp_element array. Use this function for every element.

void GridFilterCore::growNoNodes ( int import_node_number ) [protected]
 

this function sets number of nodes and fills the dp_node array. Use this function for every node.

void GridFilterCore::import2dp ( const String & import_file_name,
GridFE & grid_,
const String & log_file_name,
const String & bo_ind_file_name,
bool make_logfile = false ) [virtual]
 

this is the main function for the translation from different analysis programms to a finite element grid (GridFE).

void GridFilterCore::newBoInd ( const String & label,
int & nbind ) [protected]
 

set "name" in the boInd array, if boInd do not contain "name".

void GridFilterCore::newLabel ( String & label,
const real value1 = 0,
const real value2 = 0,
const real value3 = 0,
const real value4 = 0 ) [protected]
 

swicths the default "label" with the new "label" in the boundary indicators file.

int GridFilterCore::numberOf ( const String & name,
const String & line ) [protected]
 

returns number of "name" in the text string "line".

void GridFilterCore::rebindFile ( ) [protected]
 

rebind importfile. Use this function if you need to read the importfile more than ones.

void GridFilterCore::setBoIndE ( const String & label,
int nbind,
int element_number ) [protected]
 

sets boundary indicator "label" to one element.

void GridFilterCore::setBoIndN ( const String & label,
int nbind,
int node_number ) [protected]
 

sets boundary indicator "label" to one node.

void GridFilterCore::setBoIndToAllNodesInElm ( int nbind,
int element_number ) [protected]
 

set boundary indicator "i" to all nodes in element.

void GridFilterCore::setCoords ( int import_node_number,
real x,
real y = 0,
real z = 0 ) [protected]
 

sets the one coordinate in the GridFE object.

void GridFilterCore::setElmTypeIfNew ( String & import_elm_name,
String & dp_elm_name,
int nne_,
int nsd_ ) [protected]
 

this function sets number of element types. Use this function for every element type.

void GridFilterCore::setImportName ( const String & import_name ) [protected]
 

name of the analys program. The logfile uses this name.

void GridFilterCore::setNoBoInd ( int i ) [inline, protected]
 

set the number of boundary indicators in the grid.

void GridFilterCore::setNoMaterials ( int i ) [inline, protected]
 

set number of material types in the grid.

void GridFilterCore::split ( VecSimple(String) & tokens,
String line,
const char split_char ) [protected]
 

See documentation of one of the overloaded functions.

void GridFilterCore::split ( VecSimple(String) & tokens,
String line,
int split_size ) [protected]
 

splits a String into tokens.

GridFilterCore::type GridFilterCore::stringType ( String name ) [protected]
 

returns s_int, s_real, s_String, s_empty or s_unknown, if the String contains an int, real, String, empty or unknown.

void GridFilterCore::tuneNumData ( String & buf ) [protected]
 


Member Data Documentation

VecSimple(String) GridFilterCore::bo_ind [protected]
 

VecSimple(int) GridFilterCore::dp_element [protected]
 

VecSimple(int) GridFilterCore::dp_node [protected]
 

Handle(GridFE) GridFilterCore::grid [protected]
 

Is GridFilterCore::importfile [protected]
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.