CN111291433A - Data conversion method and device for MCNP three-dimensional pretreatment - Google Patents
Data conversion method and device for MCNP three-dimensional pretreatment Download PDFInfo
- Publication number
- CN111291433A CN111291433A CN202010052213.4A CN202010052213A CN111291433A CN 111291433 A CN111291433 A CN 111291433A CN 202010052213 A CN202010052213 A CN 202010052213A CN 111291433 A CN111291433 A CN 111291433A
- Authority
- CN
- China
- Prior art keywords
- space
- geometric
- entity
- mcnp
- model
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机信息技术领域,特别涉及一种MCNP三维前处理的数据转换方法及装置。The invention relates to the technical field of computer information, in particular to a data conversion method and device for MCNP three-dimensional preprocessing.
背景技术Background technique
蒙特卡洛粒子输送计算程序(Monte Carlo N Particle Transport Code,简称MCNP)在核领域具有广泛应用,但当前MCNP直接进行三维建模的难度较大且效率低下,同时商业计算机辅助设计(Computer Aided Design,简称CAD)具有成熟高效的三维建模手段,但是建好的模型不能直接应用,当前技术人员在模型转换方面进行了研究,但只能实现简单模型转换,而无法实现复杂模型转换的问题,使得工作效率较低。Monte Carlo N Particle Transport Code (MCNP for short) is widely used in the nuclear field, but it is difficult and inefficient to directly perform 3D modeling with MCNP. , referred to as CAD) has a mature and efficient 3D modeling method, but the built model cannot be directly applied. The current technical personnel have carried out research on model conversion, but only simple model conversion can be achieved, but complex model conversion cannot be realized. Makes work less efficient.
发明内容SUMMARY OF THE INVENTION
本发明实施例要达到的技术目的是提供一种MCNP三维前处理的数据转换方法及装置,用以解决当前MCNP直接进行三维建模的难度较大且效率低下,且在CAD模型向MCNP模型转换时工作效率低且错误率高的问题。The technical purpose to be achieved by the embodiments of the present invention is to provide a data conversion method and device for MCNP three-dimensional pre-processing, which is used to solve the difficulty and low efficiency of the current MCNP direct three-dimensional modeling, and the conversion from CAD model to MCNP model. problems of low work efficiency and high error rate.
为解决上述技术问题,本发明实施例提供了一种MCNP三维前处理的数据转换方法,包括:In order to solve the above-mentioned technical problems, the embodiment of the present invention provides a data conversion method for MCNP three-dimensional preprocessing, including:
获取待处理产品的计算机辅助设计CAD零件模型作为待处理几何模型,并根据CAD零件模型创建半空间构造实体几何表示(Constructive Solid Geometry,简称CSG)树的根节点;Obtain the CAD part model of the product to be processed as the geometric model to be processed, and create the root node of the half-space Constructive Solid Geometry (CSG) tree according to the CAD part model;
识别待处理几何模型的目标几何体特征,并根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点;Identify the target geometry feature of the geometric model to be processed, and perform recursive decomposition according to the target geometry feature and the preset priority order of the geometry feature and the corresponding decomposition algorithm, to obtain multiple leaf nodes of the half-space CSG tree;
遍历半空间CSG树的叶子节点,判断每一叶子节点对应的转换元实体的类型;Traverse the leaf nodes of the half-space CSG tree, and determine the type of transformation meta-entity corresponding to each leaf node;
当确定当前转换元实体的类型为完全转换元实体时,生成叶子节点的蒙特卡洛粒子输运计算程序MCNP半空间表达式;当确定当前转换元实体的类型为不完全转换元实体时,对不完全转换元实体添加半空间辅助面,并生成叶子节点的MCNP半空间表达式;When it is determined that the type of the current conversion meta-entity is a fully converted meta-entity, the Monte Carlo particle transport calculation program MCNP half-space expression of the leaf node is generated; when it is determined that the type of the current conversion meta-entity is an incomplete conversion meta-entity, the Incomplete transformation of meta-entities adds half-space auxiliary surfaces, and generates MCNP half-space expressions for leaf nodes;
根据每一叶子节点的MCNP半空间表达式及半空间CSG树每个分支的正则布尔运算类型,确定CAD零件模型对应的MCNP半空间表达式。According to the MCNP half-space expression of each leaf node and the regular Boolean operation type of each branch of the half-space CSG tree, the MCNP half-space expression corresponding to the CAD part model is determined.
优选地,如上所述的数据转换方法,根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点的步骤包括:Preferably, the above-mentioned data conversion method performs recursive decomposition according to the target geometry feature, the preset geometry feature priority order and the corresponding decomposition algorithm, and the steps of obtaining multiple leaf nodes of the half-space CSG tree include:
根据几何体特征优先级顺序依次对目标几何体特征进行识别判断;Identify and judge the target geometric features in sequence according to the priority order of the geometric features;
当根据判断结果确定目标几何体特征中具有几何体特征优先级顺序中的当前几何体特征时,根据当前几何体特征的类型对待处理几何模型采用对应的分解算法进行空间分解,得到至少两个子几何体,将子几何体依次作为待处理几何模型,并在识别待处理几何模型的目标几何体特征后,再次执行根据几何体特征优先级顺序依次对目标几何体特征进行识别判断的步骤;When it is determined according to the judgment result that the target geometric feature has the current geometric feature in the priority order of the geometric feature, the geometric model to be processed is spatially decomposed using the corresponding decomposition algorithm according to the type of the current geometric feature to obtain at least two sub-geometry, and the sub-geometry Take the geometric models to be processed in sequence, and after identifying the target geometric body features of the geometric model to be processed, perform the steps of identifying and judging the target geometric body features in sequence according to the priority order of the geometric body features;
当根据判断结果确定目标几何体特征中不具有几何体特征优先级顺序中的几何体特征时,确定目标几何体特征所对应的待处理几何模型为一个叶子节点的转换元实体。When it is determined according to the judgment result that the target geometric features do not have the geometric features in the priority order of the geometric features, it is determined that the to-be-processed geometric model corresponding to the target geometric features is a conversion element entity of a leaf node.
具体地,如上所述的数据转换方法,几何体特征优先级顺序中几何体特征的优先级从高到低依次为:内壳特征、内环凸特征、内环非贯穿凹特征、内环贯穿凹特征、外环凸特征。Specifically, in the above data conversion method, the priority of geometric features in the priority order of geometric features is: inner shell feature, inner ring convex feature, inner ring non-penetrating concave feature, inner ring penetrating concave feature , the outer ring convex features.
优选地,如上所述的数据转换方法,判断每一叶子节点对应的转换元实体的类型的步骤包括:Preferably, in the above-mentioned data conversion method, the step of judging the type of the conversion meta-entity corresponding to each leaf node comprises:
获取转换元实体的表面集,表面集包括转换元实体的每一自然表面对应的曲面;Obtain the surface set of the transformed meta-entity, where the surface set includes the surface corresponding to each natural surface of the transformed meta-entity;
若转换元实体能被表面集的半空间完整描述,则确定转换元实体为完全转换元实体,否则确定转换元实体为不完全转换元实体。If the transformation meta-entity can be completely described by the half-space of the surface set, the transformation meta-entity is determined to be a complete transformation meta-entity; otherwise, the transformation meta-entity is determined to be an incomplete transformation meta-entity.
具体地,如上所述的数据转换方法,对不完全转换元实体添加半空间辅助面的步骤包括:Specifically, in the data conversion method described above, the step of adding a half-space auxiliary surface to the incompletely converted meta-entity includes:
获取不完全转换元实体的所有有界曲面,根据有界曲面间的相交类型确定半空间辅助面的添加位置。Gets all bounded surfaces of incompletely transformed meta-solids, and determines where to add half-space auxiliary surfaces according to the type of intersection between bounded surfaces.
具体地,如上所述的数据转换方法,在获取待处理产品的CAD零件模型时,若获取到CAD装配模型,则根据装配树对CAD装配模型进行处理,得到每一CAD零件模型。Specifically, in the above data conversion method, when acquiring the CAD part model of the product to be processed, if the CAD assembly model is obtained, the CAD assembly model is processed according to the assembly tree to obtain each CAD part model.
进一步的,如上所述的数据转换方法,还包括:Further, the above-mentioned data conversion method also includes:
根据每一CAD零件模型的对应的MCNP半空间表达式以及半空间CSG分解树,确定CAD装配模型对应的MCNP半空间表达式。According to the corresponding MCNP half-space expression of each CAD part model and the half-space CSG decomposition tree, the MCNP half-space expression corresponding to the CAD assembly model is determined.
本发明的另一优选实施例还提供了一种MCNP三维前处理的数据转换装置,包括:Another preferred embodiment of the present invention also provides a data conversion device for MCNP three-dimensional preprocessing, including:
第一处理模块,用于获取待处理产品的CAD零件模型作为待处理几何模型,并根据CAD零件模型创建半空间CSG树的根节点;The first processing module is used to obtain the CAD part model of the product to be processed as the geometric model to be processed, and create the root node of the half-space CSG tree according to the CAD part model;
第二处理模块,用于识别待处理几何模型的目标几何体特征,并根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点;The second processing module is used to identify the target geometry feature of the geometric model to be processed, and perform recursive decomposition according to the target geometry feature, the preset priority order of the geometry feature and the corresponding decomposition algorithm, and obtain multiple leaf nodes of the half-space CSG tree ;
第三处理模块,用于遍历半空间CSG树的叶子节点,判断每一叶子节点对应的转换元实体的类型;The third processing module is used to traverse the leaf nodes of the half-space CSG tree, and determine the type of the transformation meta-entity corresponding to each leaf node;
第四处理模块,用于当确定当前转换元实体的类型为完全转换元实体时,生成叶子节点的MCNP半空间表达式;当确定当前转换元实体的类型为不完全转换元实体时,对不完全转换元实体添加半空间辅助面,并生成叶子节点的MCNP半空间表达式;The fourth processing module is used to generate the MCNP half-space expression of the leaf node when it is determined that the type of the current conversion meta-entity is a complete conversion meta-entity; when it is determined that the type of the current conversion meta-entity is an incomplete conversion meta-entity, the Completely transform meta-entities to add half-space auxiliary surfaces and generate MCNP half-space expressions for leaf nodes;
第五处理模块,用于根据每一叶子节点的MCNP半空间表达式及半空间CSG树每个分支的正则布尔运算类型,确定CAD零件模型对应的MCNP半空间表达式。The fifth processing module is used for determining the MCNP half-space expression corresponding to the CAD part model according to the MCNP half-space expression of each leaf node and the regular Boolean operation type of each branch of the half-space CSG tree.
优选地,如上所述的数据转换装置,第二处理模块包括:Preferably, in the above-mentioned data conversion device, the second processing module includes:
第一处理单元,用于根据几何体特征优先级顺序依次对目标几何体特征进行识别判断;The first processing unit is used for identifying and judging the target geometric body features in sequence according to the priority order of the geometric body features;
第二处理单元,用于当根据判断结果确定目标几何体特征中具有几何体特征优先级顺序中的当前几何体特征时,根据当前几何体特征的类型对待处理几何模型采用对应的分解算法进行空间分解,得到至少两个子几何体,将子几何体依次作为待处理几何模型,并在识别待处理几何模型的目标几何体特征后,再次执行根据几何体特征优先级顺序依次对目标几何体特征进行识别判断的步骤;The second processing unit is configured to use a corresponding decomposition algorithm to spatially decompose the geometric model to be processed according to the type of the current geometric feature when it is determined that the target geometric feature has a current geometric feature in the priority order of the geometric feature, and obtain at least For two sub-geometry bodies, the sub-geometry bodies are sequentially regarded as the geometric model to be processed, and after identifying the target geometric body features of the geometric model to be processed, the steps of identifying and judging the target geometric body features according to the priority order of the geometric body features are performed again;
第三处理单元,用于当根据判断结果确定目标几何体特征中不具有几何体特征优先级顺序中的几何体特征时,确定目标几何体特征所对应的待处理几何模型为一个叶子节点的转换元实体。The third processing unit is configured to determine that the to-be-processed geometric model corresponding to the target geometric feature is a conversion meta-entity of a leaf node when it is determined that the target geometric feature does not have a geometric feature in the priority order of the geometric feature according to the judgment result.
具体地,如上所述的数据转换装置,几何体特征优先级顺序中几何体特征的优先级从高到低依次为:内壳特征、内环凸特征、内环非贯穿凹特征、内环贯穿凹特征、外环凸特征。Specifically, in the above-mentioned data conversion device, the priorities of geometric features in the priority order of geometric features are: inner shell feature, inner ring convex feature, inner ring non-penetrating concave feature, inner ring penetrating concave feature , the outer ring convex features.
优选地,如上所述的数据转换装置,第三处理模块包括:Preferably, in the above-mentioned data conversion device, the third processing module includes:
第四处理单元,用于获取转换元实体的表面集,表面集包括转换元实体的每一自然表面对应的曲面;a fourth processing unit, configured to obtain a surface set of the conversion meta-entity, where the surface set includes a curved surface corresponding to each natural surface of the conversion meta-entity;
第五处理单元,用于若转换元实体能被表面集的半空间完整描述,则确定转换元实体为完全转换元实体,否则确定转换元实体为不完全转换元实体。The fifth processing unit is configured to determine that the transformation meta-entity is a complete transformation meta-entity if the transformation meta-entity can be completely described by the half-space of the surface set; otherwise, determine that the transformation meta-entity is an incomplete transformation meta-entity.
具体地,如上所述的数据转换装置,第四处理模块包括:Specifically, in the above-mentioned data conversion device, the fourth processing module includes:
第六处理单元获取不完全转换元实体的所有有界曲面,根据有界曲面间的相交类型确定半空间辅助面的添加位置。The sixth processing unit acquires all the bounded surfaces of the incompletely transformed meta-entity, and determines the adding positions of the half-space auxiliary surfaces according to the type of intersection between the bounded surfaces.
具体地,如上所述的数据转换装置,第一处理模块,还用于若获取到CAD装配模型,则根据装配树对CAD装配模型进行处理,得到每一CAD零件模型。Specifically, the above data conversion device, the first processing module, is further configured to process the CAD assembly model according to the assembly tree to obtain each CAD part model if the CAD assembly model is obtained.
进一步的,如上所述的数据转换装置,还包括:Further, the above-mentioned data conversion device also includes:
第六处理模块,用于根据每一CAD零件模型的对应的MCNP半空间表达式以及装配树,确定CAD装配模型对应的MCNP半空间表达式。The sixth processing module is used for determining the MCNP half-space expression corresponding to the CAD assembly model according to the corresponding MCNP half-space expression and the assembly tree of each CAD part model.
本发明的又一优选实施例还提供了一种上位机,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如上的MCNP三维前处理的转换方法的步骤。Another preferred embodiment of the present invention also provides a host computer, which includes a processor, a memory, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, the above MCNP three-dimensional Process the steps of the transform method.
本发明的再一优选实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现如上的MCNP三维前处理的转换方法的步骤。Yet another preferred embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the above conversion method for MCNP three-dimensional preprocessing.
与现有技术相比,本发明实施例提供的一种MCNP三维前处理的转换方法及装置,至少具有以下有益效果:Compared with the prior art, a conversion method and device for MCNP three-dimensional pre-processing provided by the embodiment of the present invention have at least the following beneficial effects:
本发明在对一物体进行MCNP建模时,首先根据物体的实际结构建立CAD模型,再根据该CAD模型转换为MCNP半空间CSG模型,避免了MCNP直接进行三维建模时的高难度和低效率。在本发明的一具体实施例中,数据转化装置会获取待处理产品的CAD零件模型作为待处理几何模型,并将其作为半空间CSG树的根节点开始创建半空间CSG树,进而获取该待处理几何模型的目标几何体特征。根据待处理几何模型的目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法对待处理几何模型进行递归分解,将待处理几何模型分解为多个简单几何体,并将其作为半空间CSG树的叶子节点,便于由CAD模型向MCNP半空间模型转换,减少计算量,提高MCNP半空间模型建立的效率。为保证简单几何体能被MCNP半空间模型正确表述,因此还会判断每一叶子节点对应的转换元实体的类型,其中只有当转换元实体为能被其表面集的半空间完整描述的完全转换元实体时才直接生成MCNP半空间表达式,若转换元实体为不能被其表面集的半空间完整描述的不完全转换元实体时,需要添加半空间辅助面使转换元实体在其表面集和半空间辅助边的基础上等同于一完全转换元实体,进而生成对应的MCNP半空间表达式,有利于保证最终根据每一叶子节点的MCNP半空间表达式,确定的CAD零件模型对应的MCNP半空间表达式为CAD零件模型的充分曲面集,保证得到的CAD零件模型对应的MCNP半空间表达式的准确性。When MCNP modeling is performed on an object, the invention first establishes a CAD model according to the actual structure of the object, and then converts the CAD model into an MCNP half-space CSG model according to the CAD model, thereby avoiding the high difficulty and low efficiency when MCNP directly performs three-dimensional modeling. . In a specific embodiment of the present invention, the data conversion device will obtain the CAD part model of the product to be processed as the geometric model to be processed, and use it as the root node of the half-space CSG tree to start creating a half-space CSG tree, and then obtain the to-be-processed CSG tree. Processes the target geometry feature of the geometry model. The geometric model to be processed is recursively decomposed according to the target geometric features of the geometric model to be processed, the preset priority order of geometric features and the corresponding decomposition algorithm, and the geometric model to be processed is decomposed into multiple simple geometric bodies, which are used as half-space CSG The leaf nodes of the tree are easy to convert from CAD model to MCNP half-space model, reduce the amount of calculation, and improve the efficiency of MCNP half-space model establishment. In order to ensure that simple geometry can be correctly represented by the MCNP half-space model, the type of transformation meta-entity corresponding to each leaf node is also judged. Only when the transformation meta-entity is a complete transformation element that can be completely described by the half-space of its surface set The MCNP half-space expression is directly generated when the entity is a solid. If the conversion meta-entity is an incomplete conversion meta-entity that cannot be fully described by the half-space of its surface set, it is necessary to add a half-space auxiliary surface to make the conversion meta-entity in its surface set and half-space. On the basis of the auxiliary edge of space, it is equivalent to a complete transformation of the meta-entity, and then the corresponding MCNP half-space expression is generated, which is beneficial to ensure that the MCNP half-space corresponding to the CAD part model is finally determined according to the MCNP half-space expression of each leaf node. The expression is a sufficient surface set of the CAD part model, which ensures the accuracy of the MCNP half-space expression corresponding to the obtained CAD part model.
附图说明Description of drawings
图1为本发明的MCNP三维前处理的数据转换方法的流程示意图之一;Fig. 1 is one of the schematic flow charts of the data conversion method of MCNP three-dimensional preprocessing of the present invention;
图2为本发明的MCNP三维前处理的数据转换方法的流程示意图之二;Fig. 2 is the second schematic flow chart of the data conversion method of MCNP three-dimensional preprocessing of the present invention;
图3为本发明的MCNP三维前处理的数据转换方法的流程示意图之三;Fig. 3 is the third schematic flow chart of the data conversion method of MCNP three-dimensional preprocessing of the present invention;
图4为本发明的MCNP三维前处理的数据转换装置的结构示意图。FIG. 4 is a schematic structural diagram of a data conversion device for MCNP three-dimensional preprocessing according to the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配置和组件的特定细节仅仅是为了帮助全面理解本发明的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本发明的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided merely to assist in a comprehensive understanding of embodiments of the present invention. Accordingly, it should be apparent to those skilled in the art that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the following processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the implementation of the present invention The implementation of the examples constitutes no limitation.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" in this document is only an association relationship to describe associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, and A and B exist at the same time , there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。In the embodiments provided in this application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
参见图1,本发明的一优选实施例提供了一种MCNP三维前处理的数据转换方法,包括:Referring to Fig. 1, a preferred embodiment of the present invention provides a data conversion method for MCNP three-dimensional pre-processing, including:
步骤S101,获取待处理产品的CAD零件模型作为待处理几何模型,并根据CAD零件模型创建半空间CSG树的根节点;Step S101, obtaining the CAD part model of the product to be processed as the geometric model to be processed, and creating the root node of the half-space CSG tree according to the CAD part model;
步骤S102,识别待处理几何模型的目标几何体特征,并根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点;Step S102, identifying the target geometric body feature of the geometric model to be processed, and performing recursive decomposition according to the target geometric body feature and the preset priority order of the geometric body feature and the corresponding decomposition algorithm, to obtain a plurality of leaf nodes of the half-space CSG tree;
步骤S103,遍历半空间CSG树的叶子节点,判断每一叶子节点对应的转换元实体的类型;Step S103, traverse the leaf nodes of the half-space CSG tree, and judge the type of the conversion meta-entity corresponding to each leaf node;
步骤S104,当确定当前转换元实体的类型为完全转换元实体时,生成叶子节点的MCNP半空间表达式;当确定当前转换元实体的类型为不完全转换元实体时,对不完全转换元实体添加半空间辅助面,并生成叶子节点的MCNP半空间表达式;Step S104, when it is determined that the type of the current conversion meta-entity is the complete conversion meta-entity, the MCNP half-space expression of the leaf node is generated; when it is determined that the type of the current conversion meta-entity is the incomplete conversion meta-entity, the incomplete conversion meta-entity is not completely converted. Add half-space auxiliary surfaces, and generate MCNP half-space expressions for leaf nodes;
步骤S105,根据每一叶子节点的MCNP半空间表达式和半空间CSG树每个分支的正则布尔运算类型,确定CAD零件模型对应的MCNP半空间表达式。Step S105: Determine the MCNP half-space expression corresponding to the CAD part model according to the MCNP half-space expression of each leaf node and the regular Boolean operation type of each branch of the half-space CSG tree.
在本发明的实施例中,在对一物体进行MCNP建模时,首先根据物体的实际结构建立CAD模型,再根据该CAD模型转换为MCNP半空间模型,避免了MCNP直接进行三维建模时的高难度和低效率。在本发明的一具体实施例中,数据转化装置会获取待处理产品的CAD零件模型作为待处理几何模型,并将其作为半空间CSG树的根节点开始创建半空间CSG树,进而获取该待处理几何模型的目标几何体特征,所述目标几何体特征为根据几何体(待处理几何模型)边界表示中的体、壳、面、环和边的拓扑关系进行分类。进而根据待处理几何模型的目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法对待处理几何模型进行递归分解,将待处理几何模型分解为多个简单几何体,将其作为半空间CSG树的叶子节点,便于由CAD模型向MCNP半空间模型转换,减少计算量,提高MCNP半空间模型建立的效率。为保证简单几何体能被MCNP半空间模型正确描述,因此还会判断每一叶子节点对应的转换元实体的类型,其中只有当转换元实体为能被其表面集的半空间完整描述的完全转换元实体时才直接生成MCNP半空间表达式,若转换元实体为不能被其表面集的半空间完整描述的不完全转换元实体时,需要添加半空间辅助面使转换元实体在其表面集和半空间辅助边的基础上等同于一完全转换元实体,进而生成对应的MCNP半空间表达式,有利于保证最终根据每一叶子节点的MCNP半空间表达式,确定的CAD零件模型对应的MCNP半空间表达式为CAD零件模型的充分曲面集,保证得到的CAD零件模型对应的MCNP半空间表达式的准确性。In the embodiment of the present invention, when MCNP modeling is performed on an object, a CAD model is first established according to the actual structure of the object, and then converted into a MCNP half-space model according to the CAD model, which avoids the need for MCNP to directly perform three-dimensional modeling. High difficulty and low efficiency. In a specific embodiment of the present invention, the data conversion device will obtain the CAD part model of the product to be processed as the geometric model to be processed, and use it as the root node of the half-space CSG tree to start creating a half-space CSG tree, and then obtain the to-be-processed CSG tree. The target geometry feature of the geometric model is processed, and the target geometry feature is classified according to the topological relationship of the body, shell, face, ring and edge in the boundary representation of the geometry (geometric model to be processed). Then, recursively decompose the geometric model to be processed according to the target geometric features of the geometric model to be processed, the preset priority order of geometric features and the corresponding decomposition algorithm, and decompose the geometric model to be processed into a plurality of simple geometric bodies, which are used as half-space CSG. The leaf nodes of the tree are easy to convert from CAD model to MCNP half-space model, reduce the amount of calculation, and improve the efficiency of MCNP half-space model establishment. In order to ensure that simple geometry can be correctly described by the MCNP half-space model, the type of transformation meta-entity corresponding to each leaf node is also determined. The MCNP half-space expression is directly generated when the entity is a solid. If the conversion meta-entity is an incomplete conversion meta-entity that cannot be fully described by the half-space of its surface set, it is necessary to add a half-space auxiliary surface to make the conversion meta-entity in its surface set and half-space. On the basis of the auxiliary edge of space, it is equivalent to a complete transformation of the meta-entity, and then the corresponding MCNP half-space expression is generated, which is beneficial to ensure that the MCNP half-space corresponding to the CAD part model is finally determined according to the MCNP half-space expression of each leaf node. The expression is a sufficient surface set of the CAD part model, which ensures the accuracy of the MCNP half-space expression corresponding to the obtained CAD part model.
其中,一个CAD几何实体的表面集为该CAD几何实体的所有自然表面对应的曲面的集合;自然表面为CAD几何实体的一个边界面,其范围是几何实体边界表示中的外环和内环之间的区域,每一自然表面唯一对应一张曲面,且自然表面包含于曲面;当CAD几何实体中的每一点均在其表面集中每张曲面的正半空间或负半空间时,该CAD几何实体即为转换元实体;如果通过一个或多个曲面的半空间切分,使得不完全转换元实体可以被其表面集的半空间完整描述,则该曲面为半空间辅助面;当CAD几何实体为完全转换元实体时,充分曲面集为其表面集,当CAD几何实体为不完全转换元实体时,充分曲面集为其表面集和半空间辅助面。Among them, the surface set of a CAD geometric entity is the set of surfaces corresponding to all the natural surfaces of the CAD geometric entity; the natural surface is a boundary surface of the CAD geometric entity, and its range is between the outer ring and the inner ring in the boundary representation of the geometric entity Each natural surface uniquely corresponds to a surface, and the natural surface is included in the surface; when each point in the CAD geometric entity is in the positive half space or negative half space of each surface set on its surface, the CAD geometry The entity is the transformation element entity; if the incomplete transformation element entity can be completely described by the half space of its surface set by dividing the half space of one or more surfaces, the surface is a half space auxiliary surface; when the CAD geometric entity When the meta-entity is fully converted, the sufficient surface set is its surface set, and when the CAD geometric entity is an incompletely converted meta-entity, the sufficient surface set is its surface set and half-space auxiliary surface.
参见图2,优选地,如上所述的数据转换方法,根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点的步骤S102包括:Referring to Fig. 2, preferably, the above-mentioned data conversion method performs recursive decomposition according to the target geometry feature, the preset geometry feature priority order and the corresponding decomposition algorithm, and obtains the step S102 of multiple leaf nodes of the half-space CSG tree include:
步骤S201,根据几何体特征优先级顺序依次对目标几何体特征进行识别判断;Step S201, identifying and judging the target geometric body features in sequence according to the priority order of the geometric body features;
步骤S202,当根据判断结果确定目标几何体特征中具有几何体特征优先级顺序中的当前几何体特征时,根据当前几何体特征的类型对待处理几何模型采用对应的分解算法进行空间分解,得到至少两个子几何体,将子几何体依次作为待处理几何模型,并在识别待处理几何模型的目标几何体特征后,再次执行根据几何体特征优先级顺序依次对目标几何体特征进行识别判断的步骤;Step S202, when it is determined according to the judgment result that the target geometry feature has the current geometry feature in the geometry feature priority order, the geometry model to be processed is spatially decomposed using a corresponding decomposition algorithm according to the type of the current geometry feature, and at least two sub-geometry are obtained, The sub-geometry is taken as the geometric model to be processed in turn, and after identifying the target geometric feature of the geometric model to be processed, the steps of identifying and judging the target geometric feature according to the priority order of the geometric feature are performed again;
步骤S203,当根据判断结果确定目标几何体特征中不具有几何体特征优先级顺序中的几何体特征时,确定目标几何体特征所对应的待处理几何模型为一个叶子节点的转换元实体。Step S203 , when it is determined according to the judgment result that the target geometric body features do not have the geometric body features in the priority order of the geometric body features, determine that the to-be-processed geometric model corresponding to the target geometric body features is a conversion element entity of a leaf node.
在本发明的实施例中,在对待处理几何模型进行递归分解时,首先根据几何体特征优先级顺序依次对目标几何体特征进行识别判断,当当前几何体特征存在于目标几何体特征中时,确定当前的待处理几何模型需要进行分解,此时根据当前几何体特征的类型采用对应的分解算法对待处理几何模型进行空间分解,得到至少两个子模块,并将子模块依次作为待处理几何模型,获取子几何体的目标几何体特征,在获取到目标几何特征后,再次执行上述根据几何体特征优先级顺序依次对目标几何体特征进行识别判断的步骤;当确定目标几何体特征中不具有几何体特征优先级顺序中的任一几何体特征时,确定当前的待处理几何模型不需要再进行分解,此时可确定该目标几何体特征所对应的模型为一个叶子节点的转换元实体。In the embodiment of the present invention, when the geometric model to be processed is recursively decomposed, firstly, the target geometric body features are identified and judged according to the priority order of the geometric body features. The processing of the geometric model needs to be decomposed. At this time, according to the type of the current geometry feature, the corresponding decomposition algorithm is used to decompose the geometric model to be processed spatially to obtain at least two sub-modules. Geometric features, after obtaining the target geometric features, perform the above steps of identifying and judging the target geometric features in sequence according to the priority order of the geometric features again; when it is determined that the target geometric features do not have any geometric features in the priority order of the geometric features When it is determined that the current geometric model to be processed does not need to be decomposed, it can be determined that the model corresponding to the target geometric feature is a conversion meta-entity of a leaf node.
具体地,如上所述的数据转换方法,几何体特征优先级顺序中几何体特征的优先级从高到低依次为:内壳特征、内环凸特征、内环非贯穿凹特征、内环贯穿凹特征、外环凸特征。Specifically, in the above data conversion method, the priority of geometric features in the priority order of geometric features is: inner shell feature, inner ring convex feature, inner ring non-penetrating concave feature, inner ring penetrating concave feature , the outer ring convex features.
在本发明的实施例中,给出了一种几何体特征优先级顺序,其中按优先级从高到低的顺序依次为内壳特征、内环凸特征、内环非贯穿凹特征、内环贯穿凹特征、外环凸特征,需要说明的是,上述几何体特征优先级顺序仅为本发明的一种优选地优先级顺序,本领域的技术人员在此基础上采用其他名称进行特征定义和/或变更顺序均属于本发明的保护范围。在根据该几何体特征优先级顺序进行目标几何体特征进行识别判断时,具体可以为,首先将内壳特征作为当前几何体特征,若目标几何体特征中包括内壳特征时,则执行步骤S202,若目标几何体特征中不包括内壳特征时,则将下一顺位的内环凸特征作为当前几何体特征,若目标几何体特征中包括内环凸特征时,则执行步骤S202,若目标几何体特征中不包括内环凸特征时,则再次将下一顺位的内环非贯穿凹特征作为当前几何体特征,直至整个几何体特征优先级顺序中所有的几何体特征均识别完毕。In the embodiment of the present invention, a priority order of geometric body features is given, wherein the order of priority from high to low is the inner shell feature, the inner ring convex feature, the inner ring non-penetrating concave feature, and the inner ring penetrating feature. Concave feature, outer ring convex feature, it should be noted that the above-mentioned geometric feature priority order is only a preferred priority order of the present invention, and those skilled in the art can use other names to define features and/or The modification order all belong to the protection scope of the present invention. When identifying and judging the target geometric body feature according to the priority order of the geometric body feature, specifically, the inner shell feature is firstly used as the current geometric body feature, and if the target geometric body feature includes the inner shell feature, step S202 is executed, When the inner shell feature is not included in the feature, the inner ring convex feature in the next order is used as the current geometric body feature. If the target geometric body feature includes the inner ring convex feature, step S202 is executed. If the inner ring convex feature is not included in the target geometry feature When a ring convex feature is used, the inner ring non-penetrating concave feature in the next order is used as the current geometric feature again, until all geometric features in the entire geometric feature priority order are recognized.
具体地,在执行根据当前几何体特征的类型及对应的分解算法对待处理几何模型进行空间分解的步骤时,若当前几何体特征为内壳特征,以待处理几何模型为一个正方体内设置有一个长方体内壳为例,此时根据内壳曲面构成的封闭区间并填充生成的一个长方体,与填充后的正方体相减进行分解,得到一个正方体和一个长方体;若当前几何体特征为内环凸特征,以待处理几何模型为一个正方体内上设置有一个长方体为例,此时根据曲面的内环边界构件曲面卡片,通过该曲面卡片将其分解为一个正方体和一个长方体;若当前几何体特征为内环非贯穿凹特征时,以待处理几何模型为一个正方体内设置有一个梯形孔为例,此时根据内环边界曲线连接的曲面连通图构件封闭区域并填充生成一个阶梯轴,与填充后的正方体相减进行分解,得到一个正方体和一个阶梯轴。由于内环贯穿凹特征与内环非贯穿凹特征的方法类似,外环凸特征与内环凸特征的分解算法类似,在此不再赘述。Specifically, when performing the step of spatially decomposing the geometrical model to be processed according to the type of the current geometrical feature and the corresponding decomposition algorithm, if the current geometrical feature is an inner shell feature, the geometrical model to be processed is a cube and a cuboid is set inside it. Take the shell as an example. At this time, a cuboid is filled according to the closed interval formed by the inner shell surface, and decomposed by subtracting the filled cube to obtain a cube and a cuboid; if the current geometry feature is an inner ring convex feature, wait for the The processing geometric model is a cube with a cuboid set on it as an example. At this time, according to the inner ring boundary component of the surface, the surface card is decomposed into a cube and a cuboid through the surface card; if the current geometry feature is the inner ring non-penetrating For concave features, take the geometric model to be processed as an example with a trapezoidal hole in a cube. At this time, according to the surface connectivity graph connected by the inner ring boundary curve, the closed area is formed and filled to generate a stepped axis, which is subtracted from the filled cube. Decompose to get a cube and a stepped axis. Since the methods of the inner ring penetrating concave feature and the inner ring non-penetrating concave feature are similar, and the decomposition algorithms of the outer ring convex feature and the inner ring convex feature are similar, they will not be repeated here.
参见图3,优选地,如上所述的数据转换方法,判断每一叶子节点对应的转换元实体的类型的步骤S103包括:Referring to Fig. 3, preferably, in the above-mentioned data conversion method, the step S103 of judging the type of the conversion meta-entity corresponding to each leaf node includes:
步骤S301,获取转换元实体的表面集,表面集包括转换元实体的每一自然表面对应的曲面;Step S301, acquiring a surface set of the conversion meta-entity, the surface set including a curved surface corresponding to each natural surface of the conversion meta-entity;
步骤S302,若转换元实体能被表面集的半空间完整描述,则确定转换元实体为完全转换元实体,否则确定转换元实体为不完全转换元实体。Step S302, if the transformation meta-entity can be completely described by the half-space of the surface set, the transformation meta-entity is determined to be a complete transformation meta-entity; otherwise, the transformation meta-entity is determined to be an incomplete transformation meta-entity.
在本发明的实施例中,在判断叶子节点对应的转换元实体的类型时,会获取转换元实体的表面集,进而根据转换元实体能否被表面集的半空间完整描述确定转换元实体为是否为完全转换元实体,便于后续确定是否需要添加半空间辅助面,保证最终得到的MCNP半空间表达式的准确性。具体地,如上所述的数据转换方法,对不完全转换元实体添加半空间辅助面的步骤包括:In the embodiment of the present invention, when judging the type of the conversion meta-entity corresponding to the leaf node, the surface set of the conversion meta-entity will be obtained, and then according to whether the conversion meta-entity can be completely described by the half-space of the surface set, it is determined that the conversion meta-entity is Whether it is a fully converted meta-entity, it is convenient for subsequent determination of whether to add a half-space auxiliary surface to ensure the accuracy of the final MCNP half-space expression. Specifically, in the data conversion method described above, the step of adding a half-space auxiliary surface to the incompletely converted meta-entity includes:
获取不完全转换元实体的所有有界曲面,根据有界曲面间的相交类型确定半空间辅助面的添加位置。Gets all bounded surfaces of incompletely transformed meta-solids, and determines where to add half-space auxiliary surfaces according to the type of intersection between bounded surfaces.
在本发明的实施例中在对不完全转换元实体添加半空间辅助面时,首先会获取不完全转换元实体的所有有界曲面,并根据两个有界曲面的位置关系判断两者是否相交,并根据相交的有界曲面间的相交类型确定是否在此处添加半空间辅助面,具体地,本发明的一具体实施例给出了曲面相交类型与半空间辅助面的添加关系,其中包括:当平面与圆柱面、圆锥面或圆环面相切时,确定需要添加半空间辅助面;当球面与圆柱面、圆锥面或椭圆环面相交时,确定需要添加半空间辅助面;当圆柱面与圆锥面、椭圆环面或圆环面相交时,确定需要添加半空间辅助面;当椭圆环面与椭圆环或圆环面相交时,确定需要添加半空间辅助面;当圆环面与圆环面相交时,确定需要添加半空间辅助面。In the embodiment of the present invention, when adding a half-space auxiliary surface to an incompletely transformed meta-entity, firstly, all bounded surfaces of the incompletely transformed meta-entity are acquired, and it is judged whether the two bounded surfaces intersect according to the positional relationship between the two bounded surfaces. , and determine whether to add a half-space auxiliary surface here according to the intersection type between the intersecting bounded surfaces. Specifically, a specific embodiment of the present invention provides the addition relationship between the surface intersection type and the half-space auxiliary surface, which includes : When the plane is tangent to a cylindrical surface, a conical surface or a torus, it is determined that a half-space auxiliary surface needs to be added; when a spherical surface intersects with a cylindrical surface, a conical surface or an elliptical torus, it is determined that a half-space auxiliary surface needs to be added; when the cylindrical surface When intersecting with a conical surface, an elliptical torus or a torus, it is determined that a half-space auxiliary surface needs to be added; when an elliptical torus intersects with an elliptical torus or a torus, it is determined that a half-space auxiliary surface needs to be added; When the torus intersects, it is determined that a half-space helper surface needs to be added.
可选地,在有些几何特征下,半空间辅助面可以是分解面,以一个圆柱上设置有一个半球的几何体为例,该几何体具有外环凸特征,且圆环面分别与平面和圆柱面相切,由于圆环面与圆柱面相切,因此在将该几何体分解为圆柱和半球,为避免圆柱无限延伸,因此需要添加半空间辅助面,且此时半空间辅助面与该几何体的分解面重合。Optionally, under some geometric features, the half-space auxiliary surface may be a decomposed surface. Take a geometric body with a hemisphere set on a cylinder as an example. Tangent, since the torus is tangent to the cylindrical surface, the geometry is decomposed into cylinders and hemispheres. In order to avoid the infinite extension of the cylinder, it is necessary to add a half-space auxiliary surface, and at this time, the half-space auxiliary surface coincides with the decomposition surface of the geometry. .
具体地,如上所述的数据转换方法,在获取待处理产品的CAD零件模型时,若获取到CAD装配模型,则根据装配树对CAD装配模型进行处理,得到每一CAD零件模型。Specifically, in the above data conversion method, when acquiring the CAD part model of the product to be processed, if the CAD assembly model is obtained, the CAD assembly model is processed according to the assembly tree to obtain each CAD part model.
进一步的,如上所述的数据转换方法,还包括:Further, the above-mentioned data conversion method also includes:
根据每一CAD零件模型的对应的MCNP半空间表达式以及装配树,确定CAD装配模型对应的MCNP半空间表达式。According to the corresponding MCNP half-space expression of each CAD part model and the assembly tree, the MCNP half-space expression corresponding to the CAD assembly model is determined.
在本发明的实施例中,当待处理品为装配件时,此时先获取待处理产品的CAD装配模型,进而根据装配树对CAD装配模型进行处理,得到每一零件对应的CAD零件模型,分别将每一CAD零件模型作为待处理几何模型并执行上述方法的步骤,在得到每一CAD零件模型的对应的MCNP半空间表达式后,再结合装配树得到CAD装配模型对应的MCNP半空间表达式。In the embodiment of the present invention, when the product to be processed is an assembly part, the CAD assembly model of the product to be processed is obtained first, and then the CAD assembly model is processed according to the assembly tree to obtain the CAD part model corresponding to each part , respectively take each CAD part model as the geometric model to be processed and perform the steps of the above method, after obtaining the corresponding MCNP half-space expression of each CAD part model, then combine the assembly tree to obtain the MCNP half-space corresponding to the CAD assembly model expression.
参见图4,本发明的另一优选实施例还提供了一种MCNP三维前处理的数据转换装置,包括:Referring to Figure 4, another preferred embodiment of the present invention also provides a data conversion device for MCNP three-dimensional preprocessing, including:
第一处理模块401,用于获取待处理产品的CAD零件模型作为待处理几何模型,并根据CAD零件模型创建半空间CSG树的根节点;The
第二处理模块402,用于识别待处理几何模型的目标几何体特征,并根据目标几何体特征以及预设的几何体特征优先级顺序和对应的分解算法进行递归分解,得到半空间CSG树的多个叶子节点;The
第三处理模块403,用于遍历半空间CSG树的叶子节点,判断每一叶子节点对应的转换元实体的类型;The
第四处理模块404,用于当确定当前转换元实体的类型为完全转换元实体时,生成叶子节点的MCNP半空间表达式;当确定当前转换元实体的类型为不完全转换元实体时,对不完全转换元实体添加半空间辅助面,并生成叶子节点的MCNP半空间表达式;The
第五处理模块405,用于根据每一叶子节点的MCNP半空间表达式及半空间CSG树每个分支的正则布尔运算类型,确定CAD零件模型对应的MCNP半空间表达式。The
优选地,如上所述的数据转换装置,第二处理模块包括:Preferably, in the above-mentioned data conversion device, the second processing module includes:
第一处理单元,用于根据几何体特征优先级顺序依次对目标几何体特征进行识别判断;The first processing unit is used for identifying and judging the target geometric body features in sequence according to the priority order of the geometric body features;
第二处理单元,用于当根据判断结果确定目标几何体特征中具有几何体特征优先级顺序中的当前几何体特征时,根据当前几何体特征的类型对待处理几何模型采用对应的分解算法进行空间分解,得到至少两个子几何体,将子几何体依次作为待处理几何模型,并在识别子几何体的目标几何体特征后,再次执行根据几何体特征优先级顺序依次对目标几何体特征进行识别判断的步骤;The second processing unit is configured to use a corresponding decomposition algorithm to spatially decompose the geometric model to be processed according to the type of the current geometric feature when it is determined that the target geometric feature has a current geometric feature in the priority order of the geometric feature, and obtain at least For two sub-geometry bodies, the sub-geometry bodies are sequentially regarded as the geometric model to be processed, and after identifying the target geometric body features of the sub-geometry bodies, the steps of identifying and judging the target geometric body features according to the priority order of the geometric body features are performed again;
第三处理单元,用于当根据判断结果确定目标几何体特征中不具有几何体特征优先级顺序中的几何体特征时,确定目标几何体特征所对应的待处理几何模型为一个叶子节点的转换元实体。The third processing unit is configured to determine that the to-be-processed geometric model corresponding to the target geometric feature is a conversion meta-entity of a leaf node when it is determined that the target geometric feature does not have a geometric feature in the priority order of the geometric feature according to the judgment result.
具体地,如上所述的数据转换装置,几何体特征优先级顺序中几何体特征的优先级从高到低依次为:内壳特征、内环凸特征、内环非贯穿凹特征、内环贯穿凹特征、外环凸特征。Specifically, in the above-mentioned data conversion device, the priorities of geometric features in the priority order of geometric features are: inner shell feature, inner ring convex feature, inner ring non-penetrating concave feature, inner ring penetrating concave feature , the outer ring convex features.
优选地,如上所述的数据转换装置,第三处理模块包括:Preferably, in the above-mentioned data conversion device, the third processing module includes:
第四处理单元,用于获取转换元实体的表面集,表面集包括转换元实体的每一自然表面对应的曲面;a fourth processing unit, configured to obtain a surface set of the conversion meta-entity, where the surface set includes a curved surface corresponding to each natural surface of the conversion meta-entity;
第五处理单元,用于若转换元实体能被表面集的半空间完整描述,则确定转换元实体为完全转换元实体,否则确定转换元实体为不完全转换元实体。The fifth processing unit is configured to determine that the transformation meta-entity is a complete transformation meta-entity if the transformation meta-entity can be completely described by the half-space of the surface set; otherwise, determine that the transformation meta-entity is an incomplete transformation meta-entity.
具体地,如上所述的数据转换装置,第四处理模块包括:Specifically, in the above-mentioned data conversion device, the fourth processing module includes:
第六处理单元获取不完全转换元实体的所有有界曲面,根据有界曲面间的相交类型确定半空间辅助面的添加位置。The sixth processing unit acquires all the bounded surfaces of the incompletely transformed meta-entity, and determines the adding positions of the half-space auxiliary surfaces according to the type of intersection between the bounded surfaces.
具体地,如上所述的数据转换装置,第一处理模块,还用于若获取到CAD装配模型,则根据装配树对CAD装配模型进行处理,得到每一CAD零件模型。Specifically, the above data conversion device, the first processing module, is further configured to process the CAD assembly model according to the assembly tree to obtain each CAD part model if the CAD assembly model is obtained.
进一步的,如上所述的数据转换装置,还包括:Further, the above-mentioned data conversion device also includes:
第六处理模块,用于根据每一CAD零件模型的对应的MCNP半空间表达式以及装配树,确定CAD装配模型对应的MCNP半空间表达式。The sixth processing module is used for determining the MCNP half-space expression corresponding to the CAD assembly model according to the corresponding MCNP half-space expression and the assembly tree of each CAD part model.
本发明的数据转换装置的实施例是与上述数据转换方法的实施例对应的装置,上述数据转换方法实施例中的所有实现手段均适用于该数据转换装置的实施例中,也能达到相同的技术效果。The embodiments of the data conversion apparatus of the present invention are apparatuses corresponding to the above-mentioned embodiments of the data conversion method. All implementation means in the above-mentioned data conversion method embodiments are applicable to the data conversion apparatus embodiments, and the same can also be achieved. technical effect.
本发明的又一优选实施例还提供了一种上位机,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如上的MCNP三维前处理的转换方法的步骤。Another preferred embodiment of the present invention also provides a host computer, which includes a processor, a memory, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, the above MCNP three-dimensional Process the steps of the transform method.
本发明的再一优选实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现如上的MCNP三维前处理的转换方法的步骤。Yet another preferred embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the above conversion method for MCNP three-dimensional preprocessing.
此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。Furthermore, the present invention may repeat reference numerals and/or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含。It should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply those entities or operations There is no such actual relationship or order between them. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. These improvements and modifications It should also be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010052213.4A CN111291433B (en) | 2020-01-17 | 2020-01-17 | A data conversion method and device for MCNP three-dimensional preprocessing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010052213.4A CN111291433B (en) | 2020-01-17 | 2020-01-17 | A data conversion method and device for MCNP three-dimensional preprocessing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111291433A true CN111291433A (en) | 2020-06-16 |
CN111291433B CN111291433B (en) | 2021-10-29 |
Family
ID=71024224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010052213.4A Active CN111291433B (en) | 2020-01-17 | 2020-01-17 | A data conversion method and device for MCNP three-dimensional preprocessing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111291433B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115100357A (en) * | 2022-07-08 | 2022-09-23 | 中国航空发动机研究院 | Geometric feature description data file generation method and geometric feature format conversion method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040233194A1 (en) * | 2003-05-19 | 2004-11-25 | Raytheon Company | Automated translation of high order complex geometry from a CAD model into a surface based combinatorial geometry format |
CN102053981A (en) * | 2009-10-30 | 2011-05-11 | 吴立新 | Multi-scale expression method for semantic-considered overground-underground integrated model |
CN104794133A (en) * | 2014-01-21 | 2015-07-22 | 兰州大学 | Conversion algorithm from CAD model to MCNP geometric model based on STEP text |
CN106709163A (en) * | 2016-12-06 | 2017-05-24 | 清华大学 | Method for automatically converting complicated CAD three-dimensional model to monka geometry |
CN109636790A (en) * | 2018-12-13 | 2019-04-16 | 北京理工大学 | A kind of recognition methods of pipeline structure and device |
CN110363294A (en) * | 2018-03-26 | 2019-10-22 | 辉达公司 | Neural network is indicated using the path in network to improve the performance of neural network |
CN110517350A (en) * | 2019-08-15 | 2019-11-29 | 北京理工大学 | Preprocessing method and processor of a Monte Carlo particle transport calculation program |
-
2020
- 2020-01-17 CN CN202010052213.4A patent/CN111291433B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040233194A1 (en) * | 2003-05-19 | 2004-11-25 | Raytheon Company | Automated translation of high order complex geometry from a CAD model into a surface based combinatorial geometry format |
CN102053981A (en) * | 2009-10-30 | 2011-05-11 | 吴立新 | Multi-scale expression method for semantic-considered overground-underground integrated model |
CN104794133A (en) * | 2014-01-21 | 2015-07-22 | 兰州大学 | Conversion algorithm from CAD model to MCNP geometric model based on STEP text |
CN106709163A (en) * | 2016-12-06 | 2017-05-24 | 清华大学 | Method for automatically converting complicated CAD three-dimensional model to monka geometry |
CN110363294A (en) * | 2018-03-26 | 2019-10-22 | 辉达公司 | Neural network is indicated using the path in network to improve the performance of neural network |
CN109636790A (en) * | 2018-12-13 | 2019-04-16 | 北京理工大学 | A kind of recognition methods of pipeline structure and device |
CN110517350A (en) * | 2019-08-15 | 2019-11-29 | 北京理工大学 | Preprocessing method and processor of a Monte Carlo particle transport calculation program |
Non-Patent Citations (4)
Title |
---|
HAO GONG等: "Study on the mechanism of preload decrease of bolted joints subjected to transversal vibration loading", 《ORIGINAL ARTICLE》 * |
俞盛朋等: "SuperMC在ITER中子学建模中的应用", 《核科学与工程》 * |
吴宜灿等: "蒙特卡罗粒子输运计算自动建模程序系统的研究与发展", 《核科学与工程》 * |
熊珍琦等: "产品装配精度优化模型研究", 《系统仿真学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115100357A (en) * | 2022-07-08 | 2022-09-23 | 中国航空发动机研究院 | Geometric feature description data file generation method and geometric feature format conversion method |
CN115100357B (en) * | 2022-07-08 | 2024-03-12 | 中国航空发动机研究院 | Data file generation method and format conversion method for geometric feature description |
Also Published As
Publication number | Publication date |
---|---|
CN111291433B (en) | 2021-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Willis et al. | Engineering sketch generation for computer-aided design | |
Jayaraman et al. | Solidgen: An autoregressive model for direct b-rep synthesis | |
CN111709092B (en) | Radial tire tread pattern finite element automatic modeling method based on finite element unit nodes | |
CN108763827B (en) | Transmission tower finite element model establishing method and device | |
CN114491824B (en) | Method, device and storage medium for automatic division of finite element mesh | |
CN106447777A (en) | Three-dimensional topological relation expressing and mapping achieved under support of Boolean operation | |
Owen et al. | Parallel hex meshing from volume fractions | |
CN114417951A (en) | Unsupervised machine learning-based automatic subdivision optimization method for ocean unstructured grid | |
CN107301678A (en) | A kind of three-dimensional modeling method of geological mass | |
CN106846457B (en) | Octree parallel construction method for CT slice data visual reconstruction | |
CN117669046A (en) | A data integration method and system for intelligent decision-making in automobile assembly processes | |
CN113963118A (en) | Three-dimensional model identification method based on feature simplification and neural network | |
CN104809760A (en) | Depth-first strategy based method for automatically constructing geo-spatial three-dimensional outline | |
US10943037B2 (en) | Generating a CAD model from a finite element mesh | |
CN106777065A (en) | The method and system that a kind of Frequent tree mining is excavated | |
CN111291433A (en) | Data conversion method and device for MCNP three-dimensional pretreatment | |
CN116756851A (en) | Parameterized grid deformation method and system based on NFFD background grid | |
CN102722653B (en) | Ray tracking and accelerating algorithm based on MapReduce | |
CN107885797A (en) | A kind of multi-mode figure matching process based on structural dependence | |
Xian et al. | Efficient and effective cage generation by region decomposition | |
CN110517350B (en) | A kind of preprocessing method and processor of Monte Carlo particle transport calculation program | |
CN117556485B (en) | A method and system for modeling and expressing 2D CAD geometric constraint system | |
CN111832144B (en) | Full-amplitude quantum computing simulation method | |
Quadros et al. | Defeaturing CAD models using a geometry-based size field and facet-based reduction operators | |
CN114170388B (en) | Octree-based dynamic modeling method for searching ellipsoid through local anisotropy |
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 |