A valve cavitation flow field off-line modeling method and on-line prediction method
By constructing a global initial flow field and a local residual model, and combining cavitation sensitive area identification and soft masking technology, the problem of insufficient efficiency and accuracy in valve cavitation flow field prediction in existing technologies is solved, and efficient and accurate prediction under multiple operating conditions is achieved.
Patent Information
- Application Number
- CN202611380688.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to achieve accurate prediction of critical valve cavitation areas while maintaining rapid prediction efficiency across multiple operating conditions. They also lack methods for automatically identifying and adaptively correcting weak areas in the global model, resulting in insufficient prediction accuracy for cavitation location, range, and intensity.
An offline modeling method for valve cavitation flow field is adopted. By constructing a global initial flow field, a cavitation sensitive area identification model, and a local residual sub-model, and combining Gaussian process regression and clustering methods, the mapping relationship between inlet velocity and outlet pressure and modal coefficients is established. Local correction is performed using the cavitation sensitive area discriminant function and soft mask, so as to achieve accurate prediction of cavitation flow field.
It significantly improves the prediction efficiency and local accuracy of cavitation flow field under multiple operating conditions, and reduces prediction error, especially the prediction accuracy of about 70% in the valve throttling part, cavitation main region and vapor phase boundary.
Smart Images

Figure CN123159189A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of valve cavitation flow field prediction technology, and in particular to an offline modeling method and an online prediction method for valve cavitation flow field. Background Technology
[0002] Valves are crucial regulating components in fluid transport and process control, widely used in critical fields such as petrochemicals, nuclear power, aerospace, and deep-sea engineering. For valves with localized throttling characteristics, such as control valves, gate valves, throttle valves, and pressure reducing valves, under conditions of small opening and large pressure differential, the fluid velocity increases after passing through the throttling section, and the local pressure decreases significantly. If the local pressure is lower than the liquid's saturated vapor pressure, the liquid will vaporize and form cavitation. This can easily lead to vibration, noise, and cavitation damage to internal valve components. Therefore, in valve design, performance evaluation, and operational status analysis, it is necessary to obtain the cavitation flow field distribution under different valve openings and operating parameters.
[0003] Currently, cavitation research primarily employs two methods: numerical simulation and experimental studies. Numerical simulation, due to its advantages such as low cost, short cycle time, and the ability to obtain complete flow field information, has become an important tool for cavitation research. The numerical simulation method first establishes a three-dimensional geometric model of the valve, then sets fluid properties, inlet velocity, outlet pressure, turbulence model, and cavitation model, and obtains the flow field distribution under the corresponding operating conditions through numerical iteration. Based on the calculation results, high-speed jets and local low-pressure regions near the throttling points within the valve can be identified, thereby determining the location, range, and intensity of cavitation.
[0004] To mitigate the computational burden and long solution cycles associated with performing CFD numerical solutions for multiple operating conditions, existing technologies employ order reduction methods such as intrinsic orthogonal decomposition (IOD) to achieve rapid flow field prediction. These methods first select several representative combinations of inlet velocity and outlet pressure, obtaining corresponding high-fidelity flow field data through CFD. Then, using IOD and other order reduction methods, the main spatial modes are extracted from the pressure field, velocity field, and vapor volume fraction field. Next, interpolation, regression models, or machine learning models are used to establish the mapping relationship between operating parameters such as inlet velocity and outlet pressure and the modal coefficients. When new operating parameters are input, the model can predict the corresponding modal coefficients and combine them with the spatial modes to rapidly reconstruct the valve cavitation flow field under the target operating condition.
[0005] While existing computational fluid dynamics methods can obtain relatively complete cavitation flow fields inside valves, they require establishing separate calculation cases for different valve opening degrees, inlet velocities, and outlet pressure combinations, and then re-meshing and performing numerical iterations. Valve cavitation flow involves complex processes such as high-speed jets, local low-pressure vaporization, and gas-liquid two-phase mass transfer, resulting in complex and time-consuming calculations. When analyzing multiple valve opening degrees and numerous operating conditions, the overall computational load increases significantly, making it difficult to meet the engineering requirements for rapid prediction and analysis of multiple operating conditions.
[0006] Existing reduction-order prediction methods based on intrinsic orthogonal decomposition typically treat the entire valve flow field as a unified object for mode extraction and reconstruction. The retained main modes tend to characterize flow structures with a large overall field proportion or a high energy contribution. However, the strong nonlinear characteristics of the valve cavitation flow field are mainly concentrated in local throttling components within the valve, the cavitation main region, the vapor phase boundary, and the downstream cavitation migration region. These regions have small spatial extents and large flow field gradients, making them prone to inaccurate identification during global reduction-order reconstruction, resulting in insufficient prediction accuracy for cavitation location, cavitation range, peak vapor phase volume fraction, and vapor phase boundary.
[0007] Furthermore, under different inlet velocities and outlet pressures, the cavitation intensity, range, and morphology inside the valve change significantly. Under different cavitation states (weak, moderate, and strong), the prediction errors of the global reduced-order model show significant differences in amplitude, distribution location, and spatial structure. Existing methods generally use a single global model to uniformly handle various operating conditions, making it difficult to achieve adaptive and targeted predictions based on the local error characteristics corresponding to different cavitation states.
[0008] Existing reduction-order prediction methods mainly rely on increasing the number of modes or improving the prediction accuracy of mode coefficients to improve the overall flow field results. However, they lack an effective mechanism for identifying weak regions in the global model prediction and do not focus on correcting the local residuals between the high-fidelity flow field and the globally predicted flow field. Simply increasing the number of global modes will increase the model size and computational cost, and still cannot guarantee the prediction accuracy of key local cavitation regions.
[0009] Therefore, existing technologies still struggle to achieve accurate prediction of key cavitation regions while maintaining rapid prediction efficiency across multiple operating conditions. There is a lack of a method that can automatically identify weak areas in the global model and adaptively correct local residuals based on different cavitation states, making it impossible to balance prediction efficiency with cavitation region prediction accuracy. Summary of the Invention
[0010] To address the technical problem that existing technologies still struggle to achieve accurate prediction of key cavitation regions while maintaining rapid prediction efficiency under multiple operating conditions, and lack a method that can automatically identify weak areas in the global model and adaptively correct local residuals according to different cavitation states, thus failing to balance prediction efficiency and cavitation zone prediction accuracy, this invention provides an offline modeling method and an online prediction method for valve cavitation flow field.
[0011] Therefore, such as Figure 1 As shown, the present invention provides the following technical solution: An offline modeling method for valve cavitation flow field includes the following steps: S1. For each preset valve opening, set multiple sets of combined operating conditions including inlet velocity and outlet pressure; S2. Divide multiple sets of combined working conditions into training samples and independent test samples according to a preset ratio; among them, the training samples are divided into an internal training set and an internal validation set according to a preset ratio; S3. Solve each combined working condition using fluid dynamics methods to obtain the high-vacuum flow field corresponding to each combined working condition; S4. The high-vacuum flow fields under the same valve preset opening are formed into a snapshot matrix. The spatial modes in the snapshot matrix are extracted by intrinsic orthogonal decomposition. The number of spatial modes to be retained is determined according to the proportion of cumulative energy of flow field pulsation characterized by the eigenvalues of the spatial modes. Using inlet velocity and outlet pressure as inputs and spatial modal coefficients of each order as outputs, a Gaussian process regression model is established. The Gaussian process regression model is used to predict the spatial modal coefficients of the target combined working condition. The global initial flow field is then constructed by combining the mean flow field and the retained spatial modes. S5. Based on the statistical analysis of the internal training set, the spatial distribution of the prediction error of the global initial flow field is obtained as the error prior. The predicted vapor volume fraction and vapor volume gradient are extracted from the global initial flow field as cavitation physical features. The error prior and cavitation physical features are coupled to construct the cavitation sensitive area discrimination function, and the weight parameters of the discrimination function are determined to complete the construction of the cavitation sensitive area identification model. S6 calculates the prediction residual between the high-preservation vacuum flow field and the global initial flow field; extracts the maximum vapor volume fraction and the cavitation region ratio from the global predicted vapor volume fraction field to form a cavitation state feature vector. The cavitation state feature vector is normalized, and based on the normalized cavitation state feature vector, a clustering method is used to divide the training conditions of the internal training set into cavitation states. For each cavitation state, an intrinsic orthogonal decomposition is performed on the predicted residual sample set. The residual modes of the residual field under each cavitation state are extracted, and the number of residual modes to be retained is determined according to the preset cumulative energy ratio. Regression models between inlet velocity, outlet pressure and residual mode coefficients are established respectively, and local residual sub-models corresponding to each cavitation state are constructed.
[0012] Furthermore, step S1 includes a combination of inlet velocity and outlet pressure generated using the Latin hypercube sampling method. i The output parameters for each combined operating condition are expressed as follows:
[0013] In the formula: For the inlet speed, This is due to export pressure.
[0014] Furthermore, the calculation formula for the reconstructed global initial flow field in step S4 is as follows:
[0015] In the formula: The average flow field is obtained by averaging the flow fields of various high-vacuum systems under the same valve preset opening. To preserve spatial modes, These are the predicted spatial modal coefficients; The formula for calculating the high-vacuum flow field is as follows:
[0016] In the formula: For pressure field, , and The velocity fields are in three directions. This represents the vapor phase volume fraction field.
[0017] Furthermore, the calculation formula for the prior error in step S5 is as follows:
[0018] In the formula: Spatial location The error distribution pattern obtained statistically from the global training samples at that location. This represents the number of internal training samples. To ensure the high-fidelity vacuum flow field calculation results, This represents the global initial flow field prediction results; The calculation formula for the cavitation sensitive area identification model is as follows:
[0019] In the formula: To normalize the prior global prediction error, To normalize the predicted vapor phase volume fraction, For the normalized vapor phase volume fraction gradient, , and These are the weights of the prior error, the vapor volume fraction, and the vapor gradient, respectively. .
[0020] Furthermore, the output of the cavitation-sensitive region identification model is input into the Sigmoid function to form a soft mask, calculated as follows:
[0021] In the formula: , Threshold for sensitive area discrimination, This is the softening factor; the larger the output value of the soft mask, the better it represents the spatial location. x The greater the importance of the need for correction.
[0022] Furthermore, in step S6, when the internal training set under a certain preset valve opening degree cannot be clustered to form more than two cavitation states, all internal training sets under that opening degree are uniformly divided into a single cavitation state.
[0023] The online prediction method, which utilizes the global initial flow field, cavitation sensitive area identification model, and local residual sub-model constructed using the aforementioned offline modeling method for valve cavitation flow field, includes the following steps: S7. Call the global initial flow field under the corresponding preset valve opening, input the target valve opening, inlet velocity and outlet pressure, and obtain the initial prediction results of the pressure field, velocity field and vapor volume fraction field under the target operating condition; S8. Input the global initial flow field into the cavitation sensitive region identification model, and input the calculation results of the cavitation sensitive region identification model into the Sigmoid function to form a soft mask to determine the spatial location. x The importance of needing correction; S9. Extract the cavitation state features of the target working condition from the global initial flow field, calculate the distance between the cavitation state features of the target working condition and the state center of each cavitation state, and calculate the state weight of each local residual sub-model based on the distance. S10. Input the target inlet velocity and outlet pressure into the local residual model corresponding to each state to obtain the residual prediction results under each state, and then perform weighted fusion according to the state weights; S11. The soft mask is used to spatially constrain the weighted fusion residuals and superimpose them onto the global initial flow field to obtain the final valve cavitation flow field prediction result.
[0024] Furthermore, in step S9, the state weights of each local residual sub-model are calculated using a Gaussian kernel function, as shown in the following formula:
[0025] In the formula: For the current sample to belong to the first The weights or probabilities of each state; To calculate the cavitation state characteristics of the target operating condition and the distance between the state centers of each cavitation state; For the current sample and the first The distance between the centers; For state weight smoothing parameters, The number of states corresponding to the preset opening degree; the weights of each state satisfy... .
[0026] Advantages and positive effects of the present invention: This invention integrates the global initial flow field POD-ROM error prior, the globally predicted vapor volume fraction, and the vapor volume fraction gradient to construct a cavitation sensitive region discrimination function. The global initial flow field POD-ROM error prior reflects the locations where the reduced-order model is prone to prediction bias. The vapor volume fraction is used to determine the main cavitation region; the vapor volume fraction gradient is used to determine the cavitation boundary regions where the vapor volume fraction changes rapidly. By combining these three factors, the correction region can be redefined for different cavitation conditions, allowing the correction range to adjust with changes in cavitation location and avoiding the problem of inconsistency between the set region and the cavitation region.
[0027] This invention transforms the cavitation-sensitive region discrimination results into a spatially continuously varying soft mask, and uses this soft mask to constrain the vapor phase volume fraction gradient residual of the global initial flow field POD-ROM. Cavitation-sensitive regions correspond to higher mask values, while non-sensitive regions correspond to lower soft mask values, allowing the residual model to focus on learning local prediction errors near the throttling points within the valve, the main cavitation region, and the cavitation boundary. Compared to undifferentiated residual modeling across the entire field, this method reduces the interference of residuals in non-sensitive regions, ensures continuous variation of residual weights at the sensitive region boundaries, and avoids abrupt changes in correction amounts at region boundaries.
[0028] This invention constructs a cavitation state vector using the predicted maximum vapor volume fraction, cavitation region proportion, and minimum pressure to characterize cavitation intensity, cavitation range, and low-pressure level in the flow field, respectively. The minimum pressure is used only for cavitation state characterization and does not participate in cavitation-sensitive region discrimination. Based on the distance between the cavitation state vector of the predicted operating condition and the centers of each cavitation state, corresponding soft weights are calculated, and the local residual sub-models corresponding to different cavitation states are weighted and fused. Therefore, multiple residual sub-models can be used to jointly describe different states such as weak cavitation, moderate cavitation, and strong cavitation, reducing predictive abrupt changes caused by hard classification at state transition points.
[0029] This invention establishes a global initial flow field POD-ROM and a local residual correction model based on existing high-fidelity flow field samples. After offline training, only the target valve opening and corresponding operating parameters need to be input to quickly obtain the pressure field, velocity field, and vapor volume fraction field, without having to perform a complete high-fidelity vacuum flow field CFD calculation for each target operating condition. In a representative embodiment, the calculation time for a single operating condition can be reduced from hours to minutes, meeting the needs of rapid analysis and performance comparison across multiple operating conditions.
[0030] This invention integrates global model error priors, vapor phase volume fraction and its gradient to determine the cavitation sensitive region, so that the correction range can be adjusted with changes in valve opening, operating parameters and cavitation development state, reducing the problem of inconsistency between the fixed correction region and the actual cavitation region.
[0031] This invention utilizes a soft mask to spatially constrain local residuals and weights and fuses multiple local residual models according to different cavitation states, thereby significantly improving the prediction results for the throttling section within the valve, the main cavitation region, the vapor phase boundary, and the downstream migration region. Under representative test conditions, the overall prediction error for the vapor phase volume fraction field and cavitation-related regions is reduced by approximately 70%.
[0032] This invention does not rely on any specific valve structure. For different valve types, structural dimensions, preset opening degrees, and operating parameter ranges, a new model can be rebuilt using corresponding high-fidelity flow field samples, while the overall prediction process remains unchanged. It can be used for valve design, parameter screening, multi-condition performance evaluation, and operating status analysis. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1The flowchart illustrates an offline modeling and online prediction method for valve cavitation flow field provided by this invention. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0036] like Figure 1 As shown, this invention provides an offline modeling method for valve cavitation flow field, comprising the following steps: S1. For each preset valve opening, set multiple sets of combined operating conditions including inlet velocity and outlet pressure.
[0037] The combined operating conditions, including inlet velocity and outlet pressure, are generated using the Latin hypercube sampling method. This ensures that a limited number of samples can relatively uniformly cover the parameter space composed of inlet velocity and outlet pressure. i The output parameters for each combined operating condition are expressed as follows:
[0038] In the formula: For the inlet speed, This is due to export pressure.
[0039] S2. Divide multiple sets of combined working conditions into training samples and independent test samples according to a preset ratio; among them, the training samples are divided into an internal training set and an internal validation set according to a preset ratio; S3. Solve for each combined working condition using fluid dynamics methods to obtain the high-vacuum flow field corresponding to each combined working condition:
[0040] In the formula, For pressure field, , and The velocity field is in three directions. This represents the vapor phase volume fraction field. Under the same preset opening degree, all operating conditions use the same computational domain and mesh division, and different physical fields are normalized accordingly.
[0041] S4. The high-vacuum flow fields under the same valve preset opening are formed into a snapshot matrix. The spatial modes in the snapshot matrix are extracted by intrinsic orthogonal decomposition. The number of spatial modes to be retained is determined according to the proportion of cumulative energy of flow field pulsation characterized by the eigenvalues of the spatial modes. Using inlet velocity and outlet pressure as inputs and spatial modal coefficients of each order as outputs, a Gaussian process regression model is established. The spatial modal coefficients of the target combined working condition are predicted using the Gaussian process regression model, and the global initial flow field is obtained by combining the mean flow field and the retained spatial modes.
[0042] The formula for calculating the global initial flow field is as follows:
[0043] In the formula: The average flow field is obtained by averaging the flow fields of various high-vacuum systems under the same valve preset opening. To preserve spatial modes, These are the predicted spatial modal coefficients.
[0044] S5. The cavitation-sensitive region is defined as the area where model errors and cavitation physical features are concentrated, rather than simply the vapor phase region. To obtain the spatially weak locations of the global model, the spatial distribution of the prediction error of the global initial flow field is first obtained statistically based on the internal training set as an error prior. The predicted vapor phase volume fraction and vapor phase volume gradient are extracted from the global initial flow field as cavitation physical features. The error prior and cavitation physical features are coupled to construct a cavitation-sensitive region discriminant function, and the weight parameters of the discriminant function are determined to complete the construction of the cavitation-sensitive region identification model.
[0045] The formula for calculating the prior error is as follows:
[0046] In the formula: Spatial location The error distribution pattern obtained statistically from the global training samples at that location. This represents the number of internal training samples. To ensure the high-fidelity vacuum flow field calculation results, This represents the global initial flow field prediction results.
[0047] Relying solely on prior error This could lead to over-reliance on training samples in the identification results. To improve the physical consistency of sensitive area identification, a global prediction of vapor phase volume fraction and a vapor phase volume fraction gradient term are further introduced. The former characterizes the cavitation bulk region, while the latter characterizes the rapidly changing vapor-liquid interface and cavitation boundary migration regions. The gradient term is defined as:
[0048] In the formula: The vapor phase volume fraction is obtained from global ROM prediction; This is the gradient operator.
[0049] Combining the prior global prediction error, the predicted vapor volume fraction under the target operating condition, and its gradient, a cavitation-sensitive area identification model is constructed, and the calculation formula is as follows:
[0050] In the formula: To normalize the prior global prediction error, To normalize the predicted vapor phase volume fraction, For the normalized vapor phase volume fraction gradient, , and These are the weights of the prior error, the vapor volume fraction, and the vapor gradient, respectively. .
[0051] To avoid abrupt changes in the sensitive region boundary caused by a hard threshold, the output of the cavitation sensitive region identification model is input into the Sigmoid function to form a soft mask, calculated as follows:
[0052] In the formula: , Threshold for sensitive area discrimination, This is the softening factor; the larger the output value of the soft mask, the better it represents the spatial location. x The greater the importance of the need for correction.
[0053] To determine the weight combination of the cavitation-sensitive region discrimination function, an internal validation set was used for screening, and independent test samples were not involved in the weight determination. Evaluation metrics included high-error region coverage (CR), false positive rate (FR), error energy coverage (ER), intersection-over-union ratio (IoU), and a comprehensive score. Higher CR, ER, and IoU, and lower FR, indicate better sensitive region identification performance.
[0054] S6 calculates the predicted residuals between the high-fidelity vacuum flow field and the global initial flow field: .
[0055] The maximum vapor volume fraction and the proportion of cavitation regions are extracted from the globally predicted vapor volume fraction field to construct a cavitation state feature vector:
[0056] In the formula, The maximum vapor volume fraction; The percentage of cavitation area; Minimum pressure The maximum vapor volume fraction is expressed as:
[0057] The percentage of cavitation region is expressed as follows:
[0058] In the formula, The threshold for cavitation region discrimination. For indicator functions, This represents the total number of grid cells.
[0059] The cavitation state feature vector is normalized, and based on the normalized cavitation state feature vector, a clustering method is used to divide the training conditions of the internal training set into cavitation states.
[0060] For each cavitation state, an intrinsic orthogonal decomposition is performed on the predicted residual sample set. The residual modes of the residual field under each cavitation state are extracted, and the number of residual modes to be retained is determined according to the preset cumulative energy ratio. Regression models between inlet velocity, outlet pressure and residual mode coefficients are established respectively, and local residual sub-models corresponding to each cavitation state are constructed.
[0061] When the internal training set under a certain preset valve opening cannot be clustered to form more than two cavitation states, then all internal training sets under that opening are uniformly divided into a single cavitation state.
[0062] The online prediction method, which utilizes the global initial flow field, cavitation sensitive area identification model, and local residual sub-model constructed using the aforementioned offline modeling method for valve cavitation flow field, includes the following steps: S7. Call the global initial flow field under the corresponding preset valve opening, input the target valve opening, inlet velocity and outlet pressure, and obtain the initial prediction results of the pressure field, velocity field and vapor volume fraction field under the target operating condition.
[0063] S8. Input the global initial flow field into the cavitation sensitive region identification model, and input the calculation results of the cavitation sensitive region identification model into the Sigmoid function to form a soft mask to determine the spatial location. x The importance of needing correction; S9. Extract cavitation state characteristics of the target operating condition from the global initial flow field. Calculate the distance between the cavitation state characteristics of the target operating condition and the state center of each cavitation state:
[0064] In the formula, For the first The state center of a voided state.
[0065] The state weights of each local residual sub-model are calculated based on this distance. The state weights of each local residual sub-model are calculated using a Gaussian kernel function, as shown in the following formula:
[0066] In the formula: For the current sample to belong to the first The weights or probabilities of each state; To calculate the cavitation state characteristics of the target operating condition and the distance between the state centers of each cavitation state; For the current sample and the first The distance between the centers; For state weight smoothing parameters, The number of states corresponding to the preset opening degree; the weights of each state satisfy... .
[0067] S10. Input the target inlet velocity and outlet pressure into the local residual model corresponding to each state, obtain the residual prediction results for each state, and perform weighted fusion according to the state weights:
[0068] In the formula, For the first The residual prediction results corresponding to each cavitation state.
[0069] S11. The soft mask is used to spatially constrain the weighted fused residuals and superimpose them onto the global initial flow field to obtain the final valve cavitation flow field prediction result:
[0070] In the formula, This represents point-by-point multiplication at corresponding spatial locations. The soft mask acts on the pressure field, the velocity fields in three directions, and the vapor volume fraction field at the same spatial location, respectively, resulting in residuals.
[0071] This invention employs a technical process of global initial flow field POD-ROM initial prediction, cavitation sensitive region identification, and state-aware local residual correction. The global initial flow field POD-ROM describes the overall structure of the valve cavitation flow field, and the state-aware local residual model compensates for the prediction errors of the valve throttling part, cavitation main region, vapor phase boundary, and downstream cavitation migration region under different cavitation states. This improves the prediction efficiency and local prediction accuracy of the cavitation flow field under multiple preset valve openings and different inlet velocities and outlet pressures.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An offline modeling method for valve cavitation flow field, characterized in that, Includes the following steps: S1. For each preset valve opening, set multiple sets of combined operating conditions including inlet velocity and outlet pressure; S2. Divide multiple sets of combined working conditions into training samples and independent test samples according to a preset ratio; among them, the training samples are divided into an internal training set and an internal validation set according to a preset ratio; S3. Solve each combined working condition using fluid dynamics methods to obtain the high-vacuum flow field corresponding to each combined working condition; S4. The high-vacuum flow fields under the same valve preset opening are formed into a snapshot matrix. The spatial modes in the snapshot matrix are extracted by intrinsic orthogonal decomposition. The number of spatial modes to be retained is determined according to the proportion of cumulative energy of flow field pulsation characterized by the eigenvalues of the spatial modes. Using inlet velocity and outlet pressure as inputs and spatial modal coefficients of each order as outputs, a Gaussian process regression model is established. The Gaussian process regression model is used to predict the spatial modal coefficients of the target combined working condition. The global initial flow field is then constructed by combining the mean flow field and the retained spatial modes. S5. Based on the statistical analysis of the internal training set, the spatial distribution of the prediction error of the global initial flow field is obtained as the error prior. The predicted vapor volume fraction and vapor volume gradient are extracted from the global initial flow field as cavitation physical features. The error prior and cavitation physical features are coupled to construct the cavitation sensitive area discrimination function, and the weight parameters of the discrimination function are determined to complete the construction of the cavitation sensitive area identification model. S6 calculates the prediction residual between the high-preservation vacuum flow field and the global initial flow field; extracts the maximum vapor volume fraction and the cavitation region ratio from the global predicted vapor volume fraction field to form a cavitation state feature vector. The cavitation state feature vector is normalized, and based on the normalized cavitation state feature vector, a clustering method is used to divide the training conditions of the internal training set into cavitation states. For each cavitation state, an intrinsic orthogonal decomposition is performed on the predicted residual sample set. The residual modes of the residual field under each cavitation state are extracted, and the number of residual modes to be retained is determined according to the preset cumulative energy ratio. Regression models between inlet velocity, outlet pressure and residual mode coefficients are established respectively, and local residual sub-models corresponding to each cavitation state are constructed.
2. The offline modeling method for valve cavitation flow field according to claim 1, characterized in that, Step S1 includes a combined operating condition of inlet velocity and outlet pressure generated using the Latin hypercube sampling method. i The output parameters for each combined operating condition are expressed as follows: In the formula: For the inlet speed, This is due to export pressure.
3. The offline modeling method for valve cavitation flow field according to claim 1, characterized in that, The calculation formula for the global initial flow field obtained by reconstruction in step S4 is as follows: In the formula: The average flow field is obtained by averaging the flow fields of various high-vacuum systems under the same valve preset opening. To preserve spatial modes, These are the predicted spatial modal coefficients; The formula for calculating the high-vacuum flow field is as follows: In the formula: For pressure field, , and The velocity fields are in three directions. This represents the vapor phase volume fraction field.
4. The offline modeling method for valve cavitation flow field according to claim 1, characterized in that, The formula for calculating the prior error in step S5 is as follows: In the formula: Spatial location The error distribution pattern obtained statistically from the global training samples at that location. This represents the number of internal training samples. To ensure the high-fidelity vacuum flow field calculation results, This represents the global initial flow field prediction results; The calculation formula for the cavitation sensitive area identification model is as follows: In the formula: To normalize the prior global prediction error, To normalize the predicted vapor phase volume fraction, For the normalized vapor phase volume fraction gradient, , and These are the weights of the prior error, the vapor volume fraction, and the vapor gradient, respectively. .
5. The offline modeling method for valve cavitation flow field according to claim 4, characterized in that, The output of the cavitation sensitive region identification model is input into the Sigmoid function to form a soft mask, and the calculation formula is as follows: In the formula: , Threshold for sensitive area discrimination, This is the softening factor; the larger the output value of the soft mask, the better it represents the spatial location. x The greater the importance of the need for correction.
6. The offline modeling method for valve cavitation flow field according to claim 4, characterized in that, In step S6, if the internal training set under a certain preset valve opening degree cannot be clustered to form more than two cavitation states, then all internal training sets under that opening degree are uniformly divided into a single cavitation state.
7. An online prediction method using the global initial flow field, cavitation sensitive area identification model, and local residual sub-model constructed by the valve cavitation flow field offline modeling method according to any one of claims 1-6, comprising the following steps: S7. Call the global initial flow field under the corresponding preset valve opening, input the target valve opening, inlet velocity and outlet pressure, and obtain the initial prediction results of the pressure field, velocity field and vapor volume fraction field under the target operating condition; S8. Input the global initial flow field into the cavitation sensitive region identification model, and input the calculation results of the cavitation sensitive region identification model into the Sigmoid function to form a soft mask to determine the spatial location. x The importance of needing correction; S9. Extract the cavitation state features of the target working condition from the global initial flow field, calculate the distance between the cavitation state features of the target working condition and the state center of each cavitation state, and calculate the state weight of each local residual sub-model based on the distance. S10. Input the target inlet velocity and outlet pressure into the local residual model corresponding to each state to obtain the residual prediction results under each state, and then perform weighted fusion according to the state weights; S11. The soft mask is used to spatially constrain the weighted fusion residuals and superimpose them onto the global initial flow field to obtain the final valve cavitation flow field prediction result.
8. The online prediction method for valve cavitation flow field according to claim 7, characterized in that, In step S9, the state weights of each local residual sub-model are calculated using a Gaussian kernel function, as shown in the following formula: In the formula: For the current sample to belong to the first The weights or probabilities of each state; To calculate the cavitation state characteristics of the target operating condition and the distance between the state centers of each cavitation state; For the current sample and the first The distance between the centers; For state weight smoothing parameters, The number of states corresponding to the preset opening degree; the weights of each state satisfy... .
