Skip to content

Commit 5169681

Browse files
authored
Merge pull request #1058 from DLR-SC/tanks
Tanks
2 parents ab8a1a4 + 95ddf34 commit 5169681

File tree

99 files changed

+8621
-1064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+8621
-1064
lines changed

ChangeLog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ Changelog
33

44
Changes since last release
55
-------------
6-
10/01/2025
6+
7+
08/02/2025
8+
9+
- General changes:
10+
- Implemented the new CPACS fuelTanks.
711

812
- Fixes
913

bindings/python_internal/common.i

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ enum TiglCoordinateSystem
123123
FUSELAGE_COORDINATE_SYSTEM = 2
124124
};
125125

126+
enum TiglGetPointBehavior {
127+
asParameterOnSurface = 0,
128+
onLinearLoft = 1,
129+
numGetPointBehaviors = 2
130+
};
131+
126132

127133
%{
128134
// includes are required to for compilation

bindings/python_internal/configuration.i

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "CTiglError.h"
4343
#include "CCPACSWalls.h"
4444
#include "CCPACSWallPosition.h"
45-
#include "CCPACSFuselageWallSegment.h"
45+
#include "CCPACSWallSegment.h"
4646
#include "CCPACSWingSegment.h"
4747
#include "CCPACSFuselageSegment.h"
4848
#include "CTiglWingConnection.h"
@@ -100,6 +100,18 @@
100100
#include "CCPACSDucts.h"
101101
#include "CCPACSDuctAssembly.h"
102102
#include "CCPACSDuct.h"
103+
#include "generated/CPACSFuelTanks.h"
104+
#include "generated/CPACSFuelTank.h"
105+
#include "generated/CPACSFuelTankVolume.h"
106+
#include "CCPACSFuelTanks.h"
107+
#include "CCPACSFuelTank.h"
108+
#include "generated/CPACSVessels.h"
109+
#include "CCPACSVessels.h"
110+
#include "generated/CPACSVessel.h"
111+
#include "CCPACSVessel.h"
112+
#include "generated/CPACSVesselStructure.h"
113+
#include "CCPACSVesselStructure.h"
114+
#include "CCPACSFrame.h"
103115
%}
104116

105117
%feature("autodoc", "3");
@@ -194,11 +206,11 @@
194206
%boost_optional(tigl::CCPACSWalls)
195207
%boost_optional(tigl::generated::CPACSWalls)
196208
%boost_optional(tigl::CCPACSWallPosition)
197-
%boost_optional(tigl::CCPACSFuselageWallSegment)
209+
%boost_optional(tigl::CCPACSWallSegment)
198210
%include "generated/CPACSWalls.h"
199211
%include "CCPACSWalls.h"
200212
%include "CCPACSWallPosition.h"
201-
%include "CCPACSFuselageWallSegment.h"
213+
%include "CCPACSWallSegment.h"
202214

203215
// ----------------- Engines ---------------------------//
204216
%boost_optional(tigl::CCPACSEngines)
@@ -335,6 +347,36 @@ namespace tigl
335347
%include "CTiglAttachedRotorBlade.h"
336348
%include "CPACSRotorHubHinge_type.h"
337349

350+
// --------------- Fuselage tanks -----------------//
351+
%boost_optional(tigl::generated::CPACSFuelTanks)
352+
%boost_optional(tigl::CCPACSFuelTanks)
353+
%boost_optional(tigl::generated::CPACSFuelTankVolume)
354+
%boost_optional(tigl::CCPACSVesselStructure)
355+
356+
namespace tigl {
357+
class CCPACSFuselageSegments;
358+
class CCPACSVessels;
359+
}
360+
361+
%include "generated/CPACSIsotensoidDome.h"
362+
%include "generated/CPACSTorisphericalDome.h"
363+
%include "generated/CPACSEllipsoidDome.h"
364+
%include "generated/CPACSDomeType.h"
365+
%include "generated/CPACSVesselStructure.h"
366+
%include "CCPACSVesselStructure.h"
367+
%include "generated/CPACSFuelTanks.h"
368+
%include "generated/CPACSFuelTankVolume.h"
369+
%include "generated/CPACSFuelTank.h"
370+
%include "CTiglFuselageConnection.h"
371+
%include "CCPACSFuselageSegment.h"
372+
%include "CCPACSFuselageSegments.h"
373+
%include "CCPACSFuelTanks.h"
374+
%include "CCPACSFuelTank.h"
375+
%include "generated/CPACSVessels.h"
376+
%include "CCPACSVessels.h"
377+
%include "generated/CPACSVessel.h"
378+
%include "CCPACSVessel.h"
379+
338380
// -------------------- Wing Structure -------------------//
339381

340382
namespace tigl {
@@ -409,6 +451,7 @@ class CCPACSWingRibsPositioning;
409451
%include "CPACSGuideCurve_continuity.h"
410452
%include "generated/CPACSGuideCurve.h"
411453
%include "generated/CPACSGuideCurves.h"
454+
%include "CCPACSGuideCurve.h"
412455
%include "CCPACSGuideCurves.h"
413456
%include "generated/CPACSCst2D.h"
414457
%include "ITiglWingProfileAlgo.h"
@@ -527,7 +570,7 @@ class CCPACSWingRibsPositioning;
527570
%factory(tigl::ITiglGeometricComponent& tigl::CTiglUIDManager::GetGeometricComponent,
528571
tigl::CCPACSFuselage,
529572
tigl::CCPACSFuselageSegment,
530-
tigl::CCPACSFuselageWallSegment,
573+
tigl::CCPACSWallSegment,
531574
tigl::CCPACSWing,
532575
tigl::CCPACSWingSegment,
533576
tigl::CCPACSWingComponentSegment,
@@ -547,7 +590,9 @@ class CCPACSWingRibsPositioning;
547590
tigl::CCPACSEnginePylon,
548591
tigl::CCPACSTrailingEdgeDevice,
549592
tigl::CCPACSDuct,
550-
tigl::CCPACSDuctAssembly
593+
tigl::CCPACSDuctAssembly,
594+
tigl::CCPACSFuelTank,
595+
tigl::CCPACSVessel
551596
);
552597

553598
namespace tigl

cpacs_gen_input/CustomTypes.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ CPACSPointXY CCPACSPointXY
116116
CPACSStringerFramePosition CCPACSFuselageStringerFramePosition
117117
CPACSSkin CCPACSSkin
118118
CPACSSkinSegment CCPACSSkinSegment
119-
CPACSWallSegment CCPACSFuselageWallSegment
119+
CPACSWallSegment CCPACSWallSegment
120120
CPACSWallPosition CCPACSWallPosition
121121
CPACSWalls CCPACSWalls
122122

@@ -149,3 +149,10 @@ CPACSDuct CCPACSDuct
149149
CPACSDuctStructure CCPACSDuctStructure
150150
CPACSDuctAssembly CCPACSDuctAssembly
151151
CPACSDucts CCPACSDucts
152+
153+
// Tanks
154+
CPACSVessel CCPACSVessel
155+
CPACSVessels CCPACSVessels
156+
CPACSFuelTank CCPACSFuelTank
157+
CPACSFuelTanks CCPACSFuelTanks
158+
CPACSVesselStructure CCPACSVesselStructure

0 commit comments

Comments
 (0)