suanPan
|
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration. More...
#include <Node.h>
Public Member Functions | |
Node (unsigned=0) | |
Node (unsigned, vec &&) | |
Node (unsigned, unsigned) | |
initialize num_dof and set the size of coordinate to num_dof . More... | |
Node (unsigned, unsigned, vec &&) | |
initialize num_dof and coordinate . More... | |
Node (const Node &)=delete | |
Node (Node &&)=delete | |
Node & | operator= (const Node &)=delete |
Node & | operator= (Node &&)=delete |
~Node () override=default | |
void | initialize (const shared_ptr< DomainBase > &) |
This method should be called after Element objects are set. Element objects will set the minimum number of DoFs for all related Node objects. This method initialize all member variables with the size of num_dof and fill original_dof with -1 to indicated it should be omitted from the system. Finally check if the size of coordinate is the same of num_dof , if not, resize it to num_dof . This will be necessary for beam/plate/shell problems which have more DoFs than coordinates. More... | |
void | set_initialized (bool) |
bool | get_initialized () const |
void | set_dof_number (unsigned) |
unsigned | get_dof_number () const |
void | set_dof_identifier (const std::vector< DOF > &) |
const std::vector< DOF > & | get_dof_identifier () const |
void | set_original_dof (unsigned &) |
void | set_original_dof (const uvec &) |
const uvec & | get_original_dof () const |
void | set_reordered_dof (const uvec &) |
const uvec & | get_reordered_dof () const |
void | set_coordinate (const vec &) |
const vec & | get_coordinate () const |
void | set_current_resistance (const vec &) |
void | set_current_damping_force (const vec &) |
void | set_current_inertial_force (const vec &) |
void | set_current_displacement (const vec &) |
void | set_current_velocity (const vec &) |
void | set_current_acceleration (const vec &) |
void | set_incre_resistance (const vec &) |
void | set_incre_damping_force (const vec &) |
void | set_incre_inertial_force (const vec &) |
void | set_incre_displacement (const vec &) |
void | set_incre_velocity (const vec &) |
void | set_incre_acceleration (const vec &) |
void | set_trial_resistance (const vec &) |
void | set_trial_damping_force (const vec &) |
void | set_trial_inertial_force (const vec &) |
void | set_trial_displacement (const vec &) |
void | set_trial_velocity (const vec &) |
void | set_trial_acceleration (const vec &) |
const vec & | get_current_resistance () const |
const vec & | get_current_damping_force () const |
const vec & | get_current_inertial_force () const |
const vec & | get_current_displacement () const |
const vec & | get_current_velocity () const |
const vec & | get_current_acceleration () const |
const vec & | get_incre_resistance () const |
const vec & | get_incre_damping_force () const |
const vec & | get_incre_inertial_force () const |
const vec & | get_incre_displacement () const |
const vec & | get_incre_velocity () const |
const vec & | get_incre_acceleration () const |
const vec & | get_trial_resistance () const |
const vec & | get_trial_damping_force () const |
const vec & | get_trial_inertial_force () const |
const vec & | get_trial_displacement () const |
const vec & | get_trial_velocity () const |
const vec & | get_trial_acceleration () const |
void | update_current_resistance (const vec &) |
void | update_current_damping_force (const vec &) |
void | update_current_inertial_force (const vec &) |
void | update_current_displacement (const vec &) |
void | update_current_velocity (const vec &) |
void | update_current_acceleration (const vec &) |
void | update_incre_resistance (const vec &) |
void | update_incre_damping_force (const vec &) |
void | update_incre_inertial_force (const vec &) |
void | update_incre_displacement (const vec &) |
void | update_incre_velocity (const vec &) |
void | update_incre_acceleration (const vec &) |
void | update_trial_resistance (const vec &) |
void | update_trial_damping_force (const vec &) |
void | update_trial_inertial_force (const vec &) |
void | update_trial_displacement (const vec &) |
void | update_trial_velocity (const vec &) |
void | update_trial_acceleration (const vec &) |
void | update_current_status (const vec &) |
void | update_current_status (const vec &, const vec &) |
void | update_current_status (const vec &, const vec &, const vec &) |
void | update_incre_status (const vec &) |
void | update_incre_status (const vec &, const vec &) |
void | update_incre_status (const vec &, const vec &, const vec &) |
void | update_trial_status (const vec &) |
void | update_trial_status (const vec &, const vec &) |
void | update_trial_status (const vec &, const vec &, const vec &) |
void | commit_status () |
void | reset_status () |
void | clear_status () |
std::vector< vec > | record (OutputType) const |
void | print () override |
Public Member Functions inherited from Tag | |
Tag (unsigned=0) | |
Tag (const Tag &)=default | |
Tag (Tag &&)=default | |
Tag & | operator= (const Tag &)=delete |
Tag & | operator= (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 Tag | |
Tag (unsigned=0) | |
Tag (const Tag &)=default | |
Tag (Tag &&)=default | |
Tag & | operator= (const Tag &)=delete |
Tag & | operator= (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 NodeData | |
unsigned | num_dof = 0 |
vec | coordinate |
uvec | original_dof |
uvec | reordered_dof |
vec | current_resistance |
vec | current_damping_force |
vec | current_inertial_force |
vec | current_displacement |
vec | current_velocity |
vec | current_acceleration |
vec | incre_resistance |
vec | incre_damping_force |
vec | incre_inertial_force |
vec | incre_displacement |
vec | incre_velocity |
vec | incre_acceleration |
vec | trial_resistance |
vec | trial_damping_force |
vec | trial_inertial_force |
vec | trial_displacement |
vec | trial_velocity |
vec | trial_acceleration |
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration.
The current/committed, incremental and trial status of displacement, velocity and acceleration are stored. These variables will be the communication bridge(s) between Domain, Workshop and Element objects. That is, Element objects do not directly get information from the Workshop. Instead, Workshop passes information to Node objects through the Domain, Element objects acquire new status from associated Node objects only. In this manner, the relationship between those modules remains simple.
|
explicit |
Node::Node | ( | unsigned | T, |
vec && | C | ||
) |
Node::Node | ( | unsigned | T, |
unsigned | D | ||
) |
initialize num_dof
and set the size of coordinate
to num_dof
.
T | unique_tag |
D | num_dof |
Node::Node | ( | unsigned | T, |
unsigned | D, | ||
vec && | C | ||
) |
initialize num_dof
and coordinate
.
T | unique_tag |
D | num_dof |
C | coordinate |
|
delete |
|
delete |
|
overridedefault |
void Node::clear_status | ( | ) |
void Node::commit_status | ( | ) |
const vec & Node::get_coordinate | ( | ) | const |
const vec & Node::get_current_acceleration | ( | ) | const |
const vec & Node::get_current_damping_force | ( | ) | const |
const vec & Node::get_current_displacement | ( | ) | const |
const vec & Node::get_current_inertial_force | ( | ) | const |
const vec & Node::get_current_resistance | ( | ) | const |
const vec & Node::get_current_velocity | ( | ) | const |
const std::vector< DOF > & Node::get_dof_identifier | ( | ) | const |
unsigned Node::get_dof_number | ( | ) | const |
const vec & Node::get_incre_acceleration | ( | ) | const |
const vec & Node::get_incre_damping_force | ( | ) | const |
const vec & Node::get_incre_displacement | ( | ) | const |
const vec & Node::get_incre_inertial_force | ( | ) | const |
const vec & Node::get_incre_resistance | ( | ) | const |
const vec & Node::get_incre_velocity | ( | ) | const |
bool Node::get_initialized | ( | ) | const |
const uvec & Node::get_original_dof | ( | ) | const |
const uvec & Node::get_reordered_dof | ( | ) | const |
const vec & Node::get_trial_acceleration | ( | ) | const |
const vec & Node::get_trial_damping_force | ( | ) | const |
const vec & Node::get_trial_displacement | ( | ) | const |
const vec & Node::get_trial_inertial_force | ( | ) | const |
const vec & Node::get_trial_resistance | ( | ) | const |
const vec & Node::get_trial_velocity | ( | ) | const |
void Node::initialize | ( | const shared_ptr< DomainBase > & | D | ) |
This method should be called after Element objects are set. Element objects will set the minimum number of DoFs for all related Node objects. This method initialize all member variables with the size of num_dof
and fill original_dof
with -1
to indicated it should be omitted from the system. Finally check if the size of coordinate
is the same of num_dof
, if not, resize it to num_dof
. This will be necessary for beam/plate/shell problems which have more DoFs than coordinates.
|
overridevirtual |
std::vector< vec > Node::record | ( | OutputType | L | ) | const |
void Node::reset_status | ( | ) |
void Node::set_coordinate | ( | const vec & | C | ) |
void Node::set_current_acceleration | ( | const vec & | A | ) |
void Node::set_current_damping_force | ( | const vec & | R | ) |
void Node::set_current_displacement | ( | const vec & | D | ) |
void Node::set_current_inertial_force | ( | const vec & | R | ) |
void Node::set_current_resistance | ( | const vec & | R | ) |
void Node::set_current_velocity | ( | const vec & | V | ) |
void Node::set_dof_identifier | ( | const std::vector< DOF > & | D | ) |
void Node::set_dof_number | ( | unsigned | D | ) |
void Node::set_incre_acceleration | ( | const vec & | A | ) |
void Node::set_incre_damping_force | ( | const vec & | R | ) |
void Node::set_incre_displacement | ( | const vec & | D | ) |
void Node::set_incre_inertial_force | ( | const vec & | R | ) |
void Node::set_incre_resistance | ( | const vec & | R | ) |
void Node::set_incre_velocity | ( | const vec & | V | ) |
void Node::set_initialized | ( | bool | B | ) |
void Node::set_original_dof | ( | const uvec & | D | ) |
void Node::set_original_dof | ( | unsigned & | F | ) |
void Node::set_reordered_dof | ( | const uvec & | R | ) |
void Node::set_trial_acceleration | ( | const vec & | A | ) |
void Node::set_trial_damping_force | ( | const vec & | R | ) |
void Node::set_trial_displacement | ( | const vec & | D | ) |
void Node::set_trial_inertial_force | ( | const vec & | R | ) |
void Node::set_trial_resistance | ( | const vec & | R | ) |
void Node::set_trial_velocity | ( | const vec & | V | ) |
void Node::update_current_acceleration | ( | const vec & | A | ) |
void Node::update_current_damping_force | ( | const vec & | R | ) |
void Node::update_current_displacement | ( | const vec & | D | ) |
void Node::update_current_inertial_force | ( | const vec & | R | ) |
void Node::update_current_resistance | ( | const vec & | R | ) |
void Node::update_current_status | ( | const vec & | D | ) |
void Node::update_current_status | ( | const vec & | D, |
const vec & | V | ||
) |
void Node::update_current_status | ( | const vec & | D, |
const vec & | V, | ||
const vec & | A | ||
) |
void Node::update_current_velocity | ( | const vec & | V | ) |
void Node::update_incre_acceleration | ( | const vec & | A | ) |
void Node::update_incre_damping_force | ( | const vec & | R | ) |
void Node::update_incre_displacement | ( | const vec & | D | ) |
void Node::update_incre_inertial_force | ( | const vec & | R | ) |
void Node::update_incre_resistance | ( | const vec & | R | ) |
void Node::update_incre_status | ( | const vec & | D | ) |
void Node::update_incre_status | ( | const vec & | D, |
const vec & | V | ||
) |
void Node::update_incre_status | ( | const vec & | D, |
const vec & | V, | ||
const vec & | A | ||
) |
void Node::update_incre_velocity | ( | const vec & | V | ) |
void Node::update_trial_acceleration | ( | const vec & | A | ) |
void Node::update_trial_damping_force | ( | const vec & | R | ) |
void Node::update_trial_displacement | ( | const vec & | D | ) |
void Node::update_trial_inertial_force | ( | const vec & | R | ) |
void Node::update_trial_resistance | ( | const vec & | R | ) |
void Node::update_trial_status | ( | const vec & | D | ) |
void Node::update_trial_status | ( | const vec & | D, |
const vec & | V | ||
) |
void Node::update_trial_status | ( | const vec & | D, |
const vec & | V, | ||
const vec & | A | ||
) |
void Node::update_trial_velocity | ( | const vec & | V | ) |