XC Open source finite element analysis program
Public Member Functions | Protected Member Functions | Friends | List of all members
XC::ProtoElementLoader Class Referenceabstract

Finite element creation. More...

#include <ProtoElementLoader.h>

Inheritance diagram for XC::ProtoElementLoader:
XC::Loader XC::MovableObject XC::DistributedBase XC::ElementLoader XC::ElementLoader::SeedElemLoader

Public Member Functions

 ProtoElementLoader (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::Loader
 Loader (Preprocessor *owr)
 Default constructor.
 
DomaingetDomain (void) const
 Returns the domain.
 
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::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor.
 
 MovableObject (int classTag)
 Constructor.
 
 MovableObject (const MovableObject &otro)
 Copy constructor.
 
MovableObjectoperator= (const MovableObject &otro)
 Operacdor asignación.
 
int getClassTag (void) const
 Returns the tag de la clase.
 
int getDbTag (void) const
 Returns the tag para la database.
 
int getDbTag (CommParameters &)
 Returns the tag para la database.
 
void setDbTag (int dbTag)
 Asigna el tag para la database.
 
void setDbTag (CommParameters &)
 Asigna, sólo si es preciso, el tag para la database.
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 
virtual int updateParameter (int parameterID, Information &info)
 
virtual int activateParameter (int parameterID)
 
virtual int setVariable (const std::string &variable, Information &)
 Returns the identificador de la variable cuyo nombre being passed as parameter.
 
virtual int getVariable (const std::string &variable, Information &)
 
- 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
 
MaterialLoaderget_material_loader (void) const
 Returns a reference to the material handler.
 
MaterialLoader::const_iterator get_iter_material (void) const
 Returns an iterator al material que se especifica en nmb_mat.
 
Materialget_ptr_material (void) const
 Returns a pointer to material que se especifica en nmb_mat.
 
TransfCooLoaderget_transf_coo_loader (void) const
 Returns a reference to the coordinate transformation loader.
 
TransfCooLoader::const_iterator get_iter_transf_coo (void) const
 Returns an iterator to the coordinate transformation with the name being passed as parameter.
 
CrdTransfget_ptr_transf_coo (void) const
 Returns a pointer to the coordinate transformation with the name being passed as parameter (nullptr if not found).
 
BeamIntegratorLoaderget_beam_integrator_loader (void) const
 Returns a reference to de integrator handler.
 
BeamIntegratorLoader::const_iterator get_iter_beam_integrator (void) const
 Returns an iterator al integrator que se especifica en nmb_integ.
 
BeamIntegrationget_ptr_beam_integrator (void) const
 Returns a pointer to integrator que se especifica en nmb_integ.
 
- Protected Member Functions inherited from XC::Loader
void set_preprocessor (Preprocessor *preprocessor)
 Assigns the preprocessor.
 

Friends

class Preprocessor
 

Additional Inherited Members

- Protected Attributes inherited from XC::Loader
Preprocessorpreprocessor
 Pointer to 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

XC::Element * XC::ProtoElementLoader::newElement ( const std::string &  tipo,
const ID iNodos 
)

Create a new element.

Parameters
tipotype of element. Available types:'truss','truss_section','corot_truss','corot_truss_section','muelle', 'spring', 'beam2d_02', 'beam2d_03', 'beam2d_04', 'beam3d_01', 'beam3d_02', 'elastic_beam2d', 'elastic_beam3d', 'beam_with_hinges_2d', 'beam_with_hinges_3d', 'nl_beam_column_2d', 'nl_beam_column_3d','force_beam_column_2d', 'force_beam_column_3d', 'shell_mitc4', ' shell_nl', 'quad4n', 'tri31', 'brick', 'zero_length', 'zero_length_contact_2d', 'zero_length_contact_3d', 'zero_length_section'.
iNodosnodes 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: