gs-cae-design 1.1.57 → 1.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +23 -0
  2. package/docs/classes/Command.CommandFiniteElement.md +2 -0
  3. package/docs/classes/CommandInterfaceManager.md +112 -0
  4. package/docs/classes/CommonInterfaceManager.md +13 -0
  5. package/lib/.gz +0 -0
  6. package/lib/CAEDesign.common-report.html +2 -2
  7. package/lib/CAEDesign.common.js +275 -88
  8. package/lib/CAEDesign.umd-report.html +2 -2
  9. package/lib/CAEDesign.umd.js +275 -88
  10. package/lib/CAEDesign.umd.min-report.html +2 -2
  11. package/lib/CAEDesign.umd.min.js +275 -88
  12. package/package.json +1 -1
  13. package/src/caeCardEditor/caeCardObjects/sacinp/cardSURFWT.ts +6 -6
  14. package/src/caeCardEditor/caeCardObjects/seainp/cardCURR.ts +17 -2
  15. package/src/caeCardEditor/caeCardObjects/seainp/cardDEAD.ts +8 -1
  16. package/src/caeCardEditor/caeCardObjects/seainp/cardWAVE.ts +27 -0
  17. package/src/caeCardEditor/caeCardObjects/seainp/cardWIND.ts +15 -0
  18. package/src/gsDevFx/managers/datReaderManager.ts +37 -60
  19. package/src/gsDevFx/managers/datWriterManager.ts +17 -1
  20. package/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.ts +113 -1
  21. package/src/gsDevFx/managers/interfaceManagers/commonInterfaceManager.ts +11 -1
  22. package/src/gsDevFx/managers/persistenceManager.ts +10 -5
  23. package/src/gsDevFx/objects/caeObjects/aftertreatment/deadLoadObject.ts +133 -0
  24. package/src/gsDevFx/objects/caeObjects/grupObject.ts +11 -0
  25. package/src/gsDevFx/objects/caeObjects/jointObject.ts +51 -24
  26. package/src/gsDevFx/objects/caeObjects/memberObject.ts +55 -16
  27. package/src/gsDevFx/objects/caeObjects/pGrupObject.ts +11 -0
  28. package/src/gsDevFx/objects/caeObjects/plateObject.ts +11 -0
  29. package/src/gsDevFx/objects/caeObjects/pretreatment/surfaceDefinitionObject.ts +1 -1
  30. package/src/gsDevFx/objects/caeObjects/pretreatment/surfaceWeightObject.ts +7 -2
  31. package/src/gsDevFx/objects/caeObjects/sectionObject.ts +11 -0
  32. package/src/gsDevFx/objects/loadObjects/currLoadObject.ts +162 -0
  33. package/src/gsDevFx/objects/loadObjects/loadConditionObject.ts +6 -3
  34. package/src/gsDevFx/objects/loadObjects/waveLoadObject.ts +242 -0
  35. package/src/gsDevFx/objects/loadObjects/windLoadObject.ts +160 -0
  36. package/src/gsDevFx/propertyComponents/sections/teeSectionProperty.ts +43 -43
  37. package/src/gsDevFx/propertyComponents/sections/wfSectionProperty.ts +104 -104
  38. package/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/addCurrentLoadConfig.ts +99 -0
  39. package/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/commandAddCurrentLoad.ts +269 -0
  40. package/src/viewerWrapper/commands/aftertreatment/addDeadLoad/addDeadLoadConfig.ts +86 -0
  41. package/src/viewerWrapper/commands/aftertreatment/addDeadLoad/commandAddDeadLoad.ts +195 -0
  42. package/src/viewerWrapper/commands/aftertreatment/addJointLoad/commandAddJointLoad.ts +25 -7
  43. package/src/viewerWrapper/commands/aftertreatment/addWaveLoad/addWaveLoadConfig.ts +208 -0
  44. package/src/viewerWrapper/commands/aftertreatment/addWaveLoad/commandAddWaveLoad.ts +309 -0
  45. package/src/viewerWrapper/commands/aftertreatment/addWindLoad/addWindLoadConfig.ts +143 -0
  46. package/src/viewerWrapper/commands/aftertreatment/addWindLoad/commandAddWindLoad.ts +279 -0
  47. package/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/commandEditCurrentLoad.ts +286 -0
  48. package/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/editCurrentLoadConfig.ts +129 -0
  49. package/src/viewerWrapper/commands/aftertreatment/editJointLoad/commandEditJointLoad.ts +93 -15
  50. package/src/viewerWrapper/commands/aftertreatment/editWaveLoad/commandEditWaveLoad.ts +330 -0
  51. package/src/viewerWrapper/commands/aftertreatment/editWaveLoad/editWaveLoadConfig.ts +243 -0
  52. package/src/viewerWrapper/commands/aftertreatment/editWindLoad/commandEditWindLoad.ts +296 -0
  53. package/src/viewerWrapper/commands/aftertreatment/editWindLoad/editWindLoadConfig.ts +176 -0
  54. package/src/viewerWrapper/commands/commandSplitMemberBase.ts +6 -8
  55. package/src/viewerWrapper/commands/createPlate/plateConfig.ts +22 -0
  56. package/src/viewerWrapper/commands/createPlatesInRange/commandCreatePlatesInRange.ts +203 -73
  57. package/src/viewerWrapper/commands/createPlatesInRange/createPlatesInRangeConfig.ts +6 -0
  58. package/src/viewerWrapper/commands/editGrup/commandEditGrup.ts +36 -26
  59. package/src/viewerWrapper/commands/pretreatment/colorDivideByEditComponentGroup/commandColorDivideByEditComponentGroup.ts +2 -2
  60. package/src/viewerWrapper/commands/pretreatment/editJointWeight/commandEditJointWeight.ts +8 -1
  61. package/src/viewerWrapper/commands/pretreatment/editMemberWeight/commandEditMemberWeight.ts +9 -1
  62. package/src/viewerWrapper/commands/pretreatment/finiteElement/commandFiniteElement.ts +3 -0
  63. package/src/viewerWrapper/commands/pretreatment/surfaceDefinition/commandSurfaceDefinition.ts +3 -2
  64. package/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/commandSurfaceDefinitionEdit.ts +1 -1
  65. package/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/commandSurfaceWeightAdd.ts +10 -6
  66. package/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/commandSurfaceWeightEdit.ts +187 -0
  67. package/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/surfaceWeightEditConfig.ts +72 -0
  68. package/src/viewerWrapper/commands/splitMemberByCoordinate/commandSplitMemberByCoordinate.ts +6 -2
  69. package/src/viewerWrapper/commands/splitMemberByEqualPatrs/commandSplitMemberByEqualPatrs.ts +6 -2
  70. package/src/viewerWrapper/commands/splitMemberByExistingJoint/commandSplitMemberByExistingJoint.ts +6 -2
  71. package/src/viewerWrapper/commands/splitMemberByIntersection/commandSplitMemberByIntersection.ts +6 -2
  72. package/src/viewerWrapper/commands/splitMemberByLength/commandSplitMemberByLength.ts +8 -4
  73. package/src/viewerWrapper/commands/splitMemberByPerpendicular/commandSplitMemberByPerpendicular.ts +51 -6
  74. package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMCONC.d.ts +1 -1
  75. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardCURR.d.ts +6 -0
  76. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardCURR.d.ts.map +1 -1
  77. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardDEAD.d.ts +8 -0
  78. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardDEAD.d.ts.map +1 -1
  79. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardWAVE.d.ts +2 -0
  80. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardWAVE.d.ts.map +1 -1
  81. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardWIND.d.ts +2 -0
  82. package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardWIND.d.ts.map +1 -1
  83. package/types/caeDesign/src/gsDevFx/managers/datReaderManager.d.ts +27 -29
  84. package/types/caeDesign/src/gsDevFx/managers/datReaderManager.d.ts.map +1 -1
  85. package/types/caeDesign/src/gsDevFx/managers/datWriterManager.d.ts.map +1 -1
  86. package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.d.ts +18 -1
  87. package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.d.ts.map +1 -1
  88. package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commonInterfaceManager.d.ts +2 -0
  89. package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commonInterfaceManager.d.ts.map +1 -1
  90. package/types/caeDesign/src/gsDevFx/managers/persistenceManager.d.ts.map +1 -1
  91. package/types/caeDesign/src/gsDevFx/objects/caeObjects/aftertreatment/deadLoadObject.d.ts +26 -0
  92. package/types/caeDesign/src/gsDevFx/objects/caeObjects/aftertreatment/deadLoadObject.d.ts.map +1 -0
  93. package/types/caeDesign/src/gsDevFx/objects/caeObjects/grupObject.d.ts +2 -0
  94. package/types/caeDesign/src/gsDevFx/objects/caeObjects/grupObject.d.ts.map +1 -1
  95. package/types/caeDesign/src/gsDevFx/objects/caeObjects/jointObject.d.ts +2 -0
  96. package/types/caeDesign/src/gsDevFx/objects/caeObjects/jointObject.d.ts.map +1 -1
  97. package/types/caeDesign/src/gsDevFx/objects/caeObjects/memberObject.d.ts +2 -0
  98. package/types/caeDesign/src/gsDevFx/objects/caeObjects/memberObject.d.ts.map +1 -1
  99. package/types/caeDesign/src/gsDevFx/objects/caeObjects/pGrupObject.d.ts +2 -0
  100. package/types/caeDesign/src/gsDevFx/objects/caeObjects/pGrupObject.d.ts.map +1 -1
  101. package/types/caeDesign/src/gsDevFx/objects/caeObjects/plateObject.d.ts +2 -0
  102. package/types/caeDesign/src/gsDevFx/objects/caeObjects/plateObject.d.ts.map +1 -1
  103. package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/surfaceWeightObject.d.ts.map +1 -1
  104. package/types/caeDesign/src/gsDevFx/objects/caeObjects/sectionObject.d.ts +2 -0
  105. package/types/caeDesign/src/gsDevFx/objects/caeObjects/sectionObject.d.ts.map +1 -1
  106. package/types/caeDesign/src/gsDevFx/objects/loadObjects/currLoadObject.d.ts +46 -0
  107. package/types/caeDesign/src/gsDevFx/objects/loadObjects/currLoadObject.d.ts.map +1 -0
  108. package/types/caeDesign/src/gsDevFx/objects/loadObjects/loadConditionObject.d.ts.map +1 -1
  109. package/types/caeDesign/src/gsDevFx/objects/loadObjects/waveLoadObject.d.ts +65 -0
  110. package/types/caeDesign/src/gsDevFx/objects/loadObjects/waveLoadObject.d.ts.map +1 -0
  111. package/types/caeDesign/src/gsDevFx/objects/loadObjects/windLoadObject.d.ts +50 -0
  112. package/types/caeDesign/src/gsDevFx/objects/loadObjects/windLoadObject.d.ts.map +1 -0
  113. package/types/caeDesign/src/gsDevFx/operators/cAEObjectPreSelector.d.ts.map +1 -1
  114. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/addCurrentLoadConfig.d.ts +7 -0
  115. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/addCurrentLoadConfig.d.ts.map +1 -0
  116. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/commandAddCurrentLoad.d.ts +27 -0
  117. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addCurrentLoad/commandAddCurrentLoad.d.ts.map +1 -0
  118. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addDeadLoad/addDeadLoadConfig.d.ts +5 -0
  119. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addDeadLoad/addDeadLoadConfig.d.ts.map +1 -0
  120. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addDeadLoad/commandAddDeadLoad.d.ts +15 -0
  121. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addDeadLoad/commandAddDeadLoad.d.ts.map +1 -0
  122. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addJointLoad/commandAddJointLoad.d.ts.map +1 -1
  123. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWaveLoad/addWaveLoadConfig.d.ts +5 -0
  124. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWaveLoad/addWaveLoadConfig.d.ts.map +1 -0
  125. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWaveLoad/commandAddWaveLoad.d.ts +27 -0
  126. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWaveLoad/commandAddWaveLoad.d.ts.map +1 -0
  127. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWindLoad/addWindLoadConfig.d.ts +5 -0
  128. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWindLoad/addWindLoadConfig.d.ts.map +1 -0
  129. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWindLoad/commandAddWindLoad.d.ts +27 -0
  130. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addWindLoad/commandAddWindLoad.d.ts.map +1 -0
  131. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/commandEditCurrentLoad.d.ts +26 -0
  132. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/commandEditCurrentLoad.d.ts.map +1 -0
  133. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/editCurrentLoadConfig.d.ts +9 -0
  134. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editCurrentLoad/editCurrentLoadConfig.d.ts.map +1 -0
  135. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editJointLoad/commandEditJointLoad.d.ts +2 -1
  136. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editJointLoad/commandEditJointLoad.d.ts.map +1 -1
  137. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWaveLoad/commandEditWaveLoad.d.ts +26 -0
  138. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWaveLoad/commandEditWaveLoad.d.ts.map +1 -0
  139. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWaveLoad/editWaveLoadConfig.d.ts +7 -0
  140. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWaveLoad/editWaveLoadConfig.d.ts.map +1 -0
  141. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWindLoad/commandEditWindLoad.d.ts +26 -0
  142. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWindLoad/commandEditWindLoad.d.ts.map +1 -0
  143. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWindLoad/editWindLoadConfig.d.ts +7 -0
  144. package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editWindLoad/editWindLoadConfig.d.ts.map +1 -0
  145. package/types/caeDesign/src/viewerWrapper/commands/commandSplitMemberBase.d.ts.map +1 -1
  146. package/types/caeDesign/src/viewerWrapper/commands/createPlate/plateConfig.d.ts +1 -0
  147. package/types/caeDesign/src/viewerWrapper/commands/createPlate/plateConfig.d.ts.map +1 -1
  148. package/types/caeDesign/src/viewerWrapper/commands/createPlatesInRange/commandCreatePlatesInRange.d.ts.map +1 -1
  149. package/types/caeDesign/src/viewerWrapper/commands/createPlatesInRange/createPlatesInRangeConfig.d.ts.map +1 -1
  150. package/types/caeDesign/src/viewerWrapper/commands/editGrup/commandEditGrup.d.ts +1 -0
  151. package/types/caeDesign/src/viewerWrapper/commands/editGrup/commandEditGrup.d.ts.map +1 -1
  152. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editJointWeight/commandEditJointWeight.d.ts.map +1 -1
  153. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editMemberWeight/commandEditMemberWeight.d.ts.map +1 -1
  154. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/finiteElement/commandFiniteElement.d.ts.map +1 -1
  155. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinition/commandSurfaceDefinition.d.ts.map +1 -1
  156. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/commandSurfaceWeightAdd.d.ts.map +1 -1
  157. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/commandSurfaceWeightEdit.d.ts +18 -0
  158. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/commandSurfaceWeightEdit.d.ts.map +1 -0
  159. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/surfaceWeightEditConfig.d.ts +13 -0
  160. package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightEdit/surfaceWeightEditConfig.d.ts.map +1 -0
  161. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByCoordinate/commandSplitMemberByCoordinate.d.ts.map +1 -1
  162. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByEqualPatrs/commandSplitMemberByEqualPatrs.d.ts.map +1 -1
  163. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByExistingJoint/commandSplitMemberByExistingJoint.d.ts.map +1 -1
  164. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByIntersection/commandSplitMemberByIntersection.d.ts.map +1 -1
  165. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByLength/commandSplitMemberByLength.d.ts.map +1 -1
  166. package/types/caeDesign/src/viewerWrapper/commands/splitMemberByPerpendicular/commandSplitMemberByPerpendicular.d.ts.map +1 -1
  167. package/types/caeDesign/src/viewerWrapper/module/createMenu.d.ts.map +0 -1
  168. package/types/caeDesign/src/viewerWrapper/panel/viewPoint/viewPointPanel.d.ts +0 -36
  169. package/types/ceecDesign/src/gsDevFx/managers/persistenceManager.d.ts +2 -0
  170. package/types/ceecDesign/src/gsDevFx/managers/persistenceManager.d.ts.map +1 -1
  171. package/types/ceecDesign/src/gsDevFx/objects/designBaseObject.d.ts +53 -0
  172. package/types/ceecDesign/src/gsDevFx/objects/designBaseObject.d.ts.map +1 -0
  173. package/types/ceecDesign/src/gsDevFx/viewer.d.ts.map +1 -0
  174. package/types/ceecDesign/src/utils/cookie.d.ts +0 -38
  175. package/types/ceecDesign/src/utils/cookie.d.ts.map +0 -1
@@ -0,0 +1,243 @@
1
+ import { DesignBaseObject } from "gs-ceec-design";
2
+ import { Process } from "../../../../gsDevFx/process";
3
+ import { Config } from "../../../../gsDevFx/propertyComponents/config";
4
+ import { PropertyComponent } from "../../../../gsDevFx/propertyComponents/propertyComponent";
5
+ import {
6
+ WaveType,
7
+ InputMode,
8
+ CriticalPosition,
9
+ PrintOption,
10
+ } from "../../../../gsDevFx/objects/loadObjects/waveLoadObject";
11
+
12
+ export default class AddWaveLoadConfig extends Config {
13
+ constructor() {
14
+ super();
15
+
16
+ let property = new PropertyComponent();
17
+ property.name = "编辑波浪荷载";
18
+ property.data = {
19
+ loadCondition: {
20
+ name: "荷载工况",
21
+ type: "select",
22
+ selectOptions: {
23
+ selections: [],
24
+ change: () => {
25
+ this.loadConditionChange()
26
+ }
27
+ },
28
+ value: null,
29
+ },
30
+ waveType: {
31
+ name: "波浪类型",
32
+ value: null,
33
+ type: "select",
34
+ selectOptions: {
35
+ selections: [
36
+ {
37
+ label: "线性波",
38
+ value: WaveType.AIRY,
39
+ },
40
+ {
41
+ label: "线性波浪",
42
+ value: WaveType.AIRC,
43
+ },
44
+ {
45
+ label: "高阶非线性波",
46
+ value: WaveType.STOK,
47
+ },
48
+ {
49
+ label: "精确非线性波",
50
+ value: WaveType.STRE,
51
+ },
52
+ {
53
+ label: "精确非线性波(N阶)",
54
+ value: WaveType.STRN,
55
+ },
56
+ {
57
+ label: "浅水非线性波",
58
+ value: WaveType.CNOI,
59
+ },
60
+ {
61
+ label: "孤立波",
62
+ value: WaveType.SOLI,
63
+ },
64
+ {
65
+ label: "用户自定义波",
66
+ value: WaveType.LINE,
67
+ },
68
+ {
69
+ label: "复用波浪设置",
70
+ value: WaveType.REPT,
71
+ },
72
+ ],
73
+ },
74
+ },
75
+ waveHeight: {
76
+ name: "波高",
77
+ value: null,
78
+ },
79
+ wavePeriod: {
80
+ name: "周期",
81
+ value: null,
82
+ },
83
+ waveLength: {
84
+ name: "波长",
85
+ value: null,
86
+ },
87
+ waveAngle: {
88
+ name: "波浪方向",
89
+ value: null,
90
+ },
91
+ kinematFactor: {
92
+ name: "运动学系数",
93
+ value: null,
94
+ },
95
+ orderOfStream: {
96
+ name: "波浪阶数",
97
+ value: null,
98
+ },
99
+ isLocalAccelOnly: {
100
+ name: "仅考虑局部加速度",
101
+ type: "switch",
102
+ value: false,
103
+ },
104
+ inputMode: {
105
+ name: "定义单位",
106
+ type: "select",
107
+ value: null,
108
+ selectOptions: {
109
+ selections: [
110
+ {
111
+ label: "长度",
112
+ value: InputMode.Length,
113
+ },
114
+ {
115
+ label: "角度",
116
+ value: InputMode.Degrees,
117
+ },
118
+ {
119
+ label: "时间",
120
+ value: InputMode.Time,
121
+ },
122
+ ],
123
+ },
124
+ },
125
+ crestPosition: {
126
+ name: "初始波峰位置",
127
+ value: null,
128
+ },
129
+ stepSize: {
130
+ name: "波浪位置步长",
131
+ value: null,
132
+ },
133
+ staticSteps: {
134
+ name: "波浪位置数量",
135
+ value: null,
136
+ },
137
+ criticalPosition: {
138
+ name: "临界位置",
139
+ type: "select",
140
+ value: null,
141
+ selectOptions: {
142
+ selections: [
143
+ {
144
+ label: "最大倾覆力矩",
145
+ value: CriticalPosition.MM,
146
+ },
147
+ {
148
+ label: "最小倾覆力矩",
149
+ value: CriticalPosition.NM,
150
+ },
151
+ {
152
+ label: "最大基底剪力",
153
+ value: CriticalPosition.MS,
154
+ },
155
+ {
156
+ label: "最小基底剪力",
157
+ value: CriticalPosition.NS,
158
+ },
159
+ {
160
+ label: "最大上拔力",
161
+ value: CriticalPosition.MU,
162
+ },
163
+ {
164
+ label: "最大下压力",
165
+ value: CriticalPosition.MD,
166
+ },
167
+ {
168
+ label: "所有位置 / 全工况",
169
+ value: CriticalPosition.AL,
170
+ },
171
+ ],
172
+ },
173
+ },
174
+ stillWaterDepth: {
175
+ name: "静水深覆盖值",
176
+ value: null,
177
+ },
178
+ mudlineElevation: {
179
+ name: "泥面高程覆盖值",
180
+ value: null,
181
+ },
182
+ memberSegmentationMax: {
183
+ name: "构件最大剖分数",
184
+ value: null,
185
+ },
186
+ memberSegmentationMin: {
187
+ name: "构件最小剖分数",
188
+ value: null,
189
+ },
190
+ printOption: {
191
+ name: "输出选项",
192
+ value: null,
193
+ type: "select",
194
+ selectOptions: {
195
+ selections: [
196
+ {
197
+ label: "最简输出",
198
+ value: PrintOption.PrintOption0,
199
+ },
200
+ {
201
+ label: "倾覆力矩与剪力",
202
+ value: PrintOption.PrintOption1,
203
+ },
204
+ {
205
+ label: "泥线处力与力矩合力",
206
+ value: PrintOption.PrintOption2,
207
+ },
208
+ {
209
+ label: "网格点速度与加速度",
210
+ value: PrintOption.PrintOption3,
211
+ },
212
+ ],
213
+ },
214
+ },
215
+ tip: {
216
+ name: "提示",
217
+ value: null,
218
+ },
219
+ };
220
+ this.properties.add(property);
221
+
222
+ this.refreshLoadConditionList();
223
+ }
224
+
225
+ refreshLoadConditionList() {
226
+ let property = this.properties.items[0];
227
+ let conditionNode =
228
+ Process.activeProcess.findRenderObjectByName("荷载工况");
229
+ if (conditionNode) {
230
+ property.data.loadCondition.selectOptions.selections = [];
231
+ conditionNode.childObjects.map((item) => {
232
+ if ((item as DesignBaseObject).checkBusinessStateIsActive()) {
233
+ property.data.loadCondition.selectOptions.selections.push({
234
+ label: item.name,
235
+ value: item.name,
236
+ });
237
+ }
238
+ });
239
+ }
240
+ }
241
+
242
+ loadConditionChange() {}
243
+ }
@@ -0,0 +1,296 @@
1
+ import { CameraMouse } from "../../../../gsDevFx/operators/cameraMouse";
2
+ import { CAEObjectPreSelector } from "../../../../gsDevFx/operators/cAEObjectPreSelector";
3
+ import { CAEObjectSelector } from "../../../../gsDevFx/operators/caeObjectSelector";
4
+ import { CommandSelect } from "../../../../gsDevFx/commands/commandSelect";
5
+ import { CommandComponent } from "../../commandComponent";
6
+ import EditWindLoadConfig from "./editWindLoadConfig";
7
+ import { DesignBaseObject } from "gs-ceec-design";
8
+ import { LoadConditionObject } from "../../../../gsDevFx/objects/loadObjects/loadConditionObject";
9
+ import { BusinessState } from "gs-ceec-design";
10
+ import { CaeNumber } from "../../../../utility/utility";
11
+ import { WindLoadObject } from "../../../../gsDevFx/objects/loadObjects/windLoadObject";
12
+ import { SeastateLdopt } from "../../../../gsDevFx/objects/caeObjects/optionObjects/seastateLdopt"
13
+ import { CardLDOPT } from "../../../../caeCardEditor/caeCardObjects/seainp/cardLDOPT"
14
+
15
+ export default class CommandEditWindLoad extends CommandComponent {
16
+ typeName = "CommandEditWindLoad";
17
+
18
+ config: EditWindLoadConfig;
19
+ preSelector: CAEObjectPreSelector;
20
+ caeObjectSelector: CAEObjectSelector;
21
+
22
+ loadConditionRO: LoadConditionObject = null;
23
+ currentWindLoadRO: WindLoadObject = null;
24
+
25
+ constructor() {
26
+ super();
27
+ }
28
+
29
+ begin(): void {
30
+ this.changeOperators();
31
+
32
+ console.log("CommandEditWindLoad");
33
+ this.config = new EditWindLoadConfig();
34
+ this.config.show();
35
+
36
+ this.config.loadConditionChange = () => {
37
+ let data = this.config.properties.items[0].data;
38
+ let loadCondition = data.loadCondition.value;
39
+
40
+ this.loadConditionRO =
41
+ this.getAndCreateLoadConditionObjectByName(loadCondition);
42
+
43
+ let loadGroupRO = this.getAndCreateLoadGroupByLoadCondition(
44
+ this.loadConditionRO
45
+ );
46
+
47
+ this.currentWindLoadRO = null;
48
+ for (let i = 0; i < loadGroupRO.childObjects.length; i++) {
49
+ let windLoad = loadGroupRO.childObjects[i] as WindLoadObject;
50
+ if (windLoad.checkBusinessStateIsActive()) {
51
+ this.currentWindLoadRO = windLoad;
52
+ data.windVelocity.value = windLoad.windVelocity;
53
+ data.referenceHeightOrWindPressure.value = windLoad.referenceHeightOrWindPressure;
54
+ data.windVariationDefinition.value = windLoad.windVariationDefinition;
55
+ data.windDirection.value = windLoad.windDirection;
56
+ data.memberLoadingOption.value = windLoad.memberLoadingOption;
57
+ data.isWaterDepthRatherThanOriginElevation.value = windLoad.isWaterDepthRatherThanOriginElevation;
58
+ data.stillWaterDepthOverride.value = windLoad.stillWaterDepthOverride;
59
+ data.isPrintDetailedLoadReport.value = windLoad.isPrintDetailedLoadReport;
60
+ }
61
+ }
62
+ };
63
+ }
64
+
65
+ restore(): void {
66
+ this.changeOperators();
67
+ this.config.show();
68
+ }
69
+
70
+ changeOperators(): void {
71
+ // 进入命令前清空选中与高亮.
72
+ this.viewer.selectionManager.clearAllSelectionAndHighlight();
73
+ this.viewer.updateDisplay();
74
+
75
+ // 清空操作器.
76
+ this.viewer.operatorManager.clear();
77
+ // 添加操作器
78
+ this.viewer.operatorManager.add(new CameraMouse());
79
+
80
+ this.preSelector = new CAEObjectPreSelector();
81
+ this.viewer.operatorManager.add(this.preSelector);
82
+
83
+ this.caeObjectSelector = new CAEObjectSelector();
84
+ this.viewer.operatorManager.add(this.caeObjectSelector);
85
+ //this.caeObjectSelector.isMultiSelect = true;
86
+
87
+ this.caeObjectSelector.lButtonUp.add(() => {
88
+ setTimeout(() => {
89
+ this.updatePanel();
90
+ }, 0);
91
+ });
92
+ }
93
+
94
+ end(): void {
95
+ this.config.hide();
96
+ super.end();
97
+
98
+ this.viewer.selectionManager.clearAllSelectionAndHighlight();
99
+ this.viewer.updateDisplay();
100
+
101
+ if (this.loadConditionRO) {
102
+ this.loadConditionRO.inactive(this.viewer);
103
+ }
104
+
105
+ let commandSelect = new CommandSelect();
106
+ this.process.commandManager.execute(commandSelect);
107
+ }
108
+
109
+ commandOk(): void {
110
+ let data = this.config.properties.items[0].data;
111
+
112
+ let loadCondition = data.loadCondition.value;
113
+ if (!loadCondition) {
114
+ // 没有填工况名数组
115
+ data.tip.value = 2;
116
+ return;
117
+ }
118
+
119
+ let isLegal1 = LoadConditionObject.checkNamelegal(loadCondition);
120
+ if (!isLegal1) {
121
+ data.tip.value = 3;
122
+ return;
123
+ }
124
+
125
+ let pretreatmentRO = this.viewer.process.findRenderObjectByName(
126
+ "后处理计算结果"
127
+ ) as DesignBaseObject;
128
+ let combinationParent = this.process.findCaeObjectByNameInChildObject(
129
+ pretreatmentRO,
130
+ "荷载组合"
131
+ ) as DesignBaseObject;
132
+ let combinationRO = this.process.findCaeObjectByNameInChildObject(
133
+ combinationParent,
134
+ loadCondition
135
+ ) as DesignBaseObject;
136
+ if(combinationRO) {
137
+ // 同名
138
+ data.tip.value = 4;
139
+ return;
140
+ }
141
+
142
+ this.viewer.selectionManager.clearAllSelectionAndHighlight();
143
+
144
+ // 添加或修改工况.
145
+ this.loadConditionRO =
146
+ this.getAndCreateLoadConditionObjectByName(loadCondition);
147
+
148
+ let loadGroupRO = this.getAndCreateLoadGroupByLoadCondition(
149
+ this.loadConditionRO
150
+ );
151
+
152
+ for (let i = 0; i < loadGroupRO.childObjects.length; i++) {
153
+ const item = loadGroupRO.childObjects[i] as DesignBaseObject;
154
+ item.tempDelete(this.viewer);
155
+ item.businessState = BusinessState.Deleting;
156
+ }
157
+
158
+ let windLoad = new WindLoadObject(this.loadConditionRO.name);
159
+
160
+ windLoad.businessState = BusinessState.Creating;
161
+
162
+ this.process.addRenderObject(loadGroupRO, windLoad);
163
+
164
+ windLoad.loadCondition = data.loadCondition.value;
165
+
166
+ windLoad.windVelocity = CaeNumber(data.windVelocity.value);
167
+
168
+ windLoad.referenceHeightOrWindPressure = CaeNumber(
169
+ data.referenceHeightOrWindPressure.value
170
+ );
171
+
172
+ windLoad.windVariationDefinition = data.windVariationDefinition.value;
173
+
174
+ windLoad.windDirection = CaeNumber(data.windDirection.value);
175
+
176
+ windLoad.memberLoadingOption = data.memberLoadingOption.value;
177
+
178
+ windLoad.isWaterDepthRatherThanOriginElevation =
179
+ data.isWaterDepthRatherThanOriginElevation.value;
180
+
181
+ windLoad.stillWaterDepthOverride = CaeNumber(
182
+ data.stillWaterDepthOverride.value
183
+ );
184
+
185
+ windLoad.isPrintDetailedLoadReport = data.isPrintDetailedLoadReport.value;
186
+
187
+ this.viewer.updateDisplay();
188
+ data.tip.value = 1;
189
+
190
+ let seastateNode = this.process.caeRenderObjectTreeManager.seastateNode
191
+ let seastateLdoptObj = this.process.findRenderObjectByType(
192
+ "SeastateLdopt"
193
+ ) as SeastateLdopt
194
+ if (!seastateLdoptObj) {
195
+ seastateLdoptObj = new SeastateLdopt();
196
+ seastateLdoptObj.businessState = BusinessState.Creating
197
+ seastateLdoptObj.cardObject = new CardLDOPT("LDOPT NF+Z 1.025 7.849 GLOBMN HYD K ")
198
+ seastateLdoptObj.cardData = seastateLdoptObj.cardObject.getLine()
199
+ this.process.addRenderObject(seastateNode,seastateLdoptObj);
200
+ }
201
+
202
+ // 添加或修改荷载组.
203
+
204
+ // this.viewer.addState(oldObj, newObj, (stateItem) => {
205
+ // let obj = stateItem.newObj.obj;
206
+ // obj.offsets = stateItem.newObj.offsets;
207
+ // obj.businessState = BusinessState.Editing;
208
+
209
+ // obj.setNeedUpdate();
210
+ // this.viewer.updateDisplay();
211
+ // });
212
+ }
213
+
214
+ updatePanel() {}
215
+
216
+ private getLoadConditionObjectByName(loadConditionName: string) {
217
+ let pretreatmentRO = this.viewer.process.findRenderObjectByName(
218
+ "后处理计算结果"
219
+ ) as DesignBaseObject;
220
+
221
+ let conditionParent = this.process.findCaeObjectByNameInChildObject(
222
+ pretreatmentRO,
223
+ "荷载工况"
224
+ ) as DesignBaseObject;
225
+
226
+ if (!conditionParent) {
227
+ conditionParent = new DesignBaseObject();
228
+ conditionParent.businessState = BusinessState.Creating;
229
+ conditionParent.name = "荷载工况";
230
+ this.process.addRenderObject(pretreatmentRO, conditionParent);
231
+ }
232
+
233
+ let loadConditionRO = this.process.findCaeObjectByNameInChildObject(
234
+ conditionParent,
235
+ loadConditionName
236
+ ) as LoadConditionObject;
237
+
238
+ return loadConditionRO;
239
+ }
240
+
241
+ private getAndCreateLoadConditionObjectByName(loadConditionName: string) {
242
+ let loadConditionRO = this.getLoadConditionObjectByName(loadConditionName);
243
+
244
+ if (!loadConditionRO) {
245
+ let pretreatmentRO = this.viewer.process.findRenderObjectByName(
246
+ "后处理计算结果"
247
+ ) as DesignBaseObject;
248
+
249
+ let conditionParent = this.process.findCaeObjectByNameInChildObject(
250
+ pretreatmentRO,
251
+ "荷载工况"
252
+ ) as DesignBaseObject;
253
+
254
+ if (!conditionParent) {
255
+ conditionParent = new DesignBaseObject();
256
+ conditionParent.businessState = BusinessState.Creating;
257
+ conditionParent.name = "荷载工况";
258
+ this.process.addRenderObject(pretreatmentRO, conditionParent);
259
+ }
260
+
261
+ loadConditionRO = new LoadConditionObject(loadConditionName);
262
+ loadConditionRO.businessState = BusinessState.Creating;
263
+ this.process.addRenderObject(conditionParent, loadConditionRO);
264
+ } else {
265
+ loadConditionRO.businessState = BusinessState.Editing;
266
+ }
267
+
268
+ return loadConditionRO;
269
+ }
270
+
271
+ private getAndCreateLoadGroupByLoadCondition(
272
+ loadCondition: LoadConditionObject
273
+ ) {
274
+ let loadGroupRO = this.process.findCaeObjectByNameInChildObject(
275
+ loadCondition,
276
+ "WINDLoads"
277
+ ) as DesignBaseObject;
278
+ if (!loadGroupRO) {
279
+ loadGroupRO = new DesignBaseObject();
280
+ loadGroupRO.name = "WINDLoads";
281
+ loadGroupRO.businessState = BusinessState.Creating;
282
+ this.process.addRenderObject(loadCondition, loadGroupRO);
283
+ } else {
284
+ loadGroupRO.businessState = BusinessState.Editing;
285
+ }
286
+
287
+ return loadGroupRO;
288
+ }
289
+
290
+ getLoadConditons() {
291
+ let loadConditions = this.viewer.process.findRenderObjectsByType(
292
+ "LoadConditionObject"
293
+ );
294
+ return loadConditions;
295
+ }
296
+ }
@@ -0,0 +1,176 @@
1
+ import { DesignBaseObject } from "gs-ceec-design";
2
+ import { Process } from "../../../../gsDevFx/process";
3
+ import { Config } from "../../../../gsDevFx/propertyComponents/config";
4
+ import { PropertyComponent } from "../../../../gsDevFx/propertyComponents/propertyComponent";
5
+ import {
6
+ WindVariationDefinition,
7
+ MemberLoadingOption,
8
+ } from "../../../../gsDevFx/objects/loadObjects/windLoadObject";
9
+
10
+ export default class EditWindLoadConfig extends Config {
11
+ constructor() {
12
+ super();
13
+
14
+ let property = new PropertyComponent();
15
+ property.name = "编辑风荷载";
16
+ property.data = {
17
+ loadCondition: {
18
+ name: "荷载工况",
19
+ type: "select",
20
+ selectOptions: {
21
+ selections: [],
22
+ change: () => {
23
+ this.loadConditionChange();
24
+ }
25
+ },
26
+ value: null,
27
+ },
28
+ windVelocity: {
29
+ name: "风速",
30
+ value: null,
31
+ },
32
+ referenceHeightOrWindPressure: {
33
+ name: "参考高度或风压",
34
+ value: null,
35
+ },
36
+ windVariationDefinition: {
37
+ name: "风随高程变化方式",
38
+ type: "select",
39
+ value: null,
40
+ selectOptions: {
41
+ selections: [
42
+ {
43
+ label: "恒定风速",
44
+ value: WindVariationDefinition.CONS,
45
+ },
46
+ {
47
+ label: "ABS",
48
+ value: WindVariationDefinition.ABS,
49
+ },
50
+ {
51
+ label: "AP07",
52
+ value: WindVariationDefinition.AP07,
53
+ },
54
+ {
55
+ label: "AP08",
56
+ value: WindVariationDefinition.AP08,
57
+ },
58
+ {
59
+ label: "AP09",
60
+ value: WindVariationDefinition.AP09,
61
+ },
62
+ {
63
+ label: "AP10",
64
+ value: WindVariationDefinition.AP10,
65
+ },
66
+ {
67
+ label: "AP11",
68
+ value: WindVariationDefinition.AP11,
69
+ },
70
+ {
71
+ label: "AP12",
72
+ value: WindVariationDefinition.AP12,
73
+ },
74
+ {
75
+ label: "AP13",
76
+ value: WindVariationDefinition.AP13,
77
+ },
78
+ {
79
+ label: "AS01",
80
+ value: WindVariationDefinition.AS01,
81
+ },
82
+ {
83
+ label: "AS02",
84
+ value: WindVariationDefinition.AS02,
85
+ },
86
+ {
87
+ label: "AS03",
88
+ value: WindVariationDefinition.AS03,
89
+ },
90
+ {
91
+ label: "AS04",
92
+ value: WindVariationDefinition.AS04,
93
+ },
94
+ {
95
+ label: "ABS2",
96
+ value: WindVariationDefinition.ABS2,
97
+ },
98
+ {
99
+ label: "21AP",
100
+ value: WindVariationDefinition.AP21,
101
+ },
102
+ {
103
+ label: "AP4F",
104
+ value: WindVariationDefinition.AP4F,
105
+ },
106
+ ],
107
+ },
108
+ },
109
+ windDirection: {
110
+ name: "风向",
111
+ value: null,
112
+ },
113
+ memberLoadingOption: {
114
+ name: "构件荷载覆盖方式",
115
+ value: null,
116
+ type: "select",
117
+ selectOptions: {
118
+ selections: [
119
+ {
120
+ label: "无覆盖",
121
+ value: MemberLoadingOption.None,
122
+ },
123
+ {
124
+ label: "采用波浪/海流阻力系数",
125
+ value: MemberLoadingOption.W,
126
+ },
127
+ {
128
+ label: "忽略杆件荷载",
129
+ value: MemberLoadingOption.I,
130
+ },
131
+ ],
132
+ },
133
+ },
134
+ isWaterDepthRatherThanOriginElevation: {
135
+ name: "使用原点高程替代水深",
136
+ type: "switch",
137
+ value: false,
138
+ },
139
+ stillWaterDepthOverride: {
140
+ name: "输入静水深覆盖值或原点高程覆盖值",
141
+ value: null,
142
+ },
143
+ isPrintDetailedLoadReport: {
144
+ name: "为每个风区生成详细荷载报告",
145
+ type: "switch",
146
+ value: false,
147
+ },
148
+ tip: {
149
+ name: "提示",
150
+ value: null,
151
+ },
152
+ };
153
+ this.properties.add(property);
154
+
155
+ this.refreshLoadConditionList()
156
+ }
157
+
158
+ refreshLoadConditionList() {
159
+ let property = this.properties.items[0];
160
+ let conditionNode =
161
+ Process.activeProcess.findRenderObjectByName("荷载工况");
162
+ if (conditionNode) {
163
+ property.data.loadCondition.selectOptions.selections = [];
164
+ conditionNode.childObjects.map((item) => {
165
+ if ((item as DesignBaseObject).checkBusinessStateIsActive()) {
166
+ property.data.loadCondition.selectOptions.selections.push({
167
+ label: item.name,
168
+ value: item.name,
169
+ });
170
+ }
171
+ });
172
+ }
173
+ }
174
+
175
+ loadConditionChange() {}
176
+ }