Files
solver/MbDCode/Part.cpp
2023-05-20 17:55:13 -06:00

80 lines
1.2 KiB
C++

#include "Part.h"
#include "PartFrame.h"
using namespace MbD;
Part::Part() {
}
Part::Part(const char* str) : Item(str) {
}
void Part::initialize()
{
partFrame = PartFrame::Create();
partFrame->setPart(this);
pTpE = std::make_shared<FullColumn<double>>(4);
ppTpEpE = std::make_shared<FullMatrix<double>>(4, 4);
ppTpEpEdot = std::make_shared<FullMatrix<double>>(4, 4);
}
void Part::initializeLocally()
{
partFrame->initializeLocally();
}
void Part::initializeGlobally()
{
partFrame->initializeGlobally();
}
void Part::setqX(FColDsptr x) {
partFrame->setqX(x);
}
FColDsptr Part::getqX() {
return partFrame->getqX();
}
void Part::setqE(FColDsptr x) {
partFrame->setqE(x);
}
FColDsptr Part::getqE() {
return partFrame->getqE();
}
void Part::setqXdot(FColDsptr x) {
partFrame->setqXdot(x);
}
FColDsptr Part::getqXdot() {
return partFrame->getqXdot();
}
void Part::setomeOpO(FColDsptr x) {
partFrame->setomeOpO(x);
}
FColDsptr Part::getomeOpO() {
return partFrame->getomeOpO();
}
void Part::setSystem(System& sys)
{
//May be needed in the future
}
void Part::asFixed()
{
partFrame->asFixed();
}
void MbD::Part::postInput()
{
}
void MbD::Part::calcPostDynCorrectorIteration()
{
}