Files
solver/OndselSolver/MBDynNode.cpp
John Dupuy 87ed8700e2 modify code to suppress or fix warnings in gcc and clang (#41)
* first fix to start branch PR

* explicit conversion from sizet to int

* Array.h and DiagonalMatrix.h

* many sizet to int conversions

* removed some unused variables and added expl overrides

* removed many unused parameters

* more typing

* even more

* last of the easy changes
2023-12-08 10:00:00 -07:00

42 lines
1.1 KiB
C++

#include "MBDynNode.h"
#include "ASMTPart.h"
#include "EulerAngles.h"
using namespace MbD;
void MbD::MBDynNode::initialize()
{
}
void MbD::MBDynNode::parseMBDyn(std::vector<std::string>&)
{
assert(false);
}
void MbD::MBDynNode::outputLine(int i, std::ostream& os)
{
auto id = nodeidAt(name);
auto asmtPart = std::static_pointer_cast<ASMTPart>(asmtItem);
auto x = asmtPart->xs->at(i);
auto y = asmtPart->ys->at(i);
auto z = asmtPart->zs->at(i);
auto aA = asmtPart->getRotationMatrix(i);
auto vx = asmtPart->vxs->at(i);
auto vy = asmtPart->vys->at(i);
auto vz = asmtPart->vzs->at(i);
auto omex = asmtPart->omexs->at(i);
auto omey = asmtPart->omeys->at(i);
auto omez = asmtPart->omezs->at(i);
os << id << " ";
os << x << " " << y << " " << z << " ";
auto row = aA->at(0);
os << row->at(0) << " " << row->at(1) << " " << row->at(2) << " ";
row = aA->at(1);
os << row->at(0) << " " << row->at(1) << " " << row->at(2) << " ";
row = aA->at(2);
os << row->at(0) << " " << row->at(1) << " " << row->at(2) << " ";
os << vx << " " << vy << " " << vz << " ";
os << omex << " " << omey << " " << omez << " ";
os << std::endl;
}