xc
|
Node pointer container for elements. More...
#include <NodePtrsWithIDs.h>
Public Member Functions | |
NodePtrsWithIDs (Element *owr, size_t numNodes) | |
@ brief Default constructor. | |
const size_t | numNodes (void) |
int | getNumExternalNodes (void) const |
Return the number of external nodes. | |
NodePtrs & | getNodePtrs (void) |
Returns a pointer to the node vector. | |
const NodePtrs & | getNodePtrs (void) const |
Returns a pointer to the node vector. | |
const ID & | getExternalNodes (void) const |
Returns external nodes identifiers. | |
int | getTagNode (const int &i) const |
Returns the tag of the i-th node. | |
bool | set_id_nodes (int Nd1, int Nd2) |
Sets identifiers for nodes 1 and 2. | |
bool | set_id_nodes (int nd1, int nd2, int nd3) |
Sets identifiers for nodes 1 to 3. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4) |
Sets identifiers for nodes 1 to 4. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5) |
Sets identifiers for nodes 1 to 5. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6) |
Sets identifiers for nodes 1 to 6. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7) |
Sets identifiers for nodes 1 to 7. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8) |
Sets identifiers for nodes 1 to 8. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9) |
Sets identifiers for nodes 1 to 9. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9, int nd10, int nd11, int nd12, int nd13, int nd14, int nd15, int nd16, int nd17, int nd18, int nd19, int nd20) |
Sets identifiers for nodes 1 to 20. | |
bool | set_id_nodes (int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int nd7, int nd8, int nd9, int nd10, int nd11, int nd12, int nd13, int nd14, int nd15, int nd16, int nd17, int nd18, int nd19, int nd20, int nd21, int nd22, int nd23, int nd24, int nd25, int nd26, int nd27) |
Sets identifiers for nodes 1 to 27. | |
bool | set_id_nodes (const std::vector< int > &inodes) |
Sets the node identifiers (tags). | |
bool | set_id_nodes (const ID &inodes) |
Sets the node identifiers (tags). | |
bool | set_id_node (const int &i, const int &inode) |
Sets the i-th node identifier (tag). More... | |
void | reverse (void) |
Reverse the node sequence. | |
void | Print (std::ostream &os) const |
Printing... | |
int | sendSelf (Communicator &) |
Send the object. More... | |
int | recvSelf (const Communicator &) |
Receive the object. More... | |
bool | equalNumDOF (void) |
True if all nodes has the same DOF number. | |
bool | checkNumDOF (const size_t &, const size_t &) |
Check DOF number on nodes. | |
Public Member Functions inherited from XC::NodePtrs | |
NodePtrs (Element *owr, const size_t &sz) | |
Constructor. | |
NodePtrs (const NodePtrs &) | |
Copy constructor. | |
NodePtrs & | operator= (const NodePtrs &) |
~NodePtrs (void) | |
Destructor. | |
void | inic (void) |
Pone a cero los pointers to node. | |
iterator | find (const int &) |
Returns an iterator to the node identified by the tag being passed as parameter. More... | |
const_iterator | find (const int &) const |
Returns an iterator to the node identified by the tag being passed as parameter. More... | |
int | find (const Node *) const |
Returns the index of the node whose pointer is being passed as parameter. | |
Node * | getNodePtr (const size_t &) |
Returns a pointer to the node at the position being passed as parameter. More... | |
const_reference | operator() (const size_t &i) const |
Returns a const reference to the node at the position being passed as parameter. More... | |
void | set_node (const size_t &i, Node *) |
Asigna the pointer to node i. | |
bool | hasNull (void) const |
Returns true ifalguno de los pointers es nulo. More... | |
ID | getNumDOFs (void) const |
Returns a vector with the number of DOFs for each node. | |
int | getTotalDOFs (void) const |
Return the total number of DOFs. | |
Vector | getDistributionFactor (int mode) const |
Returns a vector that contains the distribution factors of each node for the mode being passed as parameter. More... | |
Matrix | getNodeVectors (const Vector &) const |
Returns the vectors correspondientes a each node disposed in rows. | |
double | MaxCooNod (int i) const |
Returns the maximum value of the i-th coordinate of the nodes. | |
double | MinCooNod (int i) const |
Returns the minimum value of the i-th coordinate of the nodes. | |
std::vector< int > | getIdx (void) const |
bool | checkDimension (const size_t &dim) const |
Checks that the dimensions of the node coordinates are all equal to the number being passed as parameter. More... | |
size_t | getDimension (void) const |
Returns the dimension of the node coordinates. | |
BND3d | Bnd (const double &) const |
Returns the boundary of the nodes. | |
const Matrix & | getCoordinates (void) const |
Returns a matrix with the coordinates of the nodes by rows. | |
Pos3d | getPosNode (const size_t &i, bool initialGeometry=true) const |
Return the position of the i-th node. | |
std::deque< Pos3d > | getPositions (bool initialGeometry=true) const |
Returns a list with the node positions. | |
Pos3d | getCenterOfMassPosition (bool initialGeometry=true) const |
Returns the centroid of the node positions. | |
Node * | getNearestNode (const Pos3d &p, bool initialGeometry=true) |
Returns the node closest to the point being passed as parameter. | |
const Node * | getNearestNode (const Pos3d &p, bool initialGeometry=true) const |
Returns the node closest to the point being passed as parameter. | |
bool | In (const GeomObj3d &, const double &factor=1.0, const double &tol=0.0) const |
Returns true if all the nodes are inside the object. | |
bool | Out (const GeomObj3d &, const double &factor=1.0, const double &tol=0.0) const |
Returns true if the node are outside the object. | |
bool | In (const GeomObj2d &, const double &factor=1.0, const double &tol=0.0) const |
Returns true if all the nodes are inside the object. | |
bool | Out (const GeomObj2d &, const double &factor=1.0, const double &tol=0.0) const |
Returns true if the node are outside the object. | |
bool | Corta (const Plane &, bool initialGeometry=true) const |
Returns true if there are nodes in both sides of the plane. | |
void | resetTributaries (void) const |
Resets tributary areas (or lengths or volumes) of connected nodes. | |
void | dumpTributaries (const std::vector< double > &) const |
Adds to the tributary quantity of each node i the i component of the vector being passed as parameter. More... | |
const std::vector< int > & | getTags (void) const |
Returns a vector con los tags of the nodes. | |
int | getNodeIndex (const Node *) const |
Return the index of the node pointer in the array. | |
void | reverse (void) |
Reverse the node sequence. | |
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 |
Public Member Functions inherited from XC::MovableObject | |
MovableObject (int classTag, int dbTag) | |
Constructor. More... | |
MovableObject (int classTag) | |
Constructor. More... | |
MovableObject (const MovableObject &) | |
Copy constructor. Doesn't copy the dbTag. | |
MovableObject & | operator= (const MovableObject &) |
Assignment operator. Doesn't copy the dbTag. | |
int | getClassTag (void) const |
Return the class identifier. | |
int | getDbTag (void) const |
Return the object identifier in the database. | |
int | getDbTag (Communicator &) |
Return the object identifier in the database. | |
void | setDbTag (int dbTag) |
Sets the object identifier in the database. | |
void | setDbTag (Communicator &) |
Sets the object identifier in the database if not already set. More... | |
virtual int | setParameter (const std::vector< std::string > &argv, Parameter ¶m) |
Sets the value param to the parameter argv . | |
virtual int | updateParameter (int parameterID, Information &info) |
Updates the parameter identified by parameterID with info . | |
virtual int | activateParameter (int parameterID) |
Activates the parameter identified by parameterID . | |
virtual int | setVariable (const std::string &variable, Information &) |
Set the value of the variable idenfified by var . | |
virtual int | getVariable (const std::string &variable, Information &) |
Return the value of the variable idenfified by var . | |
Public Member Functions inherited from XC::DistributedBase | |
DistributedBase (void) | |
Constructor. | |
virtual | ~DistributedBase (void) |
Destructor. | |
const int & | getDbTagDataPos (const int &i) const |
Returns the data at the i-th position. | |
void | setDbTagDataPos (const int &i, const int &v) |
Sets the data at the i-th position. | |
void | inicComm (const int &dataSize) const |
Initializes communication. | |
Protected Member Functions | |
DbTagData & | getDbTagData (void) const |
Returns a vector to store the dbTags of the class members. More... | |
int | sendData (Communicator &comm) |
Sends object members through the communicator argument. | |
int | recvData (const Communicator &comm) |
Receives object members through the communicator argument. | |
void | set_node_ptrs (Domain *domain) |
Set los pointers to the nodes. | |
Protected Member Functions inherited from XC::NodePtrs | |
void | disconnect (void) |
void | setPtrs (Domain *theDomain, const ID &theNodeTags) |
Sets the node pointers from the node identifiers. | |
Protected Member Functions inherited from CommandEntity | |
template<class T > | |
void | string_to (T &, const std::string &) const |
Protected Attributes | |
ID | connectedExternalNodes |
contains the tags of the end nodes. | |
Friends | |
class | Element |
Additional Inherited Members | |
Public Types inherited from XC::NodePtrs | |
typedef std::vector< Node * > | vector_ptr_nodes |
typedef vector_ptr_nodes::const_reference | const_reference |
typedef vector_ptr_nodes::reference | reference |
typedef vector_ptr_nodes::iterator | iterator |
typedef vector_ptr_nodes::const_iterator | const_iterator |
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. | |
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... | |
Node pointer container for elements.
|
protectedvirtual |
Returns a vector to store the dbTags of the class members.
Reimplemented from XC::DistributedBase.
|
virtual |
Receive the object.
Each object has to receive the data needed to be able to recreate itself in the new process after it has been sent through cp
. If the object is an aggregation containing other objects, new objects of the correct type can be constructed using #theBroker. To return 0 if successful or a -1 if not.
Implements XC::MovableObject.
|
virtual |
Send the object.
Each object has to send the data needed to be able to reproduce that object in a remote process. The object uses the methods provided by cp
object to send the data to another channel at the remote actor, the address of the channel is set before this method is called. An object of similar type at the remote actor is invoked with a receiveSelf() to receive the data. Returns 0 if successful (successful in that the data got to the channel), or a - if no data was sent.
Implements XC::MovableObject.
bool XC::NodePtrsWithIDs::set_id_node | ( | const int & | i, |
const int & | inode | ||
) |
Sets the i-th node identifier (tag).
Return true if there was already a pointer in place (element must call setDomain again).