CN116011049A - Parameterization generation method and device for structured grid transition topological structure - Google Patents

Parameterization generation method and device for structured grid transition topological structure Download PDF

Info

Publication number
CN116011049A
CN116011049A CN202310306812.8A CN202310306812A CN116011049A CN 116011049 A CN116011049 A CN 116011049A CN 202310306812 A CN202310306812 A CN 202310306812A CN 116011049 A CN116011049 A CN 116011049A
Authority
CN
China
Prior art keywords
intersecting
transition
geometry
branch
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310306812.8A
Other languages
Chinese (zh)
Other versions
CN116011049B (en
Inventor
张江山
刘昱宏
王超
杨树峰
刘青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Science and Technology Beijing USTB
Original Assignee
University of Science and Technology Beijing USTB
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Science and Technology Beijing USTB filed Critical University of Science and Technology Beijing USTB
Priority to CN202310306812.8A priority Critical patent/CN116011049B/en
Publication of CN116011049A publication Critical patent/CN116011049A/en
Application granted granted Critical
Publication of CN116011049B publication Critical patent/CN116011049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a parameterization generation method and a parameterization generation device for a structured grid transition topological structure, and relates to the technical field of computational fluid mechanics. Comprising the following steps: obtaining geometric parameters of a to-be-generated transition topological structure region; determining an intersecting core structure of the transition topological structure according to the geometric parameters, and generating dictionary files required by the intersecting core structure; determining the topological structure of a peripheral shell of the transition topological structure according to the intersected core structure, and generating dictionary files required by the peripheral shell; determining the shape of the extension geometry of the transition topology, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh command to read the dictionary files, and completing parameterization generation of the structured grid transition topology. The method can solve the problem that the transition structure among the areas of the structured grid is difficult to adjust quickly in the prior art, and the parameterized generation method can reduce the manpower labor, improve the working efficiency and provide powerful support for the follow-up CFD work.

Description

Parameterization generation method and device for structured grid transition topological structure
Technical Field
The invention relates to the technical field of computational fluid mechanics, in particular to a parameterized generation method and device of a structured grid transition topological structure.
Background
Structured grid generation has been an important content of CFD (Computational Fluid Dynamics ) work, how to select appropriate transition structures between sub-regions and make parameterized fast adjustments according to different needs while dividing the grid has not been effectively solved.
In general, it is necessary to manually and repeatedly adjust the grid parameters and the topology of the transition region to generate a reasonable target grid.
Disclosure of Invention
The invention provides the method for adjusting the transition structure of the structured grid, which aims at the problem that the transition structure of each region of the structured grid is difficult to adjust quickly in the prior art.
In order to solve the technical problems, the invention provides the following technical scheme:
in one aspect, the present invention provides a method for generating parameterization of a structured grid transition topology, where the method is implemented by an electronic device, and the method includes:
s1, obtaining geometric parameters of a to-be-generated transition topological structure region.
S2, determining an intersecting core structure of the transition topological structure according to the geometric parameters, and generating dictionary files required by the intersecting core structure.
S3, determining the topological structure of the peripheral shell of the transition topological structure according to the intersected core structure, and generating dictionary files required by the peripheral shell.
S4, determining the shape of the extension geometry of the transition topological structure, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh to command reading the dictionary files required by the intersection core structure, the peripheral shell and the extension geometry, and completing parameterization generation of the structured grid transition topological structure.
Optionally, the intersecting core structure in S2 comprises a trunk cylinder and a branch geometry.
The geometry formed at the intersection of the trunk cylinder and the branch geometry is taken as an intersection core.
The structural types of intersecting cores include circular, oval, and rounded rectangular.
Optionally, determining the intersecting core structure of the transition topology according to the geometric parameters in S2, generating the dictionary file required by the intersecting core structure includes:
s21, determining the structure type of the intersected core of the transition topological structure according to the geometric parameters.
S22, determining the grid density according to actual simulation requirements, and further determining the diameter of the trunk cylinder, the dimension parameters of the branch geometric bodies and the normal direction of the branch geometric bodies.
S23, writing a Python function to calculate an expression of the intersecting curve according to the structure type of the intersecting core.
S24, writing a Python program according to the rules of OpenFOAM blockMesh, the diameter of the trunk cylinder, the dimension parameters of the branch geometry, the normal direction of the branch geometry and the expression of the intersection curve, and generating a dictionary file required by the intersection core structure.
Optionally, determining the diameter of the trunk cylinder, the dimensional parameters of the branch geometry, and the normal of the branch geometry in S22 includes:
the diameter of the trunk cylinder, the dimension parameter of the branch geometry and the normal direction of the branch geometry are determined according to the principle that the body-to-body separation part of the trunk cylinder and the branch geometry is not more than half of the trunk cylinder.
Optionally, S22 further includes:
and adjusting the size parameters of the branch geometric body to obtain the intersected cores of the structured grid.
Optionally, writing an expression of the Python function calculation intersecting curve according to the structure type of the intersecting core in S23 includes:
when the structure type of the intersecting core is a circle or an ellipse, writing a Python function according to the circle or the ellipse to calculate an expression of the intersecting curve.
When the structure type of the intersecting core is a rounded rectangle, writing a Python function according to the upper and lower rounded parts of the rounded rectangle to calculate the expression of the intersecting curve.
Optionally, writing the Python program in S24, generating a dictionary file required for intersecting the core structure includes:
and writing Python programs according to the logic sequence of the upper half part of the trunk cylinder, the upper half part of the branch geometry, the middle part of the trunk cylinder of the round-corner rectangular intersecting core, the middle part of the branch geometry of the round-corner rectangular intersecting core, the lower half part of the trunk cylinder and the lower half part of the branch geometry, and generating dictionary files required by the intersecting core structure.
Optionally, the mesh of the peripheral shell of the transition topology in S3 is a hexahedral mesh at each sub-region of the peripheral shell.
The coordinates of each sub-region of the peripheral shell must not be inside the intersecting core of the transition topology.
Optionally, the extension geometry in S4 is one or more segments.
The generation process of the extension geometry comprises the following steps:
array operations are performed on the basis of intersecting cores through a central array, generating a plurality of extended geometries.
In another aspect, the present invention provides a parameterization generating device for a structured grid transition topology, where the device is applied to implement a parameterization generating method for a structured grid transition topology, and the device includes:
the acquisition module is used for acquiring the geometric parameters of the transition topological structure region to be generated.
And the intersecting core structure determining module is used for determining the intersecting core structure of the transition topological structure according to the geometric parameters and generating dictionary files required by the intersecting core structure.
And the peripheral shell determining module is used for determining the topological structure of the peripheral shell of the transition topological structure according to the intersected core structure and generating dictionary files required by the peripheral shell.
The generating module is used for determining the shape of the extension geometry of the transition topological structure, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh command to read the dictionary files required by the intersection core structure, the peripheral shell and the extension geometry, and completing parameterization generation of the structured grid transition topological structure.
Optionally, the intersecting core structure comprises a trunk cylinder and a branch geometry.
The geometry formed at the intersection of the trunk cylinder and the branch geometry is taken as an intersection core.
The structural types of intersecting cores include circular, oval, and rounded rectangular.
Optionally, the intersecting core structure determination module is further configured to:
s21, determining the structure type of the intersected core of the transition topological structure according to the geometric parameters.
S22, determining the grid density according to actual simulation requirements, and further determining the diameter of the trunk cylinder, the dimension parameters of the branch geometric bodies and the normal direction of the branch geometric bodies.
S23, writing a Python function to calculate an expression of the intersecting curve according to the structure type of the intersecting core.
S24, writing a Python program according to the rules of OpenFOAM blockMesh, the diameter of the trunk cylinder, the dimension parameters of the branch geometry, the normal direction of the branch geometry and the expression of the intersection curve, and generating a dictionary file required by the intersection core structure.
Optionally, the intersecting core structure determination module is further configured to:
the diameter of the trunk cylinder, the dimension parameter of the branch geometry and the normal direction of the branch geometry are determined according to the principle that the body-to-body separation part of the trunk cylinder and the branch geometry is not more than half of the trunk cylinder.
Optionally, the intersecting core structure determination module is further configured to:
and adjusting the size parameters of the branch geometric body to obtain the intersected cores of the structured grid.
Optionally, the intersecting core structure determination module is further configured to:
when the structure type of the intersecting core is a circle or an ellipse, writing a Python function according to the circle or the ellipse to calculate an expression of the intersecting curve.
When the structure type of the intersecting core is a rounded rectangle, writing a Python function according to the upper and lower rounded parts of the rounded rectangle to calculate the expression of the intersecting curve.
Optionally, the intersecting core structure determination module is further configured to:
and writing Python programs according to the logic sequence of the upper half part of the trunk cylinder, the upper half part of the branch geometry, the middle part of the trunk cylinder of the round-corner rectangular intersecting core, the middle part of the branch geometry of the round-corner rectangular intersecting core, the lower half part of the trunk cylinder and the lower half part of the branch geometry, and generating dictionary files required by the intersecting core structure.
Optionally, the mesh of the peripheral shell of the transition topology is a hexahedral mesh at each sub-region of the peripheral shell.
The coordinates of each sub-region of the peripheral shell must not be inside the intersecting core of the transition topology.
Optionally, the extension geometry is one or more segments.
The generating module is further used for:
array operations are performed on the basis of intersecting cores through a central array, generating a plurality of extended geometries.
In one aspect, an electronic device is provided, the electronic device including a processor and a memory, the memory storing at least one instruction, the at least one instruction loaded and executed by the processor to implement the parameterized generation method of the structured grid transition topology.
In one aspect, a computer-readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the parameterized generation method of a structured grid transition topology described above is provided.
Compared with the prior art, the technical scheme has at least the following beneficial effects:
according to the scheme, the parameterization generation method of the structured grid transition topological structure is provided, the problem that the transition structure among all areas of the structured grid is difficult to adjust quickly in the prior art can be solved, and by using the parameterization generation method, the manpower labor can be reduced, the working efficiency is improved, and powerful support is provided for follow-up CFD work.
The core structure of the invention can be used as a hexahedral block to be inserted into any other structure under the wrapping of the shell, and can be flexibly connected with various other geometric bodies by extending the geometric bodies, thus having rich expansibility and wide application space.
The invention adopts a grid generation mode of Python+OpenFOAM full open source, and can rapidly carry out parameterized central array on the branch geometry and the extension geometry by adjusting codes, thus being applicable to internal transition of complex geometry.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a parameterized generation method of a structured grid transition topology structure provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of an intersecting core structure provided by an embodiment of the present invention;
FIG. 3 is an exploded view of an intersecting core structure provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of the types of intersecting cores provided by an embodiment of the present invention;
FIG. 5 is a side view of a branching geometry versus peripheral shell topology provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of the topology of a core structure and a peripheral shell according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of the topology of the core structure, peripheral shell and extension geometry provided by an embodiment of the present invention;
FIG. 8 is a schematic diagram of a transition topology provided by an embodiment of the present invention;
FIG. 9 is a block diagram of a parameterized generating device for a structured grid transition topology provided by an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without creative efforts, based on the described embodiments of the present invention fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for generating a parameterized structural mesh transition topology, which may be implemented by an electronic device. The parameterization generating method flowchart of the structured grid transition topological structure shown in fig. 1, the processing flow of the method can comprise the following steps:
s1, obtaining geometric parameters of a to-be-generated transition topological structure region.
S2, determining an intersecting core structure of the transition topological structure according to the geometric parameters, and generating dictionary files required by the intersecting core structure.
Alternatively, as shown in fig. 2, 3, the intersecting core structure comprises a trunk cylinder and a branch geometry.
The geometry formed at the intersection of the trunk cylinder and the branch geometry is taken as an intersection core.
As shown in fig. 4, the types of structures of the intersecting core may include circular, oval, and rounded rectangular.
Optionally, the step S2 may include the following steps S21 to S24:
s21, determining the structure type of the intersected core of the transition topological structure according to the geometric parameters.
In a possible implementation manner, the core intersection structure type is selected from three shapes of A round, B oval and C round rectangle according to actual requirements.
S22, determining the diameter of the trunk cylinder, the dimension parameters of the branch geometry and the normal direction of the branch geometry according to the principle that the body-to-branch geometrical body separation part of the trunk cylinder is not more than half of the trunk cylinder according to the grid density.
Wherein, the grid density is determined by the user according to the engineering actual need.
Optionally, S22 further includes:
and adjusting the size parameters of the branch geometric body to obtain the intersected cores of the structured grid.
In one possible implementation, the type of intersecting core structure is determined and the branch geometry size parameters are determined based on the mesh density, and the branch geometry size can be adjusted appropriately to ensure that the meshes of the intersecting core are all structured meshes.
Further, the diameter of the trunk cylinder is determined according to the principle that the intersecting part is not more than half of the trunk cylinder, and the dimension parameters and the normal direction of the branch geometric body are obtained.
S23, writing a Python function to calculate an expression of the intersecting curve according to the structure type of the intersecting core.
Optionally, the step S23 may include:
when the structure type of the intersecting core is a circle or an ellipse, writing a Python function according to the circle or the ellipse to calculate an expression of the intersecting curve.
When the structure type of the intersecting core is a rounded rectangle, writing a Python function according to the upper and lower rounded parts of the rounded rectangle to calculate the expression of the intersecting curve.
In one possible implementation, the circles and ovals can calculate the complete expression from their equations, and the rounded rectangle only needs to calculate the upper and lower rounded portions.
S24, writing a Python program according to the rules of OpenFOAM blockMesh, the diameter of the trunk cylinder, the dimension parameters of the branch geometry, the normal direction of the branch geometry and the expression of the intersection curve, and generating a dictionary file required by the intersection core structure.
Optionally, writing the Python program in S24, generating a dictionary file required for intersecting the core structure includes:
and writing Python programs according to the logic sequence of the upper half part of the trunk cylinder, the upper half part of the branch geometry, the middle part of the trunk cylinder of the round-corner rectangular intersecting core, the middle part of the branch geometry of the round-corner rectangular intersecting core, the lower half part of the trunk cylinder and the lower half part of the branch geometry, and generating dictionary files required by the intersecting core structure.
In a possible implementation, according to the rules of OpenFOAM blockMesh, a Python program is written to generate dictionary files required by the intersecting core structure, and codes are as follows: the method comprises the steps of writing a logic sequence of the upper half part of a trunk cylinder, the upper half part of a branch geometric body, the middle part of the trunk cylinder (only aiming at a round rectangular straight line segment), the middle part of the branch geometric body (only aiming at a round rectangular straight line segment), the lower half part of the trunk cylinder and the lower half part of the branch geometric body, obtaining a dictionary file named as a blockMeshDict after executing codes, and generating an intersecting core structure after reading and executing by using OpenFOAM blockMesh commands.
Further, when more than one branch geometry is distributed in a central symmetry way by taking the trunk cylinder as the center, only the model and the grid thereof which generate the topological structure directly related to the current branch geometry are written, and then the array function is written to generate the models and the grids thereof at other symmetrical positions.
In a possible implementation, writing a Python program to generate dictionary files, the junction sum OpenFOAM blockMesh may ensure that the generated grid is all structured.
S3, determining the topological structure of the peripheral shell of the transition topological structure according to the intersected core structure, and generating dictionary files required by the peripheral shell.
Optionally, the mesh of the peripheral shell of the transition topology in S3 is a hexahedral mesh at each sub-region of the peripheral shell.
The coordinates of each sub-region of the peripheral shell must not be inside the intersecting core of the transition topology.
In a possible embodiment, as shown in fig. 5 and 6, the topology of the peripheral shell is determined according to the intersecting core features; each sub-area of the shell is all hexahedron, the coordinate parameters of each vertex at the periphery of the shell are determined according to actual needs, but any sub-area coordinate of the peripheral shell is not required to be in the interior of the intersecting core.
Further, on the basis of the original codes, the codes for generating the peripheral shell dictionary files are continuously written. The logical order of code writing is the same as the logical order of code of the core structure.
S4, determining the shape of the extension geometric body of the transition topological structure, acquiring dictionary files required by generating the extension geometric body, and completing parameterization generation of the structured grid transition topological structure.
In one possible embodiment, as shown in FIG. 7, the extension geometry is determined and the corresponding partial program is written; on the basis of the extension end shape of the branch geometric body, the scaling of the normal direction and the end shape of the extension geometric body can be arbitrarily adjusted to meet the requirement that the transition topological structure is connected with other structures.
The extended geometry can be one or more segments according to actual needs, and can be operated by a central array based on intersecting cores to generate a plurality of extended geometries.
Further, as shown in fig. 8, the transition topology includes an intersecting core structure, a peripheral shell, and an extension geometry.
All the designed models and grids thereof are built under the condition that the coordinate system rule follows the right hand rule.
In the embodiment of the invention, the parameterization generation method of the structured grid transition topological structure is provided, the problem that the transition structure among all areas of the structured grid is difficult to adjust quickly in the prior art can be solved, the parameterization generation method is used, the manpower labor can be reduced, the working efficiency is improved, and powerful support is provided for the follow-up CFD work.
The core structure of the invention can be used as a hexahedral block to be inserted into any other structure under the wrapping of the shell, and can be flexibly connected with various other geometric bodies by extending the geometric bodies, thus having rich expansibility and wide application space.
The invention adopts a grid generation mode of Python+OpenFOAM full open source, and can rapidly carry out parameterized central array on the branch geometry and the extension geometry by adjusting codes, thus being applicable to internal transition of complex geometry.
As shown in fig. 9, an embodiment of the present invention provides a parameterization generating apparatus 900 of a structured grid transition topology, where the apparatus 900 is applied to implement a parameterization generating method of a structured grid transition topology, and the apparatus 900 includes:
an obtaining module 910, configured to obtain geometric parameters of the transition topology region to be generated.
The intersecting core structure determining module 920 is configured to determine an intersecting core structure of the transition topology according to the geometric parameter, and generate a dictionary file required by the intersecting core structure.
The peripheral shell determining module 930 is configured to determine a topology structure of a peripheral shell of the transition topology structure according to the intersecting core structure, and generate a dictionary file required by the peripheral shell.
The generating module 940 is configured to determine a shape of the extended geometry of the transition topology, generate a dictionary file required for the extended geometry, execute OpenFOAM blockMesh command to read the dictionary file required for generating the intersecting core structure, the dictionary file required for generating the peripheral shell, and the dictionary file required for generating the extended geometry, and complete parameterization generation of the structured grid transition topology.
Optionally, the intersecting core structure comprises a trunk cylinder and a branch geometry.
The geometry formed at the intersection of the trunk cylinder and the branch geometry is taken as an intersection core.
The structural types of intersecting cores include circular, oval, and rounded rectangular.
Optionally, the intersecting core structure determination module 920 is further configured to:
s21, determining the structure type of the intersected core of the transition topological structure according to the geometric parameters.
S22, determining the grid density according to actual simulation requirements, and further determining the diameter of the trunk cylinder, the dimension parameters of the branch geometric bodies and the normal direction of the branch geometric bodies.
S23, writing a Python function to calculate an expression of the intersecting curve according to the structure type of the intersecting core.
S24, writing a Python program according to the rules of OpenFOAM blockMesh, the diameter of the trunk cylinder, the dimension parameters of the branch geometry, the normal direction of the branch geometry and the expression of the intersection curve, and generating a dictionary file required by the intersection core structure.
Optionally, the intersecting core structure determination module 920 is further configured to:
the diameter of the trunk cylinder, the dimension parameter of the branch geometry and the normal direction of the branch geometry are determined according to the principle that the body-to-body separation part of the trunk cylinder and the branch geometry is not more than half of the trunk cylinder.
Optionally, the intersecting core structure determination module 920 is further configured to:
and adjusting the size parameters of the branch geometric body to obtain the intersected cores of the structured grid.
Optionally, the intersecting core structure determination module 920 is further configured to:
when the structure type of the intersecting core is a circle or an ellipse, writing a Python function according to the circle or the ellipse to calculate an expression of the intersecting curve.
When the structure type of the intersecting core is a rounded rectangle, writing a Python function according to the upper and lower rounded parts of the rounded rectangle to calculate the expression of the intersecting curve.
Optionally, the intersecting core structure determination module 920 is further configured to:
and writing Python programs according to the logic sequence of the upper half part of the trunk cylinder, the upper half part of the branch geometry, the middle part of the trunk cylinder of the round-corner rectangular intersecting core, the middle part of the branch geometry of the round-corner rectangular intersecting core, the lower half part of the trunk cylinder and the lower half part of the branch geometry, and generating dictionary files required by the intersecting core structure.
Optionally, the mesh of the peripheral shell of the transition topology is a hexahedral mesh at each sub-region of the peripheral shell.
The coordinates of each sub-region of the peripheral shell must not be inside the intersecting core of the transition topology.
The extended geometry is one or more segments.
The generating module 940 is further configured to:
array operations are performed on the basis of intersecting cores through a central array, generating a plurality of extended geometries.
In the embodiment of the invention, the parameterization generation method of the structured grid transition topological structure is provided, the problem that the transition structure among all areas of the structured grid is difficult to adjust quickly in the prior art can be solved, the parameterization generation method is used, the manpower labor can be reduced, the working efficiency is improved, and powerful support is provided for the follow-up CFD work.
The core structure of the invention can be used as a hexahedral block to be inserted into any other structure under the wrapping of the shell, and can be flexibly connected with various other geometric bodies by extending the geometric bodies, thus having rich expansibility and wide application space.
The invention adopts a grid generation mode of Python+OpenFOAM full open source, and can rapidly carry out parameterized central array on the branch geometry and the extension geometry by adjusting codes, thus being applicable to internal transition of complex geometry.
Fig. 10 is a schematic structural diagram of an electronic device 1000 according to an embodiment of the present invention, where the electronic device 1000 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1001 and one or more memories 1002, where at least one instruction is stored in the memories 1002, and the at least one instruction is loaded and executed by the processors 1001 to implement the following parameterized generation method of the structured grid transition topology:
s1, obtaining geometric parameters of a to-be-generated transition topological structure region.
S2, determining an intersecting core structure of the transition topological structure according to the geometric parameters, and generating dictionary files required by the intersecting core structure.
S3, determining the topological structure of the peripheral shell of the transition topological structure according to the intersected core structure, and generating dictionary files required by the peripheral shell.
S4, determining the shape of the extension geometry of the transition topological structure, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh to command reading the dictionary files required by the intersection core structure, the peripheral shell and the extension geometry, and completing parameterization generation of the structured grid transition topological structure.
In an exemplary embodiment, a computer readable storage medium, e.g. a memory comprising instructions executable by a processor in a terminal to perform the above-described parameterized generation method of a structured grid transition topology is also provided. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A method for parameterized generation of a structured grid transition topology, the method comprising:
s1, acquiring geometric parameters of a to-be-generated transition topological structure region;
s2, determining an intersecting core structure of a transition topological structure according to the geometric parameters, and generating dictionary files required by the intersecting core structure;
s3, determining the topological structure of a peripheral shell of a transitional topological structure according to the intersected core structure, and generating dictionary files required by the peripheral shell;
s4, determining the shape of the extension geometry of the transition topological structure, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh to command reading the dictionary files required by the generation of the intersected core structure, the dictionary files required by the generation of the peripheral shell and the dictionary files required by the extension geometry, and completing parameterization generation of the structured grid transition topological structure.
2. The method of claim 1, wherein the intersecting core structure in S2 comprises a trunk cylinder and a branch geometry;
taking a geometric structure formed at the intersection of the trunk cylinder and the branch geometric body as an intersection core;
the structural types of the intersecting core include circular, oval, and rounded rectangular.
3. The method according to claim 1, wherein determining the intersecting core structure of the transition topology according to the geometric parameter in S2, generating the dictionary file required for the intersecting core structure, comprises:
s21, determining the structure type of an intersecting core of the transition topological structure according to the geometric parameters;
s22, determining the grid density according to actual simulation requirements, and further determining the diameter of a trunk cylinder, the dimension parameters of a branch geometric body and the normal direction of the branch geometric body;
s23, writing a Python function to calculate an expression of an intersecting curve according to the structure type of the intersecting core;
s24, writing a Python program according to the OpenFOAM blockMesh rule, the diameter of the trunk cylinder, the dimension parameters of the branch geometry, the normal direction of the branch geometry and the expression of the intersecting curve, and generating a dictionary file required by the intersecting core structure.
4. A method according to claim 3, wherein determining the diameter of the trunk cylinder, the dimensional parameters of the branch geometry and the normal of the branch geometry in S22 comprises:
the diameter of the trunk cylinder, the dimension parameters of the branch geometry and the normal direction of the branch geometry are determined according to the principle that the body-to-branch geometry phase-separated part of the trunk cylinder is not more than half of the trunk cylinder.
5. A method according to claim 3, wherein S22 further comprises:
and adjusting the size parameters of the branch geometric body to obtain the intersected cores of the structured grid.
6. A method according to claim 3, wherein writing an expression of a Python function calculation intersecting curve in S23 according to the structure type of the intersecting core comprises:
when the structure type of the intersecting core is a circle or an ellipse, writing a Python function according to the circle or the ellipse to calculate an expression of an intersecting curve;
and when the structural type of the intersecting core is a rounded rectangle, writing a Python function according to the upper and lower rounded parts of the rounded rectangle to calculate the expression of the intersecting curve.
7. A method according to claim 3, wherein the writing of the Python program in S24 generates a dictionary file required for the intersecting core structure, including:
and programming Python programs according to the logic sequence of the upper half part of the trunk cylinder, the upper half part of the branch geometry, the middle part of the trunk cylinder of the round-corner rectangular intersecting core, the middle part of the branch geometry of the round-corner rectangular intersecting core, the lower half part of the trunk cylinder and the lower half part of the branch geometry, and generating dictionary files required by the intersecting core structure.
8. The method according to claim 1, wherein the mesh of the peripheral shell of the transition topology in S3 is a hexahedral mesh at each sub-region of the peripheral shell;
the coordinates of each sub-region of the peripheral shell must not be inside the intersecting core of the transition topology.
9. The method of claim 1, wherein the extension geometry in S4 is one or more segments;
the generating process of the extension geometry comprises the following steps:
array operations are performed on the basis of intersecting cores through a central array, generating a plurality of extended geometries.
10. A parameterized generating device for a structured grid transition topology, the device comprising:
the acquisition module is used for acquiring geometric parameters of the transition topological structure region to be generated;
the intersecting core structure determining module is used for determining an intersecting core structure of a transition topological structure according to the geometric parameters and generating dictionary files required by the intersecting core structure;
the peripheral shell determining module is used for determining the topological structure of the peripheral shell of the transition topological structure according to the intersecting core structure and generating dictionary files required by the peripheral shell;
the generating module is used for determining the shape of the extension geometry of the transition topological structure, generating dictionary files required by the extension geometry, executing OpenFOAM blockMesh command to read the dictionary files required by the generation of the intersected core structure, the dictionary files required by the generation of the peripheral shell and the dictionary files required by the extension geometry, and completing parameterization generation of the structured grid transition topological structure.
CN202310306812.8A 2023-03-27 2023-03-27 Parameterization generation method and device for structured grid transition topological structure Active CN116011049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310306812.8A CN116011049B (en) 2023-03-27 2023-03-27 Parameterization generation method and device for structured grid transition topological structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310306812.8A CN116011049B (en) 2023-03-27 2023-03-27 Parameterization generation method and device for structured grid transition topological structure

Publications (2)

Publication Number Publication Date
CN116011049A true CN116011049A (en) 2023-04-25
CN116011049B CN116011049B (en) 2023-07-07

Family

ID=86035818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310306812.8A Active CN116011049B (en) 2023-03-27 2023-03-27 Parameterization generation method and device for structured grid transition topological structure

Country Status (1)

Country Link
CN (1) CN116011049B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100053170A1 (en) * 2008-09-03 2010-03-04 Airbus Espana, S.L. Methods and systems for adapting a multi-block structured mesh topology of an object to a modification in its geometry
CN112685935A (en) * 2020-12-25 2021-04-20 中国航空发动机研究院 Two-dimensional multi-block structured grid topological partitioning method
CN113987856A (en) * 2021-09-26 2022-01-28 杭州电子科技大学 Complex multi-constraint structure grid generation method based on frame field
CN115439629A (en) * 2022-07-26 2022-12-06 杭州脉流科技有限公司 Method, computer device and computer program product for automatically dividing grid with boundary layer for blood vessel flow field simulation domain
CN115659480A (en) * 2022-05-13 2023-01-31 苏州太泽科技有限公司 Aircraft parametric modeling and automatic optimization integrated design system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100053170A1 (en) * 2008-09-03 2010-03-04 Airbus Espana, S.L. Methods and systems for adapting a multi-block structured mesh topology of an object to a modification in its geometry
CN112685935A (en) * 2020-12-25 2021-04-20 中国航空发动机研究院 Two-dimensional multi-block structured grid topological partitioning method
CN113987856A (en) * 2021-09-26 2022-01-28 杭州电子科技大学 Complex multi-constraint structure grid generation method based on frame field
CN115659480A (en) * 2022-05-13 2023-01-31 苏州太泽科技有限公司 Aircraft parametric modeling and automatic optimization integrated design system
CN115439629A (en) * 2022-07-26 2022-12-06 杭州脉流科技有限公司 Method, computer device and computer program product for automatically dividing grid with boundary layer for blood vessel flow field simulation domain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岳孟赫;刘勇;赵璐;张祥;: "涡轮叶片结构化网格自动分区策略研究", 航空计算技术, no. 05 *

Also Published As

Publication number Publication date
CN116011049B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
US4864520A (en) Shape generating/creating system for computer aided design, computer aided manufacturing, computer aided engineering and computer applied technology
CN113920184B (en) Polygon simplification method, device, equipment and computer readable storage medium
CN114970196B (en) Method and device for synchronously and quickly generating model and structured grid of metallurgical container
CN115187589B (en) Polygon correction and generation method, device, equipment and readable storage medium
CN110363854A (en) Circular formwork dividing method, device, computer equipment and storage medium
CN116011049B (en) Parameterization generation method and device for structured grid transition topological structure
CN108389263A (en) The IGES surface grids rapid generations calculated are solved towards Element BEM
CN109446749B (en) Design method and system suitable for ship jig, electronic terminal and storage medium
US11217013B2 (en) Method for preserving shapes in solid model when distributing material during topological optimization
CN110688798B (en) Deformation prediction method, device, equipment and storage medium for shell structural part
CN111583410A (en) Automatic generation method of clothing mesh model
CN110717291B (en) Welding structure deformation simulation method, device, equipment and storage medium
CN115330971B (en) Geometric model lightweight method oriented to rendering performance optimization
CN103020402B (en) Modeling method and modeling device
CN116416377A (en) Identification method, device and system for machining characteristics of thin-wall tube laser cutting
CN112861241A (en) Method, device and equipment for unfolding conical tube and readable storage medium
CN112257132B (en) Data interaction method of simulation file
CN111223179B (en) Method and device for processing porosification information of bone scaffold model
CN110349265B (en) Tetrahedral topological mesh generation method and electronic equipment
CN110335353B (en) Method, device, equipment and storage medium for automatically subdividing blocks
CN113409452B (en) Three-dimensional line generation method, storage medium and system
JPH09305651A (en) Analysis simulation device and its high-speed display method
CN114357907B (en) Parallel method suitable for Lagrange type particle numerical simulation
CN103365252A (en) Implementation method and device for numerical control machining graphic modeling
CN115100357B (en) Data file generation method and format conversion method for geometric feature description

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant