Combustion chamber modeling method, system, electronic device, storage medium and program product based on OCC underlying tool
By combining a custom JSON description language with the underlying OCC tools, the combustion chamber geometry modeling is completed automatically, solving the problems of cumbersome modeling process and low efficiency in parameter changes, and realizing an efficient, autonomous and controllable modeling process.
Patent Information
- Application Number
- CN202611491433.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-23
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies involve cumbersome combustion chamber geometry modeling processes, low efficiency when parameters are changed, difficulty in parameterization and automation, and closed and expensive commercial CAD software, which is not conducive to independent control.
A custom JSON geometric description language is used to construct the combustion chamber assembly data description file. Two-dimensional geometric operations and Boolean operations are performed through the OCC underlying tools to automatically deduce the positional relationships of components, generate a geometric model, and establish a modeling context tracking mechanism to capture and record errors.
It achieves highly efficient combustion chamber geometry modeling, improving modeling efficiency from days to minutes, eliminating reliance on commercial CAD software, and realizing independent and controllable parametric automation.
Smart Images

Figure CN123159208A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design technology, and in particular to a combustion chamber modeling method, system, electronic device, storage medium, and program product based on OCC underlying tools. Background Technology
[0002] The combustion chamber is a core hot-end component of aero-engines and gas turbines. Its complex geometry typically consists of numerous sub-components, including the casing, flame tube, dome, cyclone separator, annular zone, and cooling vent system, exhibiting circumferential periodicity. Before performing aerodynamic-thermal analysis and CFD simulation of the combustion chamber, an accurate geometric model must be established, and the fluid computational domain extracted. Currently, most combustion chamber geometric models are manually created interactively by designers in commercial CAD software such as UG / NX, CATIA, and SolidWorks. The modeling process involves drawing sketches one by one, generating features one by one, arraying vent systems one by one, and performing Boolean operations one by one—a tedious and repetitive process.
[0003] When design parameters change, designers need to manually modify a large number of features or remodel, which is inefficient and makes it difficult to support rapid design iterations. At the same time, commercial CAD software has a closed geometric kernel, complex secondary development interfaces, and expensive licenses, which is not conducive to independent and controllable engineering deployment. In addition, general-purpose CAD software lacks dedicated modeling primitives for unique structures such as combustion chamber annulus, cyclone arrays, and periodic sectors. The process of multi-component collaboration and fluid domain extraction is long, error-prone, and modeling errors are difficult to locate accurately.
[0004] OpenCASCADE (OCC), as an open-source geometry modeling kernel, provides complete low-level tools for B-Rep geometry and topology creation, Boolean operations, transformations, and file reading and writing, laying the foundation for breaking free from dependence on commercial software. However, the OCC low-level tool interface is fine-grained, procedural, and lacks combustion chamber domain semantics, so direct use still requires writing a lot of low-level glue code. Summary of the Invention
[0005] To address the aforementioned shortcomings of the prior art, the present invention aims to provide a combustion chamber modeling method and system based on OCC underlying tools, solving the problems of cumbersome combustion chamber geometry modeling processes, low efficiency in modifying parameters when they change, and difficulty in parameterization and automation. The present invention also aims to provide electronic devices, computer storage media, and programs for implementing the combustion chamber modeling method based on OCC underlying tools.
[0006] The technical solution of this invention is as follows: A combustion chamber modeling method based on OCC underlying tools, comprising the following steps:
[0007] Description File Construction: A combustion chamber assembly data description file is constructed. The description file uses a custom JSON geometric description language and is organized into assembly objects according to the assembly hierarchy. The assembly objects include configuration objects and component modules. The component modules include the flame tube, the ring, the ring construction configuration, and the global rotation object. Each component object consists of several geometric entries. Each geometric entry is defined by an index number, description, type field, and a list of geometric parameters, and the dependency relationship between geometric entries is established through the index reference field. The configuration object contains the submodule combination relationship and the output component list.
[0008] Business parameter conversion: Read the description file, and based on the ring construction configuration, flame tube outline and global rotation parameters in the description file, use two-dimensional geometric operations to automatically deduce the relative positional relationship between the ring and the flame tube, and generate an intermediate description file containing the OCC underlying geometric operation sequence. The intermediate description file is isomorphic to the description file.
[0009] OCC geometry reconstruction: Parse the geometric entries in the intermediate description file, call the OCC underlying tools to create the corresponding OCC topology objects in the order of dependency, and combine them into component geometry through Boolean operations and transformation arrays;
[0010] Process orchestration output: Merge component geometry according to the sub-module combination relationship in the configuration object, and output the component geometry as a geometric model file according to the output component list.
[0011] Furthermore, the two-dimensional geometric operation includes: projecting the flame tube outline and the annular reference point onto the radial-axial plane; emitting rays along the thickness direction with the annular reference point as the ray origin, performing ray-polygon intersection on the flame tube polygon to obtain a set of intersection points; sorting the intersection points according to their distance from the ray origin, taking the first two intersection points and calculating their distance, as the effective thickness or offset distance of the annular zone relative to the flame tube wall at that location.
[0012] Furthermore, when deriving the relative positional relationship between the ring and the flame tube, when the ring profile interferes with the flame tube profile, the control points of the ring are adjusted using a multi-segment adaptive fitting method so that the ring cross section adaptively fits the flame tube profile curve.
[0013] The interference is determined by two-dimensional edge-by-edge intersection of the annular cross-section polygonal line and the flame tube contour polygonal line. The annular cross-section polygonal line is parameterized in a two-dimensional plane by the annular construction configuration parameters. The multi-segment adaptive fitting method includes: rotating the annular cross-section polygonal line around the annular reference point by two candidate angles (positive and negative) and selecting the pose where the first edge vector is parallel to the tangent of the wall at that point after rotation. The annular control point is the vertex of the annular cross-section polygonal line.
[0014] Furthermore, the configuration object also includes a fluid domain definition, the component module includes a fluid domain, and the process orchestration output step further includes obtaining the fluid computational domain by subtracting the internal entity from the fluid domain bounding volume according to the fluid domain definition, and outputting the fluid computational domain together when the output is a geometric model file.
[0015] Furthermore, the description file also includes a top-level field layer, which includes a ring type field and a combustion chamber type field. The ring type field is used to identify a splashed ring or a stacked ring, and the combustion chamber type field is used to identify an annular combustion chamber or an annular tube combustion chamber. In the business parameter conversion step, the ring type field and the combustion chamber type field in the description file are also identified.
[0016] Furthermore, the component geometry is fused recursively according to the sub-module combination relationship in the configuration object, including: traversing the list of sub-module names, if the sub-module name exists in the constructed shape dictionary, it is directly used; otherwise, its lower-level sub-components are recursively searched and fused, and the fusion result is cached in the shape dictionary.
[0017] Furthermore, a modeling context tracking mechanism is established during the execution of the OCC geometry reconstruction step and the process orchestration output step: the current modeling context record is maintained, including the current stage, module name, step number, geometry description, index, type, and geometry parameters; when any geometry operation throws an exception, the error entry containing timestamp, module, step, operation type, simplified parameters, error type, error message, and complete stack trace is captured and recorded, and a JSON format error report file is generated.
[0018] Furthermore, the geometric parameters of the custom JSON geometry description language are divided into four categories of primitives according to the operation type:
[0019] Wireframe primitives, including polylines, spirals, three-point arcs, complete circles, rounded rectangles, offset lines, stacked loop profiles, and splatter loop profiles, are used to construct one-dimensional wireframe geometry.
[0020] Solid construction primitives, including Extrude, Revolve, Thicken, Sweep, Loft, Hole Array, and External STEP Import, are used to construct wireframes or surfaces into 3D solids;
[0021] Transformation primitives, including translation arrays and rotation arrays;
[0022] Boolean operation primitives include Boolean union, Boolean difference, Boolean intersection, interference check, and complex operations;
[0023] Each primitive is configured with a field to identify its type and an index number of the upstream geometry entry as input, thereby expressing the dependency topology between geometric operations in an index chain.
[0024] Furthermore, the stacked ring contour primitive is defined by five parameters: position, direction, normal, length, and thickness. Its cross-sectional polygon is constructed as follows: starting from the position point, the second point is obtained by translating along the direction vector by the length. Then, the third and fourth points are obtained by translating along the thickness direction, which is the cross product of the direction vector and the normal vector. The four points are connected in sequence to form a closed quadrilateral.
[0025] Furthermore, the splash ring contour primitive is defined by eight parameters: position, direction, normal, first segment length, second segment length, third segment length, thickness, and bending angle. It is constructed as follows: the direction vector is rotated around the position point by a negative bending angle about the normal axis to obtain the second segment direction vector. The first segment length is translated along the direction vector, the second segment length is translated along the second segment direction vector, and the third segment length is translated along the direction vector to obtain four points of the bending centerline. Then, the corresponding four points are obtained by offsetting along the thickness direction. A total of eight points are connected in sequence to form a closed octagonal bending contour.
[0026] Furthermore, in the OCC geometric reconstruction step, when performing Boolean union, Boolean difference, and Boolean intersection, a fuzzy tolerance value is set to handle overlapping surfaces and tiny gaps. After the Boolean union operation, the OCC's same-domain unified tool is called to merge and optimize the surfaces and edges.
[0027] Furthermore, in the OCC geometric reconstruction step, the interference checking primitive calculates the volume attribute of the Boolean intersection result of the two shapes, determines whether interference has occurred by using a preset volume threshold, and retains or removes the interfering entity according to the settings.
[0028] The second technical solution of the present invention is: a combustion chamber modeling system based on secondary development of OCC underlying tools, comprising:
[0029] Description File Construction Module: Used to construct the combustion chamber assembly data description file. The description file uses a custom JSON geometric description language and is organized into assembly objects according to the assembly hierarchy. The assembly objects include configuration objects and component modules. The component modules include the flame tube, the ring, the ring construction configuration, and the global rotation object. Each component object consists of several geometric entries. Each geometric entry is defined by an index number, description, type field, and a list of geometric parameters, and the dependency relationship between geometric entries is established through the index reference field. The configuration object contains the submodule combination relationship and the output component list.
[0030] Business parameter conversion module: used to read the description file, and based on the ring construction configuration, flame tube outline and global rotation parameters in the description file, automatically deduce the relative positional relationship between the ring and the flame tube using two-dimensional geometric operations, and generate an intermediate description file containing the OCC underlying geometric operation sequence. The intermediate description file is isomorphic to the description file.
[0031] OCC geometry reconstruction module: used to parse the geometric entries in the intermediate description file, call the OCC underlying tools to create the corresponding OCC topology objects in the order of dependency, and combine them into component geometry through Boolean operations and transformation arrays;
[0032] Process orchestration output module: used to merge component geometry according to the sub-module combination relationship in the configuration object, and output the component geometry as a geometric model file according to the output component list.
[0033] Furthermore, the combustion chamber modeling system also includes a tracking module: used to establish a modeling context tracking mechanism during the operation of the OCC geometry reconstruction module and the process orchestration output module; maintaining the current modeling context record, including the current stage, module name, step number, geometry description, index, type, and geometry parameters; when any geometry operation throws an exception, capturing and recording the error entry including timestamp, module, step, operation type, simplified parameters, error type, error message, and complete stack trace, and generating a JSON format error report file.
[0034] Another technical solution of the present invention is: an electronic device, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor;
[0035] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the aforementioned combustion chamber modeling method based on OCC underlying tools.
[0036] Another technical solution of the present invention is: a computer-readable storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, the aforementioned combustion chamber modeling method based on OCC underlying tools is implemented.
[0037] Another technical solution of the present invention is: a computer program product, including a computer program, wherein when the computer program product is executed by a processor, it implements the aforementioned combustion chamber modeling method based on OCC underlying tools.
[0038] Compared with the prior art, the beneficial effects of the present invention are:
[0039] The method of this invention is based on secondary development of the open-source OCC geometric kernel. Designers only need to edit high-level design parameters. Through data and topology decoupling, the process of system parameters, intermediate description, OCC reconstruction and model output is completed automatically. No manual interaction is required for modeling. The model can be automatically regenerated after any parameter change and rerun. The modeling efficiency is improved from "days" to "minutes". It gets rid of the dependence on commercial CAD software and realizes the independent control of geometric modeling technology. Attached Figure Description
[0040] Figure 1 This is a flowchart illustrating the combustion chamber modeling method based on the OCC underlying tool of the present invention.
[0041] Figure 2 This is a schematic diagram of the data structure of the description file and intermediate description files.
[0042] Figure 3 This diagram illustrates the dependency relationships between the four types of primitives in geometric operations and index references.
[0043] Figure 4 This is a schematic diagram of the two-dimensional adaptive solution for the annular zone and the flame tube profile.
[0044] Figure 5 This is a schematic diagram of the cross-sectional structure of the stacked ring belt.
[0045] Figure 6 This is a schematic diagram of the three-section bending cross-section structure of the splash ring. Detailed Implementation
[0046] The specific technical solution of the present invention will be further described in detail below with reference to specific examples.
[0047] Example 1
[0048] Combination Figure 1 As shown, a combustion chamber modeling method based on secondary development of OCC underlying tools includes the following steps:
[0049] S1. Description file construction.
[0050] Construct a combustion chamber assembly data description file, such as Figure 2 As shown, the description file uses a custom JSON geometry description language and is organized into assembly objects according to the assembly hierarchy. The assembly hierarchy consists of four levels from top to bottom: top-level annular zone type and combustion chamber type fields, assembly objects, geometry entries, and geometry operation parameters.
[0051] The top-level annular type field and combustion chamber type field identify the splashed or stacked annular annular or ring tube combustion chamber, respectively.
[0052] The assembly object includes configuration objects and component modules. The configuration object includes file type, submodule combination relationships, fluid domain definition, and output component list. The component modules include casing, diffuser, flame tube, dome, cyclone separator, fluid domain, annulus, annulus build configuration, and global rotation object.
[0053] Each component module object (including the ring construction configuration and the global revolve object) consists of several geometric entries. Each geometric entry is defined by an index number, description, type field, and a list of geometric parameters, and the dependencies between geometric entries are established through the index reference field. The geometric entries of the ring construction configuration are defined by the ring type with fields such as ring length, offset distance, boss angle and boss length, axial position, and drilling parameters; the geometric entries of the global revolve object are defined with fields such as rotation angle, rotation center, rotation axis, bidirectional mark, and solid mark.
[0054] The geometric parameters of the JSON geometry description language are divided into four categories of primitives based on the operation type:
[0055] (1) Wireframe primitives, including polylines, spirals, three-point arcs, complete circles, rounded rectangles, offset lines, stacked ring profiles and splatter ring profiles, are used to construct one-dimensional wireframe geometry;
[0056] (2) Solid construction primitives, including extrusion, rotation, thickening, sweeping, lofting, hole array and external STEP import, are used to construct wireframes or surfaces into three-dimensional solids;
[0057] (3) Transformation primitives, including translation arrays and rotation arrays;
[0058] (4) Boolean operation primitives, including Boolean union, Boolean difference, Boolean intersection, interference check and complex.
[0059] like Figure 3 As shown, each primitive is identified by a "type" field and takes the index number of the upstream geometry entry as input by a "part_index" field, thus expressing the dependency topology between geometry operations as an index chain.
[0060] Taking a chassis as an example, a chassis consists of "wireframe entries" and "physical entries," and the description file fragment is as follows:
[0061] "case": [
[0062] { "description":"Upper profile of the casing", "index":1, "type":"wire",
[0063] "geometry":[{"type":"polyline","controlPoints":[[...]],
[0064] "cornerRadius":[...],"isClosed":true}]},
[0065] { "description":"Upper part of the casing", "index":2, "type":"solid",
[0066] "geometry":[{"type":"revolve","angle":36,"center":[0,0,0],
[0067] "normal":[1,0,0],"isBoth":true,"isSolid":true,
[0068] "part_index":1}]} ]
[0070] In this context, the `revolve` primitive with index 2 references the wireframe with index 1 as the rotation section through `part_index 1`, `angle` of 36 corresponds to 1 / 10 of the sector (controlled uniformly by `global_revolve`), and `isBoth` of true indicates bidirectional symmetrical rotation. This index chain clearly expresses the dependency relationship from "drawing a wireframe" to "rotating it into a solid".
[0071] S2, Business Parameter Conversion.
[0072] The description file is read, and the annular belt type field and combustion chamber type field are identified. Based on the annular belt construction configuration, the flame tube outline and global rotation parameters, the relative positional relationship between the annular belt and the flame tube is automatically derived using two-dimensional geometric operations, and an intermediate description file containing the OCC underlying geometric operation sequence is generated.
[0073] The flame tube outline is taken from the control point field of the flame tube outline entry in the flame tube module of the description file and is input by the user; the global rotation parameters are the rotation angle, rotation center, rotation axis and bidirectional flag fields in the global rotation object entry.
[0074] The intermediate description file is isomorphic to the description file, wherein: the ring placeholder entries are replaced with a sequence of entries for ring profile, profile rotation, profile translation, and ring rotation; the flame tube profile entries are replaced with new profile entries that incorporate the ring boss control points; and ring drilling, array, and Boolean reduction entries are appended to the end of the flame tube object.
[0075] like Figure 4As shown, the two-dimensional geometric operation includes the following adaptive solution process: project the flame tube profile and the annular reference point onto the YZ radial-axial two-dimensional plane; take the annular reference point R as the ray starting point, emit rays along the thickness direction, and perform ray-line segment intersection on each side of the flame tube polygon to obtain the set of intersection points; sort the intersection points according to their distance from the ray starting point R, and take the first two intersection points I1 and I2 to calculate their distance, which is taken as the effective thickness or offset distance of the annular zone relative to the flame tube wall at that point.
[0076] Among them, the annular reference point is defined by the axial station sequence in the annular construction configuration, and is a point on the flame tube wall profile at each station.
[0077] like Figure 5 As shown, the primitives for the stacked ring profile are defined by five parameters: position, direction, normal, length, and thickness. The cross-sectional polygon is constructed as follows: starting from the position point, the second point is obtained by translating along the direction vector by a length. Then, the third and fourth points are obtained by translating along the thickness direction (the cross product of the direction vector and the normal vector). These four points are then connected sequentially to form a closed quadrilateral. When represented by position P, direction d, normal n, length L, and thickness T, the thickness direction is t = d × n; P1 = P; P2 = P + d·L; P3 = P2 + t·T; P4 = P + t·T; these are connected sequentially to form a straight, closed quadrilateral cross-section. In this system, the projection point of the annular reference point R at the station onto the flame tube wall is taken as position P; the tangent of the wall at that location is taken as direction vector d; the normal of the wall (obtained by the cross product of the tangent and the radial-axial plane normal) is taken as normal n; the obtained offset distance is superimposed on P (offset along the n direction) or used as a correction value for thickness T; after calculating the values for each axial station, a parameter list of annular contour entries is generated according to the station sequence.
[0078] like Figure 6 As shown, the splash ring contour primitive is defined by eight parameters: position, direction, normal, first segment length, second segment length, third segment length, thickness, and bending angle. It is constructed as follows: the direction vector is rotated around the position point by a negative bending angle about the normal axis to obtain the second segment direction vector. The first segment length is translated along the direction vector, the second segment length is translated along the second segment direction vector, and the third segment length is translated along the direction vector to obtain four points of the bending centerline. Then, the corresponding four points are obtained by offsetting along the thickness direction. A total of eight points are connected to form a closed octagonal bending contour. When represented by position P, direction d, normal n, three segment lengths L1 / L2 / L3, thickness T, and bending angle θ, the thickness direction t = d × n; the second segment direction d2 = d rotated around axis (P, n) - θ; the four midline points P1 = P, P2 = P + d·L1, P3 = P2 + d2·L2, P4 = P3 + d·L3; offset along the thickness direction to obtain P5, P6, P7, P8; connect the eight points in sequence to form a three-segment closed octagonal section with bending.
[0079] When interference occurs between the annular strip profile and the flame tube profile, a multi-segment adaptive fitting method is used to adjust the annular strip control points, making the annular strip cross-section adaptively fit the flame tube profile curve. Interference is determined by two-dimensional edge-by-edge intersection of the annular strip cross-section polygonal line and the flame tube profile polygonal line, which differs from the interference check primitive based on volume properties in S3. The annular strip profile is parameterized in a two-dimensional plane by the annular strip construction configuration parameters, and its cross-sectional shape includes two types of annular strip profiles: stacked and splashed. Adaptive fitting involves rotating the annular strip cross-section polygonal line around the annular strip reference point by two positive and negative candidate angles (e.g., incrementing by 1° to 30°), selecting the pose where the first edge vector after rotation is parallel to the tangent of the wall at that point, and writing the coordinates of each vertex of the rotated polygonal line back to the annular strip control point field to update the annular strip profile entry parameters. Among them, the annular strip control points are the vertices of the annular strip cross-section polygonal line, with two for stacked annular strips and four for splashed annular strips.
[0080] It should be noted that in the description file, component objects such as the casing, diffuser, dome, and cyclone separator are directly input by the user as contour control points, and geometric entries are directly defined using four types of primitives (wireframe primitives and solid construction primitives, etc.). Their geometric operation sequences are already in an executable form in the description file. For example, taking the casing as an example, its "wireframe entries" and "solid entries" express their dependencies through the part_index chain. These entries do not need to be converted and are retained as is in the intermediate description file during the business parameter conversion step. In contrast, the annular belt object is only expressed in the description file as annular belt construction configuration (high-level parameters) and annular belt placeholder entries. Its specific geometry needs to be derived and determined based on the actual orientation of the flame tube wall at each axial position of the annular belt. Therefore, the two-dimensional geometric calculation in this step only solves for the relative positional relationship between the annular belt and the flame tube; other component objects do not participate in this two-dimensional solution process.
[0081] An intermediate description file containing the OCC underlying geometry operation sequence means that all component objects in the intermediate description file (including the casing, diffuser, dome, cyclone separator, flame tube, annulus, fluid domain, global rotation, and configuration objects) have geometric entries in a form that can be mapped to the OCC underlying tools by the type field: the entries for components such as the casing already meet the requirements in the description file, and the annulus, after conversion, also becomes a sequence of directly executable entries. Therefore, the intermediate description file generated by the business parameter conversion step covers all objects in the assembly, not just the annulus and flame tube; the subsequent OCC geometry reconstruction step parses all geometric entries in the intermediate description file and creates the corresponding OCC topology objects sequentially according to their dependency order.
[0082] In a specific embodiment, the generation process of this step is as follows: First, read the description file and identify the annular belt type field and combustion chamber type field; Second, perform two-dimensional geometric calculations to obtain the effective thickness or offset distance of the annular belt relative to the flame tube wall at each axial position. If there is interference, adjust the annular belt control points according to the aforementioned polyline adaptive fitting; Third, replace the annular belt occupant entries with a sequence of entries for annular belt contour, contour rotation, contour translation, and annular belt rotation according to the annular belt type. The annular belt contour entries are parameterized in the two-dimensional plane to generate corresponding cross sections according to the stacked annular belt or splashed annular belt primitive parameters; Fourth, replace the flame tube contour entries with new contour entries that incorporate the annular belt boss control points, and add annular belt drilling, array, and Boolean hole reduction entries to the end of the flame tube module. The drilling parameters are taken from the annular belt construction configuration; Fifth, output the description file after the above replacement and addition as an intermediate description file.
[0083] S3 and OCC geometric reconstruction.
[0084] The geometric entries in the intermediate description file are parsed, and the corresponding OCC topology objects are created sequentially according to the dependency order by calling the OCC underlying tools. They are then combined into component geometry through Boolean operations and transformation arrays.
[0085] Specifically, the intermediate description file is input into the OCC reconstruction process. The Geometry class takes over the data and calls create_geometry() to start creating geometry. First, it determines whether the geometry type is a wireframe: if it is a wireframe, edge_builder generates various curve segments, which are then pieced together into a wireframe by topo_builder. If it is not a wireframe, it is distributed to the five builders—solid construction, modeling, geometric transformation, Boolean operation, and STEP import—according to the original geometry type, generating the corresponding geometry. Finally, all the generated geometry is stored in the shape dictionary.
[0086] When calling the OCC underlying tools to create topology objects: for wireframe entries, OCC's GC_MakeSegment, GC_MakeArcOfCircle, and gp_Circ are called to create edges, and BRepBuilderAPI_MakeWire is used to merge them into wireframes; for solid entries, BRepPrimAPI_MakePrism is called for stretching, BRepPrimAPI_MakeRevol is called for rotation, BRepOffset_MakeOffset is called for thickening, BRepOffsetAPI_MakePipeShell is called for sweeping, and BRepOffsetAPI_ThruSections is called for lofting; transformation primitives are lazy evaluated in a generator manner, and translational or rotational copies are generated sequentially using gp_Trsf and BRepBuilderAPI_Transform according to the number of arrays; the rotation array uses the global rotation angle (taken from the angle field of the global rotation object entry in the description file) as the single-cycle angle, and the combustion chamber is modeled as a complete whole or one-Nth sector through a single global rotation parameter (i.e., the rotation angle, rotation center, rotation axis, and bidirectional flag fields in the global rotation object entry). For example, a rotation angle of 360 degrees represents a complete machine model; an angle of 36 degrees represents 1 / 10 of a sector; and an angle of 60 degrees represents 1 / 6 of a sector.
[0087] The Boolean operation primitives set a fuzzy tolerance value of 0.01 when performing Boolean union, Boolean difference, and Boolean intersection to handle overlapping surfaces and tiny gaps. After the Boolean union operation, the OCC's same-domain unified tool, ShapeUpgrade_UnifySameDomain, is called to optimize the merging of surfaces and edges. The interference detection primitive calculates the volume properties of the Boolean intersection result of two shapes, uses a volume threshold of 1e-5 to determine whether interference has occurred, and retains or removes interfering entities according to the settings. This improves the robustness of Boolean operations, merges redundant surfaces and edges after Boolean union, and results in a cleaner topology.
[0088] For bidirectional construction involving stretching and rotation, a method of first moving half a step in the reverse direction and then moving the full amount in the forward direction is adopted: before stretching, the contour is first translated half a distance in the reverse direction (i.e., half of the stretching distance set by the stretching item); before rotating, the contour is first rotated half an angle in the reverse direction around the axis (i.e., half of the rotation angle set by the rotation item; for example, if the rotation angle is 36°, first rotate 18° in the reverse direction), so that the final geometry is generated symmetrically with the original contour position as the center.
[0089] S4, Process orchestration output.
[0090] The component geometry is recursively merged according to the submodule combination relationship in the configuration object. The fluid computation domain is obtained by subtracting the internal entity from the fluid domain bounding volume according to the fluid domain definition. The results are output as a geometric model file in STEP or IGES format according to the output component list.
[0091] The fused component geometry is a composite component defined by the submodule combination relationship in the configuration object. The recursive fusion process of the component geometry is as follows: traverse the list of submodule names (taken from the submodule combination relationship field of the configuration object); if the name exists in the constructed shape dictionary, it is directly used; otherwise, recursively search for its lower-level subcomponents and fuse them. The fusion result is cached in the shape dictionary. Caching the shape dictionary avoids the repeated construction of shared submodules, improving fusion efficiency.
[0092] The fluid domain is constructed by fusing the components listed in the fluid domain into a bounding body and fusing the internal entities into a body to be subtracted. Boolean difference is performed on the bounding body to obtain the integrated fluid computational domain of the internal and external flow fields of the combustion chamber, i.e., domain_shape=cut(fuse(domain component),fuse(part component)), which automatically obtains the fluid computational domain of the internal and external flow fields of the combustion chamber after subtracting entities such as the casing and flame tube.
[0093] In one specific embodiment, a modeling context tracking mechanism is established during the execution of S3 and S4: The current modeling context is maintained, including the current stage, module name, step number, geometric description, index, type, and geometric parameters. When any geometric operation throws an exception, an error entry containing a timestamp, module, step, operation type, simplified parameters, error type, error message, and complete stack trace is captured and recorded, and a JSON-formatted error report file is generated. Through this tracking mechanism, when modeling fails, the specific module, step, and geometric operation can be precisely located. The error information is structured and traceable, solving the problems of being unable to pinpoint the location of modeling failures and high debugging costs.
[0094] Example 2: A combustion chamber modeling system based on secondary development of OCC underlying tools, the system comprising:
[0095] Description file construction module: Used to construct the combustion chamber assembly data description file. The description file adopts a custom JSON geometric description language and is organized into assembly objects according to the assembly hierarchy. The assembly objects include configuration objects and component modules. The component modules include the flame tube, the ring, the ring construction configuration, and the global rotation object. Each component object consists of several geometric entries. Each geometric entry is defined by an index number, description, type field, and a list of geometric parameters, and the dependency relationship between geometric entries is established through the index reference field. The configuration object contains the submodule combination relationship and the output component list.
[0096] Business parameter conversion module: It is used to read the description file, construct the ring configuration, flame tube outline and global rotation parameters in the description file, and automatically deduce the relative positional relationship between the ring and the flame tube using two-dimensional geometric operations, and generate an intermediate description file containing the OCC underlying geometric operation sequence. The intermediate description file is isomorphic to the description file.
[0097] OCC Geometry Reconstruction Module: Used to parse the geometric entries in the intermediate description file, call the underlying OCC tools to create the corresponding OCC topology objects in the order of dependencies, and combine them into component geometry through Boolean operations and transformation arrays.
[0098] Process orchestration output module: used to merge component geometry according to the submodule combination relationship in the configuration object, and output the component geometry as a geometric model file according to the output component list.
[0099] The tracing module is used to establish a modeling context tracing mechanism during the operation of the OCC geometry reconstruction module and the process orchestration output module. It maintains the current modeling context record, including the current stage, module name, step number, geometry description, index, type, and geometry parameters. When any geometry operation throws an exception, it captures and records the error entry, which includes the timestamp, module, step, operation type, simplified parameters, error type, error message, and complete stack trace, and generates a JSON format error report file.
[0100] For the specific processing procedures of each of the above modules, please refer to the description of the corresponding steps in Example 1, which will not be repeated here.
[0101] The invention will be further illustrated below using a 1 / 10 sector divergent cooling configuration of a certain annular combustion chamber as an example.
[0102] Designers edit the description file, filling in the control points for the casing, flame tube, dome profile, ring reference position, and aperture and number of holes. They set the rotation angle of the global revolve object to 36, the ring type to splash, the combustion chamber type to annular, and the output part of the configuration object to case and liner. After running the modeling program, the system verifies the description file. The business parameter conversion module performs the splash ring conversion, automatically generating the splash ring wireframe, rotating body, and perforation primitives, and outputs the intermediate description file. The OCC geometry reconstruction module constructs the geometry of each basic module, recursively merges sub-modules, constructs the fluid domain, and outputs the STEP files of case and liner in a four-stage pipeline.
[0103] Actual testing showed that, compared to manual interactive modeling in commercial CAD software, this invention reduces modeling time to the minute level, and can regenerate with one click after parameter changes. It has been verified in four configurations: 1 / 10 sector of annular combustion chamber, 1 / 6 sector of annular tube combustion chamber, and two types of annular bands: splash and stack.
[0104] Example 3
[0105] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program, and the internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. When executed by the processor, the computer program implements all the steps described in the method embodiments.
[0106] Example 4
[0107] A computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the above-described method embodiments. The computer-readable storage medium includes at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), flash memory, optical memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric memory (FRAM), phase-change memory (PCM), etc. Volatile memory may include random access memory (RAM), such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0108] Example 5
[0109] A computer program product includes a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
Claims
1. A method for modeling a combustion chamber based on OCC infrastructure tools, characterized in that, Includes the following steps: Description file construction: Construct a combustion chamber assembly data description file. The description file uses a custom JSON geometric description language and is organized into assembly objects according to the assembly hierarchy. The assembly objects include configuration objects and component modules. The component modules include the flame tube, the ring, the ring construction configuration, and the global rotation object. Each component object consists of several geometric entries. Each geometric entry is defined by an index number, description, type field, and a list of geometric parameters. The dependency relationship between geometric entries is established through the index reference field. The configuration object includes submodule combination relationships and a list of output components; Business parameter conversion: Read the description file, and based on the ring construction configuration, flame tube outline and global rotation parameters in the description file, use two-dimensional geometric operations to automatically deduce the relative positional relationship between the ring and the flame tube, and generate an intermediate description file containing the OCC underlying geometric operation sequence. The intermediate description file is isomorphic to the description file. OCC geometry reconstruction: Parse the geometric entries in the intermediate description file, call the OCC underlying tools to create the corresponding OCC topology objects in the order of dependency, and combine them into component geometry through Boolean operations and transformation arrays; Process orchestration output: Merge component geometry according to the sub-module combination relationship in the configuration object, and output the component geometry as a geometric model file according to the output component list.
2. The OCC -based tooling approach to combustion chamber modeling method of claim 1, wherein, The two-dimensional geometric operation includes: projecting the flame tube outline and the annular reference point onto the radial-axial plane; emitting rays along the thickness direction with the annular reference point as the ray starting point, performing ray-polygon intersection on the flame tube polygon to obtain a set of intersection points; sorting the intersection points according to their distance from the ray starting point, taking the first two intersection points and calculating their distance, which is taken as the effective thickness or offset distance of the annular zone relative to the flame tube wall at that location.
3. The combustion chamber modeling method based on OCC underlying tools according to claim 2, characterized in that, When deriving the relative positional relationship between the ring and the flame tube, if the ring profile interferes with the flame tube profile, the control points of the ring are adjusted using a multi-segment adaptive fitting method so that the ring cross section adaptively fits the flame tube profile curve. The interference is determined by two-dimensional edge-by-edge intersection of the annular cross-section polygonal line and the flame tube contour polygonal line. The annular cross-section polygonal line is parameterized in a two-dimensional plane by the annular construction configuration parameters. The multi-segment adaptive fitting method includes: rotating the annular cross-section polygonal line around the annular reference point by two candidate angles (positive and negative) and selecting the pose where the first edge vector is parallel to the tangent of the wall at that point after rotation. The annular control point is the vertex of the annular cross-section polygonal line.
4. The combustion chamber modeling method based on OCC underlying tools according to claim 1, characterized in that, The configuration object also includes a fluid domain definition, the component module includes a fluid domain, and the process orchestration output step also includes obtaining the fluid computation domain by subtracting the internal entity from the fluid domain bounding volume according to the fluid domain definition, and outputting the fluid computation domain together when the output is a geometric model file.
5. The combustion chamber modeling method based on OCC underlying tools according to claim 1, characterized in that, The description file also includes a top-level field layer, which includes a ring type field and a combustion chamber type field. The ring type field is used to identify splashed rings or stacked rings, and the combustion chamber type field is used to identify an annular combustion chamber or an annular tube combustion chamber. In the business parameter conversion step, the annular type field and combustion chamber type field in the description file are also identified.
6. The combustion chamber modeling method based on OCC underlying tools according to claim 1, characterized in that, The fusion of component geometry according to the sub-module combination relationship in the configuration object is a recursive fusion of component geometry, including: traversing the list of sub-module names, if the sub-module name exists in the constructed shape dictionary, it is directly used; otherwise, it recursively searches for its lower-level sub-components and merges them, and caches the fusion result in the shape dictionary.
7. The combustion chamber modeling method based on OCC underlying tools according to claim 1, characterized in that, A modeling context tracking mechanism is established during the execution of the OCC geometry reconstruction step and the process orchestration output step: the current modeling context record is maintained, including the current stage, module name, step number, geometry description, index, type and geometry parameters; when any geometry operation throws an exception, the error entry containing timestamp, module, step, operation type, simplified parameters, error type, error message and full stack trace is captured and recorded, and a JSON format error report file is generated.
8. The combustion chamber modeling method based on OCC underlying tools according to claim 1, characterized in that, The geometric parameters of the custom JSON geometry description language are divided into four primitives according to the operation type: Wireframe primitives, including polylines, spirals, three-point arcs, complete circles, rounded rectangles, offset lines, stacked loop profiles, and splatter loop profiles, are used to construct one-dimensional wireframe geometry. Solid construction primitives, including Extrude, Revolve, Thicken, Sweep, Loft, Hole Array, and External STEP Import, are used to construct wireframes or surfaces into 3D solids; Transformation primitives, including translation arrays and rotation arrays; Boolean operation primitives include Boolean union, Boolean difference, Boolean intersection, interference check, and complex operations; Each primitive is configured with a field to identify its type and an index number of the upstream geometry entry as input, thereby expressing the dependency topology between geometric operations in an index chain.
9. The combustion chamber modeling method based on OCC underlying tools according to claim 8, characterized in that, The stacked ring contour primitive is defined by five parameters: position, direction, normal, length, and thickness. Its cross-sectional polygon is constructed as follows: starting from the position point, the second point is obtained by translating along the direction vector by the length. Then, the third and fourth points are obtained by translating along the thickness direction, which is the cross product of the direction vector and the normal vector. The four points are connected in sequence to form a closed quadrilateral.
10. The combustion chamber modeling method based on OCC underlying tools according to claim 8, characterized in that, The splash ring contour primitive is defined by eight parameters: position, direction, normal, first segment length, second segment length, third segment length, thickness, and bending angle. It is constructed as follows: the direction vector is rotated around the position point by a negative bending angle about the normal axis to obtain the second segment direction vector. The first segment length is translated along the direction vector, the second segment length is translated along the second segment direction vector, and the third segment length is translated along the direction vector to obtain four points of the bending centerline. Then, the corresponding four points are obtained by offsetting along the thickness direction. A total of eight points are connected in sequence to form a closed octagonal bending contour.
11. The combustion chamber modeling method based on OCC underlying tools according to claim 8, characterized in that, In the OCC geometric reconstruction step, fuzzy tolerance values are set when performing Boolean union, Boolean difference, and Boolean intersection to handle overlapping surfaces and tiny gaps. After the Boolean union operation, the OCC's same-domain unified tool is called to merge and optimize the surfaces and edges.
12. The combustion chamber modeling method based on OCC underlying tools according to claim 8, characterized in that, In the OCC geometric reconstruction step, the interference checking primitive calculates the volume attribute of the Boolean intersection result of the two shapes, determines whether interference has occurred by using a preset volume threshold, and retains or removes the interfering entity according to the settings.
13. A combustion chamber modeling system based on OCC underlying tools, characterized in that, include: Description file construction module: used to construct the combustion chamber assembly data description file. The description file adopts a custom JSON geometric description language and is organized into assembly objects according to the assembly hierarchy. The assembly objects include configuration objects and component modules. The component modules include flame tube, ring, ring construction configuration and global rotation object. Each component object consists of several geometric entries. Each geometric entry is defined by an index number, description, type field and geometric parameter list, and the dependency relationship between geometric entries is established through index reference field. The configuration object includes submodule combination relationships and a list of output components; Business parameter conversion module: used to read the description file, and based on the ring construction configuration, flame tube outline and global rotation parameters in the description file, automatically deduce the relative positional relationship between the ring and the flame tube using two-dimensional geometric operations, and generate an intermediate description file containing the OCC underlying geometric operation sequence. The intermediate description file is isomorphic to the description file. OCC geometry reconstruction module: used to parse the geometric entries in the intermediate description file, call the OCC underlying tools to create the corresponding OCC topology objects in the order of dependency, and combine them into component geometry through Boolean operations and transformation arrays; Process orchestration output module: used to merge component geometry according to the sub-module combination relationship in the configuration object, and output the component geometry as a geometric model file according to the output component list.
14. The combustion chamber modeling system based on OCC underlying tools according to claim 13, characterized in that, It also includes a tracking module: used to establish a modeling context tracking mechanism during the operation of the OCC geometry reconstruction module and the process orchestration output module: maintaining the current modeling context record, including the current stage, module name, step number, geometry description, index, type and geometry parameters; when any geometry operation throws an exception, it captures and records the error entry containing the timestamp, module, step, operation type, simplified parameters, error type, error message and full stack trace, and generates a JSON format error report file.
15. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the combustion chamber modeling method based on OCC underlying tools as described in any one of claims 1 to 12.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the combustion chamber modeling method based on OCC underlying tools as described in any one of claims 1 to 12.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the combustion chamber modeling method based on the OCC underlying tool as described in any one of claims 1 to 12.
