Loading...
Searching...
No Matches
ABAQUSCore::readHelper Struct Reference

Raw reader structure. More...

#include <ABAQUSCore.H>

Collaboration diagram for ABAQUSCore::readHelper:

Public Member Functions

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

Public Attributes

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

Detailed Description

Raw reader structure.

Definition at line 381 of file ABAQUSCore.H.

Constructor & Destructor Documentation

◆ readHelper()

readHelper ( bool verbosity = false)
inlineexplicit

Default construct without verbosity.

Definition at line 440 of file ABAQUSCore.H.

References verbose_.

Member Function Documentation

◆ clear()

void clear ( )
inline

Clear out contents.

Definition at line 451 of file ABAQUSCore.H.

References connectivity_, elemIds_, elemTypes_, elsetIds_, elsetMap_, nodeIds_, and points_.

◆ addNewElset()

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

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

Case-insensitive.

Definition at line 261 of file ABAQUSCore.C.

References elsetMap_, forAllConstIters, string::null, and Foam::stringOps::upper().

Referenced by read().

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

◆ read()

void read ( ISstream & is)

◆ 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 309 of file ABAQUSCore.C.

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

Referenced by read().

Here is the call graph for this function:
Here is the caller 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 346 of file ABAQUSCore.C.

References Foam::appendCsvLabels(), connectivity_, elemIds_, elemTypes_, elsetIds_, ISstream::getLine(), ABAQUSCore::nPoints(), ISstream::peek(), and Foam::Zero.

Referenced by read().

Here is the call graph for this function:
Here is the caller 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 401 of file ABAQUSCore.C.

References ABAQUSCore::abaqusHex, ABAQUSCore::abaqusPrism, ABAQUSCore::abaqusQuad, ABAQUSCore::abaqusTet, ABAQUSCore::abaqusToFoamFaceAddr(), ABAQUSCore::abaqusTria, ABAQUSCore::abaqusUnknownShape, connectivity_, elemIds_, elemTypes_, elsetIds_, ABAQUSCore::encodeSolidId(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, ISstream::getLine(), cellModel::HEX, Foam::hex(), Foam::Info, cellModel::modelFaces(), Foam::nl, ISstream::peek(), cellModel::PRISM, cellModel::ref(), UList< T >::size(), cellModel::TET, Foam::stringOps::upper(), and word::validate().

Referenced by read().

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

◆ purge_solids()

void purge_solids ( )

Remove non-shell elements and compact the points.

Definition at line 652 of file ABAQUSCore.C.

References UList< T >::any(), connectivity_, elemIds_, elemTypes_, elsetIds_, forAll, Foam::inplaceSubset(), ABAQUSCore::isSolidType(), ABAQUSCore::isValidType(), 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 678 of file ABAQUSCore.C.

References connectivity_, forAll, HashTable< T, Key, Hash >::found(), Foam::inplaceRenumber(), Foam::inplaceReorder(), Foam::invert(), nodeIds_, ABAQUSCore::nPoints(), points_, 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 772 of file ABAQUSCore.C.

References elemIds_, and ABAQUSCore::renumber0_elemId().

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

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

Member Data Documentation

◆ verbose_

bool verbose_

Additional verbosity.

Definition at line 388 of file ABAQUSCore.H.

Referenced by read(), and readHelper().

◆ points_

DynamicList<point> points_

Locations of the points (nodes).

Definition at line 396 of file ABAQUSCore.H.

Referenced by clear(), compact_nodes(), ABAQUSsurfaceFormat< Face >::read(), and readPoints().

◆ nodeIds_

DynamicList<label> nodeIds_

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

Definition at line 401 of file ABAQUSCore.H.

Referenced by clear(), compact_nodes(), and readPoints().

◆ 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 412 of file ABAQUSCore.H.

Referenced by clear(), compact_nodes(), purge_solids(), ABAQUSsurfaceFormat< Face >::read(), readElements(), and readSurfaceElements().

◆ elemIds_

DynamicList<label> elemIds_

The 1-based abaqus Id for the element.

Definition at line 417 of file ABAQUSCore.H.

Referenced by clear(), purge_solids(), ABAQUSsurfaceFormat< Face >::read(), readElements(), readSurfaceElements(), and renumber_elements_1to0().

◆ elemTypes_

The element types.

Definition at line 422 of file ABAQUSCore.H.

Referenced by clear(), purge_solids(), readElements(), and readSurfaceElements().

◆ elsetIds_

DynamicList<label> elsetIds_

The element set ids.

Definition at line 427 of file ABAQUSCore.H.

Referenced by clear(), purge_solids(), ABAQUSsurfaceFormat< Face >::read(), readElements(), and readSurfaceElements().

◆ elsetMap_

HashTable<label, string> elsetMap_

Mapping of elem set names.

Definition at line 432 of file ABAQUSCore.H.

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


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