MBDyn-1.7.3
|
#include <aeroelem.h>
Public Member Functions | |
AerodynamicBody (unsigned int uLabel, const DofOwner *pDO, const StructNode *pN, InducedVelocity *pR, bool bPassive, const Vec3 &fTmp, doublereal dS, const Mat3x3 &RaTmp, const Shape *pC, const Shape *pF, const Shape *pV, const Shape *pT, const Shape *pTL, integer iN, AeroData *a, const DriveCaller *pDC, bool bUseJacobian, OrientationDescription ood, flag fOut) | |
virtual | ~AerodynamicBody (void) |
virtual std::ostream & | Restart (std::ostream &out) const |
virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &, const VectorHandler &) |
virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual void | Output (OutputHandler &OH) const |
virtual SubVectorHandler & | InitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr) |
virtual AerodynamicElem::Type | GetAerodynamicElemType (void) const |
virtual void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) const |
Public Member Functions inherited from Elem | |
Elem (unsigned int uL, flag fOut) | |
virtual | ~Elem (void) |
virtual void | AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual bool | bInverseDynamics (void) const |
void | SetInverseDynamicsFlags (unsigned uIDF) |
unsigned | GetInverseDynamicsFlags (void) const |
bool | bIsErgonomy (void) const |
bool | bIsRightHandSide (void) const |
virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS) |
virtual int | GetNumConnectedNodes (void) const |
Public Member Functions inherited from WithLabel | |
WithLabel (unsigned int uL=0, const std::string &sN="") | |
virtual | ~WithLabel (void) |
void | PutLabel (unsigned int uL) |
void | PutName (const std::string &sN) |
unsigned int | GetLabel (void) const |
const std::string & | GetName (void) const |
Public Member Functions inherited from SimulationEntity | |
SimulationEntity (void) | |
virtual | ~SimulationEntity (void) |
virtual bool | bIsValidIndex (unsigned int i) const |
virtual DofOrder::Order | GetEqType (unsigned int i) const |
virtual Hint * | ParseHint (DataManager *pDM, const char *s) const |
virtual void | BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const |
virtual void | AfterPredict (VectorHandler &X, VectorHandler &XP) |
virtual void | Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual void | DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual void | Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder) |
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
virtual unsigned int | iGetNumPrivData (void) const |
virtual unsigned int | iGetPrivDataIdx (const char *s) const |
virtual doublereal | dGetPrivData (unsigned int i) const |
virtual std::ostream & | OutputAppend (std::ostream &out) const |
virtual void | ReadInitialState (MBDynParser &HP) |
Public Member Functions inherited from ToBeOutput | |
ToBeOutput (flag fOut=fDefaultOut) | |
virtual | ~ToBeOutput (void) |
virtual void | Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const |
virtual flag | fToBeOutput (void) const |
virtual bool | bToBeOutput (void) const |
Public Member Functions inherited from Aerodynamic2DElem< 1 > | |
Aerodynamic2DElem (unsigned int uLabel, const DofOwner *pDO, InducedVelocity *pR, bool bPassive, const Shape *pC, const Shape *pF, const Shape *pV, const Shape *pT, const Shape *pTL, integer iN, AeroData *a, const DriveCaller *pDC, bool bUseJacobian, OrientationDescription ood, flag fOut) | |
virtual | ~Aerodynamic2DElem (void) |
virtual Elem::Type | GetElemType (void) const |
virtual unsigned int | iGetNumDof (void) const |
virtual std::ostream & | DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const |
virtual void | DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
virtual std::ostream & | DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const |
virtual void | DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
virtual DofOrder::Order | GetDofType (unsigned int) const |
virtual void | OutputPrepare (OutputHandler &OH) |
virtual void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *h=0) |
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP) |
virtual void | WorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
virtual unsigned int | iGetInitialNumDof (void) const |
virtual void | InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
virtual VariableSubMatrixHandler & | InitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &) |
virtual const InducedVelocity * | pGetInducedVelocity (void) const |
Public Member Functions inherited from AerodynamicElem | |
AerodynamicElem (unsigned int uL, const DofOwner *pDO, flag fOut) | |
virtual | ~AerodynamicElem (void) |
virtual bool | NeedsAirProperties (void) const |
Public Member Functions inherited from ElemWithDofs | |
ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut) | |
virtual | ~ElemWithDofs (void) |
Public Member Functions inherited from DofOwnerOwner | |
DofOwnerOwner (const DofOwner *pDO) | |
virtual | ~DofOwnerOwner () |
virtual const DofOwner * | pGetDofOwner (void) const |
virtual integer | iGetFirstIndex (void) const |
virtual void | SetInitialValue (VectorHandler &X) |
Public Member Functions inherited from AirPropOwner | |
AirPropOwner (void) | |
virtual | ~AirPropOwner (void) |
virtual void | PutAirProperties (const AirProperties *pAP) |
virtual flag | fGetAirVelocity (Vec3 &Velocity, const Vec3 &X) const |
virtual doublereal | dGetAirDensity (const Vec3 &X) const |
virtual doublereal | dGetAirPressure (const Vec3 &X) const |
virtual doublereal | dGetAirTemperature (const Vec3 &X) const |
virtual doublereal | dGetSoundSpeed (const Vec3 &X) const |
virtual bool | GetAirProps (const Vec3 &X, doublereal &rho, doublereal &c, doublereal &p, doublereal &T) const |
Public Member Functions inherited from InitialAssemblyElem | |
InitialAssemblyElem (unsigned int uL, flag fOut) | |
virtual | ~InitialAssemblyElem (void) |
Public Member Functions inherited from SubjectToInitialAssembly | |
SubjectToInitialAssembly (void) | |
virtual | ~SubjectToInitialAssembly (void) |
Public Member Functions inherited from DriveOwner | |
DriveOwner (const DriveCaller *pDC=0) | |
DriveOwner (const DriveOwner &drive) | |
virtual | ~DriveOwner (void) |
void | Set (const DriveCaller *pDC) |
DriveCaller * | pGetDriveCaller (void) const |
doublereal | dGet (const doublereal &dVar) const |
doublereal | dGet (void) const |
bool | bIsDifferentiable (void) const |
doublereal | dGetP (const doublereal &dVar) const |
doublereal | dGetP (void) const |
Public Member Functions inherited from AerodynamicOutput | |
AerodynamicOutput (flag f, int iNP, OrientationDescription ood) | |
~AerodynamicOutput (void) | |
void | SetOutputFlag (flag f, int iNP) |
void | ResetIterator (void) |
void | SetData (const Vec3 &v, const doublereal *pd, const Vec3 &X, const Mat3x3 &R, const Vec3 &V, const Vec3 &W, const Vec3 &F, const Vec3 &M) |
AerodynamicOutput::eOutput | GetOutput (void) const |
bool | IsOutput (void) const |
bool | IsSTD (void) const |
bool | IsPGAUSS (void) const |
bool | IsNODE (void) const |
Protected Member Functions | |
void | AssVec (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
Protected Member Functions inherited from Aerodynamic2DElem< 1 > | |
virtual void | SetOutputFlag (flag f=flag(1)) |
void | Output_int (OutputHandler &OH) const |
void | AddForce_int (const StructNode *pN, const Vec3 &F, const Vec3 &M, const Vec3 &X) const |
void | AddSectionalForce_int (unsigned uPnt, const Vec3 &F, const Vec3 &M, doublereal dW, const Vec3 &X, const Mat3x3 &R, const Vec3 &V, const Vec3 &W) const |
Protected Attributes | |
const StructNode * | pNode |
const Vec3 | f |
doublereal | dHalfSpan |
const Mat3x3 | Ra |
const Vec3 | Ra3 |
Vec3 | F |
Vec3 | M |
Protected Attributes inherited from WithLabel | |
unsigned int | uLabel |
std::string | sName |
Protected Attributes inherited from ToBeOutput | |
flag | fOutput |
Protected Attributes inherited from Aerodynamic2DElem< 1 > | |
AeroData * | aerodata |
InducedVelocity * | pIndVel |
bool | bPassiveInducedVelocity |
const ShapeOwner | Chord |
const ShapeOwner | ForcePoint |
const ShapeOwner | VelocityPoint |
const ShapeOwner | Twist |
const ShapeOwner | TipLoss |
GaussDataIterator | GDI |
std::vector< outa_t > | OUTA |
Mat3xN | vx |
Mat3xN | wx |
Mat3xN | fq |
Mat3xN | cq |
bool | bJacobian |
Protected Attributes inherited from AirPropOwner | |
const AirProperties * | pAirProperties |
Protected Attributes inherited from DriveOwner | |
DriveCaller * | pDriveCaller |
Protected Attributes inherited from AerodynamicOutput | |
flag | m_eOutput |
OrientationDescription | od |
std::vector< Aero_output > | OutputData |
std::vector< Aero_output > ::iterator | OutputIter |
Additional Inherited Members | |
Public Types inherited from Elem | |
enum | Type { UNKNOWN = -1, AIRPROPERTIES = 0, INDUCEDVELOCITY, AUTOMATICSTRUCTURAL, GRAVITY, BODY, JOINT, JOINT_REGULARIZATION, BEAM, PLATE, FORCE, INERTIA, ELECTRICBULK, ELECTRIC, THERMAL, HYDRAULIC, BULK, LOADABLE, DRIVEN, EXTERNAL, AEROMODAL, AERODYNAMIC, GENEL, SOCKETSTREAM_OUTPUT, RTAI_OUTPUT = SOCKETSTREAM_OUTPUT, LASTELEMTYPE } |
Public Types inherited from SimulationEntity | |
typedef std::vector< Hint * > | Hints |
Public Types inherited from ToBeOutput | |
enum | { OUTPUT = 0x1U, OUTPUT_MASK = 0xFU, OUTPUT_PRIVATE = 0x10U, OUTPUT_PRIVATE_MASK = ~OUTPUT_MASK } |
Public Types inherited from AerodynamicElem | |
enum | Type { UNKNOWN = -1, INDUCEDVELOCITY = 0, AEROMODAL, AERODYNAMICBODY, AERODYNAMICBEAM, AERODYNAMICEXTERNAL, AERODYNAMICEXTERNALMODAL, AERODYNAMICLOADABLE, AIRCRAFTINSTRUMENTS, GENERICFORCE, LASTAEROTYPE } |
Public Types inherited from AerodynamicOutput | |
enum | eOutput { AEROD_OUT_NONE = 0x0U, AEROD_OUT_STD = (ToBeOutput::OUTPUT_PRIVATE << 0), AEROD_OUT_PGAUSS = (ToBeOutput::OUTPUT_PRIVATE << 1), AEROD_OUT_NODE = (ToBeOutput::OUTPUT_PRIVATE << 2), AEROD_OUT_MASK = (AEROD_OUT_STD | AEROD_OUT_PGAUSS | AEROD_OUT_NODE) } |
enum | { OUTPUT_NONE = 0x0U, OUTPUT_GP_X = (ToBeOutput::OUTPUT_PRIVATE << 4), OUTPUT_GP_R = (ToBeOutput::OUTPUT_PRIVATE << 5), OUTPUT_GP_V = (ToBeOutput::OUTPUT_PRIVATE << 6), OUTPUT_GP_W = (ToBeOutput::OUTPUT_PRIVATE << 7), OUTPUT_GP_CONFIGURATION = (OUTPUT_GP_X | OUTPUT_GP_R | OUTPUT_GP_V | OUTPUT_GP_W), OUTPUT_GP_F = (ToBeOutput::OUTPUT_PRIVATE << 8), OUTPUT_GP_M = (ToBeOutput::OUTPUT_PRIVATE << 9), OUTPUT_GP_FORCES = (OUTPUT_GP_F | OUTPUT_GP_M), OUTPUT_DEFAULT = (OUTPUT_GP_F | OUTPUT_GP_M), OUTPUT_GP_ALL = (ToBeOutput::OUTPUT_PRIVATE_MASK & (~AEROD_OUT_MASK)) } |
Definition at line 253 of file aeroelem.h.
AerodynamicBody::AerodynamicBody | ( | unsigned int | uLabel, |
const DofOwner * | pDO, | ||
const StructNode * | pN, | ||
InducedVelocity * | pR, | ||
bool | bPassive, | ||
const Vec3 & | fTmp, | ||
doublereal | dS, | ||
const Mat3x3 & | RaTmp, | ||
const Shape * | pC, | ||
const Shape * | pF, | ||
const Shape * | pV, | ||
const Shape * | pT, | ||
const Shape * | pTL, | ||
integer | iN, | ||
AeroData * | a, | ||
const DriveCaller * | pDC, | ||
bool | bUseJacobian, | ||
OrientationDescription | ood, | ||
flag | fOut | ||
) |
Definition at line 660 of file aeroelem.cc.
References ASSERT, DEBUGCOUTFNAME, StructDispNode::GetNodeType(), pNode, and Node::STRUCTURAL.
|
virtual |
|
virtual |
Implements Elem.
Definition at line 723 of file aeroelem.cc.
References Aerodynamic2DElem< 1 >::aerodata, AeroData::AssJac(), Aerodynamic2DElem< 1 >::bJacobian, c, Aerodynamic2DElem< 1 >::Chord, grad::cos(), Aerodynamic2DElem< 1 >::cq, DEBUGCOUT, ShapeOwner::dGet(), DriveOwner::dGet(), Rotor::dGetOmega(), PntWght::dGetPnt(), PntWght::dGetWght(), dHalfSpan, f, AirPropOwner::fGetAirVelocity(), GaussDataIterator::fGetNext(), Aerodynamic2DElem< 1 >::ForcePoint, Aerodynamic2DElem< 1 >::fq, Aerodynamic2DElem< 1 >::GDI, AirPropOwner::GetAirProps(), Elem::GetElemType(), GaussDataIterator::GetFirst(), AeroData::GetForcesJac(), InducedVelocity::GetInducedVelocity(), WithLabel::GetLabel(), Mat6x6::GetMat11(), Mat6x6::GetMat12(), Mat6x6::GetMat21(), Mat6x6::GetMat22(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), Mat3xN::GetVec(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), AeroData::iGetNumDof(), MatCross, Mat3x3::MulTM(), MultRMRt(), Mat3x3::MulTV(), Aerodynamic2DElem< 1 >::OUTA, Aerodynamic2DElem< 1 >::pIndVel, pNode, FullSubMatrixHandler::PutColIndex(), Mat3xN::PutMat3x3(), FullSubMatrixHandler::PutRowIndex(), Vec3::PutTo(), Ra, Ra3, AerodynamicOutput::ResetIterator(), FullSubMatrixHandler::ResizeReset(), AeroData::SetAirData(), VariableSubMatrixHandler::SetFull(), VariableSubMatrixHandler::SetNullMatrix(), AeroData::SetSectionData(), grad::sin(), FullSubMatrixHandler::Sub(), Mat3x3::Transpose(), Aerodynamic2DElem< 1 >::Twist, Aerodynamic2DElem< 1 >::VelocityPoint, Aerodynamic2DElem< 1 >::vx, Elem::WorkSpaceDim(), Aerodynamic2DElem< 1 >::wx, and Zero3.
|
virtual |
Implements Elem.
Definition at line 938 of file aeroelem.cc.
References AssVec(), DEBUGCOUTFNAME, StructDispNode::iGetFirstMomentumIndex(), pNode, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), and Elem::WorkSpaceDim().
|
protected |
Definition at line 990 of file aeroelem.cc.
References VectorHandler::Add(), Aerodynamic2DElem< 1 >::AddForce_int(), Aerodynamic2DElem< 1 >::AddSectionalForce_int(), Aerodynamic2DElem< 1 >::aerodata, AeroData::AssRes(), ToBeOutput::bToBeOutput(), c, Aerodynamic2DElem< 1 >::Chord, grad::cos(), Vec3::Cross(), DEBUGCOUTFNAME, ShapeOwner::dGet(), DriveOwner::dGet(), Rotor::dGetOmega(), PntWght::dGetPnt(), PntWght::dGetWght(), dHalfSpan, f, F, AirPropOwner::fGetAirVelocity(), GaussDataIterator::fGetNext(), Aerodynamic2DElem< 1 >::ForcePoint, Aerodynamic2DElem< 1 >::GDI, AirPropOwner::GetAirProps(), Elem::GetElemType(), GaussDataIterator::GetFirst(), AeroData::GetForces(), InducedVelocity::GetInducedVelocity(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), AeroData::iGetNumDof(), VectorHandler::iGetSize(), M, Mat3x3::MulTV(), Aerodynamic2DElem< 1 >::OUTA, Aerodynamic2DElem< 1 >::pIndVel, pNode, SubVectorHandler::PutRowIndex(), Vec3::PutTo(), Ra, Ra3, Vec3::Reset(), AerodynamicOutput::ResetIterator(), AeroData::SetAirData(), AerodynamicOutput::SetData(), AeroData::SetSectionData(), grad::sin(), Aerodynamic2DElem< 1 >::TipLoss, Aerodynamic2DElem< 1 >::Twist, Aerodynamic2DElem< 1 >::VelocityPoint, and Zero3.
Referenced by AssRes(), and InitialAssRes().
|
inlinevirtual |
Implements AerodynamicElem.
Definition at line 319 of file aeroelem.h.
References AerodynamicElem::AERODYNAMICBODY.
|
inlinevirtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 962 of file aeroelem.cc.
References Aerodynamic2DElem< 1 >::aerodata, AssVec(), DEBUGCOUTFNAME, StructDispNode::iGetFirstPositionIndex(), AeroData::iGetNumDof(), pNode, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), and Elem::WorkSpaceDim().
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 1164 of file aeroelem.cc.
References AerodynamicOutput::AEROD_OUT_NODE, AerodynamicOutput::AEROD_OUT_PGAUSS, AerodynamicOutput::AEROD_OUT_STD, OutputHandler::AERODYNAMIC, OutputHandler::Aerodynamic(), ASSERT, ToBeOutput::bToBeOutput(), F, Aerodynamic2DElem< 1 >::GDI, WithLabel::GetLabel(), AerodynamicOutput::GetOutput(), NumIntData::iGetNum(), M, Aerodynamic2DElem< 1 >::OUTA, Aerodynamic2DElem< iNN >::Output_int(), AerodynamicOutput::OutputData, pNode, OutputHandler::UseText(), and Vec3::Write().
|
virtual |
Implements Elem.
Definition at line 698 of file aeroelem.cc.
References Aerodynamic2DElem< 1 >::aerodata, Aerodynamic2DElem< 1 >::Chord, DEBUGCOUTFNAME, dHalfSpan, f, Aerodynamic2DElem< 1 >::ForcePoint, Aerodynamic2DElem< 1 >::GDI, WithLabel::GetLabel(), Mat3x3::GetVec(), NumIntData::iGetNum(), DriveOwner::pGetDriveCaller(), ShapeOwner::pGetShape(), Aerodynamic2DElem< 1 >::pIndVel, pNode, Ra, Shape::Restart(), AeroData::Restart(), DriveCaller::Restart(), Aerodynamic2DElem< 1 >::Twist, Aerodynamic2DElem< 1 >::VelocityPoint, Write(), and Vec3::Write().
|
protected |
Definition at line 261 of file aeroelem.h.
|
protected |
Definition at line 260 of file aeroelem.h.
|
protected |
Definition at line 265 of file aeroelem.h.
|
protected |
Definition at line 266 of file aeroelem.h.
|
protected |
Definition at line 258 of file aeroelem.h.
Referenced by AerodynamicBody(), AssJac(), AssRes(), AssVec(), InitialAssRes(), Output(), and Restart().
|
protected |
Definition at line 262 of file aeroelem.h.
|
protected |
Definition at line 263 of file aeroelem.h.