A one-dimensional and three-dimensional joint simulation method and system for a condenser of a ship power system
Through technologies such as adaptive time step algorithm, neural network and machine learning model, the stability and computational efficiency problems of one-dimensional and three-dimensional joint simulation of condenser of ship power system are solved, and higher-precision simulation analysis and real-time monitoring are achieved. ability.
Patent Information
- Application Number
- CN202410965396.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The existing one-dimensional and three-dimensional joint simulation method of the condenser of the ship power system has poor stability in the coupling interface and data transmission. It is difficult to accurately display the internal flow field of the condenser, and the calculation amount is large, resulting in limited simulation efficiency and accuracy.
The adaptive time step algorithm and neural network heat conduction coefficient estimation model are used, combined with the implicit coupling method of the Jacobian matrix and the machine learning model, to build an adaptive grid and turbulence model, and optimize parameters through parallel computing and genetic algorithms to establish a comprehensive visual analysis Platform to monitor power systems in real time.
It improves the description accuracy of the flow field and temperature field inside the condenser, enhances the stability and calculation efficiency of the model, and achieves higher-precision simulation analysis and fault diagnosis capabilities.
Smart Images

Figure CN118504146B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of ship systems, and in particular relates to a one-dimensional-three-dimensional joint simulation method and system for a condenser of a ship power system. Background Art
[0002] In the ship power system, the condenser is one of the important key equipment, and its performance directly affects the efficiency and economy of the entire system. In order to better analyze and optimize the working process of the condenser, a one-dimensional-three-dimensional joint simulation method has emerged in recent years. This method combines one-dimensional flow analysis and three-dimensional numerical simulation, which can more comprehensively and accurately predict and evaluate the performance of the condenser. The current technology mostly uses lumped parameter method, partition model or distributed parameter method to perform transient simulation of the condenser, but these methods cannot well display the internal flow field of the condenser.
[0003] Since it is necessary to establish a one-dimensional flow model and a three-dimensional CFD model at the same time and exchange data between the two, the entire simulation process involves a large amount of calculation. In addition, the three-dimensional CFD model needs to consider complex physical processes such as flow, heat transfer, and phase change, and the modeling and meshing are relatively complex. The coupling interface between the one-dimensional and three-dimensional models is the key. How to accurately transfer boundary conditions and parameter information between the two is a problem that needs to be further solved.
[0004] Since the existing technology involves the coupling of multi-scale and multi-physical processes, the stability of the entire simulation process is poor and it is easy to diverge or converge slowly, which limits the simulation development of the condenser of the ship power system. Summary of the invention
[0005] In view of the defects existing in the above-mentioned prior art, the present invention provides a one-dimensional and three-dimensional joint simulation method and system for a condenser of a ship power system, the method comprising the following steps:
[0006] Step 1: Establish the geometric model and physical boundary conditions of the condenser of the ship power system, discretize the control equation using the adaptive time step algorithm, and use the heat transfer coefficient estimation model based on the neural network to obtain each heat transfer coefficient, dynamically divide the calculation grid, and adjust the control equation according to the change of the grid, and obtain the distribution of each parameter inside the condenser by iteratively solving the control equation;
[0007] Step 2: construct a three-dimensional geometric model according to the structure of the condenser, determine the scope of the calculation domain, the calculation domain includes the fluid domain and the solid domain, adaptively adjust the grid density according to the changes in the flow field and the temperature field, establish a three-dimensional control equation group, and use a turbulence model to describe the turbulence characteristics inside the condenser, construct a heat conduction and phase change model based on machine learning, and use machine learning to model the heat transfer process and phase change behavior;
[0008] Step 3, the implicit coupling method of Jacobian matrix is used to couple the one-dimensional and three-dimensional models of the condenser of the ship power system, and the time step is automatically adjusted according to the changes in the simulation process based on parallel computing and adaptive time step algorithm;
[0009] Step 4: Use high-fidelity test data to train and verify the joint model, use machine learning model calibration methods to automatically optimize model parameters, and optimize the overall model based on genetic algorithms to obtain the optimal parameter combination;
[0010] Step 5: Build a comprehensive visualization analysis platform, use the Web-based visualization analysis platform to present temperature, pressure, and flow field parameters, use data mining and machine learning techniques to automatically identify key parameters and abnormal conditions, and monitor the operating status of the power system in real time based on the real-time monitoring function of virtual instruments.
[0011] Step 1 further comprises:
[0012] The geometric model and physical boundary conditions of the condenser of the ship power system are established, including that the geometric model is in the form of a one-dimensional pipeline and is expressed by the following equation:
[0013]
[0014] Where A(x,t) represents the cross-sectional area of the pipe at position x as time t changes. represents the partial derivative of the pipe cross-sectional area with respect to time, represents the rate of change of the pipe cross-sectional area with time, u represents the flow rate of the fluid in the pipe, It represents the rate of change of mass flow in space and the mass flow gradient along the length of the pipeline;
[0015] The physical boundary conditions include inlet and outlet temperature, pressure, and flow rate, which are expressed by the following equation:
[0016] T(0, t) = T 0 (t), p(L, t) = p L (t),
[0017] Where T(0,t) represents the change of the fluid temperature at the pipe inlet with time t, T 0 (t) represents the time function of the fluid temperature at the pipeline inlet, that is, the change of the inlet temperature with time, p(L,t) represents the change of the fluid pressure with time t at the pipeline outlet, p L (t) represents the time function of the fluid pressure at the pipeline outlet, that is, the change of the outlet pressure with time. It represents the change of the mass flow rate of the fluid at the pipe inlet with time t, It represents the time function of the fluid mass flow rate at the pipeline inlet, that is, the change of the inlet mass flow rate over time;
[0018] The governing equations are discretized using an implicit difference scheme, where the time step is adaptively adjusted according to the following criterion,
[0019]
[0020] Among them, Δt represents the time change of the condensation process, that is, the time interval of condensation, C is the safety factor, a is the speed of sound, k is the thermal conductivity coefficient, |u| represents the absolute flow rate of the fluid, a represents the speed of sound, Δx represents the distance on the pipeline length, k represents the thermal conductivity of the fluid, ρ represents the density of the fluid, and c p It represents the constant pressure specific heat capacity of the fluid;
[0021] The thermal conductivity coefficient is obtained by using a neural network-based thermal conductivity estimation model, which is expressed by the following equation:
[0022] k=f(T,ρ,c p ,material properties)
[0023] Among them, k represents the thermal conductivity, which is the target parameter to be estimated, T represents temperature, ρ represents density, and c p It represents the constant pressure specific heat capacity of the material, and material properties represent other parameters related to the material properties, including crystal structure and chemical composition;
[0024] The dynamic grid technology is used to divide the computational grid, where the grid point distribution meets the following adaptive criteria:
[0025]
[0026] Among them, xi represents the coordinate position of a grid point in the calculation grid, t represents time, represents the rate of change of the grid point position over time, λ represents the weight coefficient, Represents the gradient of the temperature field in space;
[0027] The governing equations are solved using a double algebraic method.
[0028]
[0029] Among them, T i (n+1) represents the temperature value of the i-th grid point at time n+1. i represents a spatial discrete point, n represents a time layer, T i n represents the temperature value of the ith grid point at time n, Δt represents the time step, ρ represents the density, cp represents the specific heat capacity at constant pressure, Δx i represents the spatial step size of the i-th grid point, k i+1 / 2 represents the thermal conductivity of the i+1 / 2th mesh surface, Δx i+1 / 2 represents the spatial step size of the i+1 / 2th grid surface, k i-1 / 2 represents the thermal conductivity of the i-1 / 2th mesh surface, Δx i-1 / 2 Represents the spatial step size of the i-1 / 2th mesh face.
[0030] Step 2 further includes:
[0031] The three-dimensional geometric model of the condenser is represented by a parametric equation, which is expressed by the following equation:
[0032] x=f 1 (u,v),y=f 2 (u,v),z=f 3 (u,v)
[0033] Among them, x, y, z represent the three-dimensional space coordinates of the point in the geometric model, and f 1 (u,v),f 2 (u,v),f 3 (u,v) represents the function of the independent variables u and v, which jointly determine the coordinate value of the point in the three-dimensional space. u and v are parameterized independent variables;
[0034] The computational domain is represented by a three-dimensional coordinate system, which is expressed by the following equation:
[0035] Ω={(x,y,z)|x l ≤x≤x r ,y b ≤y≤y t , z f ≤z≤z r}
[0036] Where Ω represents a three-dimensional geometric domain, (x, y, z) is the coordinate of a point in a three-dimensional Cartesian coordinate system, x l ,x r Indicates the lower and upper bounds of the x coordinate, y b ,y t Indicates the lower and upper bounds of the y coordinate, z f ,z r Indicates the lower and upper bounds of the z coordinate;
[0037] The three-dimensional control equations are expressed using mass, momentum and energy conservation equations,
[0038]
[0039] Where ρ represents the density of the fluid, represents the velocity vector of the fluid, represents the rate of change of density over time, represents the flux divergence of density and velocity, represents the momentum of the fluid, represents the flux divergence of momentum, represents the momentum source generated by pressure, represents the momentum source generated by the viscous force, ρE represents the total energy of the fluid, represents the flux divergence of the total energy, represents the energy source generated by heat conduction, The energy source representing the work produced by viscous stress.
[0040] The method further comprises:
[0041] The Smagorinsky subgrid stress model is used to capture large-scale turbulent eddies, and the subgrid model is used to describe small-scale turbulence. The Smagorinsky subgrid stress model is expressed as follows:
[0042]
[0043] Among them, τ ij SGS represents the subgrid scale (SGS) stress tensor, ν t represents the turbulent viscosity coefficient, represents the filtered strain rate tensor, Cs is a constant, Δ is the grid size, is the modulus of the filtered strain rate tensor, representing the strain rate intensity of large-scale flow;
[0044] The thermal conductivity is estimated using a neural network based model and is expressed by the following equation,
[0045] k=f(T,ρ,c p ,material properties)
[0046] Where k is the thermal conductivity, T is the temperature, ρ is the density, c p is the specific heat capacity, and material properties represent other properties, including crystal structure and chemical composition;
[0047] The phase change process is estimated using a machine learning model and is expressed by the following equation,
[0048] Γ=f(T,p,material properties)
[0049] Among them, Γ represents the characteristic parameters of the phase change process, including melting point, boiling point, and latent heat of phase change, T is temperature, ρ is density, and material properties represent other properties, including crystal structure and chemical composition;
[0050] The control equations are discretized using the finite volume method and solved using adaptive meshing techniques, including:
[0051] The convection term is discretized in TVD format and expressed by the following equation:
[0052]
[0053] in, The differential form of the convection term is the convection flux ρφui in the control volume with respect to the spatial coordinate x i The partial derivative of V P is the volume of the control volume, is the mass flow rate through boundary f, φ f is the physical quantity value passing through the boundary f, φ P is the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point of the flow direction, ψ(θ f ) is a vector function, θ f is the gradient ratio;
[0054] The diffusion term is centrally differentiated and is expressed by the following equation,
[0055]
[0056] in, represents the differential form of the diffusion term, V P is the volume of the control volume, ∑ f represents the sum of all faces f of the control volume, Γ f is the diffusion coefficient through the surface f, φ P is the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point W in the flow direction, d PW is the distance between grid points P and W, A f It's the area.
[0057] The method further includes: adaptively adjusting the grid density based on the octree algorithm, including initializing the root node to include the entire calculation domain, evaluating the error index of each unit according to the flow field and the temperature field, and refining the unit with a large error until the accuracy requirement is met, and the topological relationship of the grid unit is represented by an adjacency matrix.
[0058] Step 3 further includes:
[0059] Construct a one-dimensional pipeline model control equation, set coupling boundary conditions at the model inlet and outlet, including setting the one-dimensional pipeline outlet pressure and temperature as the three-dimensional CFD inlet conditions, and setting the three-dimensional CFD outlet mass flow as the one-dimensional pipeline inlet boundary condition. The one-dimensional pipeline model control equation is expressed as follows:
[0060]
[0061] Where A is the cross-sectional area of the pipe, u is the velocity of the fluid in the pipe, p is the pressure, ρ is the fluid density, f / D is the friction factor of the pipe wall, θ is the inclination angle of the pipe, E is the total energy per unit mass, and q w is the heat flux density of the tube wall, P is the circumference of the tube wall;
[0062] The control equations of the one-dimensional pipeline and the three-dimensional model are combined into a set of simultaneous equations, and the Jacobian matrix is constructed to represent the partial derivative relationship between the variables. The Newton-Raphson iteration method is used to solve the set of simultaneous equations to obtain the coupled solution.
[0063] The construction and solution process of the Jacobian matrix includes:
[0064] The simultaneous equations for coupling the 1D pipeline model and the 3D CFD model are constructed and expressed by the following equations:
[0065] R 1 (u 1 ,u 2 )=0
[0066] R 2 (u 1 ,u 2 )=0
[0067] Among them, R1(u1,u2)=0 represents the control equation of the one-dimensional pipeline model, R2(u1,u2)=0 represents the control equation of the three-dimensional CFD model, u1 is the variable of the one-dimensional pipeline model, including the pipeline cross-sectional area, flow velocity, and pressure, and u2 is the variable of the three-dimensional CFD model, including the velocity field, pressure field, and turbulence amount;
[0068] The Jacobian matrix construction formula is expressed as follows:
[0069]
[0070] in, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the one-dimensional variable u1, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the three-dimensional variable u2, represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the one-dimensional variable u1, It represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the three-dimensional variable u2;
[0071] In the Newton-Raphson iterative solution process, u1 and u2 need to be updated, and the iterative formula is:
[0072]
[0073] Where n represents the number of iterations, J -1 Represents the inverse of the Jacobian matrix.
[0074] Step 4: Model parameter calibration further includes,
[0075] Define the objective function, expressed by the following equation,
[0076]
[0077] Among them, J(p) is used to minimize the model prediction value The sum of squared errors between y and the observed value, p represents the model parameter to be optimized, Σ represents the sum of i from 1 to N, N is the number of samples, yi represents the actual observed value of the i-th sample, Indicates the predicted value of the model for the i-th sample when using parameter p;
[0078] The gradient descent method is used to optimize the parameters, which is expressed by the following equation:
[0079]
[0080] Among them, p k+1 This represents the optimized parameter vector obtained after the k+1th iteration, p k represents the optimization parameter vector at the kth iteration, α is the step size parameter, also known as the learning rate, is the gradient vector of the objective function J(p) at the parameter vector p^k;
[0081] Iterate until convergence, expressed by the following equation,
[0082] ||p k+1 -p k ||≤ε
[0083] Among them, ||p^(k+1)-p^k|| is the norm of the change of the parameter vector between the k+1th iteration and the kth iteration, and ε is a preset convergence threshold.
[0084] The genetic algorithm optimization in step 4 further includes:
[0085] Genetic algorithm is used to optimize the overall model and obtain the optimal parameter combination, including:
[0086] (1) Encoding: Encode the parameter vector to be optimized into a genotype
[0087] (2) Initialization: Randomly generate an initial population
[0088] (3) Fitness evaluation: Calculate the fitness function value of each individual
[0089] (4) Selection: Roulette wheel selection method is used to select individuals
[0090] (5) Crossover: Perform a crossover operation on the selected individuals
[0091] (6) Mutation: Perform mutation operation on individuals after crossover
[0092] (7) Replacement: Replace the original group with the newly generated individuals
[0093] (8) Determine the termination condition: If the termination condition is met, output the optimal solution; otherwise, return to step (3)
[0094] Among them, the fitness function is expressed by the following equation:
[0095] f(p)=-J(p)
[0096] Among them, f(p) is the defined fitness function, J(p) is the objective function, which represents the sum of squared errors between the model prediction value and the observed value.
[0097] The present invention can dynamically divide the calculation grid through the adaptive time step algorithm, better capture the complex flow field and temperature field changes inside the condenser, and use the heat transfer coefficient estimation model based on neural network to more accurately obtain various heat transfer coefficients and improve the physical authenticity of the model; the three-dimensional model is constructed to fully consider the fluid domain and solid domain, and the adaptive grid can more accurately describe the complex flow field and temperature field inside the condenser. The heat conduction and phase change model based on machine learning is introduced to better establish the heat transfer process and phase change behavior and improve the accuracy of the model; the one-dimensional-three-dimensional model coupling adopts the implicit coupling method of the Jacobian matrix, which can improve the stability and collection of the coupling calculation. The convergence of the model, combined with parallel computing and adaptive time step algorithm, can improve the computing efficiency and alleviate the huge computing burden of one-dimensional-three-dimensional model coupling; using high-fidelity test data for training and verification can improve the accuracy and reliability of the model, and the model calibration method and genetic algorithm of machine learning can automatically optimize the model parameters to obtain the optimal parameter combination; building a comprehensive visual analysis platform can monitor the operating status of the power system in real time, improve the fault diagnosis and prevention capabilities, and use data mining and machine learning technology to automatically identify key parameters and abnormal situations, providing a basis for decision support. The present invention generally improves the simulation analysis efficiency and accuracy of the condenser of the ship power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] By reading the following detailed description with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0099] Figure 1 The flowchart shows a one-dimensional and three-dimensional joint simulation method of a condenser of a ship power system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0100] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0101] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0102] It should be understood that although the terms first, second, third, etc. may be used to describe ... in the embodiments of the present invention, these ... should not be limited to these terms. These terms are only used to distinguish .... For example, without departing from the scope of the embodiments of the present invention, the first ... may also be referred to as the second ..., and similarly, the second ... may also be referred to as the first ....
[0103] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0104] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0105] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0106] The present invention adopts numerical simulation technology, machine learning methods and parallel computing technology to establish a high-precision condenser model of the ship power system, and realizes intelligent monitoring and optimization of the power system operation through a visual analysis platform, thereby improving the efficiency and accuracy of simulation analysis of the condenser of the ship power system.
[0107] like Figure 1 As shown, the present invention discloses a one-dimensional-three-dimensional joint simulation method for a condenser of a ship power system, the method comprising:
[0108] Step 1: Establish the geometric model and physical boundary conditions of the condenser of the ship power system, use the adaptive time step algorithm to discretize the control equation, and use the heat transfer coefficient estimation model based on neural network to obtain various heat transfer coefficients, dynamically divide the calculation grid, and adjust the control equation according to the change of the grid. The distribution of various parameters inside the condenser is obtained by iteratively solving the control equation.
[0109] By establishing geometric models and physical boundary conditions, the structure and internal environment of the condenser can be accurately described, laying the foundation for subsequent numerical simulation. The adaptive time step algorithm can automatically adjust the calculation time step according to the changes in the internal parameters of the condenser, thereby improving the calculation efficiency and convergence.
[0110] By using the heat transfer coefficient estimation model based on neural network, various heat transfer coefficients, such as wall heat transfer coefficient and boiling heat transfer coefficient, can be obtained more accurately, improving the physical accuracy of the model. Dynamically dividing the computational grid can adaptively adjust the grid density according to the changes in the flow field and temperature field to capture the detailed changes in key areas. By iteratively solving the control equation, the detailed distribution of various parameters inside the condenser can be obtained, providing a basis for further optimization design.
[0111] Compared with traditional empirical or test data acquisition methods, neural network models have stronger generalization and adaptability, and can more accurately predict complex heat transfer behaviors. Unlike traditional static meshing methods, dynamic meshing can automatically adjust the mesh distribution according to changes in the calculation process and improve calculation accuracy. The iterative solution method can better capture parameter changes in the transient process and provide richer data support for subsequent optimization design.
[0112] Step 2: construct a three-dimensional geometric model according to the structure of the condenser, determine the scope of the calculation domain, which includes the fluid domain and the solid domain, adaptively adjust the grid density according to the changes in the flow field and the temperature field, establish a three-dimensional control equation group, and use a turbulence model to describe the turbulence characteristics inside the condenser, construct a heat conduction and phase change model based on machine learning, and use machine learning to model the heat transfer process and phase change behavior.
[0113] Different from the traditional static meshing method, this scheme adopts adaptive meshing technology, which can adjust the mesh distribution in real time according to the changes in the calculation process, greatly improving the calculation flexibility and accuracy. The introduction of turbulence model into condenser modeling can more accurately capture the complex turbulence characteristics inside, which has obvious advantages over the traditional simplified turbulence model. The heat conduction and phase change model established by machine learning technology has stronger prediction ability and generalization than the empirical correlation model and numerical solution model.
[0114] Constructing a three-dimensional geometric model can more accurately reflect the actual geometric structure and internal flow field distribution of the condenser, and can capture richer physical details than a two-dimensional model. Dynamically adjusting the grid according to the changes in the flow field and temperature field can better capture the parameter changes in the key area and improve the calculation accuracy. The introduction of the turbulence model can more accurately describe the complex turbulence characteristics inside the condenser, laying the foundation for subsequent heat conduction and phase change analysis. Using machine learning technology to establish a heat conduction and phase change model can better reflect the complexity and nonlinear characteristics of these processes and improve the prediction accuracy of the model.
[0115] Step 3, the implicit coupling method of Jacobian matrix is used to couple the one-dimensional and three-dimensional models of the condenser of the ship power system, and based on parallel computing and adaptive time step algorithm, the time step is automatically adjusted according to the changes in the simulation process.
[0116] Coupling one-dimensional and three-dimensional models can take into account both overall performance and local details. Introducing the Jacobian matrix into the coupling calculation process can effectively enhance the stability and robustness of the calculation. Introducing the adaptive time step algorithm in condenser modeling can automatically adjust the time step according to changes in the calculation process, thereby improving the calculation efficiency.
[0117] The implicit coupling method can fully consider the interaction between different physical fields and improve the overall accuracy and stability of the model. The one-dimensional model can quickly describe the overall operation of the system, while the three-dimensional model can more finely analyze the local flow field and temperature field. The coupling of the two models can give full play to their respective advantages and improve the accuracy and computational efficiency of the overall model. The application of parallel computing technology can greatly shorten the calculation time and improve the simulation efficiency. The time step can be automatically adjusted according to the changes in the simulation process, which can improve the calculation efficiency while ensuring the calculation accuracy.
[0118] Step 4: Use high-fidelity test data to train and verify the joint model, use machine learning model calibration methods to automatically optimize model parameters, and optimize the overall model based on genetic algorithms to obtain the optimal parameter combination.
[0119] In condenser modeling, the use of high-fidelity test data for model training and verification can greatly improve the reliability and accuracy of the model compared to traditional simplified models or empirical correlation models. The application of machine learning technology to the automatic optimization of condenser model parameters is of great significance for improving modeling efficiency and accuracy. The genetic algorithm is used to globally optimize the overall condenser model to obtain the optimal parameter combination, which can find the optimal parameter combination while ensuring the accuracy of the model. Overall model optimization can further optimize the performance indicators of the model, such as computational efficiency and stability.
[0120] High-fidelity test data can more accurately reflect the actual physical process of the condenser and provide a reliable basis for model establishment. Machine learning technology can automatically identify the complex relationship between model parameters and experimental observations and achieve efficient parameter optimization. Compared with traditional manual parameter adjustment methods, machine learning calibration can greatly improve the efficiency and accuracy of parameter optimization.
[0121] Step 5: Build a comprehensive visualization analysis platform, use the Web-based visualization analysis platform to present temperature, pressure, and flow field parameters, use data mining and machine learning techniques to automatically identify key parameters and abnormal conditions, and monitor the operating status of the power system in real time based on the real-time monitoring function of virtual instruments.
[0122] The Web visualization analysis platform is used in the one-dimensional and three-dimensional joint simulation of the condenser of the ship power system, which is more convenient and versatile than traditional desktop software. The application of data mining and machine learning technology to power system parameter analysis and abnormality identification is of great significance for improving analysis efficiency and depth. Real-time online monitoring of the power system based on virtual instruments can provide key basis for maintenance and optimization.
[0123] The Web platform is cross-platform and easy to access, allowing users to easily access and view analysis results anytime and anywhere. Visual analysis methods can more intuitively display key parameters such as temperature, pressure, and flow field, which is conducive to user understanding and analysis. The use of data mining and machine learning technology can automatically identify key parameters and abnormal conditions, assist manual analysis, improve analysis efficiency, and enhance the depth and comprehensiveness of analysis.
[0124] Furthermore, in one embodiment, step 1 further includes:
[0125] The geometric model and physical boundary conditions of the condenser of the ship power system are established, including that the geometric model is in the form of a one-dimensional pipeline and is expressed by the following equation:
[0126]
[0127] Where A(x,t) represents the cross-sectional area of the pipe at position x as time t changes. represents the partial derivative of the pipe cross-sectional area with respect to time, represents the rate of change of the pipe cross-sectional area with time, u represents the flow rate of the fluid in the pipe, It represents the rate of change of mass flow in space and the mass flow gradient along the length of the pipeline;
[0128] The physical boundary conditions include inlet and outlet temperature, pressure, and flow rate, which are expressed by the following equation:
[0129] T(0, t) = T 0 (t), p(L, t) = pL (t),
[0130] Where T(0,t) represents the change of the fluid temperature at the pipe inlet with time t, T 0 (t) represents the time function of the fluid temperature at the pipeline inlet, that is, the change of the inlet temperature with time, p(L,t) represents the change of the fluid pressure with time t at the pipeline outlet, p L (t) represents the time function of the fluid pressure at the pipeline outlet, that is, the change of the outlet pressure with time. It represents the change of the mass flow rate of the fluid at the pipe inlet with time t, It represents the time function of the fluid mass flow rate at the pipeline inlet, that is, the change of the inlet mass flow rate over time;
[0131] The governing equations are discretized using an implicit difference scheme, where the time step is adaptively adjusted according to the following criterion,
[0132]
[0133] Among them, Δt represents the time change of the condensation process, that is, the time interval of condensation, C is the safety factor, a is the speed of sound, k is the thermal conductivity coefficient, |u| represents the absolute flow rate of the fluid, a represents the speed of sound, Δx represents the distance on the pipeline length, k represents the thermal conductivity of the fluid, ρ represents the density of the fluid, and c p It represents the constant pressure specific heat capacity of the fluid;
[0134] The thermal conductivity coefficient is obtained by using a neural network-based thermal conductivity estimation model, which is expressed by the following equation:
[0135] k=f(T,ρ,c p ,material properties)
[0136] Among them, k represents the thermal conductivity, which is the target parameter to be estimated, T represents temperature, ρ represents density, and c p It represents the constant pressure specific heat capacity of the material, and material properties represent other parameters related to the material properties, including crystal structure and chemical composition;
[0137] The dynamic grid technology is used to divide the computational grid, where the grid point distribution meets the following adaptive criteria:
[0138]
[0139] Among them, xi represents the coordinate position of a grid point in the calculation grid, t represents time, represents the rate of change of the grid point position over time, λ represents the weight coefficient, Represents the gradient of the temperature field in space;
[0140] The governing equations are solved using a double algebraic method.
[0141]
[0142] Among them, T i (n+1) represents the temperature value of the i-th grid point at time n+1. i represents a spatial discrete point, n represents a time layer, T i n represents the temperature value of the ith grid point at time n, Δt represents the time step, ρ represents the density, c p represents the specific heat capacity at constant pressure, Δx i represents the spatial step size of the i-th grid point, k i+1 / 2 represents the thermal conductivity of the i+1 / 2th mesh surface, Δx i+1 / 2 represents the spatial step size of the i+1 / 2th grid surface, k i-1 / 2 represents the thermal conductivity of the i-1 / 2th mesh surface, Δx i-1 / 2 Represents the spatial step size of the i-1 / 2th mesh face.
[0143] Furthermore, in one embodiment, step 2 further includes:
[0144] The three-dimensional geometric model of the condenser is represented by a parametric equation, which is expressed by the following equation:
[0145] x=f 1 (u,v),y=f 2 (u,v),z=f 3 (u,v)
[0146] Among them, x, y, z represent the three-dimensional space coordinates of the point in the geometric model, and f 1 (u,v),f 2 (u,v),f 3 (u,v) represents the function of the independent variables u and v, which jointly determine the coordinate value of the point in the three-dimensional space. u and v are parameterized independent variables;
[0147] The computational domain is represented by a three-dimensional coordinate system, which is expressed by the following equation:
[0148] Ω={(x,y,z)|x l ≤x≤x r ,y b ≤y≤y t , z f ≤z≤z r}
[0149] Where Ω represents a three-dimensional geometric domain, (x, y, z) is the coordinate of a point in a three-dimensional Cartesian coordinate system, x l ,x r Indicates the lower and upper bounds of the x coordinate, y b ,y t Indicates the lower and upper bounds of the y coordinate, z f ,z r Indicates the lower and upper bounds of the z coordinate;
[0150] The three-dimensional control equations are expressed using mass, momentum and energy conservation equations,
[0151]
[0152] Where ρ represents the density of the fluid, represents the velocity vector of the fluid, represents the rate of change of density over time, represents the flux divergence of density and velocity, represents the momentum of the fluid, represents the flux divergence of momentum, represents the momentum source generated by pressure, represents the momentum source generated by the viscous force, ρE represents the total energy of the fluid, represents the flux divergence of the total energy, represents the energy source generated by heat conduction, The energy source representing the work produced by viscous stress.
[0153] Furthermore, in one embodiment, the method further comprises:
[0154] The Smagorinsky subgrid stress model is used to capture large-scale turbulent eddies, and the subgrid model is used to describe small-scale turbulence. The Smagorinsky subgrid stress model is expressed as follows:
[0155]
[0156] Among them, τ ij SGS represents the subgrid scale (SGS) stress tensor, ν t represents the turbulent viscosity coefficient, represents the filtered strain rate tensor, Cs is a constant, Δ is the grid size, is the modulus of the filtered strain rate tensor, representing the strain rate intensity of large-scale flow;
[0157] The thermal conductivity is estimated using a neural network based model and is expressed by the following equation,
[0158] k=f(T,ρ,cp ,material properties)
[0159] Where k is the thermal conductivity, T is the temperature, ρ is the density, c p is the specific heat capacity, and material properties represent other properties, including crystal structure and chemical composition;
[0160] The phase change process is estimated using a machine learning model and is expressed by the following equation,
[0161] Γ=f(T,p,material properties)
[0162] Among them, Γ represents the characteristic parameters of the phase change process, including melting point, boiling point, and latent heat of phase change, T is temperature, ρ is density, and material properties represent other properties, including crystal structure and chemical composition;
[0163] The control equations are discretized using the finite volume method and solved using adaptive meshing techniques, including:
[0164] The convection term is discretized in TVD format and expressed by the following equation:
[0165]
[0166] in, The differential form of the convection term is the convection flux ρφui in the control volume with respect to the spatial coordinate x i The partial derivative of V P is the volume of the control volume, is the mass flow rate through boundary f, φ f is the physical quantity value passing through the boundary f, φ P is the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point of the flow direction, ψ(θ f ) is a vector function, θ f is the gradient ratio;
[0167] The diffusion term is centrally differentiated and is expressed by the following equation,
[0168]
[0169] in, represents the differential form of the diffusion term, V P is the volume of the control volume, ∑ f represents the sum of all faces f of the control volume, Γ f is the diffusion coefficient through the surface f, φ Pis the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point W in the flow direction, d PW is the distance between grid points P and W, A f It's the area.
[0170] Furthermore, in a certain embodiment, the method also includes: adaptively adjusting the grid density based on the octree algorithm, including initializing the root node to include the entire calculation domain, evaluating the error index of each unit according to the flow field and temperature field, and refining the units with large errors until the accuracy requirements are met, and the topological relationship of the grid units is represented by an adjacency matrix.
[0171] Furthermore, in one embodiment, step 3 further includes:
[0172] Construct a one-dimensional pipeline model control equation, set coupling boundary conditions at the model inlet and outlet, including setting the one-dimensional pipeline outlet pressure and temperature as the three-dimensional CFD inlet conditions, and setting the three-dimensional CFD outlet mass flow as the one-dimensional pipeline inlet boundary condition. The one-dimensional pipeline model control equation is expressed as follows:
[0173]
[0174] Where A is the cross-sectional area of the pipe, u is the velocity of the fluid in the pipe, p is the pressure, ρ is the fluid density, f / D is the friction factor of the pipe wall, θ is the inclination angle of the pipe, E is the total energy per unit mass, and q w is the heat flux density of the tube wall, P is the circumference of the tube wall;
[0175] The control equations of the one-dimensional pipeline and the three-dimensional model are combined into a set of simultaneous equations, and the Jacobian matrix is constructed to represent the partial derivative relationship between the variables. The Newton-Raphson iteration method is used to solve the set of simultaneous equations to obtain the coupled solution.
[0176] Furthermore, in one embodiment, the process of constructing and solving the Jacobian matrix includes:
[0177] The simultaneous equations for coupling the 1D pipeline model and the 3D CFD model are constructed and expressed by the following equations:
[0178] R 1 (u 1 ,u 2 )=0
[0179] R 2 (u 1 ,u 2 )=0
[0180] Among them, R1(u1,u2)=0 represents the control equation of the one-dimensional pipeline model, R2(u1,u2)=0 represents the control equation of the three-dimensional CFD model, u1 is the variable of the one-dimensional pipeline model, including the pipeline cross-sectional area, flow velocity, and pressure, and u2 is the variable of the three-dimensional CFD model, including the velocity field, pressure field, and turbulence amount;
[0181] The Jacobian matrix construction formula is expressed as follows:
[0182]
[0183] in, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the one-dimensional variable u1, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the three-dimensional variable u2, It represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the one-dimensional variable u1, It represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the three-dimensional variable u2;
[0184] In the Newton-Raphson iterative solution process, u1 and u2 need to be updated, and the iterative formula is:
[0185]
[0186] Where n represents the number of iterations, J -1 Represents the inverse of the Jacobian matrix.
[0187] Furthermore, in one embodiment, step 4 of model parameter calibration further includes:
[0188] Define the objective function, expressed by the following equation,
[0189]
[0190] Among them, J(p) is used to minimize the model prediction value The sum of squared errors between y and the observed value, p represents the model parameter to be optimized, Σ represents the sum of i from 1 to N, N is the number of samples, yi represents the actual observed value of the i-th sample, Indicates the predicted value of the model for the i-th sample when using parameter p;
[0191] The gradient descent method is used to optimize the parameters, which is expressed by the following equation:
[0192]
[0193] Among them, p k+1 This represents the optimized parameter vector obtained after the k+1th iteration, pk represents the optimization parameter vector at the kth iteration, α is the step size parameter, also known as the learning rate, is the gradient vector of the objective function J(p) at the parameter vector p^k;
[0194] Iterate until convergence, expressed by the following equation,
[0195] ||p k+1 -p k ||≤ε
[0196] Among them, ||p^(k+1)-p^k|| is the norm of the change of the parameter vector between the k+1th iteration and the kth iteration, and ε is a preset convergence threshold.
[0197] Further, in one embodiment, the optimization using genetic algorithm in step 4 also includes:
[0198] Genetic algorithm is used to optimize the overall model and obtain the optimal parameter combination, including:
[0199] (1) Encoding: Encode the parameter vector to be optimized into a genotype
[0200] (2) Initialization: Randomly generate an initial population
[0201] (3) Fitness evaluation: Calculate the fitness function value of each individual
[0202] (4) Selection: Roulette wheel selection method is used to select individuals
[0203] (5) Crossover: Perform a crossover operation on the selected individuals
[0204] (6) Mutation: Perform mutation operation on individuals after crossover
[0205] (7) Replacement: Replace the original group with the newly generated individuals
[0206] (8) Determine the termination condition: If the termination condition is met, output the optimal solution; otherwise, return to step (3)
[0207] Among them, the fitness function is expressed by the following equation:
[0208] f(p)=-J(p)
[0209] Among them, f(p) is the defined fitness function, J(p) is the objective function, which represents the sum of squared errors between the model prediction value and the observed value.
[0210] The present invention can dynamically divide the calculation grid through the adaptive time step algorithm, better capture the complex flow field and temperature field changes inside the condenser, and use the heat transfer coefficient estimation model based on neural network to more accurately obtain various heat transfer coefficients and improve the physical authenticity of the model; the three-dimensional model is constructed to fully consider the fluid domain and solid domain, and the adaptive grid can more accurately describe the complex flow field and temperature field inside the condenser. The heat conduction and phase change model based on machine learning is introduced to better establish the heat transfer process and phase change behavior and improve the accuracy of the model; the one-dimensional-three-dimensional model coupling adopts the implicit coupling method of the Jacobian matrix, which can improve the stability and collection of the coupling calculation. The convergence of the model, combined with parallel computing and adaptive time step algorithm, can improve the computing efficiency and alleviate the huge computing burden of one-dimensional-three-dimensional model coupling; using high-fidelity test data for training and verification can improve the accuracy and reliability of the model, and the model calibration method and genetic algorithm of machine learning can automatically optimize the model parameters to obtain the optimal parameter combination; building a comprehensive visual analysis platform can monitor the operating status of the power system in real time, improve the fault diagnosis and prevention capabilities, and use data mining and machine learning technology to automatically identify key parameters and abnormal situations, providing a basis for decision support. The present invention generally improves the simulation analysis efficiency and accuracy of the condenser of the ship power system.
[0211] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0212] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0213] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0214] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0215] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0216] The above introduces the preferred embodiments of the present invention, which is intended to make the spirit of the present invention clearer and easier to understand, but is not intended to limit the present invention. All modifications, substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection outlined by the claims attached to the present invention.
Claims
1. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system, comprising: Step 1: Establish the geometric model and physical boundary conditions of the condenser of the ship power system, discretize the control equation using the adaptive time step algorithm, and use the heat transfer coefficient estimation model based on the neural network to obtain each heat transfer coefficient, dynamically divide the calculation grid, and adjust the control equation according to the change of the grid, and obtain the distribution of each parameter inside the condenser by iteratively solving the control equation; Step 2, constructing a three-dimensional geometric model according to the structure of the condenser, determining the scope of the calculation domain, the calculation domain includes the fluid domain and the solid domain, adaptively adjusting the grid density according to the changes in the flow field and the temperature field, establishing a three-dimensional control equation group, and using a turbulence model to describe the turbulence characteristics inside the condenser, constructing a heat conduction and phase change model based on machine learning, and using machine learning to model the heat transfer process and phase change behavior; Step 3, the implicit coupling method of Jacobian matrix is used to couple the one-dimensional and three-dimensional models of the condenser of the ship power system, and the time step is automatically adjusted according to the changes in the simulation process based on parallel computing and adaptive time step algorithm; Step 4: Use high-fidelity test data to train and verify the joint model, use machine learning model calibration methods to automatically optimize model parameters, and optimize the overall model based on genetic algorithms to obtain the optimal parameter combination; Step 5: Build a comprehensive visualization analysis platform, use the Web-based visualization analysis platform to present temperature, pressure, and flow field parameters, use data mining and machine learning technology to automatically identify key parameters and abnormal conditions, and monitor the operation status of the power system in real time based on the real-time monitoring function of virtual instruments; Step 2 further includes: The three-dimensional geometric model of the condenser is represented by a parametric equation, which is expressed by the following equation: x=f1(u,v), y=f2(u,v), z=f3(u,v) where x, y, z represent the three-dimensional space coordinates of the point in the geometric model, f1(u,v), f2(u,v), f3(u,v) represent the functions of the independent variables u and v, which jointly determine the coordinate value of the point in the three-dimensional space, and u and v are parameterized independent variables; The computational domain is represented by a three-dimensional coordinate system, which is expressed by the following equation: Ω={(x,y,z)xl≤x≤x r ,y b ≤y≤y t , z f ≤z≤z r }Where Ω represents a three-dimensional geometric domain, (x, y, z) is the coordinate of a point in a three-dimensional Cartesian coordinate system, x1, x r Indicates the lower and upper bounds of the x coordinate, y b ,y t Indicates the lower and upper bounds of the y coordinate, z f , z r Indicates the lower and upper bounds of the z coordinate; The three-dimensional control equations are expressed using mass, momentum and energy conservation equations, Where ρ represents the density of the fluid, represents the velocity vector of the fluid, represents the rate of change of density over time, represents the flux divergence of density and velocity, represents the momentum of the fluid, represents the flux divergence of momentum, represents the momentum source generated by pressure, represents the momentum source generated by the viscous force, ρE represents the total energy of the fluid, represents the flux divergence of the total energy, represents the energy source generated by heat conduction, The energy source representing the work produced by viscous stress; The Smagorinsky subgrid stress model is used to capture large-scale turbulent vortices, and the subgrid model is used to describe small-scale turbulence. The Smagorinsky subgrid stress model is expressed as follows: Among them, τ ij SGS represents the subgrid scale (SGS) stress tensor, ν t represents the turbulent viscosity coefficient, represents the filtered strain rate tensor, Cs is a constant, Δ is the grid size, is the modulus of the filtered strain rate tensor, representing the strain rate intensity of large-scale flow; The thermal conductivity is estimated using a neural network based model and is expressed by the following equation, k=f(T,ρ,c p ,material properties) Where k is the thermal conductivity, T is the temperature, ρ is the density of the fluid, and c p is the specific heat capacity, and material properties represent other properties, including crystal structure and chemical composition; The phase change process is estimated using a machine learning model and is expressed by the following equation, Γ=f(T,ρ,material properties) Among them, Γ represents the characteristic parameters of the phase change process, including melting point, boiling point, and latent heat of phase change, T is the temperature, ρ is the density of the fluid, and material properties represent other properties, including crystal structure and chemical composition; The control equations are discretized using the finite volume method and solved using adaptive meshing techniques, including: The convection term is discretized in TVD format and expressed by the following equation: in, The differential form of the convection term is the convection flux ρφui in the control volume with respect to the spatial coordinate x i The partial derivative of V P is the volume of the control volume, is the mass flow rate through boundary f, φ f is the physical quantity value passing through the boundary f, φ P is the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point of the flow direction, ψ(θ f ) is a vector function, θ f is the gradient ratio; The diffusion term is centrally differentiated and is expressed by the following equation, in, represents the differential form of the diffusion term, V P is the volume of the control volume, ∑ f represents the sum of all faces f of the control volume, Γ f is the diffusion coefficient through the surface f, φ P is the physical value of the center grid point P of the current control volume, φ W is the physical value of the upstream grid point W of the flow direction, d PW is the distance between grid points P and W, A f It's the area.
2. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system according to claim 1, characterized in that: Step 1 further comprises: The geometric model and physical boundary conditions of the condenser of the ship power system are established, including that the geometric model is in the form of a one-dimensional pipeline and is expressed by the following equation: Where A(x,t) represents the cross-sectional area of the pipe at position x as time t changes. represents the partial derivative of the pipe cross-sectional area with respect to time, represents the rate of change of the pipe cross-sectional area with time, u represents the flow rate of the fluid in the pipe, It represents the rate of change of mass flow in space and the mass flow gradient along the length of the pipeline; The physical boundary conditions include inlet and outlet temperature, pressure, and flow rate, which are expressed by the following equations: T(0, t) = T0(t), p(L, t) = p L (t), Among them, T(0, t) represents the change of the temperature of the fluid at the pipeline inlet with time t, T0(t) represents the time function of the fluid temperature at the pipeline inlet, that is, the change of the inlet temperature with time, p(L, t) represents the change of the fluid pressure at the pipeline outlet with time t, p L (t) represents the time function of the fluid pressure at the pipeline outlet, that is, the change of the outlet pressure with time, It represents the change of the mass flow rate of the fluid at the pipe inlet with time t, It represents the time function of the fluid mass flow rate at the pipeline inlet, that is, the change of the inlet mass flow rate with time; The governing equations are discretized using an implicit difference scheme, where the time step is adaptively adjusted according to the following criterion, Among them, Δt represents the time change of the condensation process, that is, the time interval of condensation, C is the safety factor, a is the speed of sound, k is the heat transfer coefficient, u represents the absolute flow rate of the fluid, Δx represents the distance on the pipeline length, ρ represents the density of the fluid, and c p It represents the constant pressure specific heat capacity of the fluid; The thermal conductivity coefficient is obtained by using a neural network-based thermal conductivity estimation model, which is expressed by the following equation: k=f(T,ρ,c p ,material properties) Where k represents the thermal conductivity, which is the target parameter to be estimated, T represents the temperature, ρ represents the density of the fluid, and c p It represents the constant pressure specific heat capacity of the material, and material properties represent other parameters related to the material properties, including crystal structure and chemical composition; The dynamic grid technology is used to divide the computational grid, where the grid point distribution meets the following adaptive criteria: Among them, xi represents the coordinate position of a grid point in the calculation grid, t represents time, represents the rate of change of the grid point position over time, λ represents the weight coefficient, Represents the gradient of the temperature field in space; The governing equations are solved using a double algebraic method. Among them, T i (n+1) represents the temperature value of the i-th grid point at time n+1. i represents a spatial discrete point, n represents a time layer, and T i n represents the temperature value of the ith grid point at time n, Δt represents the time variation of the condensation process, ρ represents the density of the fluid, c p represents the specific heat capacity at constant pressure, Δx i represents the spatial step size of the i-th grid point, k i+1 / 2 represents the thermal conductivity of the i+1 / 2th mesh surface, Δx i+1 / 2 represents the spatial step size of the i+1 / 2th grid surface, k i-1 / 2 represents the thermal conductivity of the i-1 / 2th mesh surface, Δx i-1 / 2 Represents the spatial step size of the i-1 / 2th mesh face.
3. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system according to claim 1, characterized in that: The method further includes: adaptively adjusting the grid density based on the octree algorithm, including initializing the root node to include the entire calculation domain, evaluating the error index of each unit according to the flow field and the temperature field, and refining the unit with a large error until the accuracy requirement is met, and the topological relationship of the grid unit is represented by an adjacency matrix.
4. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system according to claim 1, characterized in that: Step 3 further includes: Construct a one-dimensional pipeline model control equation, set coupling boundary conditions at the model inlet and outlet, including setting the one-dimensional pipeline outlet pressure and temperature as the three-dimensional CFD inlet conditions, and setting the three-dimensional CFD outlet mass flow as the one-dimensional pipeline inlet boundary condition. The one-dimensional pipeline model control equation is expressed as follows: Where A is the cross-sectional area of the pipe, u is the velocity of the fluid in the pipe, pre is the pressure, ρ is the fluid density, f / D is the friction factor of the pipe wall, θ is the inclination angle of the pipe, E is the total energy per unit mass, and q w is the heat flux density of the tube wall, Per is the circumference of the tube wall; The control equations of the one-dimensional pipeline and the three-dimensional model are combined into a set of simultaneous equations, and the Jacobian matrix is constructed to represent the partial derivative relationship between the variables. The Newton-Raphson iteration method is used to solve the set of simultaneous equations to obtain the coupled solution.
5. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system as claimed in claim 4, characterized in that: The construction and solution process of the Jacobian matrix includes: The simultaneous equations for coupling the 1D pipeline model and the 3D CFD model are constructed and expressed by the following equations: Among them, R1(u1,u2)=0 represents the control equation of the one-dimensional pipeline model, R2(u1,u2)=0 represents the control equation of the three-dimensional CFD model, u1 is the variable of the one-dimensional pipeline model, including the pipeline cross-sectional area, flow velocity, and pressure, and u2 is the variable of the three-dimensional CFD model, including the velocity field, pressure field, and turbulence amount; The Jacobian matrix construction formula is expressed as follows: in, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the one-dimensional variable u1, represents the partial derivative of the one-dimensional pipeline model control equation R1 with respect to the three-dimensional variable u2, represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the one-dimensional variable u1, It represents the partial derivative of the three-dimensional CFD model control equation R2 with respect to the three-dimensional variable u2; In the Newton-Raphson iterative solution process, u1 and u2 need to be updated, and the iterative formula is: Where n represents the number of iterations, J -1 Represents the inverse of the Jacobian matrix.
6. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system according to claim 1, characterized in that: Step 4: Model parameter calibration further includes, Define the objective function, expressed by the following equation, Among them, J(p) is used to minimize the model prediction value The sum of squared errors between y and the observed value, p represents the model parameter to be optimized, Σ represents the sum of i from 1 to N, N is the number of samples, yi represents the actual observed value of the i-th sample, Indicates the predicted value of the model for the i-th sample when using parameter p; The gradient descent method is used to optimize the parameters, which is expressed by the following equation: Among them, p k+1 This represents the optimized parameter vector obtained after the k+1th iteration, p k represents the optimization parameter vector at the kth iteration, α is the step size parameter, also known as the learning rate, is the objective function J(p) in the parameter vector p k The gradient vector at ; Iterate until convergence, expressed by the following equation, ||p k+1 -p k |≤εwhere||p (k+1) -p k || is the norm of the change in the parameter vector between the k+1th iteration and the kth iteration, and ε is a preset convergence threshold.
7. A one-dimensional and three-dimensional joint simulation method for a condenser of a ship power system according to claim 1, characterized in that: The genetic algorithm optimization in step 4 further includes: Genetic algorithm is used to optimize the overall model and obtain the optimal parameter combination, including: (1) Encoding: Encode the parameter vector to be optimized into a genotype (2) Initialization: Randomly generate an initial population (3) Fitness evaluation: Calculate the fitness function value of each individual (4) Selection: Roulette wheel selection method is used to select individuals (5) Crossover: Perform a crossover operation on the selected individuals (6) Mutation: Perform mutation operation on individuals after crossover (7) Replacement: Replace the original population with newly generated individuals (8) Determine the termination condition: If the termination condition is met, output the optimal solution; otherwise, return to step (3) Among them, the fitness function is expressed by the following equation, f(p)=-J(p) where f(p) is the defined fitness function and J(p) is the objective function, which represents the sum of squared errors between the model prediction value and the observed value.
8. A one-dimensional and three-dimensional joint simulation system for a condenser of a ship power system, comprising: at least one processor; as well as at least one memory including computer program code, The at least one memory and the computer program code are configured to, together with the at least one processor, enable the system to execute the method according to any one of claims 1 to 7.
