GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GranOO3::DEM::BondStrain Class Reference

a bond property able to associate and compute a full strain tensor to DEM::Bond
More...

#include <BondStrain.hpp>

Inheritance diagram for GranOO3::DEM::BondStrain:
Inheritance graph
[legend]

Public Member Functions

 BondStrain ()
 constructor More...
 
virtual ~BondStrain ()
 destructor More...
 
virtual std::string info () const
 
void init ()
 initialize the current value of the strain tensors More...
 
void update ()
 compute the current values of the strain tensors More...
 
- Public Member Functions inherited from GranOO3::Core::Prop< Bond >
 Prop ()
 
virtual ~Prop ()
 
Bond & item ()
 
const Bond & item () const
 
void set_item (Bond &)
 
virtual void set_color (const Core::Color &)
 
Core::Colorget_color ()
 
float & get_line_width ()
 
virtual void add (SetOf< Prop< Bond > > *)
 
virtual void erase (SetOf< Prop< Bond > > *)
 
virtual std::ostream & write_ascii (std::ostream &out) const
 
virtual std::istream & read_ascii (std::istream &in)
 
- Public Member Functions inherited from GranOO3::Core::Base
virtual ~Base ()
 
size_t numID () const
 
size_t uID () const
 
void set_numID (size_t val)
 
void clear_numID ()
 
Physic::Materialget_mat () const
 
void set_mat (Physic::Material *)
 
Baseitem ()
 
const Baseitem () const
 
bool is_same (const Base &) const
 
template<class T >
T & cast_to ()
 
template<class T >
const T & cast_to () const
 
template<class T >
bool is () const
 
virtual bool is (size_t) const
 
virtual const std::string & get_ID () const
 
virtual Baseclone ()
 
template<class T >
T & clone_to ()
 
virtual std::ostream & export_to_povray (std::ostream &out) const
 
Signal< Base & > & deleted_signal ()
 
- Public Member Functions inherited from GranOO3::Core::Null
 Null ()
 
virtual ~Null ()
 
- Public Member Functions inherited from GranOO3::Core::Drawable
 Drawable ()
 
virtual ~Drawable ()
 
virtual void draw ()
 
virtual void draw_edge ()
 
virtual void init_default_color ()
 
virtual std::ostream & get_info (std::ostream &os) const
 
virtual const Colordefault_color () const
 
Colorget_color ()
 
const Colorget_color () const
 
virtual void set_alpha (float alpha)
 
void apply_color () const
 
void apply_edge_color () const
 
void apply_default_color ()
 
void apply_selected_color ()
 
void set_line_width (float)
 
float get_line_width () const
 
float & get_line_width ()
 
void apply_line_width () const
 
bool is_visible () const
 
void set_visible (bool)
 
void paint ()
 
void paint_edge ()
 
unsigned int get_item_glkey () const
 
- Public Member Functions inherited from GranOO3::Core::Register< Base >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Base > &set) const
 
std::list< SetOf< Base > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 
- Public Member Functions inherited from GranOO3::Core::Register< type >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< type > &set) const
 
std::list< SetOf< type > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 
- Public Member Functions inherited from GranOO3::Core::Register< BondStrain >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< BondStrain > &set) const
 
std::list< SetOf< BondStrain > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 complete serializing of the instance in the *.gdd format More...
 

Private Attributes

Geom::SymTensor _local_strain_tensor
 the strain tensor expressed in the local bond frame
More...
 
Geom::SymTensor _global_strain_tensor
 the strain tensor expressed in the global frame
More...
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Public Types inherited from GranOO3::Core::Prop< Bond >
typedef Bond Owner
 
- Static Public Member Functions inherited from GranOO3::Core::Base
static Baseget_by_numID (size_t)
 
static void clear_all_numID ()
 
static unsigned int get_sub_class_number ()
 
- Static Public Member Functions inherited from GranOO3::Core::Drawable
static Drawableget_drawable_item_by_glkey (int)
 
static void set_draw_precision (unsigned int p)
 
static void increase_draw_precision ()
 
static void decrease_draw_precision ()
 
static unsigned int get_draw_precision ()
 
- Static Public Attributes inherited from GranOO3::Core::Null
static Null null = Null()
 
- Protected Member Functions inherited from GranOO3::Core::Prop< Bond >
virtual Basebase_item ()
 
virtual const Basebase_item () const
 
void serialize (Archive &ar, const unsigned int)
 
- Protected Member Functions inherited from GranOO3::Core::Base
 Base ()
 
- Static Protected Member Functions inherited from GranOO3::Core::Base
static unsigned int affect_class_rank_ID ()
 

Detailed Description

a bond property able to associate and compute a full strain tensor to DEM::Bond

Constructor & Destructor Documentation

◆ BondStrain()

GranOO3::DEM::BondStrain::BondStrain ( )

constructor

Construct a new BondStrain. Do not call this constructor. To build a new BondStrain instance, you must create a new property by invoking the Bond::new_prop<BondStrain>() method of the Bond class.

◆ ~BondStrain()

GranOO3::DEM::BondStrain::~BondStrain ( )
virtual

destructor

Destruct a BondStrain instance. Be aware, as BondStrain is a property, you must not invoke destructor by yourself, it could lead to unexpected behavior. Note that the BondStrain instances are automatically destructed when their associated Bonds are destructed.

Member Function Documentation

◆ info()

std::string GranOO3::DEM::BondStrain::info ( ) const
inlinevirtual
Returns
some useful info about the instance

Reimplemented from GranOO3::Core::Prop< Bond >.

◆ init()

void GranOO3::DEM::BondStrain::init ( )

initialize the current value of the strain tensors

◆ serialize()

template<class Archive >
void GranOO3::DEM::BondStrain::serialize ( Archive &  ar,
const unsigned int  version 
)
private

complete serializing of the instance in the *.gdd format

See also
the Domain classes to get additional info about I/O

◆ update()

void GranOO3::DEM::BondStrain::update ( )

compute the current values of the strain tensors

Here, the complete method for computing strains is described in this paper [1]. In brief, a least square method is used for computing the strain related to each element (see the Strain class). The mean value of the strains of the 2 bonded element are taken for the current bond strain tensor. Then, this value is corrected with direct information that can be computed directly from the bond.

[1] André, D., Girardot, J., & Hubert, C. (2019). A novel DEM approach for modeling brittle elastic media based on distinct lattice spring model. Computer Methods in Applied Mechanics and Engineering, 350, 100-122.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Member Data Documentation

◆ _global_strain_tensor

Geom::SymTensor GranOO3::DEM::BondStrain::_global_strain_tensor
private

the strain tensor expressed in the global frame

◆ _local_strain_tensor

Geom::SymTensor GranOO3::DEM::BondStrain::_local_strain_tensor
private

the strain tensor expressed in the local bond frame


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