Visualization method and device of finite element result data in dam three-dimensional model
By establishing the spatial correspondence between the finite element spatial discrete model and the 3D model of the dam, the finite element displacement results are mapped into visual attributes, which solves the problem that the finite element analysis results are difficult to display intuitively in the 3D model of the dam. This achieves efficient displacement distribution and abnormal area identification, and improves the efficiency of engineering display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-13
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, it is difficult to achieve intuitive and continuous visualization of finite element analysis results in 3D dam models, especially the need to quickly identify deformation distribution and abnormal areas in 3D scenes has not been fully met.
By establishing a spatial correspondence between the finite element spatial discrete model and the dam's three-dimensional model, the finite element displacement results are matched and mapped to renderable visual attributes at the sampling locations of the dam's three-dimensional model. These attributes are then converted into visual parameters using a preset mapping relationship and associated with the geometric representation of the dam's three-dimensional model for rendering and display.
It improves the spatial consistency and positioning interpretability of finite element analysis results and engineering 3D display, reduces dependence on specific post-processing environments, enhances the display quality and rendering adaptability of displacement results, and improves the efficiency of engineering analysis and display.
Smart Images

Figure CN121683386A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of finite element analysis technology, and in particular to a method and apparatus for visualizing finite element results data in a three-dimensional model of a dam. Background Technology
[0002] The operational safety monitoring and structural analysis of dam projects typically rely on the finite element method (FEM). This involves establishing a discrete finite element model of the dam body, its foundation, galleries, and other structures to calculate physical quantities such as displacement, stress, and seepage, thereby assessing structural response and aiding in risk warning. In engineering applications, to facilitate management personnel's understanding of the structural state and spatial positioning, the FEM results often need to be combined with a three-dimensional model of the dam. This allows for a visual representation of the dam's displacement distribution, deformation trends, and response characteristics of key areas within a three-dimensional context.
[0003] In existing technologies, finite element analysis results are typically output in the form of result files or proprietary formats of post-processing software. The display methods are mostly contour plots on the finite element mesh itself, or output as two-dimensional cross-sectional views, graphs, tables, etc. These methods still have room for improvement in areas such as the general parsing of finite element result data, consistent correspondence with the dam's 3D model, continuous and reliable result presentation, cross-sectional analysis, interactive performance, and multi-time-lapse comparison. They are insufficient to fully meet the needs of rapid on-site assessment and high-quality 3D visualization in engineering projects. Summary of the Invention
[0004] To overcome the technical problem in related technologies of effectively combining finite element result data with a 3D dam model for display without relying on a specific post-processing environment, and improving the intuitiveness, interactivity and update efficiency of the visualization, this invention provides a method and apparatus for visualizing finite element result data in a 3D dam model.
[0005] According to a first aspect of the present invention, a method for visualizing finite element result data in a three-dimensional model of a dam is provided, the method comprising: Construct a finite element spatial discrete model based on the geometric information in the finite element result data; Based on the sampling location in the 3D model of the dam, a target spatial unit or target spatial region corresponding to the sampling location is determined in the finite element spatial discrete model, and the first dam body displacement data corresponding to the target spatial unit or target spatial region is obtained from the finite element result data. The first dam displacement data is converted into a first visualization parameter according to a preset mapping relationship, and the first visualization parameter is associated with the geometric representation of the dam's three-dimensional model to form a visualization attribute for rendering; The 3D model of the dam is rendered and displayed based on the visualization attributes to output the displacement visualization results of the 3D model surface of the dam.
[0006] In some exemplary embodiments of the present invention, based on the foregoing scheme, the method for visualizing the finite element result data in the three-dimensional model of the dam further includes: Upon receiving the cutting parameters, a cutting plane intersecting with the 3D model of the dam is generated, and the cutting display area is determined based on the cutting plane. Based on the sectioning sampling position in the sectioning display area, a target spatial unit or target spatial region corresponding to the sectioning sampling position is determined in the finite element spatial discrete model, and the second dam displacement data corresponding to the target spatial unit or target spatial region is obtained from the finite element result data. The second dam displacement data is converted into a second visualization parameter according to the preset mapping relationship, and the second visualization parameter is associated with the geometric representation of the section display area to form a section visualization attribute for rendering; The sectioning display area is rendered and displayed based on the sectioning visualization attributes to output the displacement visualization result of the sectioning surface.
[0007] In some exemplary embodiments of the present invention, based on the foregoing scheme, constructing a finite element spatial discrete model based on the geometric information in the finite element result data includes: Geometric information is read from the finite element result data, and the geometric information includes at least node information and element information; The node information is parsed to extract the node identifier and corresponding three-dimensional coordinate components of each node, thereby generating finite element node coordinate data. The unit information is parsed to extract the unit identifier of each unit and the set of node identifiers that make up the unit, and unit connection relationship data is generated. A node index mapping relationship is constructed based on the finite element node coordinate data; and a node identifier set in the element connection relationship data is converted into a node index set based on the node index mapping relationship. The consistency of the node coordinate data and the element connection relationship data is verified to obtain verified finite element node coordinate data and verified element connection relationship data. A finite element mesh object is constructed based on the verified finite element node coordinate data and the verified element connection relationship data. Establish topological relationships based on the finite element mesh object; The finite element spatial discrete model is generated based on the finite element mesh object and its topological relationships.
[0008] In some exemplary embodiments of the present invention, based on the foregoing scheme, the consistency verification includes at least: verifying the structural integrity of the unit connection relationship data; and verifying whether the set of node identifiers in the unit connection relationship exists in the node coordinate data; The consistency of the node coordinate data and the element connection relationship data is verified to obtain verified finite element node coordinate data and verified element connection relationship data, including: When the consistency check fails, the abnormal data is marked and / or removed and / or corrected.
[0009] In some exemplary embodiments of the present invention, based on the foregoing scheme, the visualization method of the finite element result data in the three-dimensional model of the dam further includes: when an update instruction for the first dam displacement data and / or the second dam displacement data is detected, and / or a refresh instruction is received, updating the visualization attributes and / or the section visualization attributes according to a preset refresh strategy and triggering a rendering display update to achieve dynamic visualization.
[0010] In some exemplary embodiments of the present invention, based on the foregoing scheme, associating the visualization parameters with the geometric representation of the dam 3D model and / or the section display area includes: writing the first visualization parameter and / or the second visualization parameter into the vertex attribute channel and / or vertex color channel and / or texture channel of the geometric representation to form the visualization attribute and / or section visualization attribute.
[0011] In some exemplary embodiments of the present invention, based on the foregoing scheme, the geometric representation of the dam three-dimensional model includes mesh vertices and patches composed of mesh vertices; The rendering display includes: The visualization attributes and / or section visualization attributes are interpolated using patch interpolation, and a displacement heatmap is output through a graphics rendering shader.
[0012] According to a second aspect of the present invention, a device for visualizing finite element result data in a three-dimensional model of a dam is provided, comprising: The module is configured to build a finite element spatial discrete model based on the geometric information in the finite element result data; The determination module is configured to determine the target spatial unit or target spatial region corresponding to the sampling position in the finite element spatial discrete model based on the sampling position in the 3D model of the dam, and obtain the first dam body displacement data corresponding to the target spatial unit or target spatial region from the finite element result data; The conversion module is configured to convert the first dam displacement data into first visualization parameters according to a preset mapping relationship; The association module is configured to associate the first visualization parameter with the geometric representation of the dam's 3D model to form a visualization attribute for rendering; The rendering module is configured to render and display the 3D model of the dam based on the visualization attributes, so as to output the displacement visualization results of the surface of the 3D model of the dam.
[0013] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory storing computer-readable instructions that, when executed by the processor, implement the method of the first aspect.
[0014] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method of the first aspect.
[0015] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: In this embodiment of the invention, by establishing a spatial correspondence between the finite element discrete model and the dam's 3D model in three-dimensional space, the finite element displacement results are matched and mapped to renderable visual attributes at the sampling locations of the dam's 3D model. This allows the dam's displacement distribution to be presented intuitively and continuously on the surface of the dam's 3D model. This improves the spatial consistency and interpretability of the finite element analysis results and the 3D engineering display, reducing reliance on specific post-processing environments and manual alignment. Furthermore, it enhances the display quality and rendering adaptability of the displacement results, facilitating rapid identification of deformation distribution and abnormal areas in the 3D scene, thereby improving the efficiency of engineering analysis and display.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the specification, serve to explain the principles of the invention.
[0018] Figure 1 A schematic diagram of the system architecture of an exemplary application environment for a method and apparatus for visualizing finite element result data in a 3D model of a dam, which can be applied according to an embodiment of the present invention, is shown. Figure 2 The illustration schematically shows a flowchart of a method for visualizing finite element result data in a 3D model of a dam according to some embodiments of the present invention; Figure 3The illustration schematically shows a flowchart of a method for visualizing finite element result data in a three-dimensional model of a dam according to other embodiments of the present invention; Figure 4 This schematically illustrates a process diagram for constructing a finite element spatial discrete model according to some embodiments of the present invention; Figure 5 This schematic diagram illustrates a device for visualizing finite element result data in a 3D model of a dam according to some embodiments of the present invention. Figure 6 The schematic diagram illustrates the structure of a computer system of an electronic device according to some embodiments of the present invention; Figure 7 A schematic diagram of a computer-readable storage medium according to some embodiments of the present invention is shown. Detailed Implementation
[0019] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The singular forms “a,” “the,” and “the” used in this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0021] It should be understood that although the terms first, second, third, etc., may be used in this invention to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first information may also be referred to as second information without departing from the scope of this invention, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0022] Figure 1 This diagram illustrates a system architecture of an exemplary application environment for a method and apparatus for visualizing finite element result data in a 3D model of a dam, which can be applied according to embodiments of the present invention.
[0023] like Figure 1As shown, system architecture 100 may include one or more terminal devices such as desktop computer 101, portable computer 102, and smartphone 103, network 104, and server 105. Network 104 is used as a medium to provide a communication link between the terminal devices and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc. Terminal devices may be various electronic devices with data processing capabilities, which have a display screen for displaying the displacement visualization results of the dam's 3D model surface and / or the displacement visualization results of the cross-section, including but not limited to the aforementioned desktop computer, portable computer, smartphone, etc. It should be understood that... Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminal devices, networks, and servers. For example, server 105 could be a sub-server cluster composed of multiple sub-servers.
[0024] The visualization method of finite element result data in a dam three-dimensional model provided in this embodiment of the invention can generally be executed by a terminal device, and correspondingly, the visualization device of finite element result data in a dam three-dimensional model is generally set in the terminal device. However, it is readily understood by those skilled in the art that the visualization method of finite element result data in a dam three-dimensional model provided in this embodiment of the invention can also be executed by a server 105, and correspondingly, the visualization device of finite element result data in a dam three-dimensional model can also be set in the server 105. This exemplary embodiment does not impose any special limitations on this.
[0025] Furthermore, it should be understood that the visualization method for finite element result data in a dam 3D model according to embodiments of the present invention can be configured as a software module. In some implementation scenarios, the visualization scheme for finite element result data in a dam 3D model of the present invention can be deployed independently to generate visualization results for different dam 3D models. In other implementation scenarios, the visualization scheme for finite element result data in a dam 3D model of the present invention can be deployed within other software as a functional module of that software, such as in underground pipeline analysis software. The present invention does not impose any particular restrictions on the application of the visualization method for finite element result data in a dam 3D model.
[0026] The embodiments of the present invention will now be described in detail.
[0027] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a method for visualizing finite element result data in a 3D model of a dam according to an exemplary embodiment of the present invention, comprising the following steps: S210: Constructing a finite element spatial discrete model based on the geometric information in the finite element result data; S220: Based on the sampling position in the 3D model of the dam, determine the target spatial unit or target spatial region corresponding to the sampling position in the finite element spatial discrete model, and obtain the first dam body displacement data corresponding to the target spatial unit or target spatial region from the finite element result data; S230: Convert the first dam displacement data into a first visualization parameter according to a preset mapping relationship, and associate the first visualization parameter with the geometric representation of the dam's three-dimensional model to form a visualization attribute for rendering; S240: Render and display the 3D model of the dam based on the visualization attributes to output the displacement visualization results of the 3D model surface of the dam.
[0028] By establishing a spatial correspondence between the finite element discrete model and the dam's 3D model in three-dimensional space, the finite element displacement results are matched and mapped to renderable visual attributes at the sampling locations of the dam's 3D model. This allows the dam's displacement distribution to be presented intuitively and continuously on the surface of the dam's 3D model. This improves the spatial consistency and interpretability of the finite element analysis results and the 3D engineering display, reducing reliance on specific post-processing environments and manual alignment. Furthermore, it enhances the display quality and rendering adaptability of the displacement results, facilitating rapid identification of deformation distributions and abnormal areas in the 3D scene, thereby improving the efficiency of engineering analysis and presentation.
[0029] In S210, a finite element spatial discrete model is constructed based on the geometric information in the finite element result data.
[0030] Finite element result data refers to the set of calculation result data output by the finite element analysis process. It can be in the form of a file, data stream or database record. It usually contains: geometric information that characterizes the finite element discrete model, such as nodes, elements, and connection relationships; and calculation result quantities associated with the geometric information, such as dam displacement, stress, strain, etc.
[0031] In embodiments of the present invention, geometric information refers to data content used to describe the spatial morphology and topological structure of a finite element discrete model, and includes at least: Node information: The correspondence between node identifiers and the node's three-dimensional coordinate components (x, y, z); Unit information: The correspondence between the unit identifier and the set of node identifiers that make up the unit; In some implementations, geometric information may also include element type, partition identifier, boundary surface information, etc.
[0032] A finite element spatial discrete model refers to a discretized representation constructed in three-dimensional space based on geometric information. It is used to express the set of nodes and elements of a finite element mesh and their topological relationships, enabling subsequent steps to perform spatial queries in this discrete model. For example, it can determine the target spatial element or target spatial region based on spatial coordinates and establish the correspondence between elements / nodes and result quantities.
[0033] In one embodiment of this application, constructing a finite element spatial discrete model based on the geometric information in the finite element result data specifically includes the following process: S310: Read geometric information from the finite element result data, wherein the geometric information includes at least node information and element information; In this embodiment, the data reading module can perform structured reading of the finite element result data according to preset parsing rules to obtain node information and element information. For example, when the finite element result data is text or a binary file, node data segments and element data segments can be located according to preset paragraph identifiers, key fields, or record types; when the finite element result data is a data stream or database record, node records and element records can be filtered according to preset data table fields or message types. Through this reading process, the original node information and original element information required for subsequent parsing can be obtained.
[0034] S320: Parse the node information, extract the node identifier and corresponding three-dimensional coordinate components of each node, and generate finite element node coordinate data; In this embodiment, node information can be parsed line by line to extract node identifiers and their corresponding three-dimensional coordinate components (x, y, z), and stored in the form of a node table, array, or mapping structure to generate finite element node coordinate data. The finite element node coordinate data is at least used to support queries from node identifiers to node coordinates. To ensure consistency in spatial calculations, numerical type conversion, unit standardization, and / or outlier filtering can be performed on the coordinate components; for example, when coordinate units differ, they can be standardized to meters, and when coordinates are missing or abnormal, they can be marked or removed.
[0035] S330: Parse the unit information, extract the unit identifier of each unit and the set of node identifiers that constitute the unit, and generate unit connection relationship data; In this embodiment, the unit information can be parsed line by line to extract the unit identifier and the set of node identifiers constituting the unit, and stored in the form of a connection table or connection list to generate unit connection relationship data. The unit connection relationship data is used to at least support queries from unit identifiers to the set of node identifiers. In some embodiments, the unit type identifier can also be parsed to determine whether the number of nodes corresponding to different unit types meets a preset requirement; for example, tetrahedral units correspond to 4 nodes, hexahedral units correspond to 8 nodes, etc.
[0036] S340: Construct a node index mapping relationship based on the finite element node coordinate data; and convert the set of node identifiers in the element connection relationship data into a set of node indexes based on the node index mapping relationship; In this implementation, node identifiers may be non-contiguous numbers or string identifiers. To facilitate subsequent calculations and efficient access, a node index mapping relationship can be constructed to map node identifiers to consecutive node indices. For example, the index can be generated by sorting by node identifiers or by the order in which nodes appear in the result data. After constructing the node index mapping relationship, the "set of node identifiers" in the cell connection relationship data can be converted into a "set of node indices," thereby forming a connection structure oriented towards array access (such as a connection matrix or index list) to improve the efficiency of subsequent topology construction and spatial queries.
[0037] S350: Perform consistency verification on the node coordinate data and the element connection relationship data to obtain verified finite element node coordinate data and verified element connection relationship data; In this embodiment, consistency verification is used to ensure that node coordinate data and cell connection relationship data can together form a valid mesh. The verification content includes at least: the structural integrity of the cell connection relationship data, such as whether the number of nodes meets the cell type requirements, whether the record fields are complete, and whether the node identifier / node index referenced in the cell connection relationship exists in the node coordinate data.
[0038] When consistency checks fail, abnormal data can be marked and / or removed and / or corrected; for example, cell records referencing non-existent nodes can be removed, or correctable node indexes can be backfilled to avoid subsequent grid construction failures.
[0039] S360: Constructs a finite element mesh object based on verified finite element node coordinate data and verified element connection relationship data; In this embodiment, the finite element mesh object includes at least a node set and an element set: the node set stores the 3D coordinates corresponding to the node indices; the element set stores the set of node indices corresponding to the element identifiers (and optional element types). Through the finite element mesh object, node coordinates and element composition relationships can be accessed in a unified data structure, providing a foundation for subsequent topological association establishment and spatial queries.
[0040] S370: Establish topological relationships based on the finite element mesh object; In this embodiment, topological associations are used to express the adjacency relationships between nodes and cells, and between cells, thereby supporting operations such as candidate cell filtering and local search. Topological associations can at least include cell-node associations and / or node-cell adjacency relationships.
[0041] In some implementations, adjacency relationships between cells can also be established. For example, a list of associated cells can be maintained for each node so that a set of candidate cells can be quickly obtained based on spatial proximity.
[0042] S380: Generate the finite element spatial discrete model based on the finite element mesh object and its topological relationships.
[0043] In this embodiment, the finite element spatial discrete model at least includes the finite element mesh object and its topological relationships, thereby enabling subsequent steps to determine the target spatial unit or target spatial region based on spatial coordinates and to perform data retrieval. In some embodiments, bounding information, such as bounding boxes and centroids, can be calculated for the units when generating the discrete model, and a spatial index structure can be constructed accordingly to improve the efficiency of subsequent spatial queries.
[0044] In S220, based on the sampling position in the dam's three-dimensional model, a target spatial unit or target spatial region corresponding to the sampling position is determined in the finite element spatial discrete model, and the first dam body displacement data corresponding to the target spatial unit or target spatial region is obtained from the finite element result data.
[0045] A 3D model of a dam refers to a 3D geometric model of a dam used for display and rendering. It is usually represented in the form of a mesh, such as a polygonal mesh containing vertices and faces, and can provide spatial coordinate information to support sampling and display.
[0046] Sampling locations refer to a set of spatial points selected on the 3D model of the dam, used to map subsequent displacement values to visualization parameters. Sampling locations can be geometrically represented mesh vertex locations, sampling point locations generated within a patch according to preset rules, or sampling point locations defined during the rendering process; sampling locations must contain at least three-dimensional spatial coordinates.
[0047] The target spatial element usually corresponds to a finite element in the finite element spatial discrete model, such as a volume element, which contains sampling positions or satisfies a preset spatial correspondence with the sampling positions; the target spatial region usually corresponds to a local region composed of one or more finite element elements in the finite element spatial discrete model, and is used to handle situations where the sampling position is located near the element boundary, outside the mesh but within the tolerance range, or where regional aggregation is required.
[0048] The first dam displacement data refers to the dam displacement result data read from the finite element result data relative to the target spatial element or target spatial region. The first dam displacement data can be a displacement vector, such as containing Ux, Uy, and Uz, or it can be a certain displacement component or displacement magnitude; its data organization method can be a set of displacement values associated with the target element, or a set of node displacement values associated with the target element node set, etc.
[0049] In one embodiment of this application, the sampling locations of the dam's 3D model can be used as a bridge to establish a correspondence between the spatial location of the displayed model and the elements / regions of the finite element spatial discrete model. Furthermore, dam displacement data matching this correspondence can be read from the finite element result data and used as the first dam displacement data for subsequent visualization mapping. Specifically, the set of sampling locations can be determined first from the geometric representation of the dam's 3D model, for example, by using the grid vertices of the geometric representation as sampling locations; alternatively, sampling points can be generated within the facets at preset intervals as sampling locations, thereby controlling the data scale while ensuring display continuity.
[0050] After determining the set of sampling locations, spatial localization can be performed on each sampling location in the finite element spatial discrete model to determine the target spatial unit or target spatial region corresponding to that sampling location. To improve localization efficiency, a candidate unit set can be generated first, followed by precise determination: for example, the topological relationships or spatial index structure stored in the finite element spatial discrete model can be used to filter candidate units spatially adjacent to the sampling location; in some implementations, the spatial index structure can be constructed based on unit bounding boxes or other bounding information to quickly narrow down the candidate range. Subsequently, spatial correspondence determination is performed on the candidate units. The determination method can be "point fall-in determination," that is, determining whether the sampling location falls inside or on the boundary of a candidate unit; when it is determined that there is a unique candidate unit that meets the conditions, that candidate unit is determined as the target spatial unit.
[0051] When the sampling location is near the common boundary of multiple units, or when numerical errors result in multiple solutions / no solution for the point falling into the range, a target spatial region can be determined instead of a single unit. For example, multiple candidate units that meet a preset distance threshold with the sampling location can be used to form the target spatial region. Alternatively, a target spatial unit can be selected from multiple solutions according to a preset priority rule, such as selecting the unit with the smallest distance from the sampling location or the unit whose bounding box contains the most suitable unit. In this way, an association between the sampling location identifier and the target spatial unit identifier / target spatial region unit identifier set can be established for each sampling location. In some implementations, this association can be cached for reuse during data refresh or repeated rendering, thereby reducing the overhead of repeated spatial queries.
[0052] After determining the target spatial element or target spatial region, the corresponding first dam displacement data can be obtained from the finite element result data. Since the storage methods of finite element result data may differ, the data retrieval method can be adapted accordingly: for example, when the dam displacement data is stored in element form, the displacement data corresponding to that element can be directly read using the target spatial element identifier as the index key; when the dam displacement data is stored in node form, the node displacement data associated with that element can be read using the set of node identifiers of the target spatial element as the index key, and this set of node displacement data can be used as the first dam displacement data corresponding to the target spatial element. When the target spatial region is determined, the displacement data corresponding to multiple elements (or the node sets of multiple elements) within the region can be read according to the set of element identifiers within the region, and organized into the first dam displacement data corresponding to the region, to support subsequent mapping and display of the regional data.
[0053] In some implementations, before determining the target spatial element or target spatial region corresponding to the sampling position in the finite element spatial discrete model, coordinate system transformation and / or scale transformation can be performed on the spatial coordinates of the sampling position or the node coordinates of the finite element spatial discrete model to make the sampling position and the finite element spatial discrete model have a unified spatial coordinate reference, so as to reduce the matching error caused by the inconsistency of coordinate reference.
[0054] In S230, the first dam displacement data is converted into a first visualization parameter according to a preset mapping relationship, and the first visualization parameter is associated with the geometric representation of the dam's three-dimensional model to form a visualization attribute for rendering.
[0055] The preset mapping relationship refers to the set of rules for converting displacement values into visual representations, including at least: rules for determining the range of displacement values, normalization rules, and mapping rules from normalized values to visual parameters. These rules can be preset by the system, configured by the user, or generated by a default strategy.
[0056] The first visualization parameter may include one or more of the following: color parameters (e.g., color values in RGB / HSV color space), transparency parameters, texture coordinate parameters, and / or height offset parameters.
[0057] In some implementations, the preset mapping relationship is a color mapping relationship used to map normalized displacement values to heatmap color values; in other implementations, the preset mapping relationship includes multi-channel mapping rules so that the displacement values simultaneously affect color and transparency or color and texture coordinates.
[0058] The geometric representation of a dam 3D model refers to the geometric data structure of the dam 3D model used for rendering, such as a data structure that includes mesh vertices, patch connections, and scalable attribute channels.
[0059] Visualization attributes refer to the rendering input attributes formed after the first visualization parameters are written and bound to the geometric representation, such as vertex color, vertex attribute buffer, texture resources, etc., so that the rendering module can read the attribute and output the displacement visualization result.
[0060] In one embodiment of this application, associating the first visualization parameter with the geometric representation of the dam's 3D model refers to establishing a binding relationship between the parameter data used to display displacement results and the geometric data of the dam's 3D model used for rendering, which can be directly accessed by the rendering pipeline. This allows subsequent rendering stages to read the corresponding parameters and output visualization results based on this binding relationship. The geometric representation can be a mesh data structure, which at least includes mesh vertices, facet connections formed by mesh vertices, and one or more data channels for carrying additional attributes; data channels include, for example, vertex attribute channels, vertex color channels, and / or texture channels.
[0061] The first visualization parameter can be a parameter result obtained from the first dam body displacement data through a preset mapping relationship. The first visualization parameter is used to characterize the displacement visualization of the corresponding position on the surface of the dam three-dimensional model. The second visualization parameter can be a parameter result obtained from the second dam body displacement data of the cross-section through a preset mapping relationship. The second visualization parameter is used to characterize the displacement visualization of the corresponding position in the cross-section display area.
[0062] In one embodiment of this application, the displacement data of the first dam body can be converted into a visualization attribute compatible with the rendering pipeline and written into the geometric representation of the dam's 3D model so as to visually present the displacement distribution during subsequent rendering.
[0063] Specifically, the target quantity for visualization of the first dam displacement data can be determined first: when the first dam displacement data is a displacement vector, at least one component can be selected as the target quantity for visualization, such as the displacement component along a preset direction, or the magnitude of the displacement vector can be selected as the target quantity for visualization; when the first dam displacement data is a displacement scalar, the displacement scalar can be directly used as the target quantity for visualization. To improve display stability, the first dam displacement data can also be preprocessed, such as marking or filling missing values, truncating outliers, and smoothing noise, thereby avoiding extreme values from causing color mark compression or display flickering.
[0064] Subsequently, the numerical range used for mapping can be determined according to a preset mapping relationship. This numerical range can be a global range, the current display area range, or a user-configured threshold range. For example, a fixed global range can be used when comparability across time periods / working conditions is required, while an adaptive range for the current area can be used when highlighting local details. After determining the numerical range, normalization processing can be performed on the displacement data of the first dam body to map the displacement values to a unified normalization interval, such as [0,1]. The normalization method can be linear normalization, such as linear mapping based on the minimum and maximum values; it can also be piecewise normalization, such as segmented mapping according to multiple threshold intervals to enhance the contrast of key intervals; or it can be nonlinear normalization, such as using logarithmic, power function, or sigmoid function mapping to enhance the perceptibility of small displacement changes and suppress large displacement saturation. In some implementations, upper and lower thresholds can be introduced to truncate the displacement values before normalization to further improve the effective utilization rate of color marks.
[0065] After obtaining the normalization result, the normalized displacement value can be converted into a first visualization parameter according to a preset mapping relationship. The first visualization parameter can be a color parameter, such as mapping the normalized displacement value to a heatmap color value based on a preset color scale; it can also be a combination parameter of color and transparency, such as higher / lower transparency for larger displacement to highlight abnormal areas; it can also be a texture coordinate or level parameter, such as quantizing the normalized displacement value into discrete levels and looking up the final color in the shader, thereby facilitating unified management of color scales and supporting dynamic adjustment.
[0066] After generating the first visualization parameter, it needs to be associated with the geometric representation of the dam's 3D model to form visualization attributes. The granularity of association can be consistent with the sampling location: for example, when the sampling location is a mesh vertex in the geometric representation, the first visualization parameter can be written to the vertex color channel or vertex attribute channel in a one-to-one correspondence between vertex and parameter; when the sampling location is a sampling point inside a patch or a denser sampling mesh, the first visualization parameter can be written to the texture channel or buffer channel, and read by the shader according to texture coordinates or sampling index during rendering to achieve a more continuous display inside the patch.
[0067] Once the writing is complete, the visual properties become the input data for the rendering pipeline. In some implementations, the visual properties can also be encapsulated as graphics buffer resources or texture resources and bound to the rendering pipeline to reduce the overhead of subsequent rendering calls.
[0068] In S240, the 3D model of the dam is rendered and displayed based on the visualization attributes to output the displacement visualization results of the 3D model surface of the dam.
[0069] Rendering refers to the process of converting geometric representations and their visual attributes into screen / image output through the graphics rendering pipeline, such as the drawing process of the central processing unit and the graphics processing unit. It typically includes stages such as vertex transformation, rasterization, fragment shading, color composition, and display output.
[0070] Displacement visualization results refer to the visualization of displacement distribution formed on the surface of the dam's 3D model, such as displacement heat maps, zonal coloring results, or contour lines / scale legends superimposed on the surface, which are ultimately output to the display interface or rendering frame buffer.
[0071] In this embodiment of the invention, rendering and display includes the assembly, rasterization, and shading calculation of facet primitives. During the rendering and display process, facet interpolation can be performed on the visualization attributes and / or section visualization attributes: when the visualization attributes are stored at the granularity of mesh vertices, the rendering pipeline can interpolate the visualization attributes at the vertices of the facet along the interior of the facet when rasterizing a facet composed of multiple mesh vertices, thereby generating continuously changing attribute values for different fragments within the facet. Facet interpolation can be linear interpolation, perspective-corrected interpolation, or other interpolation methods to ensure that the displacement visualization presents a continuous transition within the facet, avoiding jumps or breaks caused by displaying only at the vertices.
[0072] In some implementations, rendering can be achieved through shaders: vertex shaders perform vertex coordinate transformations and pass visual attributes to the fragment stage, while fragment shaders output the final color based on the interpolated visual attributes. For example, a fragment shader can directly output the interpolated color parameters to form a heatmap; or it can look up the corresponding color in a preset color scale based on the interpolated normalized displacement value and output it, thereby achieving unified color scale management and dynamic switching.
[0073] To enhance readability, auxiliary display elements can be overlaid on the output displacement visualization results, such as color-coded legends, numerical range labels, or threshold prompts; for example, displaying color bars on the side of the interface and labeling the corresponding displacement value ranges, so that engineers can intuitively associate colors with displacement magnitudes. Finally, the rendering pipeline outputs the generated frame images to the display interface or writes them to the rendering frame buffer, thereby outputting the displacement visualization results of the dam's 3D model surface.
[0074] In some exemplary embodiments of this application, the method for visualizing finite element result data in a 3D model of a dam further includes: S410: Upon receiving the cutting parameters, generate a cutting surface that intersects with the 3D model of the dam, and determine the cutting display area based on the cutting surface; S420: Based on the sectioning sampling position in the sectioning display area, determine the target spatial unit or target spatial region corresponding to the sectioning sampling position in the finite element spatial discrete model, and obtain the second dam displacement data corresponding to the target spatial unit or target spatial region from the finite element result data; S430: Convert the second dam displacement data into a second visualization parameter according to the preset mapping relationship, and associate the second visualization parameter with the geometric representation of the section display area to form a section visualization attribute for rendering; S440: Render and display the section display area based on the section visualization attributes to output the displacement visualization result of the section surface.
[0075] Sectioning parameters refer to the set of parameters used to define the sectioning operation, at least to determine the spatial position and orientation of the sectioning plane. Sectioning parameters may include: sectioning plane normal vector, a point or offset on the sectioning plane, sectioning thickness, sectioning range, etc.; sectioning parameters can be generated by user interaction input, preset script commands, or system default strategies.
[0076] The cutting plane refers to the geometric plane or curved surface determined by the cutting parameters. It is used to perform intersection calculations with the 3D model of the dam to obtain the cutting contour and the cutting display area.
[0077] The section display area refers to the geometric region formed on the section surface after the section plane intersects with the 3D model of the dam, which is used for display. The section display area can be a region surrounded by intersecting contours (such as a polygonal region), or it can be a mesh region obtained by further triangulation of intersecting line segments / polygons, which has a geometric representation that can be used for rendering.
[0078] The section sampling position refers to the selected sampling point location on the section display area, used to establish the correspondence between the section position, finite element element / region, displacement data, and visualization parameters. The section sampling position can be the vertex position of the mesh in the section display area, or the sampling point position generated according to rules inside the patch.
[0079] The second dam displacement data refers to the dam displacement result data corresponding to the target spatial unit or target spatial region read from the finite element result data at the section sampling position; its data organization method is similar to that of the first dam displacement data, and can be nodal quantities, element quantities or a combination thereof.
[0080] The second visualization parameter is the visualization parameter result obtained by the second dam displacement data through a preset mapping relationship; after the second visualization parameter is written into and bound to the geometric representation of the section display area, it forms the section visualization attribute, which can be directly accessed in the rendering stage.
[0081] In S410, upon receiving the cutting parameters, a cutting surface intersecting with the 3D model of the dam is generated, and the cutting display area is determined based on the cutting surface.
[0082] Specifically, cutting parameters can be obtained first to determine the spatial position and orientation of the cutting plane; for example, the cutting parameters may include the cutting plane normal vector and a point on the cutting plane, based on which the system defines the cutting plane equation. Subsequently, intersection calculations can be performed on the cutting plane and the geometric representation of the dam's 3D model to obtain intersecting line segments or intersecting contours; based on the intersecting contours, a cutting display area located on the cutting plane can be constructed. The cutting display area can be obtained by generating closed regions and triangulating the intersecting contours to form a cutting mesh suitable for rendering; in some implementations, a regular mesh can also be generated on the cutting plane, and then the regular mesh can be clipped according to the intersecting contours to obtain the geometric representation of the cutting display area.
[0083] In S420, based on the section sampling position in the section display area, the target spatial unit or target spatial region corresponding to the section sampling position is determined in the finite element spatial discrete model, and the second dam displacement data corresponding to the target spatial unit or target spatial region is obtained from the finite element result data.
[0084] Specifically, a set of sectioning sampling locations can be determined on the sectioning display area; for example, the grid vertices of the geometric representation of the sectioning display area can be used as sectioning sampling locations, or in-plane sampling points can be generated at preset intervals within the sectioning surface. Subsequently, spatial positioning is performed for each sectioning sampling location: based on the three-dimensional coordinates of the sectioning sampling location, candidate spatial elements are screened in the finite element spatial discrete model, and spatial correspondence is determined to identify the target spatial element; when the sectioning sampling location is near the element boundary or there are multiple solutions / no solutions, the target spatial region can be determined according to preset tolerance rules, for example, composed of multiple candidate elements that satisfy a distance threshold with the sectioning sampling location. After determining the target spatial element or target spatial region, the corresponding dam displacement data can be read from the finite element result data as the second dam displacement data; for example, when the dam displacement data is stored as element quantities, the displacement value can be read according to the target spatial element identifier; when the dam displacement data is stored as node quantities, the node displacement value can be read according to the target element node identifier set and organized into the second dam displacement data. In some implementations, the correspondence between the section sampling position and the target spatial unit / region can be cached to accelerate repeated sectioning or refresh display.
[0085] The process in S430 of converting the second dam displacement data into second visualization parameters and forming section visualization attributes can be performed with reference to the normalization, mapping, and attribute binding process in S230. The difference is that the data source in S430 is the second dam displacement data, and the object of the second visualization parameters is the geometric representation of the section display area. Therefore, when performing normalization and mapping, the second dam displacement data is used as input to generate the second visualization parameters, and the second visualization parameters are written into the vertex attribute channels and / or vertex color channels and / or texture channels of the geometric representation of the section display area to form section visualization attributes for rendering, thereby enabling the section display area to have rendering input attributes that can be used to display displacement distribution.
[0086] The process in S440 of rendering and displaying the displacement visualization result of the section surface based on the section visualization attributes and outputting the result can be performed with reference to the patch interpolation and graphics rendering shader output process in S240. The difference is that the rendering object of S440 is the section display area, and the geometric representation of the section display area and its section visualization attributes are used as the rendering input; therefore, during the rendering process, the section visualization attributes are interpolated on the patches of the section display area, and the displacement heatmap of the section surface is output through the graphics rendering shader to obtain the displacement visualization result of the section surface.
[0087] In addition, in some implementations, the visualization method of finite element result data in the 3D model of the dam further includes: when an update instruction for the first dam displacement data and / or the second dam displacement data is detected, and / or a refresh instruction is received, updating the visualization attributes and / or the section visualization attributes according to a preset refresh strategy and triggering a rendering display update to achieve dynamic visualization.
[0088] The update command for the first dam body displacement data and / or the second dam body displacement data refers to the control command used to indicate that the displacement data source has been updated or that the displacement data needs to be retrieved / recalculated again. This update command can originate from the data acquisition system, the finite element calculation module, an external interface, or user operation; it can carry information such as the update scope (e.g., global update, local area update, update at a specified time step) and / or version identifier.
[0089] A refresh command is a command used to trigger the redisplay of visualization results. It can be triggered by user interaction (e.g., clicking refresh / dragging the timeline), by system timer, or by detecting changes in display conditions such as changes in viewpoint or sectioning parameters. The difference between refresh and update commands is that update commands emphasize data changes, while refresh commands emphasize the need for a redraw of the display; they can appear independently or simultaneously.
[0090] A preset refresh strategy refers to a predefined set of refresh control rules used to determine how to update visual properties / section visual properties and how to trigger rendering updates when update and / or refresh commands are received. A preset refresh strategy can include at least: refresh frequency, throttling / debouncing rules, full / incremental update rules, priority rules, and cache reuse rules.
[0091] Specifically, when an update command for the first dam body displacement data and / or the second dam body displacement data is detected and / or a refresh command is received, the system can update the visualization attributes and / or section visualization attributes according to a preset refresh strategy, and trigger the rendering display update, thereby achieving dynamic visualization.
[0092] Preset refresh strategies can be used to coordinate the execution order and frequency of data updates, attribute updates, and rendering updates. For example, a preset refresh strategy can stipulate that when only a refresh command occurs and the displacement data has not changed, only rendering redraw is triggered without recalculating the displacement mapping; when a displacement data update command is detected, the updated first dam displacement data and / or second dam displacement data are first obtained again, and then the first visualization parameters and / or second visualization parameters are regenerated according to the preset mapping relationship, and written into the vertex attribute channels and / or vertex color channels and / or texture channels of the geometric representation, thereby updating the visualization attributes and / or section visualization attributes, and then triggering a rendering display update so that the display result reflects the latest displacement distribution.
[0093] To balance refresh efficiency and display stability, preset refresh strategies can be implemented in various ways. For example, a full refresh strategy can be used, where all sampled locations are resampled, remapped, and all visual attributes are updated each time a refresh is triggered. An incremental refresh strategy can also be used, where only the visual attributes corresponding to a subset of sampled locations are updated based on the update range specified in the update command. For instance, only the vertex attributes corresponding to the displacement data of a specific cross-sectional display area, a dam section, or a specific time step can be updated, thereby reducing data transmission and computational overhead. Furthermore, refresh strategies can introduce throttling or debouncing rules. When multiple update or refresh commands are received consecutively within a short period, they are merged and a single update is executed after a preset refresh cycle is met, avoiding stuttering caused by frequent redrawing. Different refresh frequency levels can also be set for refresh strategies. For example, a lower refresh frequency can be used for the visual attributes of the dam surface, while a higher refresh frequency can be used for the cross-sectional display area. Alternatively, a simplified refresh can be used during user interaction (rotating / scaling / dragging the cross-section), followed by a high-quality refresh after the interaction ends.
[0094] In some implementations, to ensure display continuity, the preset refresh strategy can also employ a double-buffering or version-switching mechanism: that is, new visualization attributes / section visualization attributes are calculated and written in the background buffer, and then switched to the foreground buffer used for rendering all at once after the attributes are updated, thereby avoiding flickering or tearing caused by reading data in a half-updated state during rendering. Furthermore, data version numbers or timestamps can be maintained for visualization attributes, so that only the latest version of attribute data is used when a rendering display update is triggered, ensuring that the display is consistent with the data.
[0095] In this way, when the displacement data is updated or refreshed, the visualization attributes and / or section visualization attributes can be updated according to the preset refresh strategy, and drive the rendering and display of a new displacement heat map, thereby realizing the dynamic visualization of the displacement of the surface and / or section of the dam's three-dimensional model.
[0096] According to a second aspect of the present invention, a device for visualizing finite element result data in a three-dimensional model of a dam is also provided, with reference to... Figure 5 As shown, the visualization device 500 for the finite element result data in the 3D model of the dam includes: Module 510 is configured to construct a finite element spatial discrete model based on the geometric information in the finite element result data; The determination module 520 is configured to determine the target spatial unit or target spatial region corresponding to the sampling position in the finite element spatial discrete model based on the sampling position in the 3D model of the dam, and obtain the first dam body displacement data corresponding to the target spatial unit or target spatial region from the finite element result data; The conversion module 530 is configured to convert the first dam displacement data into first visualization parameters according to a preset mapping relationship; The association module 540 is configured to associate the first visualization parameter with the geometric representation of the dam's three-dimensional model to form a visualization attribute for rendering; The rendering module 550 is configured to render and display the dam 3D model based on the visualization attributes, so as to output the displacement visualization results of the dam 3D model surface.
[0097] It should be noted that although several modules of the visualization device for finite element result data in the 3D model of the dam have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules described above can be embodied in a single module or unit. Conversely, the features and functions of a single module described above can be further divided into multiple modules or sub-modules for embodiment.
[0098] Furthermore, in an exemplary embodiment of the present invention, an electronic device is also provided that can realize the above-described method for visualizing finite element result data in a three-dimensional model of a dam.
[0099] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented as entirely hardware embodiments, entirely software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, collectively referred to herein as “circuit,” “module,” or “system.”
[0100] The following reference Figure 6 To describe an electronic device 600 according to such an embodiment of the present invention. Figure 6 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0101] like Figure 6 As shown, the electronic device 600 is manifested in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including storage unit 620 and processing unit 610), and a display unit 640.
[0102] Storage unit 620 may include readable media in the form of volatile storage units, such as random access memory (RAM) 621 and / or cache memory 622, and may further include read-only memory (ROM) 623.
[0103] Storage unit 620 may also include a program / utility 624 having a set (at least one) of program modules 625, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0104] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0105] Electronic device 600 can also communicate with one or more external devices 670 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0106] Through the description of the above embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions of the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of the present invention.
[0107] In exemplary embodiments of the present invention, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.
[0108] refer to Figure 7 As shown, a program product 700 for implementing the above-described method for visualizing finite element result data in a 3D model of a dam, according to an embodiment of the present invention, is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In the present invention, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0109] The program product may employ any combination of one or more readable storage media. Readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0110] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0111] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0112] Through the description of the above embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions of the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of the present invention.
[0113] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the claims.
[0114] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for visualizing finite element result data in a three-dimensional model of a dam, characterized in that, The method comprises the following steps: constructing a finite element space discrete model based on geometric information in finite element result data; determining a target space unit or a target space region corresponding to a sampling position in the finite element space discrete model based on the sampling position in a three-dimensional dam model, and obtaining first dam body displacement data corresponding to the target space unit or the target space region from the finite element result data; converting the first dam body displacement data into a first visualization parameter according to a preset mapping relationship, and associating the first visualization parameter with a geometric representation of the three-dimensional dam model to form a visualization attribute for rendering; rendering and displaying the three-dimensional dam model based on the visualization attribute to output a displacement visualization result of a surface of the three-dimensional dam model.
2. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 1, wherein, The method further comprises the following steps: generating a sectioning surface intersecting the three-dimensional dam model when receiving sectioning parameters, and determining a sectioning display region based on the sectioning surface; determining a target space unit or a target space region corresponding to a sectioning sampling position in the finite element space discrete model based on the sectioning sampling position in the sectioning display region, and obtaining second dam body displacement data corresponding to the target space unit or the target space region from the finite element result data; converting the second dam body displacement data into a second visualization parameter according to the preset mapping relationship, and associating the second visualization parameter with a geometric representation of the sectioning display region to form a sectioning visualization attribute for rendering; rendering and displaying the sectioning display region based on the sectioning visualization attribute to output a displacement visualization result of the sectioning surface.
3. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 1, wherein, The method of constructing a finite element space discrete model based on geometric information in finite element result data comprises the following steps: reading geometric information from the finite element result data, wherein the geometric information at least includes node information and element information; analyzing the node information to extract node identification and corresponding three-dimensional coordinate components of each node, and generating finite element node coordinate data; analyzing the element information to extract element identification and a node identification set constituting the element, and generating element connection relationship data; constructing a node index mapping relationship based on the finite element node coordinate data, and converting the node identification set in the element connection relationship data into a node index set based on the node index mapping relationship; performing consistency verification on the node coordinate data and the element connection relationship data to obtain verified finite element node coordinate data and verified element connection relationship data; constructing a finite element grid object based on the verified finite element node coordinate data and the verified element connection relationship data; establishing a topological association relationship based on the finite element grid object; generating the finite element space discrete model based on the finite element grid object and the topological association relationship.
4. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 3, wherein, The consistency verification at least includes verifying the structural integrity of the element connection relationship data, and verifying whether the node identification set in the element connection relationship data exists in the node coordinate data. The consistency check is performed on the node coordinate data and the element connection relationship data to obtain checked finite element node coordinate data and checked element connection relationship data. When the consistency check fails, the abnormal data is marked, removed and / or corrected.
5. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 1 or 2, wherein, The visualization method of the finite element result data in the dam three-dimensional model further includes: when an update instruction of the first dam body displacement data and / or the second dam body displacement data is detected, and / or a refresh instruction is received, updating the visualization attribute and / or the section visualization attribute according to a preset refresh strategy and triggering a rendering display update to realize dynamic visualization.
6. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 1 or 2, wherein, Associating the first visualization parameter and / or the second visualization parameter to the geometric representation of the dam three-dimensional model and / or the section display area includes: writing the first visualization parameter and / or the second visualization parameter into a vertex attribute channel and / or a vertex color channel and / or a texture channel of the geometric representation to form the visualization attribute and / or the section visualization attribute.
7. The method of visualizing finite element result data in a three-dimensional model of a dam according to claim 1 or 2, wherein, The geometric representation of the dam three-dimensional model includes grid vertices and face patches composed of the grid vertices. The rendering display includes: The visualization attribute and / or the section visualization attribute are interpolated by a face patch, and a displacement heat map is output by a graphic rendering shader.
8. A device for visualizing finite element result data in a three-dimensional model of a dam, characterized in that, It includes: The construction module is configured to construct a finite element space discrete model based on geometric information in the finite element result data; The determination module is configured to determine a target space element or a target space region corresponding to a sampling position in the dam three-dimensional model in the finite element space discrete model based on the sampling position, and obtain first dam body displacement data corresponding to the target space element or the target space region from the finite element result data; The conversion module is configured to convert the first dam body displacement data into a first visualization parameter according to a preset mapping relationship; The association module is configured to associate the first visualization parameter to a geometric representation of the dam three-dimensional model to form a visualization attribute for rendering; The rendering module is configured to render and display the dam three-dimensional model based on the visualization attribute to output a displacement visualization result of a surface of the dam three-dimensional model.
9. An electronic device comprising: a processor; and a memory having computer readable instructions stored thereon, the computer readable instructions being executed by the processor to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method of any one of claims 1 to 7.
Citation Information
Cited By
Building structure simulation result visual interaction system
CN122113247A