30#ifndef ELEMENTTEMPLATE_H
31#define ELEMENTTEMPLATE_H
39 static constexpr unsigned m_node = 3, m_dof = 2, m_size = m_node * m_dof;
41 double thickness = 0.;
50 int initialize(
const shared_ptr<DomainBase>&)
override;
The ElementTemplate class illustrates the basic formulation a typical Element class used in FEM analy...
Definition: ElementTemplate.h:35
ElementTemplate(unsigned, uvec &&, unsigned, double=1.)
Here we target our ElementTemplate class to fulfill the functionality of a constant stress triangular...
Definition: ElementTemplate.cpp:45
int update_status() override
Now we handle the status update method. We get trial displacement via build-in method and pass trial ...
Definition: ElementTemplate.cpp:143
int commit_status() override
Simply call corresponding methods in material objects. If the element itself has history variables,...
Definition: ElementTemplate.cpp:157
int initialize(const shared_ptr< DomainBase > &) override
As explained before, this method get all necessary information, which includes getting copies of Mate...
Definition: ElementTemplate.cpp:75
int clear_status() override
Definition: ElementTemplate.cpp:159
int reset_status() override
Definition: ElementTemplate.cpp:161
Definition: MaterialElement.h:64