33 #include "domain/mesh/element/Element1D.h"    34 #include "domain/mesh/element/utils/physical_properties/ElasticSection2dPhysicalProperties.h"    59     ProtoBeam2d(
int tag, 
int class_tag, 
double A, 
double E, 
double I, 
int Nd1, 
int Nd2);
    60     ProtoBeam2d(
int tag, 
int class_tag, 
double A, 
double alpha, 
double E, 
double G, 
double I, 
int Nd1, 
int Nd2);
    73     void setRho(
const double &r); 
    76     inline PhysProp &getPhysicalProperties(
void)
    78     inline const PhysProp &getPhysicalProperties(
void)
 const    80     void setPhysicalProperties(
const PhysProp &);
    82       { 
return physicalProperties.getMaterialNames(); }
    85     inline const Vector &getInitialSectionDeformation(
void)
 const    86       { 
return (*physicalProperties[0]).getInitialSectionDeformation(); }
    89     inline const Vector &getInitialStrain(
void)
 const    90       { 
return (*physicalProperties[0]).getInitialSectionDeformation(); }
    91     inline void setInitialStrain(
const Vector &e)
   108     boost::python::list 
getValuesAtNodes(
const std::string &, 
bool silent= 
false) 
const;
 PhysProp physicalProperties
pointers to the material objects and physical properties. 
Definition: ProtoBeam2d.h:51
Float vector abstraction. 
Definition: Vector.h:94
ProtoBeam2d(int tag, int class_tag, const Material *m=nullptr)
Default constructor. 
Definition: ProtoBeam2d.cc:65
Communication parameters between processes. 
Definition: Communicator.h:66
void zeroLoad(void)
Removes the element loads. 
Definition: ProtoBeam2d.cc:312
double getWeakAxisAngle(void) const
Returns the angle between element weak axis and local XZ plane. 
Definition: ProtoBeam2d.cc:294
const Vector & getSectionDeformation(void) const
Return the section generalized strain. 
Definition: ProtoBeam2d.cc:204
const Vector & getPersistentInitialSectionDeformation(void) const
Returns the value of the persistent (does not get wiped out by zeroLoad) initial deformation of the s...
Definition: ProtoBeam2d.cc:101
void set_material(const Material *m)
Set values to section mass properties. 
Definition: ProtoBeam2d.cc:38
Vector persistentInitialDeformation
Persistent initial strain at element level. Used to store the deformation during the inactive phase o...
Definition: ProtoBeam2d.h:52
Base class for materials. 
Definition: Material.h:93
virtual const Vector & computeCurrentStrain(void) const
Compute the current strain. 
Definition: ProtoBeam2d.cc:187
const CrossSectionProperties2d & getSectionProperties(void) const
Return section properties. 
Definition: ProtoBeam2d.cc:118
int sendData(Communicator &)
Send members through the communicator argument. 
Definition: ProtoBeam2d.cc:152
int getNumDOF(void) const
Return the number of degrees of freedom of the element. 
Definition: ProtoBeam2d.cc:96
Vector getVDirWeakAxisLocalCoord(void) const
Returns the direction vector of element weak axis expressed in the local coordinate system...
Definition: ProtoBeam2d.cc:179
void setRho(const double &r)
Sets linear density. 
Definition: ProtoBeam2d.cc:144
void setMaterial(const std::string &)
Set the element material. 
Definition: ProtoBeam2d.cc:132
double getRho(void) const
Return linear density. 
Definition: ProtoBeam2d.cc:140
int revertToLastCommit(void)
Revert the element to the its last commited state. 
Definition: ProtoBeam2d.cc:267
Base class for one-dimensional elements (beam,truss,...) 
Definition: Element1D.h:52
virtual std::set< std::string > getMaterialNames(void) const
Return the names of the material(s) of the element. 
Definition: ProtoBeam2d.h:81
double getStrongAxisAngle(void) const
Returns the angle between element strong axis and local XZ plane. 
Definition: ProtoBeam2d.cc:286
Mechanical (E, G) and mass properties of a section (area, moments of inertia,...) for a bi-dimensiona...
Definition: CrossSectionProperties2d.h:55
Vector getVDirStrongAxisLocalCoord(void) const
Returns the direction vector of element strong axis expressed in the local coordinate system...
Definition: ProtoBeam2d.cc:170
void alive(void)
Reactivates the element. 
Definition: ProtoBeam2d.cc:301
Base class for 2D beam elements. 
Definition: ProtoBeam2d.h:46
boost::python::list getValuesAtNodes(const std::string &, bool silent=false) const
Return a python list with the values of the argument property at element nodes. 
Definition: ProtoBeam2d.cc:335
Three-dimensional elastic section physical properties. 
Definition: ElasticSection2dPhysicalProperties.h:41
double getLinearRho(void) const
Return linear density. 
Definition: ProtoBeam2d.cc:148
void setSectionProperties(const CrossSectionProperties2d &)
Set section properties. 
Definition: ProtoBeam2d.cc:126
int setInitialSectionDeformation(const Vector &)
Set the element initial strain. 
Definition: ProtoBeam2d.cc:197
virtual int update(void)
Update element state. 
Definition: ProtoBeam2d.cc:221
virtual void createInertiaLoad(const Vector &)
Creates the inertia load that corresponds to the acceleration argument. 
Definition: ProtoBeam2d.cc:320
Open source finite element program for structural analysis. 
Definition: ContinuaReprComponent.h:35
int commitState(void)
Commit the element state. 
Definition: ProtoBeam2d.cc:255
int recvData(const Communicator &)
Receives members through the communicator argument. 
Definition: ProtoBeam2d.cc:161
int revertToStart(void)
Revert the the element to the its initial state. 
Definition: ProtoBeam2d.cc:277
void incrementPersistentInitialDeformationWithCurrentDeformation(void)
Increments the persistent (does not get wiped out by zeroLoad) initial deformation of the section...
Definition: ProtoBeam2d.cc:108