NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
CAE_Result.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// CAE_Result.ja
9//
10// 生成方式:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/CAE_CyclicSymmetricStageProperties.hxx>
22#include <NXOpen/CAE_ElementTypes.hxx>
23#include <NXOpen/CAE_PointInterpolationData.hxx>
24#include <NXOpen/CAE_PostEnvironmentsManager.hxx>
25#include <NXOpen/CAE_PostGraph.hxx>
26#include <NXOpen/NXObject.hxx>
27#include <NXOpen/ugmath.hxx>
28#include <NXOpen/libnxopencpp_cae_exports.hxx>
29#ifdef _MSC_VER
30#pragma warning(push)
31#pragma warning(disable:4996)
32#endif
33#ifdef __GNUC__
34#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35#endif
36namespace NXOpen
37{
38 namespace CAE
39 {
40 class Result;
41 }
42 namespace CAE
43 {
44 class BaseLoadcase;
45 }
46 namespace CAE
47 {
49 }
50 namespace CAE
51 {
53 }
54 namespace CAE
55 {
57 }
58 namespace CAE
59 {
60 class PostGraph;
61 }
62 namespace CAE
63 {
64 class PostMesh;
65 }
66 namespace CAE
67 {
69 }
70 class NXObject;
71 class TaggedObject;
72 class Unit;
73 namespace CAE
74 {
75 class _ResultBuilder;
76 class ResultImpl;
147 class NXOPENCPP_CAEEXPORT Result : public NXOpen::NXObject
148 {
159
166
167public: enum Quantity
168 {
878 };
879
890
906
920
921 public: enum Component
922 {
982 };
983
992
1009
1016
1028
1034
1035 public:
1036 struct Type
1037 {
1041 public: Type() :
1042 Quantity((NXOpen::CAE::Result::Quantity)0),
1043 Location((NXOpen::CAE::Result::Location)0),
1044 Section((NXOpen::CAE::Result::Section)0)
1045{
1046 }
1048 public: Type(NXOpen::CAE::Result::Quantity quantityInitial ,
1049 NXOpen::CAE::Result::Location locationInitial ,
1050 NXOpen::CAE::Result::Section sectionInitial ) :
1051 Quantity(quantityInitial),
1052 Location(locationInitial),
1053 Section(sectionInitial)
1054 {
1055 }
1056 };
1057
1067
1068 public:
1069 struct ResultSection
1070 {
1073 public: ResultSection() :
1074 Beamsection((NXOpen::CAE::Result::Section)0),
1075 Shellsection((NXOpen::CAE::Result::Section)0)
1076 {
1077 }
1079 public: ResultSection(NXOpen::CAE::Result::Section beamsectionInitial ,
1080 NXOpen::CAE::Result::Section shellsectionInitial ) :
1081 Beamsection(beamsectionInitial),
1082 Shellsection(shellsectionInitial)
1083 {
1084 }
1085 };
1086
1087 public: enum BeamEnd
1088 {
1092 };
1093
1108
1116
1117 public:
1118 struct Averaging
1119 {
1120 public: bool DoAveraging;
1127 public: Averaging() :
1128 DoAveraging(),
1135 {
1136 }
1138 public: Averaging(bool doAveragingInitial ,
1139 bool averageAcrossPropertyIdsInitial ,
1140 bool averageAcrossMaterialIdsInitial ,
1141 bool averageAcrossElementTypesInitial ,
1142 bool averageAcrossFeatangleInitial ,
1143 double averageAcrossAnglevalueInitial ,
1144 bool includeInternalElementContributionsInitial ) :
1145 DoAveraging(doAveragingInitial),
1146 AverageAcrossPropertyIds(averageAcrossPropertyIdsInitial),
1147 AverageAcrossMaterialIds(averageAcrossMaterialIdsInitial),
1148 AverageAcrossElementTypes(averageAcrossElementTypesInitial),
1149 AverageAcrossFeatangle(averageAcrossFeatangleInitial),
1150 AverageAcrossAnglevalue(averageAcrossAnglevalueInitial),
1151 IncludeInternalElementContributions(includeInternalElementContributionsInitial)
1152{
1153 }
1154 };
1155
1156 public: enum DbScale
1157 {
1160 };
1161
1162 public:
1163 struct ElementValue
1164 {
1165 public: bool DoElementValue;
1167 public: ElementValue() :
1170 {
1171 }
1173 public: ElementValue(bool doElementValueInitial ,
1175 DoElementValue(doElementValueInitial),
1176 Criterion(criterionInitial)
1177 {
1178 }
1179 };
1180
1184 public:
1185 struct NX_DEPRECATED("Deprecated in NX7.5.1. This structure has been replaced by NXOpen::CAE::ResultParameters") ResultParameters
1186 {
1187 public: int LoadCaseIndex;
1188 public: int IterationIndex;
1190 public: NXOpen::CAE::Result::Component Component;
1191 public: NXOpen::CAE::Result::ResultSection ResSection;
1192 public: int Section;
1193 public: int Plynumber;
1194 public: int Layer;
1195 public: NXOpen::CAE::Result::Averaging Averaging;
1196 public: bool IncludeMidnode;
1198 public: bool DisplayBeamResultInLocalCsys;
1199 public: NXOpen::CAE::Result::ElementValue ElementValue;
1201 public: double PhaseAngle;
1202 public: bool AbsoluteValue;
1203 public: double ScaleValue;
1204 public: NXOpen::Unit * Unit;
1205 public: bool CalculateBeamStrResults;
1206 public: bool AddBeamStrFillets;
1207 public: double BeamFilletRadius;
1208 public: ResultParameters() :
1209 LoadCaseIndex(),
1210 IterationIndex(),
1211 Type(),
1212 Component((NXOpen::CAE::Result::Component)0),
1213 ResSection(),
1214 Section(),
1215 Plynumber(),
1216 Layer(),
1217 Averaging(),
1218 IncludeMidnode(),
1220 DisplayBeamResultInLocalCsys(),
1221 ElementValue(),
1223 PhaseAngle(),
1224 AbsoluteValue(),
1225 ScaleValue(),
1226 Unit(),
1227 CalculateBeamStrResults(),
1228 AddBeamStrFillets(),
1229 BeamFilletRadius()
1230 {
1231 }
1233 public: ResultParameters(int loadCaseIndexInitial ,
1234 int iterationIndexInitial ,
1235 const NXOpen::CAE::Result::Type &typeInitial ,
1236 NXOpen::CAE::Result::Component componentInitial ,
1237 const NXOpen::CAE::Result::ResultSection &resSectionInitial ,
1238 int sectionInitial ,
1239 int plynumberInitial ,
1240 int layerInitial ,
1241 const NXOpen::CAE::Result::Averaging &averagingInitial ,
1242 bool includeMidnodeInitial ,
1243 NXOpen::CAE::Result::CoordinateSystem coordinateSystemInitial ,
1244 bool displayBeamResultInLocalCsysInitial ,
1245 const NXOpen::CAE::Result::ElementValue &elementValueInitial ,
1246 NXOpen::CAE::Result::Complex complexInitial ,
1247 double phaseAngleInitial ,
1248 bool absoluteValueInitial ,
1249 double scaleValueInitial ,
1250 NXOpen::Unit * unitInitial ,
1251 bool calculateBeamStrResultsInitial ,
1252 bool addBeamStrFilletsInitial ,
1253 double beamFilletRadiusInitial ) :
1254 LoadCaseIndex(loadCaseIndexInitial),
1255 IterationIndex(iterationIndexInitial),
1256 Type(typeInitial),
1257 Component(componentInitial),
1258 ResSection(resSectionInitial),
1259 Section(sectionInitial),
1260 Plynumber(plynumberInitial),
1261 Layer(layerInitial),
1262 Averaging(averagingInitial),
1263 IncludeMidnode(includeMidnodeInitial),
1264 CoordinateSystem(coordinateSystemInitial),
1265 DisplayBeamResultInLocalCsys(displayBeamResultInLocalCsysInitial),
1266 ElementValue(elementValueInitial),
1267 Complex(complexInitial),
1268 PhaseAngle(phaseAngleInitial),
1269 AbsoluteValue(absoluteValueInitial),
1270 ScaleValue(scaleValueInitial),
1271 Unit(unitInitial),
1272 CalculateBeamStrResults(calculateBeamStrResultsInitial),
1273 AddBeamStrFillets(addBeamStrFilletsInitial),
1274 BeamFilletRadius(beamFilletRadiusInitial)
1275{
1276 }
1277 };
1278
1282 public:
1283 struct NX_DEPRECATED("Deprecated in NX7.5.1. This structure has been replaced by NXOpen::CAE::DeformationParameters") DeformationParameters
1284 {
1285 public: int LoadCaseIndex;
1286 public: int IterationIndex;
1287 public: NXOpen::CAE::Result::Type Type;
1288 public: NXOpen::CAE::Result::Complex Complex;
1289 public: double PhaseAngle;
1290 public: NXOpen::CAE::Result::DeformationScale DeformationScale;
1291 public: double AbsoluteScaleValue;
1292 public: double ModelPercentScaleValue;
1293 public: DeformationParameters() :
1294 LoadCaseIndex(),
1295 IterationIndex(),
1296 Type(),
1297 Complex((NXOpen::CAE::Result::Complex)0),
1298 PhaseAngle(),
1299 DeformationScale((NXOpen::CAE::Result::DeformationScale)0),
1300 AbsoluteScaleValue(),
1301 ModelPercentScaleValue()
1302 {
1303 }
1305 public: DeformationParameters(int loadCaseIndexInitial ,
1306 int iterationIndexInitial ,
1307 const NXOpen::CAE::Result::Type &typeInitial ,
1308 NXOpen::CAE::Result::Complex complexInitial ,
1309 double phaseAngleInitial ,
1310 NXOpen::CAE::Result::DeformationScale deformationScaleInitial ,
1311 double absoluteScaleValueInitial ,
1312 double modelPercentScaleValueInitial ) :
1313 LoadCaseIndex(loadCaseIndexInitial),
1314 IterationIndex(iterationIndexInitial),
1315 Type(typeInitial),
1316 Complex(complexInitial),
1317 PhaseAngle(phaseAngleInitial),
1318 DeformationScale(deformationScaleInitial),
1319 AbsoluteScaleValue(absoluteScaleValueInitial),
1320 ModelPercentScaleValue(modelPercentScaleValueInitial)
1321 {
1322 }
1323 };
1325 public:
1326 struct VelocityParameters
1327 {
1328 public: int LoadCaseIndex;
1329 public: int IterationIndex;
1331 public: VelocityParameters() :
1332 LoadCaseIndex(),
1334 Type()
1335 {
1336 }
1338 public: VelocityParameters(int loadCaseIndexInitial ,
1339 int iterationIndexInitial ,
1340 const NXOpen::CAE::Result::Type &typeInitial ) :
1341 LoadCaseIndex(loadCaseIndexInitial),
1342 IterationIndex(iterationIndexInitial),
1343 Type(typeInitial)
1344 {
1345 }
1346 };
1347
1348 public:
1349 struct ResultBasicUnit
1350 {
1357 public: ResultBasicUnit() :
1358 MassUnit(),
1359 LengthUnit(),
1360 TimeUnit(),
1362 AngleUnit(),
1364 {
1365 }
1367 public: ResultBasicUnit(NXOpen::Unit * massUnitInitial ,
1368 NXOpen::Unit * lengthUnitInitial ,
1369 NXOpen::Unit * timeUnitInitial ,
1370 NXOpen::Unit * temperatureUnitInitial ,
1371 NXOpen::Unit * angleUnitInitial ,
1372 NXOpen::Unit * thermalenergyUnitInitial ) :
1373 MassUnit(massUnitInitial),
1374 LengthUnit(lengthUnitInitial),
1375 TimeUnit(timeUnitInitial),
1376 TemperatureUnit(temperatureUnitInitial),
1377 AngleUnit(angleUnitInitial),
1378 ThermalenergyUnit(thermalenergyUnitInitial)
1379{
1380 }
1381 };
1382
1405
1417
1434
1441
1448
1467
1478 private: ResultImpl * m_result_impl;
1479 private: friend class _ResultBuilder;
1480 protected: Result();
1481public: ~Result();
1486 (
1487 );
1493 public: std::vector<NXString> AskLoadcases
1494 (
1495 );
1500 (
1501 int loadcaseIndex
1502 );
1508 public: std::vector<NXString> AskIterations
1509 (
1510 int loadcaseIndex
1511 );
1517 public: int AskNumNodes
1518 (
1519 );
1525 public: int AskNumElements
1526 (
1527 );
1531 public: void AskElementNodes
1532 (
1533 int elementIndex ,
1534 std::vector<int> & nodeIndex
1535 );
1539 public: std::vector<NXOpen::Point3d> AskNodeCoordinates
1540 (
1541 const std::vector<int> & nodeIndex
1542 );
1546 public: void AskResultTypes
1547 (
1548 int loadcaseIndex ,
1549 int iterationIndex ,
1550 std::vector<NXOpen::CAE::Result::Type> & types ,
1551 std::vector<NXString> & description
1552 );
1559 (
1561 );
1567 (
1569 int groupIndex ,
1570 std::vector<int> & elementIndex
1571 );
1575 public: int AskNodeIndex
1576 (
1577 int nodeLabel
1578 );
1583 (
1584 int elementLabel
1585 );
1589 public: int AskNodeLabel
1590 (
1591 int nodeIndex
1592 );
1597 (
1598 int elementIndex
1599 );
1604 (
1605 int loadcaseIndex ,
1606 int iterationIndex ,
1607 const NXOpen::CAE::Result::Type & resultType ,
1608 std::vector<int> & sectionNums
1609 );
1614 (
1616 );
1621 (
1622 int loadcaseIndex ,
1623 NXString* description ,
1624 double* value
1625 );
1630 (
1631 int elementIndex
1632 );
1637 (
1638 int loadcaseIndex ,
1639 int iterationIndex ,
1640 const NXOpen::CAE::Result::Type & resultType
1641 );
1646 (
1647 int loadcaseIndex ,
1648 int iterationIndex ,
1649 const NXOpen::CAE::Result::Type & resultType
1650 );
1654 public: std::vector<NXOpen::CAE::BaseLoadcase *> GetLoadcases
1655 (
1656 );
1661 (
1662 const NXString & journalIdentifier
1663 );
1668 (
1669 const char * journalIdentifier
1670 );
1674 public: std::vector<int> GetResultCoordinateSystems
1675 (
1676 );
1681 (
1682 int id ,
1685 NXOpen::Point3d* origin ,
1686 NXOpen::Matrix3x3* matrix
1687 );
1692 (
1693 int elementIndex
1694 );
1699 (
1700 int elementIndex
1701 );
1706 (
1707 int elementIndex ,
1708 int faceIndex ,
1709 std::vector<int> & nodeIndices
1710 );
1715 (
1716 int elementIndex ,
1717 int edgeIndex ,
1718 std::vector<int> & nodeIndices
1719 );
1723 public: void GetMeshes
1724 (
1725 std::vector<NXOpen::CAE::PostMesh *> & meshes
1726 );
1731 (
1732 int dimension ,
1733 std::vector<NXOpen::CAE::PostMesh *> & meshes
1734 );
1739 (
1740 std::vector<int> & plyIDs
1741 );
1746 (
1747 );
1752 (
1753 );
1758 (
1760 );
1765 (
1766 );
1771 (
1773 );
1779 (
1780 );
1785 (
1786 std::vector<NXOpen::CAE::CyclicSymmetricStageProperties *> & stages
1787 );
1795 public: NX_DEPRECATED("Deprecated in NX2312.0.0. There is no replacement for this method, We are not using meshfid.") NXOpen::CAE::PostMeshCollector * GetPostMeshCollectorFromMeshfid
1796 (
1797 int meshfid
1798 );
1802 public: std::vector<NXString> AskUserGroups
1803 (
1804 );
1810 (
1811 const std::vector<NXOpen::Point3d> & locations ,
1812 const std::vector<int> & inputElements
1813 );
1818 (
1819 const NXString & resultName
1820 );
1825 (
1826 const char * resultName
1827 );
1828 };
1829 }
1830}
1831#ifdef _MSC_VER
1832#pragma warning(pop)
1833#endif
1834#ifdef __GNUC__
1835#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1836#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1837#endif
1838#endif
1839#undef EXPORTLIBRARY