xc
Public Member Functions | Protected Member Functions | Friends | List of all members
XC::ProtoElementHandler Class Referenceabstract

Finite element creation. More...

#include <ProtoElementHandler.h>

Inheritance diagram for XC::ProtoElementHandler:
XC::PrepHandler XC::PreprocessorContainer XC::MovableObject XC::DistributedBase XC::ElementHandler XC::ElementHandler::SeedElemHandler

Public Member Functions

 ProtoElementHandler (Preprocessor *preprocessor)
 Default constructor.
 
virtual int getDefaultTag (void) const =0
 
void setDefaultMaterial (const std::string &)
 Sets the default material name for new elements.
 
const std::string & getDefaultMaterial (void) const
 Returns the default material name for new elements.
 
void setNumSections (const int &)
 Default number of sections for new elements.
 
int getNumSections (void) const
 Returns the default number of sections for new elements.
 
void setDimElem (const int &)
 Sets the default dimension (0D,1D,2D or 3D) for new elements.
 
int getDimElem (void) const
 Returns the default dimension (0D,1D,2D or 3D) for new elements.
 
void setDefaultTransf (const std::string &)
 Sets the name of the default coordinate transformation for new elements.
 
const std::string & getDefaultTransf (void) const
 Returns the name of the default coordinate transformation for new elements.
 
void setDefaultIntegrator (const std::string &)
 Sets the name of the default integrator for new elements.
 
const std::string & getDefaultIntegrator (void) const
 Returns the name of the default integrator for new elements.
 
ElementnewElement (const std::string &, const ID &)
 Create a new element. More...
 
- Public Member Functions inherited from XC::PrepHandler
 PrepHandler (Preprocessor *owr)
 Default constructor.
 
virtual int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
virtual int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
- Public Member Functions inherited from XC::PreprocessorContainer
 PreprocessorContainer (Preprocessor *owr)
 Default constructor.
 
const DomaingetDomain (void) const
 Returns the domain.
 
DomaingetDomain (void)
 Returns the domain.
 
PreprocessorgetPreprocessor (void)
 Returns a pointer to the object preprocessor.
 
const PreprocessorgetPreprocessor (void) const
 Returns a pointer to the object preprocessor.
 
void checkPreprocessor (void)
 
- 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.
 
MovableObjectoperator= (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 (CommParameters &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (CommParameters &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 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 DbTagDatagetDbTagData (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

virtual void add (Element *)=0
 
const MaterialHandlerget_material_handler (void) const
 Returns a reference to the material handler.
 
MaterialHandler::const_iterator get_iter_material (void) const
 Returns an iterator al material que se especifica en nmb_mat.
 
const Materialget_ptr_material (void) const
 Returns a pointer to material que se especifica en nmb_mat.
 
const TransfCooHandlerget_transf_coo_handler (void) const
 Returns a reference to the coordinate transformation handler.
 
TransfCooHandler::const_iterator get_iter_transf_coo (void) const
 Returns an iterator to the coordinate transformation with the name being passed as parameter.
 
const CrdTransfget_ptr_transf_coo (void) const
 Returns a pointer to the coordinate transformation with the name being passed as parameter (nullptr if not found).
 
const BeamIntegratorHandlerget_beam_integrator_handler (void) const
 Returns a reference to de integrator handler.
 
BeamIntegratorHandler::const_iterator get_iter_beam_integrator (void) const
 Returns an iterator al integrator que se especifica en nmb_integ.
 
const BeamIntegrationget_ptr_beam_integrator (void) const
 Returns a pointer to integrator que se especifica en nmb_integ.
 

Friends

class Preprocessor
 

Detailed Description

Finite element creation.

This objetct allows the creation of finite element obbjets. It can be done directly (specifiying the finite element type, material, nodes,...) creating one element after another or you can specify a "seed element" that will be used by the meshing routines.

Member Function Documentation

§ newElement()

XC::Element * XC::ProtoElementHandler::newElement ( const std::string &  type,
const ID iNodes 
)

Create a new element.

Parameters
typetype of element. Available types:'Truss','TrussSection','CorotTruss','CorotTrussSection','Spring', 'Beam2d02', 'Beam2d03', 'Beam2d04', 'Beam3d01', 'Beam3d02', 'ElasticBeam2d', 'ElasticBeam3d', 'BeamWithHinges2d', 'BeamWithHinges3d', 'NlBeamColumn2d', 'NlBeamColumn3d','ForceBeamColumn2d', 'ForceBeamColumn3d', 'ShellMitc4', ' shellNl', 'Quad4n', 'Tri31', 'Brick', 'ZeroLength', 'ZeroLengthContact2d', 'ZeroLengthContact3d', 'ZeroLengthSection'.
iNodesnodes ID, e.g. xc.ID([1,2]) to create a linear element from node 1 to node 2.

The documentation for this class was generated from the following files: