xc
|
Three-dimensional array of pointers to elements. More...
#include <ElemPtrArray3d.h>
Public Member Functions | |
ElemPtrArray3d (const size_t n_layers=0, const ElemPtrArray &m=ElemPtrArray()) | |
Default constructor. | |
ElemPtrArray3d (const size_t, const size_t, const size_t) | |
Constructor. | |
Element * | findElement (const int &) |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter. More... | |
const Element * | findElement (const int &) const |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter. More... | |
Element * | getNearestElement (const Pos3d &p) |
Returns the element closest to the given point. | |
const Element * | getNearestElement (const Pos3d &p) const |
Returns the element closest to the given point. | |
boost::python::list | getPyElementList (void) const |
Returns a Python list containing the elements of this array. | |
void | vector2dPointLoadGlobal (const Vector &, const Vector &) |
Define an elemental concentrated load at position p with value v expressed in global coordinates. More... | |
void | vector2dPointLoadLocal (const Vector &, const Vector &) |
Define an elemental concentrated load at position p with value v expressed in local (element) coordinates. More... | |
void | vector3dPointLoadGlobal (const Vector &, const Vector &) |
Define an elemental concentrated load at position p with value v expressed in global coordinates. More... | |
void | vector3dPointLoadLocal (const Vector &, const Vector &) |
Define an elemental concentrated load at position p with value v expressed in local (element) coordinates. More... | |
std::set< const Element * > | getConnectedElements (const Node *) const |
Return the elements connected to the node being passed as parameter. | |
std::set< Element * > | getConnectedElements (const Node *) |
Return the elements connected to the node being passed as parameter. | |
boost::python::list | getConnectedElementsPy (const Node *) |
Return the elements connected to the node being passed as parameter. | |
Public Member Functions inherited from XC::PtrArray3dBase< ElemPtrArray > | |
PtrArray3dBase (const size_t &n_layers=0) | |
Default constructor. | |
PtrArray3dBase (const size_t &n_layers, const ElemPtrArray &) | |
Constructor. | |
PtrArray3dBase (const size_t &, const size_t &, const size_t &) | |
Constructor. | |
void | resize (const size_t &) |
Resize the array. | |
void | resize (const size_t &, const size_t &, const size_t &, const value_type &v=value_type()) |
Resize the array. | |
size_t | NumPtrs (void) const |
Return the number of elements of the array. | |
void | clearAll (void) |
Clears all. | |
void | dim (const size_t &, const size_t &, const size_t &) |
Matrix dimensions. | |
std::vector< int > | getLayerObjectsTags (const size_t &) |
Return the identifiers of the objects in the layer. | |
std::vector< int > | getRowObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the row. | |
std::vector< int > | getRowsObjectsTags (const size_t &) |
Return the identifiers of the objects in the f-th rows. | |
std::vector< int > | getColumnObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the column. | |
std::vector< int > | getColumnsObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th columns. | |
std::vector< int > | getLayerInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the layer interior. | |
std::vector< int > | getRowInteriorObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the row interior. | |
std::vector< int > | getRowsInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th rows interior. | |
std::vector< int > | getColumnInteriorObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the c-th column interior. | |
std::vector< int > | getColumnsInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th columns interior. | |
std::vector< int > | getTagsInteriorObjs (void) |
Return the tabs of the inerior elements. | |
Public Member Functions inherited from Array3dBase< ElemPtrArray > | |
Array3dBase (const size_t &n_layers=0) | |
Default constructor. | |
Array3dBase (const size_t &n_layers, const ElemPtrArray &) | |
Constructor. | |
Array3dBase (const size_t &, const size_t &, const size_t &, const value_type &def_value=value_type()) | |
Constructor. | |
bool | check_range (const size_t &, const size_t &, const size_t &) const |
void | resize (const size_t &) |
Resize the array. | |
void | resize (const size_t &, const size_t &, const size_t &, const value_type &def_value=value_type()) |
Resize the array. | |
size_t | getNumberOfLayers (void) const |
size_t | getNumberOfRows (const size_t &layer=1) const |
size_t | getNumberOfColumns (const size_t &layer=1) const |
size_t | getNumberOfComponents (void) const |
Return the number of components in the container. | |
size_t | GetDim (void) const |
bool | isIRow (void) const |
Returns true if only index I varies. | |
bool | isJRow (void) const |
Returns true if only index J varies. | |
bool | isKRow (void) const |
Returns true if only index K varies. | |
bool | isIConstantLayer (void) const |
Returns true if the indexes that vary are los J y K. | |
bool | isJConstantLayer (void) const |
Returns true if the indexes that vary are los I y K. | |
bool | isKConstantLayer (void) const |
Returns true if the indexes that vary are los I y J. | |
size_t | NumPtrs (void) const |
Return the number of elements of the array. | |
bool | Null (void) const |
Returns true if it's empty or the pointers are null. | |
bool | HasNull (void) const |
Returns true if it's empty or some of the pointers are null. | |
void | clear (void) |
Clears container. | |
void | dim (const size_t &, const size_t &, const size_t &, const value_type &default_value=value_type()) |
Matrix dimensions. | |
const ElemPtrArray & | operator() (const size_t &layer) const |
Return the i-th layer. | |
ElemPtrArray & | operator() (const size_t &layer) |
Return the i-th layer. | |
const_reference | operator() (const size_t &i, const size_t &j, const size_t &k) const |
reference | operator() (const size_t &i, const size_t &j, const size_t &k) |
void | assign (const size_t &i, const size_t &j, const size_t &k, const bool &value) |
reference | getAtI (const size_t &i) |
const_reference | getAtI (const size_t &) const |
reference | getAtIJ (const size_t &, const size_t &) |
const_reference | getAtIJ (const size_t &, const size_t &) const |
value_type | getAtIJK (const size_t &, const size_t &, const size_t &) |
box_const_ref | getBoxConstRef (size_t layer=1, size_t f=1, size_t c=1) const |
box_const_ref | getBoxConstRef (const Array3dRange &rango) const |
constant_i_layer_const_ref | getConstantILayerConstRef (size_t layer=1, size_t f=1, size_t c=1) const |
constant_i_layer_const_ref | getConstantILayerConstRef (size_t layer, const RangoIndice &, const RangoIndice &) const |
constant_j_layer_const_ref | getConstantJLayerConstRef (size_t f=1, size_t layer=1, size_t c=1) const |
constant_j_layer_const_ref | getConstantJLayerConstRef (const RangoIndice &, const size_t &f, const RangoIndice &) const |
constant_k_layer_const_ref | getConstantKLayerConstRef (size_t c=1, size_t layer=1, size_t f=1) const |
constant_k_layer_const_ref | getConstantKLayerConstRef (const RangoIndice &, const RangoIndice &, const size_t &) const |
const_ref_i_row | getIRowConstRef (size_t f=1, size_t c=1) const |
const_ref_i_row | getIRowConstRef (const RangoIndice &, const size_t &f, const size_t &c) const |
const_ref_j_row | getJRowConstRef (size_t layer=1, size_t c=1) const |
const_ref_j_row | getJRowConstRef (const size_t &layer, const RangoIndice &, const size_t &c) const |
const_ref_k_row | getKRowConstRef (size_t layer=1, size_t f=1) const |
const_ref_k_row | getKRowConstRef (const size_t &layer, const size_t &f, const RangoIndice &) const |
box_var_ref | getBoxVarRef (size_t layer=1, size_t f=1, size_t c=1) |
box_var_ref | getBoxVarRef (const Array3dRange &) |
constant_i_layer_variable_ref | getConstantILayerVarRef (size_t layer=1, size_t f=1, size_t c=1) |
constant_i_layer_variable_ref | getConstantILayerVarRef (const size_t &layer, const RangoIndice &, const RangoIndice &) |
constant_j_layer_variable_ref | getConstantJLayerVarRef (size_t f=1, size_t layer=1, size_t c=1) |
constant_j_layer_variable_ref | getConstantJLayerVarRef (const RangoIndice &, const size_t &f, const RangoIndice &) |
constant_k_layer_variable_ref | getConstantKLayerVarRef (size_t c=1, size_t layer=1, size_t f=1) |
constant_k_layer_variable_ref | getConstantKLayerVarRef (const RangoIndice &, const RangoIndice &, const size_t &c) |
var_ref_i_row | getVarRefIRow (size_t f=1, size_t c=1) |
var_ref_i_row | getVarRefIRow (const RangoIndice &, const size_t &f, const size_t &c) |
var_ref_j_row | getVarRefJRow (size_t layer=1, size_t c=1) |
var_ref_j_row | getVarRefJRow (const size_t &layer, const RangoIndice &, const size_t &c) |
var_ref_k_row | getVarRefKRow (size_t layer=1, size_t f=1) |
var_ref_k_row | getVarRefKRow (const size_t &layer, const size_t &f, const RangoIndice &) |
void | putBox (size_t layer_offset, size_t row_offset, size_t offset_col, const Array3dBase< ElemPtrArray > &) |
Put in the array the array argument. | |
Public Member Functions inherited from CommandEntity | |
CommandEntity (CommandEntity *owr=nullptr) | |
Default constructor. | |
CommandEntity * | Owner (void) |
Return a pointer to the object owner. | |
const CommandEntity * | Owner (void) const |
Return un puntero al objeto propietario de ESTE. | |
const StandardOutputWrapper & | getStandardOutputWrapper (void) const |
Return the regular output stream wrapper. | |
StandardOutputWrapper & | getStandardOutputWrapper (void) |
Return the regular output stream wrapper. | |
const std::string & | getLogFileName (void) const |
Returns log file name. | |
void | setLogFileName (const std::string &) |
Sets log file name. | |
const std::string & | getErrFileName (void) const |
Returns err file name. | |
void | setErrFileName (const std::string &) |
Sets error file name. | |
const std::string & | getOutputFileName (void) const |
Returns regular output file name. | |
void | setOutputFileName (const std::string &) |
Sets regular output file name. | |
boost::python::object | evalPy (boost::python::object dict, const std::string &) |
Return the Python object that results from evaluating the argument. | |
boost::python::object | execPy (boost::python::object dict, const std::string &) |
Return the Python objects that results from executing the code in the string argument. | |
boost::python::object | execFilePy (boost::python::object dict, const std::string &) |
Return the Python object that results from executing the code in the file. | |
Public Member Functions inherited from EntityWithProperties | |
EntityWithProperties (EntityWithProperties *owr=nullptr) | |
Default constructor. | |
virtual bool | operator== (const EntityWithProperties &) const |
Comparison operator. | |
void | clearPyProps (void) |
Clear python properties map. | |
bool | hasPyProp (const std::string &) |
Returns true if property exists. | |
boost::python::object | getPyProp (const std::string &str) |
Return the Python object with the name being passed as parameter. | |
void | setPyProp (std::string str, boost::python::object val) |
Sets/appends a value tho the Python object's dictionary. | |
void | copyPropsFrom (const EntityWithProperties &) |
Copy the properties from the argument. | |
boost::python::list | getPropNames (void) const |
Return the names of the object properties weightings. | |
const PythonDict & | getPropertiesDict (void) const |
Return a std::map container with the properties of the object. | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary containing the object members values. | |
void | setPyDict (const boost::python::dict &) |
Set the values of the object members from a Python dictionary. | |
Public Member Functions inherited from EntityWithOwner | |
EntityWithOwner (EntityWithOwner *owr=nullptr) | |
Default constructor. | |
EntityWithOwner (const EntityWithOwner &) | |
Copy constructor. | |
EntityWithOwner & | operator= (const EntityWithOwner &) |
Assignment operator. | |
virtual bool | operator== (const EntityWithOwner &) const |
Comparison operator. | |
virtual | ~EntityWithOwner (void) |
Virtual destructor. | |
virtual std::string | getClassName (void) const |
Returns demangled class name. | |
void | set_owner (EntityWithOwner *owr) |
Assigns the owner of the object. | |
EntityWithOwner * | Owner (void) |
const EntityWithOwner * | Owner (void) const |
Additional Inherited Members | |
Public Types inherited from XC::PtrArray3dBase< ElemPtrArray > | |
typedef Array3dBase< ElemPtrArray >::value_type | value_type |
typedef Array3dBase< ElemPtrArray >::iterator | iterator |
Public Types inherited from Array3dBase< ElemPtrArray > | |
typedef ElemPtrArray ::value_type | value_type |
typedef ElemPtrArray ::reference | reference |
typedef ElemPtrArray ::const_reference | const_reference |
typedef std::vector< ElemPtrArray >::value_type | matrix_type |
typedef std::vector< ElemPtrArray >::iterator | iterator |
typedef std::vector< ElemPtrArray >::const_iterator | const_iterator |
typedef Array3dBoxConstRef< Array3dBase< ElemPtrArray > > | box_const_ref |
typedef ConstantILayerConstRef< Array3dBase< ElemPtrArray > > | constant_i_layer_const_ref |
typedef ConstantJLayerConstRef< Array3dBase< ElemPtrArray > > | constant_j_layer_const_ref |
typedef ConstantKLayerConstRef< Array3dBase< ElemPtrArray > > | constant_k_layer_const_ref |
typedef IRowConstRef< Array3dBase< ElemPtrArray > > | const_ref_i_row |
typedef JRowConstRef< Array3dBase< ElemPtrArray > > | const_ref_j_row |
typedef KRowConstRef< Array3dBase< ElemPtrArray > > | const_ref_k_row |
typedef Array3dBoxVarRef< Array3dBase< ElemPtrArray > > | box_var_ref |
typedef ConstantILayerVarRef< Array3dBase< ElemPtrArray > > | constant_i_layer_variable_ref |
typedef ConstantJLayerVarRef< Array3dBase< ElemPtrArray > > | constant_j_layer_variable_ref |
typedef ConstantKLayerVarRef< Array3dBase< ElemPtrArray > > | constant_k_layer_variable_ref |
typedef IRowVarRef< Array3dBase< ElemPtrArray > > | var_ref_i_row |
typedef JRowVarRef< Array3dBase< ElemPtrArray > > | var_ref_j_row |
typedef KRowVarRef< Array3dBase< ElemPtrArray > > | var_ref_k_row |
Public Types inherited from EntityWithProperties | |
typedef std::map< std::string, boost::python::object > | PythonDict |
Static Public Member Functions inherited from CommandEntity | |
static void | resetStandardOutput (void) |
Reset the standard output streams to its defaults buffers. | |
Static Public Member Functions inherited from EntityWithOwner | |
static int | getVerbosityLevel (void) |
Get the value of the verbosity level. | |
static void | setVerbosityLevel (const int &) |
Set the value of the verbosity level. | |
Protected Member Functions inherited from XC::PtrArray3dBase< ElemPtrArray > | |
void | set_owner_matrices (void) |
Sets the owner for the matrices. | |
Protected Member Functions inherited from Array3dBase< ElemPtrArray > | |
matrix_type & | get_layer (const size_t &iLayer) |
const matrix_type & | get_layer (const size_t &iLayer) const |
Protected Member Functions inherited from CommandEntity | |
template<class T > | |
void | string_to (T &, const std::string &) const |
Static Protected Member Functions inherited from CommandEntity | |
static CommandEntity * | entcmd_cast (boost::any &data) |
Static Protected Attributes inherited from EntityWithOwner | |
static int | verbosity = 1 |
Object that owns THIS ONE. More... | |
Three-dimensional array of pointers to elements.
XC::Element * XC::ElemPtrArray3d::findElement | ( | const int & | tag | ) |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter.
const XC::Element * XC::ElemPtrArray3d::findElement | ( | const int & | tag | ) | const |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter.
Define an elemental concentrated load at position p with value v expressed in global coordinates.
p | position of the load. |
v | value of the load vector expressed in global coordinates. |
Define an elemental concentrated load at position p with value v expressed in local (element) coordinates.
p | position of the load. |
v | value of the load vector expressed in local (element) coordinates. |
Define an elemental concentrated load at position p with value v expressed in global coordinates.
p | position of the load. |
v | value of the load vector expressed in global coordinates. |
Define an elemental concentrated load at position p with value v expressed in local (element) coordinates.
p | position of the load. |
v | value of the load vector expressed in local (element) coordinates. |