xc
|
Base class for domain components (nodes, elements, constraints, loads,...). More...
#include <DomainComponent.h>
Public Member Functions | |
~DomainComponent (void) | |
Destructor. | |
size_t | getIdx (void) const |
Returns the index of the object (to be used in VTK arrays). | |
virtual void | setDomain (Domain *theDomain) |
Sets the pointer to the domain. More... | |
virtual Domain * | getDomain (void) const |
Returns a pointer to the enclosing domain. More... | |
const Preprocessor * | getPreprocessor (void) const |
Returns (if possible) a pointer to the preprocessor. | |
Preprocessor * | getPreprocessor (void) |
Return (if possible) a pointer to the preprocessor. | |
const LoadPattern * | getCurrentLoadPattern (void) const |
Return the current load pattern. | |
LoadPattern * | getCurrentLoadPattern (void) |
Return the current load pattern. | |
void | set_index (const size_t &i) |
Set the index for the object (see numera in Set). More... | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary with 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 XC::TaggedObject | |
TaggedObject (int tag, CommandEntity *owr=nullptr) | |
Constructor. More... | |
virtual TaggedObject * | getCopy (void) const |
Virtual constructor. | |
void | assignTag (int newTag) |
Set tag (to be called from Python interface). | |
int | getTag (void) const |
Returns the tag associated with the object. | |
virtual void | Print (std::ostream &, int flag=0) const |
Print stuff. | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary with 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 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. | |
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 | sendSelf (Communicator &comm)=0 |
Send the object. More... | |
virtual int | recvSelf (const Communicator &comm)=0 |
Receive the object. 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. | |
virtual DbTagData & | getDbTagData (void) const |
Returns a vector to store class dbTags. | |
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 | |
DomainComponent (int tag, int classTag) | |
Constructor. More... | |
int | sendData (Communicator &) |
Send object members through the communicator argument. | |
int | recvData (const Communicator &) |
Receive object members through the communicator argument. | |
Protected Member Functions inherited from XC::TaggedObject | |
void | setTag (int newTag) |
Set tag. More... | |
Protected Member Functions inherited from CommandEntity | |
template<class T > | |
void | string_to (T &, const std::string &) const |
Additional Inherited Members | |
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... | |
Base class for domain components (nodes, elements, constraints, loads,...).
Base class for the different components of a domain. Each object of these types is a component of an enclosing Domain object. The DomainComponent class provides methods to set and retrieve a pointer to the enclosing domain object.
|
protected |
Constructor.
Constructs a DomainComponent. The tag of a component is some unique means of identifying the component among like components, i.e. the tag of a node would be its unique node number. No domain is associated with the object.
tag | object identifier. |
classTag | class identifier. |
|
virtual |
Returns a pointer to the enclosing domain.
Returns a pointer to the Domain to which the component was added, or \(0\) if the setDomain() command was never called on the object.
void XC::DomainComponent::set_index | ( | const size_t & | i | ) |
|
virtual |
Sets the pointer to the domain.
Sets the encompassing domain of the component to that given by {theDomain}. This method is invoked by theDomain
when the component is being added to the domain, in an {addDomain..} invocation (see interface for Domain).
Reimplemented in XC::TwentyNodeBrick, XC::ASDShellQ4, XC::Element, XC::ZeroLengthContact3D, XC::EightNodeBrick, XC::TwentyEightNodeBrickUP, XC::UpdatedLagrangianBeam2D, XC::ZeroLengthContact2D, XC::Joint2D, XC::ZeroLength, XC::TwentyNodeBrick_u_p_U, XC::fElement, XC::BeamContact2D, XC::BeamColumnJoint3d, XC::Joint3D, XC::ShellNLDKGQ, XC::Twenty_Node_Brick, XC::BeamWithHinges2d, XC::BeamWithHinges3d, XC::EnhancedQuad, XC::NineFourNodeQuadUP, XC::BeamColumnJoint2d, XC::ZeroLengthSection, XC::PBowlLoading, XC::LoadPattern, XC::FlatSliderSimple2d, XC::NineNodeMixedQuad, XC::Brick, XC::EightNodeBrick_u_p_U, XC::TwentySevenNodeBrick, XC::NLBeamColumn2d, XC::TotalLagrangianFD20NodeBrick, XC::ElasticTimoshenkoBeam2d, XC::ElasticTimoshenkoBeam3d, XC::Truss, XC::BrickUP, XC::LoadPatternCombination, XC::FourNodeQuad, XC::DispBeamColumn2dBase, XC::DispBeamColumn3d, XC::BbarBrick, XC::ConstantPressureVolumeQuad, XC::Tri31, XC::ForceBeamColumn3d, XC::NodalLoad, XC::BrickSurfaceLoad, XC::FourNodeQuadUP, XC::MFreedom_Joint3D, XC::beam2d02, XC::ForceBeamColumn2d, XC::TotalLagrangianFD8NodeBrick, XC::NLBeamColumn3d, XC::UniformExcitation, XC::CorotTruss, XC::Spring, XC::TrussSection, XC::FlatSliderSimple3d, XC::MFreedom_Joint, XC::beam2d03, XC::NewElement, XC::ShellMITC9, XC::CorotTrussSection, XC::beam3d02, XC::SingleFPSimple2d, XC::SingleFPSimple3d, XC::QuadSurfaceLoad, XC::NodeLocker, XC::Element1D, XC::ShellMITC4Base, XC::Constraint, XC::ElasticBeam2dBase, XC::ImposedMotionBase, XC::PlaneElement< NNODES, PhysProp >, XC::ElasticBeam3dBase, XC::PlaneElement< 4, SolidMech2D >, XC::PlaneElement< 9, PhysProp >, XC::PlaneElement< 3, SolidMech2D >, XC::PlaneElement< 4, SectionFDPhysicalProperties >, XC::PlaneElement< 3, PhysProp >, XC::PlaneElement< 4, PhysProp >, XC::PlaneElement< 4, NDMaterialPhysicalProperties >, XC::PlaneElement< 9, SectionFDPhysicalProperties >, XC::ElementBodyLoad, and XC::RigidBase.