Raw reader structure. More...
#include <ABAQUSCore.H>

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< point > | points_ |
| Locations of the points (nodes). | |
| DynamicList< label > | nodeIds_ |
| The 1-based abaqus Id for the point (node). | |
| DynamicList< labelList > | connectivity_ |
| The element connectivity. | |
| DynamicList< label > | elemIds_ |
| The 1-based abaqus Id for the element. | |
| DynamicList< ABAQUSCore::shapeType > | elemTypes_ |
| The element types. | |
| DynamicList< label > | elsetIds_ |
| The element set ids. | |
| HashTable< label, string > | elsetMap_ |
| Mapping of elem set names. | |
Raw reader structure.
Definition at line 381 of file ABAQUSCore.H.
|
inlineexplicit |
Default construct without verbosity.
Definition at line 440 of file ABAQUSCore.H.
References verbose_.
|
inline |
Clear out contents.
Definition at line 451 of file ABAQUSCore.H.
References connectivity_, elemIds_, elemTypes_, elsetIds_, elsetMap_, nodeIds_, and points_.
| 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().


| void read | ( | ISstream & | is | ) |
Read an abaqus input file.
Definition at line 524 of file ABAQUSCore.C.
References addNewElset(), clear(), ABAQUSCore::getElementType(), Foam::getIdentifier(), ISstream::getLine(), IOstream::good(), Foam::Info, Foam::InfoErr, Foam::nl, ABAQUSCore::nPoints(), readElements(), readPoints(), readSurfaceElements(), Foam::skipComments(), string::starts_with(), Foam::stringOps::upper(), and verbose_.
Referenced by ABAQUSsurfaceFormat< Face >::read().


| Foam::label readPoints | ( | ISstream & | is | ) |
Read entries within a "*Nodes" section.
Appends to points and nodeIds lists.
Definition at line 309 of file ABAQUSCore.C.
References ISstream::getLine(), nodeIds_, p, ISstream::peek(), and points_.
Referenced by read().


| 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.
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().


| 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.
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().


| 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().


| 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().


| 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().


| bool verbose_ |
Additional verbosity.
Definition at line 388 of file ABAQUSCore.H.
Referenced by read(), and readHelper().
| 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().
| 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().
| 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().
| 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().
| DynamicList<ABAQUSCore::shapeType> elemTypes_ |
The element types.
Definition at line 422 of file ABAQUSCore.H.
Referenced by clear(), purge_solids(), readElements(), and readSurfaceElements().
| 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().
Mapping of elem set names.
Definition at line 432 of file ABAQUSCore.H.
Referenced by addNewElset(), clear(), and ABAQUSsurfaceFormat< Face >::read().