suanPan
Box2D Class Referencefinal

A Box2D class. More...

#include <Box2D.h>

Inheritance diagram for Box2D:
Collaboration diagram for Box2D:

Public Member Functions

 Box2D (unsigned, double, double, double, unsigned, unsigned=6, double=0.)
 
 Box2D (unsigned, vec &&, unsigned, unsigned=6, double=0.)
 
unique_ptr< Sectionget_copy () override
 
void print () override
 
- Public Member Functions inherited from ISection2D
 ISection2D (unsigned, double, double, double, double, double, double, unsigned, unsigned=6, double=0.)
 
 ISection2D (unsigned, vec &&, unsigned, unsigned=6, double=0.)
 
int initialize (const shared_ptr< DomainBase > &) override
 
unique_ptr< Sectionget_copy () override
 
void print () override
 
- Public Member Functions inherited from Section2D
 Section2D (unsigned, unsigned, double=0., double=0.)
 
void set_characteristic_length (double) const override
 
int update_trial_status (const vec &) override
 
int clear_status () override
 
int commit_status () override
 
int reset_status () override
 
- Public Member Functions inherited from Section
 Section (unsigned=0, SectionType=SectionType::D0, unsigned=0, double=0., vec &&={0., 0.})
 
 Section (const Section &)=default
 
 Section (Section &&)=delete
 
Sectionoperator= (const Section &)=delete
 
Sectionoperator= (Section &&)=delete
 
 ~Section () override=default
 
SectionType get_section_type () const
 
double get_area () const
 
double get_linear_density () const
 
int initialize_base (const shared_ptr< DomainBase > &)
 
virtual int initialize (const shared_ptr< DomainBase > &)=0
 
void set_initialized (bool) const
 
void set_symmetric (bool) const
 
bool is_initialized () const
 
bool is_symmetric () const
 
void set_eccentricity (const vec &) const
 
const vec & get_eccentricity () const
 
virtual void set_characteristic_length (double) const
 
double get_characteristic_length () const
 
virtual const vec & get_trial_deformation () const
 
virtual const vec & get_trial_deformation_rate () const
 
virtual const vec & get_trial_resistance () const
 
virtual const mat & get_trial_stiffness () const
 
virtual const mat & get_trial_geometry () const
 
virtual const vec & get_current_deformation () const
 
virtual const vec & get_current_deformation_rate () const
 
virtual const vec & get_current_resistance () const
 
virtual const mat & get_current_stiffness () const
 
virtual const mat & get_current_geometry () const
 
virtual const mat & get_initial_stiffness () const
 
virtual const mat & get_initial_geometry () const
 
virtual unique_ptr< Sectionget_copy ()=0
 
int update_incre_status (double)
 
int update_incre_status (double, double)
 
int update_trial_status (double)
 
int update_trial_status (double, double)
 
virtual int update_incre_status (const vec &)
 
virtual int update_incre_status (const vec &, const vec &)
 
virtual int update_trial_status (const vec &)
 
virtual int update_trial_status (const vec &, const vec &)
 
virtual int clear_status ()=0
 
virtual int commit_status ()=0
 
virtual int reset_status ()=0
 
virtual std::vector< vec > record (OutputType)
 
- Public Member Functions inherited from Tag
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&)=default
 
Tagoperator= (const Tag &)=delete
 
Tagoperator= (Tag &&)=delete
 
virtual ~Tag ()=default
 
void set_tag (unsigned) const
 
unsigned get_tag () const
 
void enable ()
 
void disable ()
 
void guard ()
 
void unguard ()
 
bool is_active () const
 
bool is_guarded () const
 
virtual void print ()
 

Additional Inherited Members

- Protected Member Functions inherited from Section2D
void initialize_stiffness ()
 
- Protected Member Functions inherited from Tag
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&)=default
 
Tagoperator= (const Tag &)=delete
 
Tagoperator= (Tag &&)=delete
 
virtual ~Tag ()=default
 
void set_tag (unsigned) const
 
unsigned get_tag () const
 
void enable ()
 
void disable ()
 
void guard ()
 
void unguard ()
 
bool is_active () const
 
bool is_guarded () const
 
virtual void print ()
 
- Protected Attributes inherited from Section2D
vector< IntegrationPointint_pt
 
- Protected Attributes inherited from DataSection
const unsigned material_tag
 
const SectionType section_type
 
const vec eccentricity
 
const double area
 
const double linear_density = 0.
 
const double characteristic_length = -1.
 
vec trial_deformation {}
 
vec current_deformation {}
 
vec trial_deformation_rate {}
 
vec current_deformation_rate {}
 
vec trial_resistance {}
 
vec current_resistance {}
 
mat initial_stiffness {}
 
mat current_stiffness {}
 
mat trial_stiffness {}
 
mat initial_geometry {}
 
mat current_geometry {}
 
mat trial_geometry {}
 

Detailed Description

A Box2D class.

Author
tlc
Date
19/03/2019
Version
0.1.0

Constructor & Destructor Documentation

◆ Box2D() [1/2]

Box2D::Box2D ( unsigned  T,
double  B,
double  H,
double  TH,
unsigned  M,
unsigned  S = 6,
double  EC = 0. 
)

◆ Box2D() [2/2]

Box2D::Box2D ( unsigned  T,
vec &&  D,
unsigned  M,
unsigned  S = 6,
double  EC = 0. 
)

Member Function Documentation

◆ get_copy()

unique_ptr< Section > Box2D::get_copy ( )
overridevirtual

Implements Section.

◆ print()

void Box2D::print ( )
overridevirtual

Reimplemented from Tag.


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