Raw reader structure. More...
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< point > | points_ |
Locations of the points (nodes) More... | |
DynamicList< label > | nodeIds_ |
The 1-based abaqus Id for the point (node) More... | |
DynamicList< labelList > | connectivity_ |
The element connectivity. More... | |
DynamicList< label > | elemIds_ |
The 1-based abaqus Id for the element. More... | |
DynamicList< ABAQUSCore::shapeType > | elemTypes_ |
The element types. More... | |
DynamicList< label > | elsetIds_ |
The element set ids. More... | |
HashTable< label, string > | elsetMap_ |
Mapping of elem set names. More... | |
Raw reader structure.
Definition at line 381 of file ABAQUSCore.H.
|
inlineexplicit |
Default construct without verbosity.
Definition at line 440 of file ABAQUSCore.H.
|
inline |
Clear out contents.
Definition at line 451 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_.
Foam::label addNewElset | ( | const std::string & | setName | ) |
Add a new element set name or return an existing one.
Case-insensitive.
Definition at line 262 of file ABAQUSCore.C.
References forAllConstIters(), string::null, and Foam::stringOps::upper().
void read | ( | ISstream & | is | ) |
Read an abaqus input file.
Definition at line 525 of file ABAQUSCore.C.
References clear(), Foam::getIdentifier(), ISstream::getLine(), IOstream::good(), Foam::Info, Foam::InfoErr, Foam::nl, ABAQUSCore::nPoints(), Foam::skipComments(), string::starts_with(), and Foam::stringOps::upper().
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 310 of file ABAQUSCore.C.
References ISstream::getLine(), p, and ISstream::peek().
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 347 of file ABAQUSCore.C.
References Foam::appendCsvLabels(), ISstream::getLine(), ABAQUSCore::nPoints(), ISstream::peek(), and Foam::Zero.
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 402 of file ABAQUSCore.C.
References 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().
void purge_solids | ( | ) |
Remove non-shell elements and compact the points.
Definition at line 652 of file ABAQUSCore.C.
References forAll, Foam::inplaceSubset(), Foam::BitOps::select(), 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 forAll, Foam::inplaceRenumber(), Foam::inplaceReorder(), Foam::invert(), nPoints, 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.
Referenced by ABAQUSsurfaceFormat< Face >::read().
bool verbose_ |
Additional verbosity.
Definition at line 388 of file ABAQUSCore.H.
DynamicList<point> points_ |
Locations of the points (nodes)
Definition at line 396 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().
DynamicList<label> nodeIds_ |
The 1-based abaqus Id for the point (node)
Definition at line 401 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear().
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 ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().
DynamicList<label> elemIds_ |
The 1-based abaqus Id for the element.
Definition at line 417 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().
DynamicList<ABAQUSCore::shapeType> elemTypes_ |
The element types.
Definition at line 422 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear().
DynamicList<label> elsetIds_ |
The element set ids.
Definition at line 427 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().
Mapping of elem set names.
Definition at line 432 of file ABAQUSCore.H.
Referenced by ABAQUSCore::readHelper::clear(), and ABAQUSsurfaceFormat< Face >::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.