ABAQUSCore::readHelper Struct Reference

Raw reader structure. More...

Collaboration diagram for ABAQUSCore::readHelper:
[legend]

Public Member Functions

 readHelper (bool verbosity=false)
 Default construct without verbosity. More...
 
void clear ()
 Clear out contents. More...
 
label addNewElset (const std::string &setName)
 Add a new element set name or return an existing one. More...
 
void read (ISstream &is)
 Read an abaqus input file. More...
 
label readPoints (ISstream &is)
 Read entries within a "*Nodes" section. More...
 
label readElements (ISstream &is, const ABAQUSCore::shapeType shape, const label setId=0)
 Read entries within an "*Element" section. More...
 
label readSurfaceElements (ISstream &is, const label setId=0)
 Read elements within an "*Surface" section. More...
 
void purge_solids ()
 Remove non-shell elements and compact the points. More...
 
void compact_nodes ()
 Compact unused points and relabel connectivity. More...
 
void renumber_elements_1to0 ()
 Renumber elements from 1-based to 0-based. More...
 

Public Attributes

bool verbose_
 Additional verbosity. More...
 
DynamicList< pointpoints_
 Locations of the points (nodes) More...
 
DynamicList< label > nodeIds_
 The 1-based abaqus Id for the point (node) More...
 
DynamicList< labelListconnectivity_
 The element connectivity. More...
 
DynamicList< label > elemIds_
 The 1-based abaqus Id for the element. More...
 
DynamicList< ABAQUSCore::shapeTypeelemTypes_
 The element types. More...
 
DynamicList< label > elsetIds_
 The element set ids. More...
 
HashTable< label, stringelsetMap_
 Mapping of elem set names. More...
 

Detailed Description

Raw reader structure.

Definition at line 357 of file ABAQUSCore.H.

Constructor & Destructor Documentation

◆ readHelper()

readHelper ( bool  verbosity = false)
inlineexplicit

Default construct without verbosity.

Definition at line 397 of file ABAQUSCore.H.

Member Function Documentation

◆ clear()

void clear ( )
inline

Clear out contents.

Definition at line 406 of file ABAQUSCore.H.

References DynamicList< T, SizeMin >::clear(), ABAQUSCore::readHelper::connectivity_, ABAQUSCore::readHelper::elemIds_, ABAQUSCore::readHelper::elemTypes_, ABAQUSCore::readHelper::elsetIds_, ABAQUSCore::readHelper::elsetMap_, ABAQUSCore::readHelper::nodeIds_, and ABAQUSCore::readHelper::points_.

Here is the call graph for this function:

◆ addNewElset()

Foam::label addNewElset ( const std::string &  setName)

Add a new element set name or return an existing one.

Case-insensitive.

Definition at line 267 of file ABAQUSCore.C.

References forAllConstIters, and Foam::stringOps::upper().

Here is the call graph for this function:

◆ read()

void read ( ISstream is)

Read an abaqus input file.

Definition at line 530 of file ABAQUSCore.C.

References clear(), Foam::getIdentifier(), ISstream::getLine(), IOstream::good(), Foam::Info, Foam::InfoErr, Foam::nl, nPoints, Foam::skipComments(), string::starts_with(), and Foam::stringOps::upper().

Referenced by ABAQUSsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readPoints()

Foam::label readPoints ( ISstream is)

Read entries within a "*Nodes" section.

Appends to points and nodeIds lists.

Returns
the number of points read

Definition at line 315 of file ABAQUSCore.C.

References ISstream::getLine(), p, and ISstream::peek().

Here is the call graph for this function:

◆ readElements()

Foam::label readElements ( ISstream is,
const ABAQUSCore::shapeType  shape,
const label  setId = 0 
)

Read entries within an "*Element" section.

If the shape is known/supported, appends to connectivity, elemType, elemIds lists.

Returns
the number of elements read

Definition at line 352 of file ABAQUSCore.C.

References Foam::appendCsvLabels(), ISstream::getLine(), nPoints, ISstream::peek(), and Foam::Zero.

Here is the call graph for this function:

◆ readSurfaceElements()

Foam::label readSurfaceElements ( ISstream is,
const label  setId = 0 
)

Read elements within an "*Surface" section.

If the shape is known/supported, appends to connectivity, elemType, elemIds lists.

Returns
the number of elements read

Definition at line 407 of file ABAQUSCore.C.

References ABAQUSCore::encodeSolidId(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, ISstream::getLine(), hex, cellModel::HEX, Foam::Info, cellModel::modelFaces(), Foam::nl, ISstream::peek(), cellModel::PRISM, dictionary::Searcher< Const >::ref(), UList< T >::size(), cellModel::TET, Foam::stringOps::upper(), and kkLOmega::validate().

Here is the call graph for this function:

◆ purge_solids()

void purge_solids ( )

Remove non-shell elements and compact the points.

Definition at line 658 of file ABAQUSCore.C.

References forAll, Foam::inplaceSubset(), and List< T >::set().

Referenced by ABAQUSsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compact_nodes()

void compact_nodes ( )

Compact unused points and relabel connectivity.

Definition at line 684 of file ABAQUSCore.C.

References HashTable< T, Key, Hash >::clear(), forAll, HashTable< T, Key, Hash >::found(), Foam::inplaceRenumber(), Foam::inplaceReorder(), Foam::invert(), nPoints, and bitSet::set().

Referenced by ABAQUSsurfaceFormat< Face >::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumber_elements_1to0()

void renumber_elements_1to0 ( )

Renumber elements from 1-based to 0-based.

Definition at line 778 of file ABAQUSCore.C.

Referenced by ABAQUSsurfaceFormat< Face >::read().

Here is the caller graph for this function:

Member Data Documentation

◆ verbose_

bool verbose_

Additional verbosity.

Definition at line 362 of file ABAQUSCore.H.

◆ points_

DynamicList<point> points_

Locations of the points (nodes)

Definition at line 368 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().

◆ nodeIds_

DynamicList<label> nodeIds_

The 1-based abaqus Id for the point (node)

Definition at line 371 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear().

◆ connectivity_

DynamicList<labelList> connectivity_

The element connectivity.

Initially uses the abaqus node Id (1-based) but remapped to 0-based compact form later.

Definition at line 379 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().

◆ elemIds_

DynamicList<label> elemIds_

The 1-based abaqus Id for the element.

Definition at line 382 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().

◆ elemTypes_

The element types.

Definition at line 385 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear().

◆ elsetIds_

DynamicList<label> elsetIds_

The element set ids.

Definition at line 388 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().

◆ elsetMap_

HashTable<label, string> elsetMap_

Mapping of elem set names.

Definition at line 391 of file ABAQUSCore.H.

Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().


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