MBDyn-1.7.3
|
#include <JacSubMatrix.h>
Classes | |
struct | ExpandableRowElement |
Public Member Functions | |
ExpandableRowVector (void) | |
ExpandableRowVector (const integer n) | |
virtual | ~ExpandableRowVector (void) |
void | ReDim (const integer n) |
integer | GetDim (void) const |
void | Zero (void) |
void | Reset (void) |
void | Link (const integer i, const ExpandableRowVector *const xp, const integer rhs_block=1) |
void | SetIdx (integer i, integer iidx) |
void | Set (doublereal xx, integer i, integer iidx) |
void | Set (Vec3 xx, integer i, integer iidx) |
doublereal & | operator() (integer i) |
const doublereal & | operator() (integer i) const |
void | Set (doublereal xx, integer i) |
void | Set (Vec3 xx, integer i) |
void | Add (doublereal xx, integer i) |
void | Sub (doublereal xx, integer i) |
void | Add (SubVectorHandler &WorkVec, const doublereal c=1.) const |
void | Sub (SubVectorHandler &WorkVec, const doublereal c=1.) const |
void | Add (FullSubMatrixHandler &WM, const integer eq, const doublereal c=1.) const |
void | Add (FullSubMatrixHandler &WM, const std::vector< integer > &eq, const std::vector< doublereal > &cc, const doublereal c=1.) const |
void | Sub (FullSubMatrixHandler &WM, const integer eq, const doublereal c=1.) const |
void | Sub (FullSubMatrixHandler &WM, const std::vector< integer > &eq, const std::vector< doublereal > &cc, const doublereal c=1.) const |
std::ostream & | Write (std::ostream &out, const char *sFill="") const |
Private Attributes | |
std::vector< ExpandableRowElement > | v |
Definition at line 42 of file JacSubMatrix.h.
ExpandableRowVector::ExpandableRowVector | ( | void | ) |
Definition at line 45 of file JacSubMatrix.cc.
ExpandableRowVector::ExpandableRowVector | ( | const integer | n | ) |
Definition at line 46 of file JacSubMatrix.cc.
References ReDim().
|
virtual |
Definition at line 49 of file JacSubMatrix.cc.
void ExpandableRowVector::Add | ( | doublereal | xx, |
integer | i | ||
) |
Definition at line 119 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Referenced by Brake::AssJac(), ModLugreFriction::AssJac(), DiscreteCoulombFriction::AssJac(), and AxialRotationJoint::AssJac().
void ExpandableRowVector::Add | ( | SubVectorHandler & | WorkVec, |
const doublereal | c = 1. |
||
) | const |
Definition at line 129 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, VectorHandler::IncCoef(), and v.
void ExpandableRowVector::Add | ( | FullSubMatrixHandler & | WM, |
const integer | eq, | ||
const doublereal | c = 1. |
||
) | const |
Definition at line 161 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, FullSubMatrixHandler::IncCoef(), and v.
void ExpandableRowVector::Add | ( | FullSubMatrixHandler & | WM, |
const std::vector< integer > & | eq, | ||
const std::vector< doublereal > & | cc, | ||
const doublereal | c = 1. |
||
) | const |
Definition at line 189 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, FullSubMatrixHandler::IncCoef(), and v.
integer ExpandableRowVector::GetDim | ( | void | ) | const |
void ExpandableRowVector::Link | ( | const integer | i, |
const ExpandableRowVector *const | xp, | ||
const integer | rhs_block = 1 |
||
) |
Definition at line 68 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Referenced by Brake::AssJac(), ModLugreFriction::AssJac(), DiscreteCoulombFriction::AssJac(), AxialRotationJoint::AssJac(), SimpleShapeCoefficient::dSh_c(), SimplePlaneHingeJointSh_c::dSh_c(), and ScrewJointSh_c::dSh_c().
doublereal & ExpandableRowVector::operator() | ( | integer | i | ) |
Definition at line 106 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
const doublereal & ExpandableRowVector::operator() | ( | integer | i | ) | const |
Definition at line 113 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
void ExpandableRowVector::ReDim | ( | const integer | n | ) |
Definition at line 50 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Referenced by Brake::AssJac(), PlaneHingeJoint::AssJac(), ModLugreFriction::AssJac(), DiscreteCoulombFriction::AssJac(), AxialRotationJoint::AssJac(), SimpleShapeCoefficient::dSh_c(), SimplePlaneHingeJointSh_c::dSh_c(), ScrewJointSh_c::dSh_c(), and ExpandableRowVector().
void ExpandableRowVector::Reset | ( | void | ) |
Definition at line 65 of file JacSubMatrix.cc.
void ExpandableRowVector::Set | ( | doublereal | xx, |
integer | i, | ||
integer | iidx | ||
) |
Definition at line 95 of file JacSubMatrix.cc.
References SetIdx().
Referenced by Brake::AssJac(), PlaneHingeJoint::AssJac(), ModLugreFriction::AssJac(), DiscreteCoulombFriction::AssJac(), AxialRotationJoint::AssJac(), SimpleShapeCoefficient::dSh_c(), SimplePlaneHingeJointSh_c::dSh_c(), ScrewJointSh_c::dSh_c(), and Set().
Definition at line 99 of file JacSubMatrix.cc.
References Set(), and SetIdx().
void ExpandableRowVector::Set | ( | doublereal | xx, |
integer | i | ||
) |
Definition at line 77 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Definition at line 82 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Definition at line 89 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Referenced by Set().
void ExpandableRowVector::Sub | ( | doublereal | xx, |
integer | i | ||
) |
Definition at line 124 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, and v.
Referenced by Brake::AssJac(), DiscreteCoulombFriction::AssJac(), and AxialRotationJoint::AssJac().
void ExpandableRowVector::Sub | ( | SubVectorHandler & | WorkVec, |
const doublereal | c = 1. |
||
) | const |
Definition at line 145 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, VectorHandler::DecCoef(), and v.
void ExpandableRowVector::Sub | ( | FullSubMatrixHandler & | WM, |
const integer | eq, | ||
const doublereal | c = 1. |
||
) | const |
Definition at line 213 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, FullSubMatrixHandler::DecCoef(), and v.
void ExpandableRowVector::Sub | ( | FullSubMatrixHandler & | WM, |
const std::vector< integer > & | eq, | ||
const std::vector< doublereal > & | cc, | ||
const doublereal | c = 1. |
||
) | const |
Definition at line 231 of file JacSubMatrix.cc.
References ASSERTMSGBREAK, FullSubMatrixHandler::DecCoef(), and v.
std::ostream & ExpandableRowVector::Write | ( | std::ostream & | out, |
const char * | sFill = "" |
||
) | const |
void ExpandableRowVector::Zero | ( | void | ) |
|
private |