Optical instrument internal flow channel design method, device, medium
By constructing an initial flow channel model and using a genetic algorithm to optimize the flow channel structure, the problem of difficulty in optimizing turbulent excitation due to reliance on experience in existing technologies is solved, resulting in more efficient optical instrument design and reduced costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHANGCHUN NAT EXTREME PRECISION OPTICS CO LTD
- Filing Date
- 2023-11-03
- Publication Date
- 2026-07-07
AI Technical Summary
The design of internal flow channels in existing optical instruments relies too heavily on experience, making it difficult to optimize turbulence excitation, which affects instrument performance and increases design costs.
By constructing an initial flow channel model and solving the model using a genetic algorithm, and combining turbulent excitation and flow channel model complexity as objective functions, the flow channel structure is optimized to reduce turbulent excitation and lower design costs.
It enables more accurate and rapid determination of flow channel models with small turbulent excitation, improves the performance of optical instruments, and reduces design costs.
Smart Images

Figure CN117473671B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical equipment, and in particular to a method, apparatus, and medium for designing internal flow channels in optical instruments. Background Technology
[0002] During the ventilation process, the internal flow channels of optical instruments generate turbulence, which causes the instrument itself to vibrate, and in turn causes the other structures that fix the instrument to vibrate. In addition, turbulent excitation may also interfere with the surface shape of the lens. All these factors will affect the performance of precision optical equipment.
[0003] Turbulent excitation is a significant source of low-frequency excitation. When gas velocities are high, turbulence forms, generating pressure pulsations at the inner walls. Turbulent pulsations occur at any location within the flow channel, and their intensity is related to flow velocity, vorticity, and other factors. Due to the numerous factors involved in turbulent excitation and its complex actual behavior, it is difficult to describe explicitly, making it challenging to apply traditional gradient-based optimization methods. Currently, qualitative analysis is commonly used in flow channel optimization design. In areas prone to turbulence, structures such as perforated plates are selected based on experience to hinder vortex diffusion. However, this approach relies too heavily on existing experience and can only determine whether turbulent excitation has been reduced through finite element analysis after the structure is given, resulting in low design efficiency.
[0004] Therefore, it is evident that providing a new design method for the internal flow channels of optical instruments to reduce turbulent excitation and improve the performance of optical instruments is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to address the problem that existing optical instrument internal flow channel design relies too heavily on existing experience, resulting in the inability to obtain optical instruments with less internal turbulence and better performance. To solve this technical problem, this application provides a method, apparatus, and medium for designing internal flow channels of optical instruments, so as to more accurately and quickly determine the flow channel model with less turbulence excitation, improve the performance of optical instruments, and reduce design costs.
[0006] To address the aforementioned technical problems, this application provides a method for designing internal flow channels in optical instruments, comprising: acquiring internal flow channel information of a target optical instrument, and creating an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model;
[0007] The individuals in the genetic algorithm and the objective function of the initial flow channel model are determined, and the target individuals are determined based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population represent the distribution of each flow channel subspace domain in the flow channel model.
[0008] Determine whether the target individual meets the preset conditions;
[0009] If the preset conditions are met, the flow channel structure information is determined based on the target individual;
[0010] If the preset conditions are not met, the offspring population of the target individual is obtained, and the process proceeds to the step of determining the individual for the genetic algorithm and the objective function of the initial flow channel model.
[0011] The flow channel optimization model is determined based on the flow channel structure information.
[0012] Preferably, acquiring the internal flow channel information of the target optical instrument and creating an initial flow channel model based on the internal flow channel information includes:
[0013] Obtain the internal flow channel size information of the target optical instrument, and determine the flow channel space domain based on the internal flow channel size information;
[0014] The flow channel spatial domain is divided into multiple flow channel sub-space domains to obtain the initial flow channel model.
[0015] Preferably, the objective function for determining the initial model of the flow channel includes:
[0016] Determine the complexity of the flow channel model for the internal flow channels of an optical instrument;
[0017] The turbulent excitation at the detection point is determined by using finite element analysis to determine the flow channel gas reaches the preset flow velocity. The turbulent excitation and the flow channel model complexity are weighted and calculated to determine the objective function. The weight values of the turbulent excitation and the flow channel model complexity are determined according to the flow channel requirements.
[0018] Preferably, the flow channel subspace domain includes a solid subspace domain and a fluid subspace domain for characterizing the flow channel structure diagram;
[0019] The complexity of the flow channel model used to determine the internal flow channels of an optical instrument includes:
[0020] The number of exposed surfaces in each solid subspace domain of the flow channel model is determined to determine the complexity of the flow channel model.
[0021] Preferably, after the step of solving the objective function of the initial flow channel model using a genetic algorithm, the method further includes:
[0022] Determine whether the obtained flow channel model contains a solid subspace domain that is not connected to any of the other solid subspace domains;
[0023] If it exists, then the flow channel model is determined to be invalid.
[0024] Preferably, before the step of determining the individuals of the genetic algorithm and the objective function of the initial flow channel model, the method further includes:
[0025] Initialize the genetic algorithm parameters and the genetic algorithm population; wherein, the genetic algorithm parameters include population size, crossover factor, and mutation factor;
[0026] Accordingly, the preset conditions are:
[0027] The genetic generation of the target individual is a preset genetic generation, or the fitness value of the target individual is greater than the fitness threshold.
[0028] Preferably, after the step of obtaining the offspring population of the target individual, the method further includes:
[0029] The distribution of the solid subspace domain and the fluid subspace domain in each of the offspring populations is adjusted to achieve data augmentation.
[0030] To address the aforementioned technical problems, this application also provides an internal flow channel design device for optical instruments, comprising:
[0031] The acquisition module is used to acquire the internal flow channel information of the target optical instrument and create an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model;
[0032] The first determining module is used to determine the individuals of the genetic algorithm and the objective function of the initial flow channel model, and to determine the target individuals based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population are the distribution of each flow channel subspace domain in the flow channel model;
[0033] The judgment module is used to determine whether the target individual meets the preset conditions;
[0034] If the preset conditions are met, the flow channel structure information is determined based on the target individual;
[0035] If the preset conditions are not met, the offspring population of the target individual is obtained, and the process proceeds to the step of determining the individual for the genetic algorithm and the objective function of the initial flow channel model.
[0036] The second determination model is used to determine the flow channel optimization model based on the flow channel structure information.
[0037] To address the aforementioned technical problems, this application also provides an internal flow channel design device for optical instruments, including a memory for storing computer programs;
[0038] A processor is used to execute the computer program to implement the steps of the internal flow channel design of the optical instrument.
[0039] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the optical instrument internal flow channel design method.
[0040] This application provides a method for designing internal flow channels in optical instruments, including: acquiring internal flow channel information of the target optical instrument, and creating an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model; determining the individuals of the genetic algorithm and the objective function of the initial flow channel model, and determining the target individuals based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population represent the distribution of each flow channel subspace domain in the flow channel model; determining whether the target individuals meet preset conditions; if the preset conditions are met, determining the flow channel structure information based on the target individuals; if the preset conditions are not met, acquiring the offspring population of the target individuals, and performing the steps of determining the individuals of the genetic algorithm and the objective function of the initial flow channel model on the offspring population; and determining the flow channel optimization model based on the flow channel structure information. Therefore, the technical solution provided in this application, by constructing an initial flow channel model and using a genetic algorithm to solve the model, can more accurately and quickly determine the flow channel model with small turbulent excitation, thereby improving the performance of optical instruments and reducing design costs. At the same time, the complexity of the flow channel model is added to the objective function to prevent the final optimized flow channel model from being too complex and causing excessive processing difficulty.
[0041] In addition, this application also provides an internal flow channel design device and medium for optical instruments, which correspond to the above method and have the same effect. Attached Figure Description
[0042] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating an internal flow channel design method for an optical instrument provided in this application embodiment;
[0044] Figure 2 A schematic diagram of an initial flow channel model provided in an embodiment of this application;
[0045] Figure 3 This is a schematic diagram of a data augmentation method provided in this application;
[0046] Figure 4 A structural diagram of an internal flow channel design device for an optical instrument provided in an embodiment of this application;
[0047] Figure 5 This is a structural diagram of another optical instrument internal flow channel design device provided in an embodiment of this application. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0049] The core of this application is to provide a method, device, and medium for designing internal flow channels in optical instruments, so as to more accurately and quickly determine the flow channel model with small turbulent excitation, improve the performance of optical instruments, and reduce design costs.
[0050] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] Turbulence is generated in the internal flow channels of optical instruments during ventilation, causing vibrations within the instrument itself and subsequently influencing other structures that hold it in place. Furthermore, turbulent excitation can interfere with the surface shape of lenses. All these factors affect the performance of precision optical equipment, making the suppression of low-frequency vibrations an important research direction. Turbulent excitation is a significant source of low-frequency excitation. When gas velocity is high, turbulence is formed, generating pressure pulsations at the inner walls. Turbulent pulsations occur at any location within the flow channel, and their intensity is related to flow velocity, vorticity, and other factors. Due to the numerous factors involved in turbulent excitation and its complex actual behavior, it is difficult to describe explicitly, making it challenging to apply traditional gradient-based optimization methods. Currently, qualitative analysis is commonly used in flow channel optimization design. In areas prone to turbulence, structures such as perforated plates are selected based on experience to hinder vortex diffusion. However, this approach relies too heavily on empirical judgments, resulting in low design efficiency and limiting the scope of optimization design. Furthermore, finite element analysis can only determine whether turbulent excitation has been reduced after the structure is given, but it cannot determine whether there is further optimization space for the structure. Also, experience-based optimization methods can only use existing structures. Therefore, this application provides a method for designing internal flow channels in optical instruments. By constructing an initial flow channel model and solving the model using a genetic algorithm, a flow channel model with minimal turbulent excitation can be determined more accurately and quickly, improving the performance of optical instruments and reducing design costs. Simultaneously, the complexity of the flow channel model is incorporated into the objective function to prevent the final optimized flow channel model from becoming too complex, leading to excessive manufacturing difficulties.
[0052] Figure 1 A flowchart illustrating an internal flow channel design method for an optical instrument provided in this application embodiment is shown below. Figure 1 As shown, the method includes:
[0053] S10: Obtain the internal flow channel information of the target optical instrument and create an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model.
[0054] First, the spatial domain of the flow channel is divided into several blocks. When the shape of the flow channel region is irregular, the shape of the outer block can also be irregular. The spatial domain blocks obtained by cutting are numbered to create the initial model of the flow channel.
[0055] Figure 2 A schematic diagram of an initial flow channel model provided in an embodiment of this application is shown below. Figure 2As shown, each flow channel spatial domain may exist in two states: a solid domain state, where the space is filled with solid material and air cannot propagate within this area; and a fluid domain state, where the space is not filled with solid material and gas can flow within this area when aeration occurs. Thus, by modifying the state of the numbered spatial domains, a new flow channel model can be obtained. This process mimics the process in Darwin's theory of evolution where the genetic information carried by organisms determines the expression of traits.
[0056] In specific implementation, obtaining the internal flow channel information of the target optical instrument and creating an initial flow channel model based on the internal flow channel information includes: obtaining the internal flow channel size information of the target optical instrument to determine the flow channel spatial domain based on the internal flow channel size information; dividing the flow channel spatial domain into several flow channel sub-space domains to obtain the initial flow channel model.
[0057] In this embodiment, both the turbulent excitation at the detection point and the complexity of the flow channel model are used as objective functions. This aims to reduce the complexity of the flow channel model while minimizing turbulence, thus preventing excessive complexity that could lead to high manufacturing costs for the optical instrument. Specifically, the turbulent excitation at the detection point is the turbulent excitation that occurs when the fluid flow rate in the internal flow channel of the optical instrument meets preset conditions. The detection point is a pre-determined point within the internal flow channel, and the intensity of the turbulent excitation at the detection point has a decisive influence on the low-frequency vibration of the optical instrument. The complexity of the flow channel model can be described by statistically analyzing the number of surfaces. Whenever a solid domain is added or removed from the existing flow channel model, this change is statistically analyzed to obtain the change in surface complexity relative to the original model.
[0058] S11: Determine the individual and objective function of the initial flow channel model for the genetic algorithm, and determine the target individual based on the objective function value of each individual; the chromosomes of each individual in the genetic algorithm population represent the distribution of each flow channel subspace domain in the flow channel model;
[0059] S12: Determine whether the target individual meets the preset conditions;
[0060] S121: If the preset conditions are met, the flow channel structure information is determined based on the target individual;
[0061] S122: If the preset conditions are not met, obtain the offspring population of the target individual and proceed to the step of determining the target function of the individual and the initial flow channel model of the genetic algorithm.
[0062] S13: Determine the flow channel optimization model based on the flow channel structure information.
[0063] In practical implementation, a genetic algorithm is used to solve the objective function of the initial flow channel model to obtain flow channel structure information that satisfies preset conditions for the internal flow channel of the optical instrument. This flow channel structure information can include the internal shape and dimensions of the flow channel; in this embodiment, it refers to the distribution of the solid subspace domain and the fluid subspace domain within the model.
[0064] This embodiment provides a method for designing internal flow channels in optical instruments, including: acquiring internal flow channel information of the target optical instrument and creating an initial flow channel model based on the internal flow channel information; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model; solving the objective function of the initial flow channel model using a genetic algorithm to obtain flow channel structure information; and determining an optimized flow channel model based on the flow channel structure information. Therefore, the technical solution provided in this application, by constructing an initial flow channel model and using a genetic algorithm to solve the model, more accurately and quickly determines a flow channel model with less turbulent excitation, improving the performance of the optical instrument and reducing design costs. Simultaneously, incorporating the flow channel model complexity into the objective function prevents the final optimized flow channel model from becoming too complex, leading to excessive manufacturing difficulty.
[0065] Understandably, since the internal flow channel shape of each model is randomly generated during the model generation process using this method, although the problem of generating isolated spatial domains is avoided through a specific generation method, excessively complex internal structures will bring additional processing and assembly costs. The solution adopted in this invention is to quantify the complexity of the model and use it together with turbulent excitation as the objective function for optimization. Based on the above embodiments, the objective function for determining the initial flow channel model includes: determining the flow channel model complexity of the internal flow channel of the optical instrument; determining the turbulent excitation at the detection point when the flow channel gas reaches the preset flow velocity using finite element analysis, and weighting the turbulent excitation with the flow channel model complexity to determine the objective function; wherein, the weight values of the turbulent excitation and the flow channel model complexity are determined according to the flow channel requirements.
[0066] Furthermore, turbulent excitation vibrations at the target point when the set volumetric velocity is reached are obtained using finite element analysis techniques such as large eddy simulation. The calculated results of turbulent excitation and complexity are weighted and superimposed as the objective function. The choice of weight function depends on the actual needs; when processing difficulty is a concern, the weight of the complexity calculation result is increased, otherwise the weight is decreased. Models with large objective functions are deleted according to probability, retaining a small number of models. The main purpose of not deleting all models with large excitations is to avoid getting trapped in local optima, so that the optimization method can obtain a global optimum with poor results at surrounding sampling points.
[0067] The complexity of the flow channel model is described by statistically analyzing the number of surfaces. Whenever a solid domain is added or removed from the existing flow channel model, this change is statistically analyzed to obtain the change in surface complexity relative to the original model. In specific implementations, the flow channel subspace domain includes a solid subspace domain and a fluid subspace domain used to characterize the flow channel structure diagram. Correspondingly, determining the flow channel model complexity of the internal flow channels of an optical instrument involves determining the sum of the number of exposed surfaces in each solid subspace domain of the flow channel model to determine the flow channel model complexity.
[0068] Taking the addition of solid domains as an example, a solid domain block contains six surfaces. However, the surfaces that are in contact with other solid domains are not exposed and are therefore not included in the statistics. If the remaining surfaces are parallel to the surfaces of adjacent solid domains, they are considered as a plane and are not included in the complexity. When a surface is parallel to multiple solid domain surfaces at the same time, the complexity is reduced by n-1, where n is the number of solid domain surfaces that are in contact with and parallel to the solid domain surface. For surfaces that are not parallel to other solid domain surfaces, the complexity is increased by 1. The six surfaces are counted sequentially, and the sum is the change in complexity. The complexity change relative to the original surface is obtained by gradually accumulating the sum during the iteration process. When a solid domain becomes a fluid domain, the change in surface complexity is the opposite of the change in surface complexity when the fluid domain becomes a solid domain.
[0069] Generating a new model from an initial model differs from typical genetic algorithm optimization processes. In a natural state, any point in the genetic information can change. However, specific constraints exist for the flow channel region; solid domains cannot be generated in isolation within the fluid domain, otherwise, the region would not remain stable in the real physical world. To prevent the emergence of free solid subspace domains, after solving the objective function of the initial flow channel model using a genetic algorithm, the process further includes: determining whether the obtained flow channel model contains solid subspace domains that are not connected to any other solid subspace domains; if so, the flow channel model is deemed invalid.
[0070] Specifically, the process of determining whether there is a free solid domain is actually the process of determining whether there is a reachable path from a certain solid domain to the boundary. Whenever a random solid domain is changed to a fluid domain, a depth-first search method is used to traverse and calculate whether there is a path connecting the solid domains connected to the fluid domain and the solid domains at any boundary through the solid domain. If a solid domain cannot be connected to any solid domain located at the boundary after a certain change, then a free solid domain has appeared, and the model generated this time is invalid.
[0071] Based on the above embodiments, solving the objective function of the initial flow channel model using a genetic algorithm includes: initializing the genetic algorithm parameters and the genetic algorithm population; wherein, the chromosomes of each individual in the genetic algorithm population represent the distribution of the solid subspace domain and the fluid subspace domain in the flow channel model; calculating the objective function of the initial flow channel model; determining the target individual based on the objective function value of each individual, and determining whether the genetic generation of the target individual is a preset genetic generation; if the preset conditions are met, determining the flow channel structure information based on the target individual; if the preset conditions are not met, obtaining the offspring population of the target individual, and performing the step of calculating the objective function of the initial flow channel model on the offspring population. The preset conditions can be that the fitness value of the target individual is greater than the fitness threshold, the number of iterations is greater than a preset number of iterations, etc., and are not limited here.
[0072] In practice, the process of screening, model replication, and mutation is repeated until the range of variation of the minimum objective function value in each generation is less than the set value, the fitness value of the target individual is greater than the fitness threshold, or the number of iterations reaches the maximum value. The individual with the smallest objective function value is selected, and the internal flow channel boundary of the optical instrument is smoothed to further reduce the influence of turbulence, thus becoming the final flow channel model.
[0073] Understandably, in order to prevent insufficient data from reducing the reliability of the final results, after obtaining the offspring population of the target individual, the process also includes: adjusting the distribution of the solid subspace domain and the fluid subspace domain in each offspring population to achieve data augmentation. Figure 3 A data augmentation diagram provided for this application, such as Figure 3 As shown, the black part is the solid subspace domain and the white part is the fluid subspace domain. In the specific implementation, the model obtained by screening is copied to obtain a series of models again. During the copying process, the solid domain that meets the conditions is randomly changed to the fluid domain or the fluid domain is changed to the solid domain according to the method in the second step. This process imitates the mutation process in evolutionary theory. Through mutation, models with different parameters are provided, thus providing materials for optimization.
[0074] In the above embodiments, the method for designing internal flow channels of optical instruments has been described in detail. This application also provides embodiments corresponding to the device for designing internal flow channels of optical instruments. It should be noted that this application describes the embodiments of the device from two perspectives: one based on functional modules and the other based on hardware.
[0075] Figure 4 A structural diagram of an internal flow channel design device for an optical instrument provided in this application embodiment is shown below. Figure 4 As shown, the optical instrument internal flow channel design device provided in this application includes:
[0076] The acquisition module 10 is used to acquire the internal flow channel information of the target optical instrument and create an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model;
[0077] The first determining module 11 is used to determine the individuals of the genetic algorithm and the objective function of the initial flow channel model, and to determine the target individuals based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population are the distribution of each flow channel subspace domain in the flow channel model;
[0078] Judgment module 12 is used to determine whether the target individual meets the preset conditions;
[0079] If the preset conditions are met, the flow channel structure information is determined based on the target individual;
[0080] If the preset conditions are not met, the offspring population of the target individual is obtained, and the process proceeds to the step of determining the individual and the objective function of the initial flow channel model in the genetic algorithm.
[0081] The second determination model 13 is used to determine the flow channel optimization model based on the flow channel structure information.
[0082] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0083] This embodiment provides a device for designing internal flow channels in optical instruments, including: acquiring internal flow channel information of a target optical instrument and creating an initial flow channel model based on the internal flow channel information; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model; solving the objective function of the initial flow channel model using a genetic algorithm to obtain flow channel structure information; and determining an optimized flow channel model based on the flow channel structure information. Therefore, the technical solution provided in this application, by constructing an initial flow channel model and using a genetic algorithm to solve the model, more accurately and quickly determines a flow channel model with less turbulent excitation, improving the performance of the optical instrument and reducing design costs. Simultaneously, incorporating the complexity of the flow channel model into the objective function prevents the final optimized flow channel model from becoming too complex, leading to excessive manufacturing difficulty.
[0084] Figure 5 A structural diagram of another optical instrument internal flow channel design device provided in the embodiments of this application is shown below. Figure 5 As shown, the internal flow channel design device of the optical instrument includes: a memory 20 for storing computer programs;
[0085] The processor 21 is used to execute computer programs to implement the steps of the optical instrument internal flow channel design method as described in the above embodiments.
[0086] The internal flow channel design device for optical instruments provided in this embodiment can include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0087] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0088] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the optical instrument internal flow channel design method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, initial flow channel models, flow channel structure information, and flow channel optimization models.
[0089] In some embodiments, the internal flow channel design device for optical instruments may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0090] Those skilled in the art will understand that Figure 5The structures shown do not constitute a limitation on the design of internal flow channels in optical instruments and may include more or fewer components than those shown.
[0091] The optical instrument internal flow channel design device provided in this application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: acquiring the internal flow channel information of the target optical instrument and creating an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation of the detection point and the complexity of the flow channel model; determining the individuals of the genetic algorithm and the objective function of the initial flow channel model, and determining the target individuals based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population represent the distribution of each flow channel subspace domain in the flow channel model; determining whether the target individuals meet preset conditions; if the preset conditions are met, determining the flow channel structure information based on the target individuals; if the preset conditions are not met, acquiring the offspring population of the target individuals and proceeding to the step of determining the individuals of the genetic algorithm and the objective function of the initial flow channel model; and determining the flow channel optimization model based on the flow channel structure information.
[0092] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.
[0093] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0094] The foregoing has provided a detailed description of the internal flow channel design method, apparatus, and medium for optical instruments provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0095] It should also be noted that, in this specification, 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 any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for designing internal flow channels in an optical instrument, characterized in that, include: The internal flow channel information of the target optical instrument is acquired, and an initial flow channel model is created based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model; The individuals in the genetic algorithm and the objective function of the initial flow channel model are determined, and the target individuals are determined based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population represent the distribution of each flow channel subspace domain in the flow channel model. Determine whether the target individual meets the preset conditions; If the preset conditions are met, the flow channel structure information is determined based on the target individual; If the preset conditions are not met, the offspring population of the target individual is obtained, and the process proceeds to the step of determining the individual for the genetic algorithm and the objective function of the initial flow channel model. The flow channel optimization model is determined based on the flow channel structure information.
2. The optical instrument internal flow channel design method according to claim 1, characterized in that, Acquiring the internal flow channel information of the target optical instrument and creating an initial flow channel model based on the internal flow channel information includes: Obtain the internal flow channel size information of the target optical instrument, and determine the flow channel spatial domain based on the internal flow channel size information; The flow channel spatial domain is divided into multiple flow channel sub-space domains to obtain the initial flow channel model.
3. The optical instrument internal flow channel design method according to claim 1, characterized in that, The objective function for determining the initial model of the flow channel includes: Determine the complexity of the flow channel model for the internal flow channels of an optical instrument; The turbulent excitation at the detection point is determined by using finite element analysis to determine the flow channel gas reaches the preset flow velocity. The turbulent excitation and the flow channel model complexity are weighted and calculated to determine the objective function. The weight values of the turbulent excitation and the flow channel model complexity are determined according to the flow channel requirements.
4. The optical instrument internal flow channel design method according to claim 3, characterized in that, The flow channel subspace domain includes a solid subspace domain and a fluid subspace domain for characterizing the flow channel structure diagram; The complexity of the flow channel model used to determine the internal flow channels of an optical instrument includes: The number of exposed surfaces in each solid subspace domain of the flow channel model is determined to determine the complexity of the flow channel model.
5. The optical instrument internal flow channel design method according to claim 4, characterized in that, After the step of solving the objective function of the initial flow channel model using a genetic algorithm, the method further includes: Determine whether the obtained flow channel model contains a solid subspace domain that is not connected to any of the other solid subspace domains; If it exists, then the flow channel model is determined to be invalid.
6. The optical instrument internal flow channel design method according to claim 5, characterized in that, Before the step of determining the individuals in the genetic algorithm and the objective function of the initial flow channel model, the method further includes: Initialize the genetic algorithm parameters and the genetic algorithm population; wherein, the genetic algorithm parameters include population size, crossover factor, and mutation factor; Accordingly, the preset conditions are: The genetic generation of the target individual is a preset genetic generation, or the fitness value of the target individual is greater than the fitness threshold.
7. The optical instrument internal flow channel design method according to claim 4, characterized in that, After the step of obtaining the offspring population of the target individual, the method further includes: The distribution of the solid subspace domain and the fluid subspace domain in each of the offspring populations is adjusted to achieve data augmentation.
8. A flow channel design device for an optical instrument, characterized in that, include: The acquisition module is used to acquire the internal flow channel information of the target optical instrument and create an initial flow channel model based on the internal flow channel information to determine the flow channel subspace domain; wherein, the objective function of the initial flow channel model is determined based on the turbulent excitation at the detection point and the complexity of the flow channel model; The first determining module is used to determine the individuals of the genetic algorithm and the objective function of the initial flow channel model, and to determine the target individuals based on the objective function values of each individual; the chromosomes of each individual in the genetic algorithm population are the distribution of each flow channel subspace domain in the flow channel model; The judgment module is used to determine whether the target individual meets the preset conditions; If the preset conditions are met, the flow channel structure information is determined based on the target individual; If the preset conditions are not met, the offspring population of the target individual is obtained, and the process proceeds to the step of determining the individual for the genetic algorithm and the objective function of the initial flow channel model. The second determination model is used to determine the flow channel optimization model based on the flow channel structure information.
9. A flow channel design device for an optical instrument, characterized in that, Includes memory used to store computer programs; A processor, configured to execute the computer program to implement the steps of the optical instrument internal flow channel design method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the optical instrument internal flow channel design method as described in any one of claims 1 to 7.