Water resource allocation engineering simulation real-time rendering method based on digital twinning
Through the real-time network monitoring and load analysis of the digital twin platform, the rendering resource configuration and task allocation are dynamically adjusted, which solves the problems of rendering efficiency and user experience in the existing technology, and achieves high-quality water resources configuration simulation rendering.
Patent Information
- Application Number
- CN202410779703.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing technologies often face the problem of insufficient or over-allocation of resources when processing real-time rendering in large-scale and complex data environments, resulting in unsatisfactory system operating efficiency and response speed, and failing to fully utilize user behavior data to optimize the rendering process, affecting users. Experience and decision support.
Adopt the real-time rendering method of water resources configuration engineering simulation based on digital twins, collect data of rendering nodes and user equipment through real-time network monitoring, perform load analysis and resource prediction, dynamically adjust resource configuration and rendering task allocation, match user needs, and generate adaptive Level of detail adjustment table to optimize rendering quality and responsiveness.
It realizes real-time adjustment of resource allocation, improves rendering efficiency and quality, ensures the personalization and high quality of rendering output, improves the flexibility of resource allocation and rendering quality control, and provides higher practicality and efficiency for water resource allocation engineering simulation. Breadth of application.
Smart Images

Figure CN118799121A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of real-time rendering technology, and in particular to a real-time rendering method for water resource allocation engineering simulation based on digital twins. Background Art
[0002] Real-time rendering is a computer graphics technology that focuses on generating images quickly for immediate display, allowing users to interact with the scene without feeling any delay. It is particularly important in video games, virtual reality, augmented reality, and simulation and visualization software. The core of real-time rendering is to balance rendering speed and image quality to ensure a smooth and visually appealing experience. In addition, real-time rendering also involves a variety of complex calculations such as ray tracing, occlusion processing, mapping, dynamic lighting and shadow calculations, aiming to reproduce the visual effects of the physical world as realistically as possible.
[0003] The real-time rendering method for water resource allocation engineering simulation refers to the use of real-time rendering technology to simulate and visualize various engineering scenarios of water resource allocation, which can help engineers and decision makers intuitively understand the flow, distribution and possible environmental impact of water resources. By simulating different water resource management and allocation schemes, it supports real-time adjustment and optimization, thus playing an important role in planning and emergency management. It has wide practicality and has vital applications in many aspects such as urban planning, irrigation system design, and flood risk assessment.
[0004] Existing technologies often face the problem of insufficient or over-allocation of resources when dealing with real-time rendering in large-scale and complex data environments, resulting in unsatisfactory system operation efficiency and response speed. Static resource configuration methods lack sufficient flexibility and are difficult to adapt to rapid changes in user behavior and network environment. Especially in large-scale user interaction scenarios, the system performance often cannot meet the needs of high-quality rendering. In addition, existing technologies often fail to make full use of user behavior data to optimize the rendering process, which may cause the rendering results to not match the actual needs of users, affecting the user experience and the intuitiveness of operations. For example, in the simulation rendering of water resource management, the failure to reflect the specific water flow dynamics or distribution changes that users are concerned about in real time may lead to inaccurate decision support, thereby affecting the efficiency and safety of the entire project. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings existing in the prior art and propose a real-time rendering method for water resources allocation engineering simulation based on digital twins.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical solution: a real-time rendering method for water resources allocation engineering simulation based on digital twins, comprising the following steps:
[0007] S1: Based on the digital twin platform, the current load capacity data, network status data and user device performance data of all rendering nodes are collected through real-time network monitoring, and the data is summarized. Based on the summarized data, real-time load analysis is performed to determine the resource allocation requirements of all nodes and generate load prediction analysis results;
[0008] S2: Based on the load prediction analysis results, adjust the resource quota and optimize the network bandwidth allocation, adjust the resource configuration of all rendering nodes on the digital twin platform based on the adjustment results, update the resource allocation strategy in real time, and generate a dynamic resource configuration table;
[0009] S3: Based on the user's viewpoint movement and interaction behavior data, collect and analyze the detail level requirements of the visual focus area, adjust the objects in the scene one by one, adjust the detail level and rendering accuracy of each object to match the user's needs, and generate an adaptive detail level adjustment table;
[0010] S4: According to the dynamic resource configuration table and the adaptive detail level adjustment table, rendering tasks are assigned to all nodes, data consistency and rendering task execution efficiency are simultaneously monitored, the real-time rendering quality and system response speed of the water resource configuration engineering simulation are optimized, and the final rendering results are output.
[0011] As a further solution of the present invention, the steps of obtaining the load prediction analysis result are:
[0012] S111: Collect load data L, network status data N, and user device performance data U of each rendering node of the digital twin platform through real-time network monitoring;
[0013] S112: Summarize the load capacity data L, network status data N and user equipment performance data U, and apply the formula:
[0014]
[0015] Among them, α, β, γ are weight coefficients, which respectively adjust the influence of load capacity data, network status data and user equipment performance data in the summary data to generate the summarized data set D;
[0016] S113: Perform real-time load analysis on the summary data set D and calculate the weighted deviation average.
[0017]
[0018] Where S is the load imbalance score, D[i] is the value of the i-th data point in the dataset D, is the mean value of the data set D, w iis the weight, reflecting the importance of the difference data point, p is the screen index, used to adjust the sensitivity of the deviation, and n is the total number of data points to generate real-time analysis results;
[0019] S114: Based on the real-time analysis results, calculate the water resource allocation engineering simulation resource allocation requirements and future load forecasts for all nodes.
[0020]
[0021] Among them, S j is the load imbalance score of resource category j, λ j is the relative importance weight of resource category j, m is the total number of resource types, κ j is a tuning parameter used to control the load imbalance fraction S j The impact intensity on the prediction result, e is a constant, generating the load prediction analysis result F.
[0022] As a further solution of the present invention, the resource quota adjustment steps are:
[0023] S211: extracting key performance indicators P from the load forecast analysis result F, and generating a forecast performance indicator data set P;
[0024] S212: Calculate the difference between the current water resources allocation engineering simulation real-time rendering quota and the predicted demand according to the prediction performance indicator data set P,
[0025] ΔP i =P predicted,i -P current,i
[0026] Among them, P predicted,i represents the predicted resource quota, P current,i Represents the current resource quota, and obtains the demand difference data set ΔP;
[0027] S213: Adjust resource quota according to the demand difference data set ΔP, and the adjustment formula is:
[0028]
[0029] Among them, x, y and z are adjustment coefficients. x is used to enhance the adjustment intensity, y is used to ensure basic adjustment, and z is used for smooth adjustment. The new resource quota P is obtained. new .
[0030] As a further solution of the present invention, the steps of obtaining the dynamic resource configuration table are:
[0031] S221: The new resource quota P newApply it to the digital twin platform, update the resource configuration of each rendering node, and obtain the updated node configuration C updated ;
[0032] S222: Based on the updated node configuration C updated , calculate the contribution ratio of each node to the total resource demand and adjust the resource allocation strategy,
[0033]
[0034] Among them, C updated,i is the updated node configuration, n is the total number of nodes, is the total node resource demand, λ is the adjustment factor, affecting the sensitivity of configuration differences, and the resource allocation strategy S is obtained. new ;
[0035] S223: Apply the updated resource allocation strategy S new and node configuration C updated , combined with the formula,
[0036]
[0037] Among them, T dynamic is the total amount of resource configuration, θ and φ are adjustment parameters used to adjust the weights of configuration and strategy, and output the dynamic resource configuration table.
[0038] As a further solution of the present invention, the steps of analyzing the detail level requirements of the visual focus area are:
[0039] S311: Collect viewpoint tracking and interaction data from the user device to obtain a user behavior dataset B;
[0040] S312: Based on the user behavior data set B, statistical analysis is performed to determine the user's visual focus area and analyze the detail level requirements, using the formula:
[0041]
[0042] Among them, D i represents the average value, b ij represents the user's viewpoint data in the jth interaction, τ j is the viewpoint duration threshold, ω j is the weight of the viewpoint data, λ is the decay constant, which controls the influence of the difference between the viewpoint data and the time threshold, and m represents the number of interactions. The result of the detail level requirement analysis of the visual focus area is obtained;
[0043] S313: Determine the rendering detail level required for each visual focus area according to the detail level requirement analysis result of the visual focus area, and obtain detail level requirement data E.
[0044] As a further solution of the present invention, the step of obtaining the adaptive detail level adjustment table is:
[0045] S321: adjusting the detail level of each object one by one according to the detail level requirement data E to ensure that each item matches the user requirement, and obtaining adjusted object detail data C;
[0046] S322: Calculate the rendering accuracy of each object according to the adjusted object detail data C to ensure that each detail level meets the user's requirements, and apply the formula:
[0047]
[0048] Among them, R i Represents the rendering accuracy data of object i, c ik is the adjusted detail data of object i, k represents the detail level data point, n represents the total number of data points, and e k is the weight in the detail level requirement data E, which is set according to the detail requirement analysis results of the visual focus area to obtain the final rendering accuracy data R;
[0049] S323: In combination with the final rendering accuracy data R and the scene requirements, the rendering accuracy of each object in the real-time rendering process of the water resources allocation engineering simulation is adjusted.
[0050]
[0051] Among them, S f It is a scene factor that reflects the scene requirements, including lighting intensity, visual complexity, or the frequency of user interaction, and the adaptive detail level adjustment table T is obtained.
[0052] As a further solution of the present invention, the steps of allocating the rendering tasks are:
[0053] S411: Analyze the dynamic resource configuration table and use the formula
[0054]
[0055] Compute the total resource capacity S of node i node,i , where t j,i is the resource item of node i in the configuration table, m is the number of resource types, and the node resource overview S is obtained. node ;
[0056] S412: Calculate the resource requirements of each task in the real-time rendering process of water resource allocation engineering simulation according to the adaptive detail level adjustment table T.
[0057]
[0058] Among them, d l,k is the detail requirement of the lth object of task k, v k is the expected visual impact coefficient of the target task k, p is the number of objects, and the task resource requirement analysis result R is obtained. task ;
[0059] S413: Combine the node resource overview S node And the task resource requirement analysis results R task , using resource allocation algorithm to allocate tasks to all nodes,
[0060]
[0061] Among them, α k is the priority coefficient of task k, n is the total number of tasks, m is the number of resource types, and β is the adjustment factor used to balance resource allocation, resulting in the task allocation table A.
[0062] As a further solution of the present invention, the steps of obtaining the final rendering result are:
[0063] S421: Perform real-time data consistency monitoring according to the task allocation table, using the formula:
[0064]
[0065] Among them, C report,i represents the data consistency score of node i, o n,i is the monitoring data on node i, p n,i is the expected data, γ n is the importance weight of data item n, N represents the number of data items, and the consistency monitoring record C is obtained report ;
[0066] S422: Collect and analyze the execution logs of the digital twin platform, using the formula,
[0067]
[0068] Among them, E task,i represents the task execution efficiency on node i, t k,i is the execution time of task k on node i, η k is the efficiency weight of task k, ξ is a small stability constant to avoid division by zero errors, K is the number of tasks, and the task execution efficiency analysis result E is obtained. task ;
[0069] S423: Record C according to the consistency monitoring report And the task execution efficiency analysis results Etask , adjust resource allocation, use formula,
[0070]
[0071] Among them, F final It represents the score of final rendering effect and response speed. g and h are adjustment coefficients, which weigh rendering efficiency and data consistency. I represents the number of nodes, and outputs the final rendering result.
[0072] Compared with the prior art, the advantages and positive effects of the present invention are:
[0073] In the present invention, by real-time monitoring and analysis of the load capacity, network status and user device performance of all rendering nodes, resource allocation can be adjusted instantly, thereby more accurately matching resources with needs, avoiding resource waste and improving rendering efficiency. By collecting user viewpoint movement and interaction behavior data, rendering objects are adjusted one by one to ensure the personalization and high quality of rendering output. The high resource allocation flexibility and rendering quality control bring higher practicality and application breadth to water resource allocation engineering simulation, especially real-time decision support in urban planning and emergency management. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a schematic diagram of the workflow of the present invention;
[0075] Figure 2 A flow chart for obtaining load prediction analysis results of the present invention;
[0076] Figure 3 It is a flow chart for adjusting resource quota of the present invention;
[0077] Figure 4 A flowchart of obtaining a dynamic resource configuration table according to the present invention;
[0078] Figure 5 The flowchart of analyzing the detail level requirement of the visual focus area of the present invention;
[0079] Figure 6 A flowchart of obtaining the adaptive detail level adjustment table of the present invention;
[0080] Figure 7 A flowchart of the distribution of rendering tasks of the present invention;
[0081] Figure 8 This is a flow chart for obtaining the final rendering result of the present invention. DETAILED DESCRIPTION
[0082] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0083] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0084] Embodiment 1
[0085] See also Figure 1 The present invention provides a technical solution: a real-time rendering method for water resource allocation engineering simulation based on digital twins, comprising the following steps:
[0086] S1: Based on the digital twin platform, the current load capacity data, network status data and user device performance data of all rendering nodes are collected through real-time network monitoring, and the data is summarized. Based on the summarized data, real-time load analysis is performed to determine the resource allocation requirements of all nodes and generate load prediction analysis results;
[0087] S2: Based on the load forecast analysis results, adjust resource quotas and optimize network bandwidth allocation. Combined with the adjustment results, adjust the resource configuration of all rendering nodes on the digital twin platform, update the resource allocation strategy in real time, and generate a dynamic resource configuration table.
[0088] S3: Based on the user's viewpoint movement and interaction behavior data, collect and analyze the detail level requirements of the visual focus area, adjust the objects in the scene one by one, adjust the detail level and rendering accuracy of each object to match the user's needs, and generate an adaptive detail level adjustment table;
[0089] S4: According to the dynamic resource configuration table and the adaptive detail level adjustment table, rendering tasks are assigned to all nodes, data consistency and rendering task execution efficiency are monitored simultaneously, the real-time rendering quality and system response speed of water resource configuration engineering simulation are optimized, and the final rendering results are output.
[0090] The load prediction analysis results include platform performance utilization, network delay index and device response level. The dynamic resource configuration table includes node allocation quantity, network bandwidth configuration and performance optimization measures. The adaptive detail level adjustment table includes detail adjustment range, precision adjustment parameters and user demand adaptability. The final rendering results include rendering quality evaluation results, system response speed and data consistency.
[0091] See also Figure 2 , the steps to obtain the load forecast analysis results are:
[0092] S111: Collect load data L, network status data N, and user device performance data U of each rendering node of the digital twin platform through real-time network monitoring;
[0093] S112: Summarize the load capacity data L, the network status data N and the user equipment performance data U, and apply the formula:
[0094]
[0095] Among them, α, β, γ are weight coefficients, which respectively adjust the influence of load capacity data, network status data and user equipment performance data in the summary data to generate the summarized data set D;
[0096] S113: Perform real-time load analysis on the summary data set D and calculate the weighted deviation average.
[0097]
[0098] Where S is the load imbalance score, D[i] is the value of the i-th data point in the dataset D, is the mean value of the data set D, w i is the weight, reflecting the importance of the difference data point, p is the screen index, used to adjust the sensitivity of the deviation, and n is the total number of data points to generate real-time analysis results;
[0099] S114: Based on the real-time analysis results, calculate the water resource allocation engineering simulation resource allocation requirements and future load forecasts for all nodes.
[0100]
[0101] Among them, S j is the load imbalance score of resource category j, λ j is the relative importance weight of resource category j, m is the total number of resource types, κ j is a tuning parameter used to control the load imbalance fraction S j The impact intensity on the prediction result, e is a constant, generating the load prediction analysis result F.
[0102] Assumptions:
[0103] L = 70 (load capacity);
[0104] N=50 (network status);
[0105] U = 30 (user equipment performance);
[0106] At the same time, set α = 0.5, β = 0.3, γ = 0.2;
[0107] Calculate the numerator:
[0108] α·L+β·N+γ·U=0.5·70+0.3·50+0.2·30=35+15+6=56
[0109] Calculate the denominator:
[0110] α+β+γ=0.5+0.3+0.2=1.0
[0111] Calculate D:
[0112]
[0113] The value 56 represents the average load capacity after comprehensively considering various types of data. It can be used to compare the load conditions of different nodes and help decision makers optimize resource allocation.
[0114] Assumptions:
[0115] Data points: D = [56, 60, 52];
[0116] average value:
[0117] Weight: w = [1, 1, 1];
[0118] Power index: p = 2;
[0119] calculate
[0120] [0 2 , 4 2 , (-4) 2 ] = [0, 16, 16]
[0121] Compute the weighted sum:
[0122]
[0123] Calculate S:
[0124]
[0125] The value 10.67 represents a measure of the node load imbalance. A larger value indicates a more severe imbalance, which helps identify nodes that need to be adjusted first.
[0126] If S = [10.67], λ = [1], κ = [0.1], then,
[0127] Take e as 2.71, and calculate
[0128] e -0.1·10.67 ≈e -1.067 ≈0.345
[0129] Calculate F:
[0130]
[0131] The value 0.345 indicates the predicted possibility of resource demand. The closer it is to 1, the more likely it is that additional resources will be needed, which helps in resource allocation and planning and ensures the efficient operation of the system.
[0132] See also Figure 3 , the resource quota adjustment steps are:
[0133] S211: extracting key performance indicators P from the load prediction analysis result F, and generating a prediction performance indicator data set P;
[0134] S212: Calculate the difference between the current water resources allocation engineering simulation real-time rendering quota and the predicted demand based on the predicted performance indicator data set P
[0135] ΔP i =P predicted,i -P current,i
[0136] Among them, P predicted,i represents the predicted resource quota, P current,i Represents the current resource quota, and obtains the demand difference data set ΔP;
[0137] S213: Adjust resource quota according to the demand difference data set ΔP. The adjustment formula is:
[0138]
[0139] Among them, x, y and z are adjustment coefficients. x is used to enhance the adjustment intensity, y is used to ensure basic adjustment, and z is used for smooth adjustment. The new resource quota P is obtained. new .
[0140] Assume that for a node i:
[0141] P current,i =100Mbps;
[0142] P predicted,i =150Mbps;
[0143] x = 0.5;
[0144] y=10;
[0145] z=5;
[0146] Calculate the difference:
[0147] ΔP i =150-100=50Mbps
[0148] Calculate the new quota:
[0149]
[0150] The newly calculated quota P new,i =100.636Mbps indicates that the adjusted resource quota has increased slightly, reflecting a slight adjustment based on the current configuration according to the predicted needs.
[0151] See also Figure 4 , the steps to obtain the dynamic resource configuration table are:
[0152] S221: Set the new resource quota P new Apply it to the digital twin platform, update the resource configuration of each rendering node, and obtain the updated node configuration C updated ;
[0153] S222: Based on the updated node configuration C updated , calculate the contribution ratio of each node to the total resource demand and adjust the resource allocation strategy,
[0154]
[0155] Among them, C updated,i is the updated node configuration, n is the total number of nodes, is the total node resource demand, λ is the adjustment factor, affecting the sensitivity of configuration differences, and the resource allocation strategy S is obtained. new ;
[0156] S223: Apply the updated resource allocation strategy S new and node configuration C updated , combined with the formula,
[0157]
[0158] Among them, T dynamic is the total amount of resource configuration, θ and φ are adjustment parameters used to adjust the weights of configuration and strategy, and output the dynamic resource configuration table.
[0159] Assume there are three nodes with updated configuration C updated =[100, 120, 80], λ = 0.1, then,
[0160] Take e as 2.71 and calculate the index weight:
[0161] e 0.1×100 =21364
[0162] e 0.1×120 =156903
[0163] e 0.1×80 =2909
[0164] Normalization:
[0165]
[0166] Similarly, we can get the S of other nodes. new,2 ≈0.866 and S new,3 ≈0.016.
[0167] S new,1 ≈0.118 means that the first node accounts for 11.8% of the total resource quota, which shows how resources are distributed among nodes according to the configuration ratio.
[0168] Assume that the updated configuration and resource allocation strategies of three nodes are known:
[0169] C updated = [100, 120, 80];
[0170] S new = [0.118, 0.866, 0.016];
[0171] Assume θ = 2, φ = 1, then,
[0172] Calculate the dynamic configuration contribution of each node:
[0173]
[0174] The total dynamic resource configuration is accumulated:
[0175] T dynamic =1180+12470.4+102.4=13752.8
[0176] The final calculated T dynamic=13752.8 represents the weighted sum of all nodes’ updated configurations and resource allocation strategies, which represents the total resource allocation of all nodes after considering their configurations and strategy weights. It helps to dynamically adjust and optimize the entire rendering network and ensure the reasonable allocation of resources among all nodes.
[0177] See also Figure 5 ,The analysis steps for the detail level requirements of the visual focus area are:
[0178] S311: Collect viewpoint tracking and interaction data from the user device to obtain a user behavior dataset B;
[0179] S312: Based on the user behavior data set B, statistical analysis is performed to determine the user's visual focus area and analyze the detail level requirements, using the formula,
[0180]
[0181] Among them, D i represents the average value, b ij represents the user's viewpoint data in the jth interaction, τ j is the viewpoint duration threshold, ω j is the weight of the viewpoint data, λ is the decay constant, which controls the influence of the difference between the viewpoint data and the time threshold, and m represents the number of interactions. The result of the detail level requirement analysis of the visual focus area is obtained;
[0182] S313: Determine the rendering detail level required for each visual focus area according to the detail level requirement analysis result of the visual focus area, and obtain detail level requirement data E.
[0183] Assume there are three interactions, that is, m = 3;
[0184] b i1 =0.9, b i2 =0.7, b i3 =0.4
[0185] τ1=1.0, τ2=0.8, τ3=0.5
[0186] ω1=0.3, ω2=0.5, ω3=0.2
[0187] If λ=2.0, then
[0188] For each j, calculate
[0189] When j=1:
[0190] e -2.0·|0.9-1.0| =e -0.2 ≈0.8187
[0191] When j = 2:
[0192] e -2.0·|0.7-0.8| =e -0.2 ≈0.8187
[0193] When j=3:
[0194] e -2.0·|0.4-0.5| =e -0.2 ≈0.8187
[0195] Calculate the cumulative weighted value:
[0196] ω1·0.8187=0.2456
[0197] ω2·0.8187=0.4094
[0198] ω3·0.8187=0.1637
[0199] Calculate D i :
[0200]
[0201] D i =0.2729 represents the average value of the detail level requirement analysis results of the visual focus area, reflecting the average visual focus requirement based on user viewpoint and interaction data. The lower value indicates that the detail requirement in these viewpoint areas is not extremely high, and the rendering detail level of the corresponding area can be adjusted according to this result.
[0202] See also Figure 6 , the steps to obtain the adaptive detail level adjustment table are:
[0203] S321: According to the detail level requirement data E, adjust the detail level of each object one by one to ensure that each item matches the user requirement, and obtain the adjusted object detail data C;
[0204] S322: Calculate the rendering accuracy of each object based on the adjusted object detail data C to ensure that each detail level matches the user's needs, and apply the formula,
[0205]
[0206] Among them, R i Represents the rendering accuracy data of object i, c ik is the adjusted detail data of object i, k represents the detail level data point, n represents the total number of data points, and e k is the weight in the detail level requirement data E, which is set according to the detail requirement analysis results of the visual focus area to obtain the final rendering accuracy data R;
[0207] S323: Combine the final rendering accuracy data R with the scene requirements to adjust the rendering accuracy of each object in the real-time rendering process of the water resources allocation engineering simulation.
[0208]
[0209] Among them, S f It is a scene factor that reflects the scene requirements, including lighting intensity, visual complexity, or the frequency of user interaction, and the adaptive detail level adjustment table T is obtained.
[0210] Assume that for an object i, there are three levels of detail data:
[0211] c i1 =100, c i2 =120, c i3 =80
[0212] e1=0.3, e2=0.5, e3=0.2
[0213] Calculate the molecular part
[0214] 100 2 0.3 = 3000
[0215] 120 2 0.5 = 7200
[0216] 80 2 0.2 = 1280
[0217] Calculate the denominator
[0218]
[0219] Calculate R i :
[0220]
[0221] R i =107.15 represents the rendering accuracy of object i, showing the average detail level of the object after considering the detail requirement weight. A higher value indicates that the object requires a higher level of detail to match the user's visual needs, which helps to prioritize resources to the visual focus area during the rendering process to improve the overall visual effect.
[0222] Assuming there are three objects in the scene, the final rendering accuracy is:
[0223] R1=107.14 - Object 1, an element near the visual focus.
[0224] R2=80 - Object 2, farther away, but still important.
[0225] R3=50 - Object 3, in the background, not very noticeable.
[0226] Set S f =1.5, then calculate the adjusted level of detail for each object:
[0227] Adjust detail level of Object 1:
[0228]
[0229] Adjust Level of Detail for Object 2:
[0230]
[0231] Adjusted detail level for object 3:
[0232]
[0233] It turns out that T = [72.43, 53.33, 33.33] is presented in a list format.
[0234] The calculated T i The values indicate that the detail level of each object is adjusted according to the scene requirements. Object 1, as an element near the visual focus, maintains a high level of detail even under the influence of scene factors. The detail levels of Objects 2 and 3 are also adjusted accordingly to ensure efficient use of resources while maintaining the coordination of the overall visual effect.
[0235] Dynamic adjustment helps ensure that under different scene conditions, the system can effectively respond to changes and optimize rendering performance while providing high-quality images that meet the user's visual needs.
[0236] See also Figure 7 , the steps for allocating rendering tasks are:
[0237] S411: Analyze dynamic resource allocation table, using formula
[0238]
[0239] Compute the total resource capacity S of node i node,i , where t j,i is the resource item of node i in the configuration table, m is the number of resource types, and the node resource overview S is obtained. node ;
[0240] S412: Calculate the resource requirements of each task in the real-time rendering process of the water resources allocation engineering simulation according to the adaptive detail level adjustment table T.
[0241]
[0242] Among them, d l,k is the detail requirement of the lth object of task k, v k is the expected visual impact coefficient of the target task k, p is the number of objects, and the task resource requirement analysis result R is obtained. task ;
[0243] S413: Combined with node resource overview S node And the task resource requirement analysis results R task , using resource allocation algorithm to allocate tasks to all nodes,
[0244]
[0245] Among them, α k is the priority coefficient of task k, n is the total number of tasks, m is the number of resource types, and β is the adjustment factor used to balance resource allocation, resulting in the task allocation table A.
[0246] Assume that node i has three types of resources (CPU, GPU, Memory), and the amount of each resource is as follows:
[0247] CPU: 32 cores;
[0248] GPU: 8 units;
[0249] Memory: 64GB;
[0250] but,
[0251] S node,i =32+8+64=104
[0252] S node,i =104 means that the total resource amount of node i is 104 units, which is a key indicator that determines how many and what types of tasks the node can handle.
[0253] Assume that task k includes the following detailed requirements for three objects:
[0254] Subject 1: 20 units;
[0255] Subject 2: 30 units;
[0256] Subject 3: 50 units;
[0257] Set the expected visual impact coefficient v k =10, then,
[0258]
[0259] Rtask,k =10 means that task k requires 10 units of resources to meet its detailed requirements, which is a key factor to be considered when allocating resources.
[0260] Assume that there are three tasks on node i, and the resource requirements and priority coefficients of each task are as follows:
[0261] Task 1: 10 units, α1 = 0.8;
[0262] Task 2: 5 units, α2 = 0.5;
[0263] Task 3: 15 units, α3 = 0.7;
[0264] Total resources If β=10, then
[0265]
[0266] A i =0.184 means that the task allocation index of node i is 0.184, which reflects the efficiency of task allocation under given resources. The higher the value, the more efficient the resources are used.
[0267] See also Figure 8 , the steps to obtain the final rendering result are:
[0268] S421: Perform real-time data consistency monitoring based on the task allocation table, using the formula,
[0269]
[0270] Among them, C report,i represents the data consistency score of node i, o n,i is the monitoring data on node i, p n,i is the expected data, γ n is the importance weight of data item n, N represents the number of data items, and the consistency monitoring record C is obtained report ;
[0271] S422: Collect and analyze the execution logs of the digital twin platform, using the formula,
[0272]
[0273] Among them, E task,i represents the task execution efficiency on node i, t k,i is the execution time of task k on node i, η k is the efficiency weight of task k, ξ is a small stability constant to avoid division by zero errors, K is the number of tasks, and the task execution efficiency analysis result E is obtained. task ;
[0274] S423: Based on the consistency monitoring record C report And the task execution efficiency analysis results E task , adjust resource allocation, use formula,
[0275]
[0276] Among them, F final It represents the score of final rendering effect and response speed. g and h are adjustment coefficients, which weigh rendering efficiency and data consistency. I represents the number of nodes, and outputs the final rendering result.
[0277] Assume that there are three data items on node i, and the monitored and expected values and weights of each item are as follows:
[0278] Data 1: monitored value = 100, expected value = 95, weight = 0.5;
[0279] Data 2: monitored value = 200, expected value = 205, weight = 1.0;
[0280] Data 3: monitored value = 150, expected value = 150, weight = 0.2;
[0281] but,
[0282] C report,i =0.5·(100-95) 2 +1.0 (200-205) 2 +0.2 (150-150) 2
[0283] C report,i =0.5·25+1.0·25+0.2·0=12.5+25+0=37.5
[0284] C report,i =37.5 means that the data consistency score of node i is 37.5. The lower the value, the better the data consistency. A higher score indicates that there is a significant difference between the data and further inspection or adjustment is needed.
[0285] Assume that there are three tasks on node i, and the execution time and efficiency weight of each task are as follows:
[0286] Task 1: execution time = 20s, weight = 0.8;
[0287] Task 2: execution time = 15s, weight = 1.0;
[0288] Task 3: execution time = 25s, weight = 0.5;
[0289] Assuming ξ=1, then,
[0290]
[0291] E task,i =0.1197 represents the task execution efficiency score on node i. The higher the value, the more efficient the task execution is. It can be used to identify performance bottlenecks and optimize resource allocation.
[0292] Assume that the system has two nodes, E task They are (0.1197, 0.1103) and C report They are (37.5, 32.5) respectively, assuming that the adjustment coefficients g=1 and h=0.5.
[0293] E task Total = 0.1197 + 0.1103 = 0.23;
[0294] C report Total = 37.5 + 32.5 = 70;
[0295] but,
[0296] F final =1·0.23-0.5·70=0.23-35=-34.77
[0297] F final =-34.77 indicates the overall rendering effect and response speed score of the system. A negative value indicates that data consistency issues have a greater impact on system performance, and further optimization of data processing or adjustment of resource allocation strategies is required.
[0298] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A real-time rendering method for water resources allocation engineering simulation based on digital twins, characterized in that: The following steps are involved: Based on the digital twin platform, the current load capacity data, network status data and user device performance data of all rendering nodes are collected through real-time network monitoring, and the data is summarized. Based on the summarized data, real-time load analysis is performed to determine the resource allocation requirements of all nodes and generate load forecast analysis results; Based on the load prediction analysis results, adjust resource quotas and optimize network bandwidth allocation, adjust resource configurations of all rendering nodes on the digital twin platform based on the adjustment results, update resource allocation strategies in real time, and generate a dynamic resource configuration table; According to the user's viewpoint movement and interaction behavior data, the detail level requirements of the visual focus area are collected and analyzed, and the objects in the scene are adjusted one by one, the detail level and rendering accuracy of each object are adjusted to match the user's needs, and an adaptive detail level adjustment table is generated; According to the dynamic resource configuration table and the adaptive detail level adjustment table, rendering tasks are assigned to all nodes, data consistency and rendering task execution efficiency are monitored synchronously, the real-time rendering quality and system response speed of water resource configuration engineering simulation are optimized, and the final rendering results are output.
2. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 1 is characterized in that: The steps for obtaining the load prediction analysis result are as follows: Collect the load data L, network status data N, and user device performance data U of each rendering node of the digital twin platform through real-time network monitoring; The load capacity data L, network status data N and user equipment performance data U are summarized and the formula is applied: Among them, α, β, γ are weight coefficients, which respectively adjust the influence of load capacity data, network status data and user equipment performance data in the summary data to generate the summarized data set D; Perform real-time load analysis on the summary data set D, calculate the weighted deviation average, Where S is the load imbalance score, D[i] is the value of the i-th data point in the dataset D, is the mean value of the data set D, w i is the weight, reflecting the importance of the difference data point, p is the screen index, used to adjust the sensitivity of the deviation, and n is the total number of data points to generate real-time analysis results; Based on the real-time analysis results, calculate the water resource allocation engineering simulation resource allocation requirements and future load forecasts for all nodes, Among them, S j is the load imbalance score of resource category j, λ j is the relative importance weight of resource category j, m is the total number of resource types, κ j is a tuning parameter used to control the load imbalance fraction S j The impact intensity on the prediction result, e is a constant, generating the load prediction analysis result F.
3. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 1 is characterized in that: The resource quota adjustment steps are as follows: Extracting key performance indicators P from the load forecast analysis result F to generate a forecast performance indicator data set P; According to the prediction performance indicator data set P, the difference between the current water resources allocation engineering simulation real-time rendering quota and the predicted demand is calculated, ΔP i =P predicted,i -P current,i Among them, P predicted,i represents the predicted resource quota, P current,i Represents the current resource quota, and obtains the demand difference data set ΔP; The resource quota is adjusted according to the demand difference data set ΔP, and the adjustment formula is: Among them, x, y and z are adjustment coefficients. x is used to enhance the adjustment intensity, y is used to ensure basic adjustment, and z is used for smooth adjustment. The new resource quota P is obtained. new .
4. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 3 is characterized in that: The steps for obtaining the dynamic resource configuration table are: The new resource quota P new Apply it to the digital twin platform, update the resource configuration of each rendering node, and obtain the updated node configuration C updated ; Based on the updated node configuration C updated , calculate the contribution ratio of each node to the total resource demand and adjust the resource allocation strategy, Among them, C updated,i is the updated node configuration, n is the total number of nodes, is the total node resource demand, λ is the adjustment factor, affecting the sensitivity of configuration differences, and the resource allocation strategy S is obtained. new ; Apply the updated resource allocation strategy S new and node configuration C updated , combined with the formula, Among them, T dynamic is the total amount of resource configuration, θ and φ are adjustment parameters used to adjust the weights of configuration and strategy, and output the dynamic resource configuration table.
5. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 1 is characterized in that: The steps for analyzing the detail level requirements of the visual focus area are as follows: Collect viewpoint tracking and interaction data from user devices to obtain user behavior dataset B; Based on the user behavior data set B, statistical analysis is performed to determine the user's visual focus area and analyze the detail level requirements, using the formula: Among them, D i represents the average value, b ij represents the user's viewpoint data in the jth interaction, τ j is the viewpoint duration threshold, ω j is the weight of the viewpoint data, λ is the decay constant, which controls the influence of the difference between the viewpoint data and the time threshold, and m represents the number of interactions. The result of the detail level requirement analysis of the visual focus area is obtained; According to the detail level requirement analysis result of the visual focus area, the rendering detail level required for each visual focus area is determined to obtain detail level requirement data E.
6. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 5 is characterized in that: The steps of obtaining the adaptive detail level adjustment table are as follows: According to the detail level requirement data E, adjust the detail level of each object one by one to ensure that each item matches the user's requirements, and obtain adjusted object detail data C; According to the adjusted object detail data C, the rendering accuracy of each object is calculated to ensure that each detail level matches the user's needs, and the formula is applied. Among them, R i Represents the rendering accuracy data of object i, c ik is the adjusted detail data of object i, k represents the detail level data point, n represents the total number of data points, and e k is the weight in the detail level requirement data E, which is set according to the detail requirement analysis results of the visual focus area to obtain the final rendering accuracy data R; Combined with the final rendering accuracy data R and scene requirements, the rendering accuracy of each object in the real-time rendering process of water resources allocation engineering simulation is adjusted. Among them, S f It is a scene factor that reflects the scene requirements, including lighting intensity, visual complexity, or the frequency of user interaction, and the adaptive detail level adjustment table T is obtained.
7. The real-time rendering method for water resource allocation engineering simulation based on digital twin according to claim 1 is characterized in that: The steps of allocating the rendering task are as follows: Analyze the dynamic resource configuration table and use the formula Calculate the total resource capacity S of node i node,i , where t j,i is the resource item of node i in the configuration table, m is the number of resource types, and the node resource overview S is obtained. node ; According to the adaptive detail level adjustment table T, the resource requirements of each task in the real-time rendering process of the water resources allocation engineering simulation are calculated. Among them, d l,k is the detail requirement of the lth object of task k, v k is the expected visual impact coefficient of the target task k, p is the number of objects, and the task resource requirement analysis result R is obtained. task ; Combined with the node resource overview S node And the task resource requirement analysis results R task , using resource allocation algorithm to allocate tasks to all nodes, Among them, α k is the priority coefficient of task k, n is the total number of tasks, m is the number of resource types, and β is the adjustment factor used to balance resource allocation, resulting in the task allocation table A.
8. The real-time rendering method for water resources allocation engineering simulation based on digital twin according to claim 7 is characterized in that: The steps for obtaining the final rendering result are: According to the task allocation table, real-time data consistency monitoring is performed using the formula: Among them, C report,i represents the data consistency score of node i, o n,i is the monitoring data on node i, p n,i is the expected data, γ n is the importance weight of data item n, N represents the number of data items, and the consistency monitoring record C is obtained report ; Collect and analyze the execution logs of the digital twin platform, using the formula, Among them, E task,i represents the task execution efficiency on node i, t k,i is the execution time of task k on node i, η k is the efficiency weight of task k, ξ is a small stability constant to avoid division by zero errors, K is the number of tasks, and the task execution efficiency analysis result E is obtained. task ; According to the consistency monitoring record C report And the task execution efficiency analysis results E task , adjust resource allocation, use formula, Among them, F final It represents the score of final rendering effect and response speed. g and h are adjustment coefficients, which weigh rendering efficiency and data consistency. I represents the number of nodes, and outputs the final rendering result.
Citation Information
Patent Citations
Energy management method of cloud rendering system based on software definition
CN112764905A
Method and device for monitoring performance of overall driving generator
CN113291488A
Three-dimensional model rendering method and system for digital twin simulation scene
CN113963100A
3D sand table real-time visual angle tracking system
CN117827012A
Intelligent interior design image rendering system
CN117830489A
Cited By
Financial data scheduling visualization platform system
CN119045939A
Network resource allocation method and network resource allocation system
CN120499022A
