An assembly building safety and health detection method and system

By combining the multi-stage grid division method of k-ε model and LES turbulence model, the wind pressure distribution of prefabricated buildings under complex wind farms is accurately captured, and the accuracy and efficiency problems of stroke pressure analysis in the existing technology are solved, and structural health assessment and optimized design are realized.

CN119475491BActive Publication Date: 2025-07-18HUNAN VOCATIONAL INST OF SAFETY TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411395605.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-07-18
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

The existing wind pressure analysis methods cannot accurately evaluate the wind pressure distribution of prefabricated buildings in real time and in extreme wind farm conditions, especially in high-rise buildings or complex-shaped buildings, which affects structural safety and energy efficiency.

Method used

The method of combining k-ε model and LES turbulence model is used to capture the wind pressure distribution through multiple mesh divisions and high-precision local mesh divisions, and the wind pressure distribution data is imported into ABAQUS for stress and strain analysis.

Benefits of technology

It improves the accuracy and reliability of wind pressure distribution simulation, identifies high-stress areas and weak points in the structure, supports structural reinforcement and optimized design, and improves building safety and life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119475491B_ABST
    Figure CN119475491B_ABST
Patent Text Reader

Abstract

The present application discloses a method and system for safety and health inspection of prefabricated buildings. The method of the present application includes: constructing a geometric model of a prefabricated building, and performing the first mesh division on the geometric model of the prefabricated building using ANSYS Meshing; importing the geometric model and the mesh; configuring the first boundary conditions and the first initial conditions in the k-ε model; running the k-ε model for simulation; determining the key areas in the prefabricated building; performing the second mesh division on the key areas; using an automated import script to import the local mesh obtained after the second mesh division into ANSYS Fluent again; configuring the second boundary conditions and the initial conditions in the LES turbulence model; running the LES turbulence model based on the second boundary conditions and the second initial conditions until the preset simulation duration is reached; extracting the wind pressure distribution data of the prefabricated building according to the simulation results, and importing the wind pressure distribution data into ABAQUS for stress and strain analysis of the prefabricated building.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of building safety, and particularly to a safety and health detection method and system for prefabricated buildings. Background Art

[0002] As a solution for rapid construction and sustainable development, prefabricated buildings are being widely used globally. Compared with traditional buildings, prefabricated buildings have advantages such as short construction periods, controllable quality, and efficient resource utilization, and thus have broad application potential under various climate conditions.

[0003] However, with the development of building structural complexity and height, the structural design and wind pressure analysis of prefabricated buildings under complex wind field conditions have become key challenges. Current wind pressure analysis methods often cannot accurately evaluate the wind pressure distribution of buildings in extreme weather conditions in real time, especially in high-rise buildings, multi-story structures, or buildings with complex shapes, where problems such as wind pressure concentration and local failure risks exist. These problems not only affect the safety of building structures but may also lead to a decline in energy efficiency and indoor comfort.

[0004] Current wind pressure analysis methods mainly rely on static equivalent wind loads or simplified wind pressure distribution models, which usually cannot capture the dynamic effects of wind field changes on building structures. Although traditional wind tunnel tests can provide some on-site data support, they are costly, time-consuming, and cannot provide real-time feedback on results, limiting their application and effectiveness in actual engineering. Summary of the Invention

[0005] To solve the above technical problems, the present application provides a safety and health detection method and system for prefabricated buildings.

[0006] In a first aspect of the present application, a safety and health detection method for prefabricated buildings is provided, and the method includes:

[0007] Construct a geometric model of a prefabricated building and perform a first mesh division on the geometric model of the prefabricated building using ANSYS Meshing;

[0008] Import the geometric model and mesh into ANSYS Fluent through a custom import script;

[0009] Configure a first boundary condition and a first initial condition in the k-ε model, where the first boundary condition includes an inlet boundary condition, an outlet boundary condition, and a wall boundary condition, and the first initial condition includes the initial condition of the computational domain;

[0010] Run the k-ε model for simulation based on the boundary condition and the initial condition until a preset simulation duration is reached;

[0011] Determine the key areas in the prefabricated building based on the results simulated by the k-ε model;

[0012] On the geometric model, perform a second mesh division on the key areas to obtain local meshes; the mesh accuracy used in the second mesh division is higher than that of the first mesh division;

[0013] Use an automated import script to import the local meshes obtained after the second mesh division into ANSYS Fluent again;

[0014] Configure the second boundary conditions and initial conditions in the LES turbulence model, where the second boundary conditions include the inlet wind vector, turbulence intensity, outlet pressure or free outflow, and the wall no-slip condition, and the second initial conditions include the initial conditions of the computational domain;

[0015] Run the LES turbulence model based on the second boundary conditions and the second initial conditions until the preset simulation duration is reached;

[0016] Extract the wind pressure distribution data of the prefabricated building according to the simulation results, and import the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building.

[0017] Optionally, the importing the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building includes:

[0018] Import the geometric model of the prefabricated building into ABAQUS;

[0019] Perform a third mesh division on the geometric model of the prefabricated building according to the preset division accuracy;

[0020] Create a static analysis step in the Step module, and define the analysis type, time step, and third boundary conditions;

[0021] Create an analysis job in the Job module and set the solution parameters;

[0022] Submit the analysis job and run the static stress analysis.

[0023] Optionally, the key areas include the wind pressure concentration area and the airflow separation and reattachment area; the determining the key areas in the prefabricated building based on the results simulated by the k-ε model includes:

[0024] Obtain the simulation result file;

[0025] Create an isosurface plot in the Post-Processing module in ANSYS Fluent;

[0026] Define the surface variable as pressure and determine the surface that shows the wind pressure distribution;

[0027] Generate a pressure distribution map;

[0028] Generate a flow field map;

[0029] Determine the wind pressure concentration area based on the pressure distribution map;

[0030] Determine the air flow separation and reattachment areas based on the flow field map.

[0031] Optionally, the importing of the geometric model and mesh in ANSYS Fluent through a custom import script includes:

[0032] Use the os.system() command to start ANSYS Fluent and execute a script containing the imported mesh to read the imported mesh;

[0033] Set the solver to a pressure-based model;

[0034] Initialize the fluid;

[0035] Perform a calculation for one thousand steps;

[0036] Save the calculation result as a.cas file.

[0037] Optionally, the performing of a second mesh division on the key area on the geometric model to obtain a local mesh includes:

[0038] Use the pyansys.launch_mapdl() command to start Ansys MAPDL and create a connection instance;

[0039] Enter the preprocessing environment ansys.prep7();

[0040] Load the geometric model and mesh through the ansys.resume() command;

[0041] Select the key area through the ansys.lsel() and ansys.cm() commands and define it as a component;

[0042] Set the local mesh size of the key area through ansys.lesize();

[0043] Define the mesh shape as three-dimensional through ansys.mshape(0,'3D');

[0044] Use ansys.mopt('INRES','OFF') to turn off the internal reentry option;

[0045] Apply the meshing operation through the ansys.vmesh('ALL') command.

[0046] Optionally, the step of re - importing the local mesh obtained after the second meshing into the ANSYS Fluent using the automated import script includes:

[0047] Create a command set that contains the file / read - mesh command and the mesh / check command;

[0048] Write the command set into a TUT script file;

[0049] Run ANSYS Fluent through the subprocess.run(command, shell = True, check = True) command and execute the TUT script file.

[0050] Optionally, the file / read - mesh command is used to specify the path of the local mesh after the second meshing;

[0051] The mesh / check command is used to perform mesh quality inspection.

[0052] The second aspect of the present application provides an assembled building safety and health detection system, and the system includes:

[0053] A first model processing unit, configured to construct a geometric model of an assembled building and perform the first meshing on the geometric model of the assembled building using ANSYS Meshing;

[0054] A first import unit, configured to import the geometric model and the mesh into ANSYS Fluent through a custom import script;

[0055] A first configuration unit, configured to configure a first boundary condition and a first initial condition in the k - ε model, where the first boundary condition includes an inlet boundary condition, an outlet boundary condition, and a wall boundary condition, and the first initial condition includes an initial condition of the computational domain;

[0056] A first simulation unit, configured to run the k - ε model for simulation based on the boundary condition and the initial condition until a preset simulation duration is reached;

[0057] A key area determination unit, configured to determine a key area in the assembled building based on the result of the simulation of the k - ε model;

[0058] A second model processing unit, configured to perform a second mesh generation on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh generation is higher than that of the first mesh generation;

[0059] A second import unit, configured to use an automated import script to import the local mesh obtained after the second mesh generation into the ANSYS Fluent again;

[0060] A second configuration unit, configured to configure second boundary conditions and initial conditions in the LES turbulence model, where the second boundary conditions include an inlet wind vector, turbulence intensity, an outlet pressure or a free outflow, and a wall no-slip condition, and the second initial conditions include the initial conditions of the computational domain;

[0061] A second simulation unit, configured to run the LES turbulence model based on the second boundary conditions and the second initial conditions until a preset simulation duration is reached;

[0062] An analysis unit, configured to extract the wind pressure distribution data of the prefabricated building according to the simulation results, and import the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building.

[0063] Optionally, the analysis unit is specifically configured to:

[0064] Import the geometric model of the prefabricated building into ABAQUS;

[0065] Perform a third mesh generation on the geometric model of the prefabricated building according to a preset division accuracy;

[0066] Create a static analysis step in the Step module, and define the analysis type, time step size, and third boundary conditions;

[0067] Create an analysis job in the Job module, and set the solution parameters;

[0068] Submit the analysis job and run a static stress analysis.

[0069] A third aspect of the present application provides a safety and health detection system for a prefabricated building, where the system includes:

[0070] A processor, a memory, an input / output unit, and a bus;

[0071] The processor is connected to the memory, the input / output unit, and the bus;

[0072] The memory stores a program, and the processor calls the program to execute the method according to the first aspect and any optional method in the first aspect.

[0073] As can be seen from the above technical solutions, the present application has the following advantages:

[0074] 1. By adopting the method of combining the k-ε model and the LES turbulence model, through preliminary and refined simulations, it is possible to more accurately capture the wind pressure distribution of prefabricated buildings under different wind field conditions. Through multiple mesh divisions and high-precision local mesh divisions, the accuracy and reliability of the simulation results are improved.

[0075] 2. By importing the wind pressure distribution data obtained from CFD simulations into ABAQUS for stress and strain analysis, the structural health status of prefabricated buildings can be comprehensively evaluated. Identifying high-stress areas and possible structural weak points in the structure helps to carry out structural reinforcement and optimize the design in advance.

[0076] 3. First, use the k-ε model for global simulation to quickly obtain the preliminary wind pressure distribution and average flow field, and then apply the LES model for detailed simulation in key areas, which can balance efficiency and accuracy. Through this multi-level simulation method, it is possible to better capture the details and dynamic behavior of turbulence and improve the reliability of the simulation results.

[0077] 4. Based on the stress and strain analysis results, the structural optimization design of prefabricated buildings can be carried out, reducing the risks of high-stress areas and fatigue cracks, and improving the overall safety and lifespan of the structure. Providing data support and technical guidance for future design and construction, and promoting the development of the prefabricated building industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the technical solutions in the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0079] Figure 1 It is a schematic flowchart of an embodiment of the safety and health detection method for prefabricated buildings provided in the present application;

[0080] Figure 2 It is a schematic structural diagram of an embodiment of the safety and health detection system for prefabricated buildings provided in the present application;

[0081] Figure 3 It is a schematic structural diagram of an embodiment of another safety and health detection system for prefabricated buildings provided in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0082] It should be noted that the prefabricated building safety and health detection method provided in this application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone, a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of description, in this application, the terminal is taken as the execution subject for illustration.

[0083] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of an embodiment of the prefabricated building safety and health detection method provided in this application. The method of this embodiment includes:

[0084] S101. Construct a geometric model of the prefabricated building and perform the first mesh division on the geometric model of the prefabricated building using ANSYS Meshing;

[0085] In this embodiment, it is necessary to use modeling software (such as AutoCAD, SolidWorks, or Revit) to construct a geometric model of the prefabricated building. Export the geometric model file (such as STEP or IGES format) to ensure the integrity of the model details. Import the geometric model into the ANSYS Meshing module. Select an appropriate mesh type (such as tetrahedral mesh or hexahedral mesh). Set the initial mesh size and quality control parameters, and perform the first mesh division.

[0086] First, determine the modeling software

[0087] AutoCAD: Suitable for two-dimensional floor plans and simple three-dimensional modeling. Suitable for geometric construction in the early design stage.

[0088] SolidWorks: A powerful three-dimensional modeling tool, suitable for modeling complex prefabricated building structures. Can create accurate three-dimensional geometric models and perform detailed designs.

[0089] Revit: Focuses on building information modeling (BIM), suitable for overall modeling and detailed design of building structures, and is convenient for processing building construction information.

[0090] Define the building dimensions and shape: Input the specific dimensions and shape of the building according to the building design drawings.

[0091] Add structural components, including walls, floors, beams, columns, etc., to ensure the accuracy and integrity of the model.

[0092] Check and correct the model to ensure that the model has no errors, such as overlapping parts, missing faces, etc., and confirm that the model is consistent with the actual building.

[0093] Export the geometric model file and select the export format: STEP, IGES, or other supported CAD formats. STEP (Standard for the Exchange of Product model data) and IGES (Initial Graphics Exchange Specification) are used for the exchange of geometric model data.

[0094] During the export process, select the appropriate accuracy and units to ensure that the exported geometric model can be correctly read in ANSYS. Export the model in STEP or IGES format and confirm the integrity and accuracy of the file.

[0095] Import the geometric model into the ANSYS Meshing module

[0096] Open ANSYS Workbench and create a new project. Import the geometric model in STEP or IGES format into the "Geometry" module in ANSYS Workbench. This can be done through the "Import" option.

[0097] Select the mesh type:

[0098] Tetrahedral Mesh: Suitable for complex geometric structures and is suitable for irregular geometric shapes.

[0099] Hexahedral Mesh: Suitable for regular geometric shapes, which can provide higher accuracy and computational efficiency, but has higher requirements for geometry.

[0100] Select the mesh type: Select the appropriate mesh type in the ANSYS Meshing module, which is determined according to the complexity of the geometric model and the calculation requirements.

[0101] Set the mesh size and quality control parameters. First, set the overall size of the mesh, including the side length of each element. A smaller mesh size can provide higher accuracy, but the calculation time and resource consumption will also increase.

[0102] Global Size: Set the size of the overall mesh.

[0103] Element Size: Set the side length of each mesh element, usually adjusted according to geometric complexity.

[0104] For critical regions or high-stress regions in the geometric model, perform local mesh refinement to improve simulation accuracy. Check the quality of the mesh to ensure that there are no overly distorted or irregular elements. You can use the mesh quality assessment tools provided by ANSYS Meshing to check parameters such as mesh distortion and element shape.

[0105] After setting the mesh size and quality control parameters, run the mesh generation tool to create a preliminary mesh.

[0106] Check the mesh: Confirm the result of the mesh division and check for any problems such as mesh overlap or voids. Save the mesh file and import it into ANSYS Fluent for further simulation.

[0107] The following provides an example of using pyansys (a Python library for interacting with ANSYS) in Python to create and mesh a geometric model. This example mainly demonstrates the operation of using a Python script to handle meshing.

[0108] import pyansys

[0109] import numpy as np

[0110] # Initialize the ANSYS Workbench connection

[0111] ansys = pyansys.launch_mapdl()

[0112] # Create a new project and open it

[0113] ansys.prep7() # Switch to the preprocessor

[0114] # Define the geometric model - create a simple cube for demonstration

[0115] ansys.block(0, 1, 0, 1, 0, 1) # Define a cube with coordinates from (0, 0, 0) to (1, 1, 1)

[0116] # Define the mesh settings

[0117] ansys.et(1, 185) # Define the element type (185 is a 3D structural solid element)

[0118] ansys.sectype(1,'SOLID') # Define the section type as solid

[0119] ansys.secdata(1, 1) # Define the section data

[0120] # Define the mesh size

[0121] mesh_size = 0.1 # Define the mesh size

[0122] ansys.size(mesh_size) # Set the global mesh size

[0123] # Generate the mesh

[0124] ansys.mesh('all') # Mesh all volumes

[0125] # Save the mesh

[0126] ansys.save('geometry_mesh.cdb') # Save the mesh to a file

[0127] # Close ANSYS

[0128] ansys.finish()

[0129] print("Mesh generation completed and saved.")

[0130] In this example, ANSYS MAPDL is launched through pyansys.launch_mapdl(). A simple cube model is created using ansys.block(). In practical applications, you need to create complex geometric models according to the building design. The entire geometry is meshed using ansys.mesh. The mesh data is saved to a file.

[0131] S102. Import the geometric model and the mesh into ANSYS Fluent through a custom import script;

[0132] Open ANSYS Fluent and create a new fluid flow analysis project. Import the mesh file generated in ANSYS Meshing.

[0133] In this embodiment, the geometric model and the mesh are imported into ANSYS Fluent through a custom import script.

[0134] First, use the os.system('fluent 3d - g - i import_mesh.jou') command to launch ANSYS Fluent and execute the script (import_mesh.jou) that contains the mesh import.

[0135] Example content of the import_mesh.jou file:

[0136] This file contains a series of Fluent commands for importing the mesh and performing basic settings and calculations.

[0137] / file / read-case final_mesh.cdb

[0138] / define / models / solver / pressure-based

[0139] / solve / initialize / initialize-flow

[0140] / solve / iterate 1000

[0141] / file / write-case-data final_solution.cas

[0142] exit

[0143] Read the mesh file:

[0144] / file / read-case final_mesh.cdb: Read the previously generated mesh file.

[0145] Define the solver model:

[0146] / define / models / solver / pressure-based: Set the solver to a pressure-based model.

[0147] Initialize the flow field:

[0148] / solve / initialize / initialize-flow: Initialize the flow field.

[0149] Run the calculation:

[0150] / solve / iterate 1000: Perform 1000 steps of iterative calculation.

[0151] Save the calculation results:

[0152] / file / write-case-data final_solution.cas: Save the calculation results as a.cas file.

[0153] Exit Fluent:

[0154] exit: Exit ANSYS Fluent.

[0155] Through the above steps, the geometric model and the mesh file will be imported into ANSYS Fluent and preliminary fluid calculations will be performed.

[0156] S103. Configure the first boundary conditions and the first initial conditions in the k-ε model. The first boundary conditions include the inlet boundary condition, the outlet boundary condition, and the wall boundary condition. The first initial conditions include the initial conditions of the computational domain.

[0157] In this step, it is necessary to set the inlet velocity or wind speed vector, define the turbulence intensity and scale. Set the pressure outlet or free outflow boundary to ensure that the fluid can freely leave the computational domain. Define the no-slip condition of the wall to ensure that the fluid velocity is zero at the wall. Set the initial velocity field and pressure field of the computational domain and select appropriate initial conditions according to the actual situation.

[0158] S104. Run the k-ε model for simulation based on the boundary conditions and the initial conditions until the preset simulation duration is reached.

[0159] This step can be implemented using an automated script. Use the following command to execute the script in the command line:

[0160] fluent 3d-g-i solve_ke_model.jou

[0161] An example of an automated script is as follows:

[0162] / file / read-case final_mesh.cas

[0163] Select the k-ε turbulence model

[0164] / define / models / viscous / ke-standard

[0165] Set the time step (for transient simulation)

[0166] / solve / set / time-step 0.001

[0167] Set the convergence criteria

[0168] / solve / monitors / residual / criteria 0.001

[0169] Initialize the solution

[0170] / solve / initialize / initialize-flow

[0171] Run the calculation

[0172] / solve / iterate 1000

[0173] Save the calculation results

[0174] / file / write-case-data final_solution.cas

[0175] In this example:

[0176] In the Viscous Model menu, select the Standard k-epsilon model. Set the time step and convergence criteria: Set the time step (if necessary). Set the residual convergence criteria in the Solution Controls menu. Set the number of iterations and start the calculation. Monitor the residual plot during the calculation. After the calculation is completed, save the.cas and.dat files to ensure that all important simulation data is saved.

[0177] Through the above steps, the k-ε turbulence model can be successfully run for wind pressure distribution simulation, and the calculation results can be saved to provide data support for subsequent structural analysis.

[0178] S105. Determine the key areas in the prefabricated building based on the results simulated by the k-ε model;

[0179] In this step, use the post-processing tool of ANSYS Fluent to view the simulation results and identify the areas with high wind pressure and large turbulence intensity. Based on the wind pressure and turbulence distributions, determine the structural weak points and the areas that need to be further refined in the simulation.

[0180] In this step, in the wind pressure distribution diagram, search for the areas with high wind pressure. These areas are usually the places where the structure is subjected to large forces and may have potential weak points.

[0181] In the turbulence intensity distribution diagram, search for the areas with large turbulence intensity. These areas are usually the places where the fluid flow changes violently and may cause additional dynamic loads on the structure.

[0182] In the wind pressure distribution diagram, use the marking tool to mark the areas with high wind pressure and record their positions and ranges.

[0183] In the turbulence intensity distribution diagram, use the marking tool to mark the areas with high turbulence intensity and record their positions and ranges.

[0184] The following is a specific operation example to identify the key areas through the ANSYS Fluent GUI and command line interface:

[0185] Load the calculation results

[0186] / file / read-case-data final_solution.cas

[0187] View static pressure distribution

[0188] / display / contour static-pressure

[0189] View turbulence intensity distribution

[0190] / display / contour turbulence-intensity

[0191] Export data of key regions

[0192] / file / export contour_data.dat

[0193] The specific implementation method is as follows:

[0194] Open the post-processing tool and load the calculation results:

[0195] Use the / file / read-case-data command in ANSYS Fluent to load the previously saved calculation result file.

[0196] View the wind pressure and turbulence intensity distributions:

[0197] Use the / display / contour command to view the distribution diagrams of static pressure and turbulence intensity.

[0198] Identify the regions with high wind pressure and high turbulence intensity by analyzing the distribution diagrams of wind pressure and turbulence intensity.

[0199] Use the marking tool to mark the key regions in the diagram and record their positions and ranges.

[0200] Use the / file / export command to export the data information of the key regions for subsequent analysis.

[0201] S106. On the geometric model, perform a second mesh division on the key region to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than that of the first mesh division;

[0202] In this step, it is necessary to select the key region in the geometric model and re-perform local mesh division. Set higher mesh accuracy and refinement parameters to ensure that the local mesh is more detailed.

[0203] First, import the geometric model and the results of the first mesh division to ensure that the geometric model and the results of the first mesh division have been imported into the ANSYS Meshing module.

[0204] Based on previous simulation results, determine the key areas that require a second mesh division. These areas can be regions with concentrated wind pressure or high turbulence intensity.

[0205] In ANSYS Meshing, use the selection tool to select the key areas in the geometric model.

[0206] In ANSYS Meshing, create local mesh controls for the key areas.

[0207] In the local mesh control settings, specify a higher mesh accuracy. Set the element size of the local mesh to be smaller than the size during the first mesh division.

[0208] Generate a new mesh, where the key areas will have a higher mesh accuracy. Click Generate Mesh to generate the new refined mesh.

[0209] In an alternative embodiment, ANSYS ACT or PyAnsys can be used for automation, and scripts can be used to implement these steps. The following is an example script:

[0210] import pyansys

[0211] # Initialize Ansys Workbench connection

[0212] ansys = pyansys.launch_mapdl()

[0213] # Load the existing project and geometry

[0214] ansys.prep7()

[0215] ansys.resume('geometry_mesh.cdb')

[0216] # Define the key points / areas for local mesh refinement

[0217] keypoint_id = 1 # Example key point ID, replace with the actual key point ID

[0218] area_id = 1 # Example area ID, replace with the actual area ID

[0219] # Apply local mesh control

[0220] ansys.lsel('S','AREA',vmin = area_id,vmax = area_id) # Select the area

[0221] ansys.cm('LOCAL_AREA','AREA') # Create a component named LOCAL_AREA

[0222] ansys.esel('S','KP',vmin=keypoint_id,vmax=keypoint_id) # Select keypoints

[0223] ansys.cm('LOCAL_KP','KP') # Create a component named LOCAL_KP

[0224] # Refine the mesh in the selected area

[0225] local_mesh_size=0.05 # A smaller mesh size for local refinement

[0226] ansys.lesize('ALL',local_mesh_size) # Set the local mesh size for all selected areas

[0227] ansys.mshape(0,'3D') # Set the mesh shape to 3D

[0228] ansys.mopt('INRES','OFF') # Turn off the internal restraint option

[0229] ansys.type(1) # Set the element type

[0230] ansys.et(1,185) # Define the element type as 185 (3D structural solid element)

[0231] ansys.sectype(1,'SOLID') # Define the section type as solid

[0232] ansys.secdata(1,1) # Define the section data

[0233] ansys.vmesh('ALL') # Mesh all volumes

[0234] # Save the refined mesh

[0235] ansys.save('refined_geometry_mesh.cdb')

[0236] ansys.finish()

[0237] print("Local mesh refinement completed and saved.")

[0238] This code example is mainly used for local mesh refinement of a geometric model in Ansys MAPDL. First, use pyansys.launch_mapdl() to start Ansys MAPDL and create a connection instance. Enter the preprocessing environment ansys.prep7(), and load the previously saved geometric model and mesh data through ansys.resume('geometry_mesh.cdb'). Then, select the geometric area to be refined through ansys.lsel('S','AREA',vmin=area_id,vmax=area_id) and ansys.cm('LOCAL_AREA','AREA'), and define it as a component. Similarly, ansys.esel('S','KP',vmin=keypoint_id,vmax=keypoint_id) and ansys.cm('LOCAL_KP','KP') are used to select and define the keypoint component.

[0239] Use ansys.lesize('ALL',local_mesh_size) to set the local mesh size of the refined area to ensure mesh accuracy. Define the mesh shape as three-dimensional through ansys.mshape(0,'3D'), and use ansys.mopt('INRES','OFF') to turn off the internal reentry option to optimize mesh generation. Specify the mesh element type as ansys.et(1,185) and the section type as ansys.sectype(1,'SOLID'), and set the section data ansys.secdata(1,1). Finally, apply the refined mesh operation ansys.vmesh('ALL'), save the updated mesh data ansys.save('refined_geometry_mesh.cdb'), and end the session through ansys.finish().

[0240] Through the above steps, a more detailed mesh can be generated in the key areas, thus improving the accuracy and reliability of local simulations.

[0241] S107. Use an automated import script to import the local mesh obtained after the second mesh generation into the ANSYS Fluent again;

[0242] In this embodiment, an automated import script is used to import the local mesh obtained from the second mesh generation into ANSYS Fluent again. Using an automated script to import the local mesh file in ANSYS Fluent and check the mesh quality can significantly improve efficiency. The following provides an example Python script that uses the pyansys library to implement this process. In this example, pyansys is mainly used to interact with ANSYS MAPDL, and Fluent scripts need to use Fluent's scripting language (such as TUI commands) or other adapted libraries. The following example assumes using ANSYS Fluent's TUI scripting language for mesh checking.

[0243] import subprocess

[0244] # Set the path to the Fluent script file

[0245] fluent_script_path = 'fluent_script.tui'

[0246] mesh_file_path ='refined_geometry_mesh.msh' # Path to the local mesh file

[0247] # Create the content of the Fluent script

[0248] fluent_script = f"""

[0249] / file / read - mesh {mesh_file_path} # Import the local mesh file

[0250] / mesh / check # Check the mesh quality

[0251] # Write the script to a file

[0252] with open(fluent_script_path, 'w') as file:

[0253] file.write(fluent_script)

[0254] # Run the Fluent script

[0255] def run_fluent_script(script_path):

[0256] # Run Fluent through the command line and execute the TUI script

[0257] command = f"fluent 3d -i {script_path}"

[0258] subprocess.run(command, shell=True, check=True)

[0259] # Execute the script

[0260] run_fluent_script(fluent_script_path)

[0261] print("Mesh import and check completed.")

[0262] In this example, the main task of the script is to automate the import of a local mesh file in ANSYS Fluent and check the mesh quality. First, the script realizes the import and check operations by creating the Fluent script content, where the `file / read-mesh{mesh_file_path}` command is used to import the specified local mesh file in Fluent, and the `mesh / check` command is used to check the quality of the mesh. Then the script writes these commands into a TUI script file and saves it to the specified path `fluent_script_path`. Finally, the script runs Fluent in the system command line through the `subprocess.run(command, shell=True, check=True)` command and executes the just-created TUI script, thus completing the automated process of mesh import and quality check.

[0263] S108. Configure the second boundary conditions and initial conditions in the LES turbulence model. The second boundary conditions include the inlet wind vector, turbulence intensity, outlet pressure or free outflow, and the wall no-slip condition. The second initial conditions include the initial conditions of the computational domain;

[0264] In step S108, it is necessary to configure the second set of boundary conditions and initial conditions in the LES (Large Eddy Simulation) turbulence model of ANSYS Fluent. First, set the inlet boundary conditions, which include defining the wind vector to specify the direction and speed of the wind, and at the same time set the turbulence intensity to describe the volatility of the flow. Then configure the outlet boundary conditions, which can be set as a pressure outlet or a free outflow to allow the fluid to leave the computational domain freely and avoid unnecessary restrictions on the fluid flow. The wall boundary conditions need to be set as the no-slip condition to ensure that the velocity of the fluid at the wall is zero, thus simulating the real interaction between the fluid and the wall. In the initial condition configuration, set the initial velocity field and pressure field of the computational domain to provide a reasonable starting state for the operation of the LES model. The configuration of these boundary and initial conditions is the basis for performing LES simulations.

[0265] S109. Run the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation duration is reached;

[0266] In this step, it is necessary to start the LES (Large Eddy Simulation) turbulence model in ANSYS Fluent based on the second set of boundary conditions and initial conditions configured in the previous step. At the beginning of this step, the previously set boundary conditions (such as the inlet wind vector, turbulence intensity, outlet pressure or free outflow, and wall no-slip condition) and initial conditions (such as the initial velocity field and pressure field of the computational domain) are applied to the LES model. Start the simulation running process and set an appropriate time step to ensure the stability and accuracy of the simulation. The LES model will calculate the flow characteristics and turbulence structure of the fluid within a given time step by solving the time-dependent Navier-Stokes equations. Monitor the residuals and convergence of the simulation to ensure the stability of the simulation process until the preset simulation duration is reached.

[0267] S110. Extract the wind pressure distribution data of the prefabricated building according to the simulation results, and import the wind pressure distribution data into ABAQUS for stress and strain analysis of the prefabricated building.

[0268] In this embodiment, after the simulation is completed, use the post-processing tools of ANSYS Fluent, such as the Contour, XYPlot or Field Function functions, to view and extract the wind pressure distribution data. These tools allow users to visualize the wind pressure field and obtain the specific wind pressure values of data points or data regions.

[0269] Export the extracted wind pressure distribution data into a data format suitable for importing into ABAQUS, such as CSV, TXT or Excel format. Start ABAQUS / CAE and create or open an existing prefabricated building model.

[0270] In ABAQUS, use the Load module to create a new load definition. Apply the wind pressure distribution to the surface or nodes of the model according to the exported wind pressure data. You can choose to map the data to the model by directly inputting the data or using the Field Output function of ABAQUS.

[0271] To apply the imported data to the corresponding surface of the model, it is necessary to interpolate the wind pressure data to the grid nodes to ensure the accuracy and continuity of the data.

[0272] Select the appropriate analysis type as needed, such as static stress analysis or transient analysis. Configure the analysis steps, including time step, nonlinear options, etc. Set and check all relevant boundary conditions to ensure they conform to the actual structural stress situation. Run the ABAQUS analysis to calculate the stress and strain responses of the model under wind pressure. Monitor the solution progress during the calculation to ensure that the calculation proceeds normally without convergence problems. After the analysis is completed, use the visualization tool of ABAQUS to view the stress and strain distributions. Generate stress and strain contour maps and other relevant graphics for result interpretation. According to the analysis results, check the performance of the building structure and identify potential weak points or design optimization points.

[0273] The above embodiments have described in detail the prefabricated building safety and health detection method provided in the present application. The following will describe in detail the prefabricated building safety and health detection system provided in the present application:

[0274] Refer to Figure 2 , an embodiment of a prefabricated building safety and health detection system is provided in the present application. The system of this embodiment includes:

[0275] The first model processing unit 201 is used to construct a geometric model of a prefabricated building and perform the first mesh division on the geometric model of the prefabricated building using ANSYS Meshing;

[0276] The first import unit 202 is used to import the geometric model and the mesh into ANSYS Fluent through a custom import script;

[0277] The first configuration unit 203 is used to configure the first boundary conditions and the first initial conditions in the k-ε model. The first boundary conditions include the inlet boundary condition, the outlet boundary condition, and the wall boundary condition, and the first initial conditions include the initial conditions of the computational domain;

[0278] The first simulation unit 204 is used to run the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation duration is reached;

[0279] The key area determination unit 205 is used to determine the key areas in the prefabricated building based on the results of the k-ε model simulation;

[0280] The second model processing unit 206 is used to perform a second mesh division on the key areas on the geometric model to obtain local meshes; the mesh accuracy used in the second mesh division is higher than that of the first mesh division;

[0281] A second import unit 207 for importing the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script;

[0282] A second configuration unit 208 for configuring second boundary conditions and initial conditions in the LES turbulence model, where the second boundary conditions include the inlet wind vector, turbulence intensity, outlet pressure or free outflow, and the wall no-slip condition, and the second initial conditions include the initial conditions of the computational domain;

[0283] A second simulation unit 209 for running the LES turbulence model based on the second boundary conditions and the second initial conditions until a preset simulation duration is reached;

[0284] An analysis unit 210 for extracting the wind pressure distribution data of the prefabricated building according to the simulation results and importing the wind pressure distribution data into ABAQUS for stress and strain analysis of the prefabricated building.

[0285] Optionally, the analysis unit 210 is specifically configured to:

[0286] Import the geometric model of the prefabricated building into ABAQUS;

[0287] Perform a third meshing on the geometric model of the prefabricated building according to a preset meshing accuracy;

[0288] Create a static analysis step in the Step module and define the analysis type, time step, and third boundary conditions;

[0289] Create an analysis job in the Job module and set the solution parameters;

[0290] Submit the analysis job and run a static stress analysis.

[0291] Optionally, the key area determination unit 205 is specifically configured to:

[0292] Obtain the simulation result file;

[0293] Create an isosurface plot in the Post-Processing module in the ANSYS Fluent;

[0294] Define the surface variable as pressure and determine the surface for displaying the wind pressure distribution;

[0295] Generate a pressure distribution plot;

[0296] Generate a flow field plot;

[0297] Determine the wind pressure concentration area based on the pressure distribution plot;

[0298] Determine the airflow separation and reattachment regions based on the flow field diagram.

[0299] Optionally, the first import unit 202 is specifically configured to:

[0300] Use the os.system() command to start ANSYS Fluent and execute a script containing the imported mesh to read the imported mesh;

[0301] Set the solver to a pressure-based model;

[0302] Initialize the fluid flow;

[0303] Perform a calculation for one thousand steps;

[0304] Save the calculation results as a.cas file.

[0305] Optionally, the second model processing unit 206 is specifically configured to:

[0306] Use the pyansys.launch_mapdl() command to start Ansys MAPDL and create a connection instance;

[0307] Enter the preprocessing environment ansys.prep7();

[0308] Load the geometric model and mesh through the ansys.resume() command;

[0309] Select the key area through the ansys.lsel() and ansys.cm() commands and define it as a component;

[0310] Set the local mesh size of the key area through ansys.lesize();

[0311] Define the mesh shape as three-dimensional through ansys.mshape(0, '3D');

[0312] Use ansys.mopt('INRES', 'OFF') to turn off the internal reentry option;

[0313] Apply the meshing operation through the ansys.vmesh('ALL') command.

[0314] Optionally, the second import unit 207 is specifically configured to:

[0315] Create a command set that contains the file / read-mesh command and the mesh / check command;

[0316] Write the command set into the TUT script file;

[0317] Run ANSYS Fluent through the command `subprocess.run(command, shell=True, check=True)` and execute the TUT script file.

[0318] Optionally, the `file / read-mesh` command is used to specify the path of the local mesh after the second mesh generation.

[0319] The `mesh / check` command is used to perform a mesh quality check.

[0320] See Figure 3 , this application also provides an assembled building safety and health detection system, including:

[0321] A processor 301, a memory 302, an input / output unit 303, and a bus 304;

[0322] The processor 301 is connected to the memory 302, the input / output unit 303, and the bus 304;

[0323] The memory 302 stores a program, and the processor 301 calls the program to execute any of the above-mentioned assembled building safety and health detection methods.

[0324] This application also relates to a computer-readable storage medium on which a program is stored. It is characterized in that when the program runs on a computer, the computer is caused to execute any of the above-mentioned assembled building safety and health detection methods.

[0325] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0326] In several embodiments provided by this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0327] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0328] In addition, each functional unit in various embodiments of the present application may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0329] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, read-only memory), random access memories (RAM, random access memory), magnetic disks, or optical discs that can store program codes.

Claims

1. An assembly building safety and health detection method, characterized in that, The method includes: Construct a geometric model of the prefabricated building and perform the first mesh division on the geometric model of the prefabricated building using ANSYS Meshing; Import the geometric model and the mesh into ANSYS Fluent through a custom import script; Configure the first boundary conditions and the first initial conditions in the k-ε model. The first boundary conditions include the inlet boundary condition, the outlet boundary condition, and the wall boundary condition, and the first initial conditions include the initial conditions of the computational domain; Run the k-ε model for simulation based on the boundary conditions and the initial conditions until the preset simulation duration is reached; Determine the key areas in the prefabricated building based on the results of the simulation of the k-ε model; Perform a second mesh division on the key areas on the geometric model to obtain local meshes; the mesh accuracy used for the second mesh division is higher than that of the first mesh division; Use an automated import script to import the local meshes obtained after the second mesh division into ANSYS Fluent again; Configure the second boundary conditions and the second initial conditions in the LES turbulence model. The second boundary conditions include the inlet wind vector, the turbulence intensity, the outlet pressure or free outflow, and the wall no-slip condition, and the second initial conditions include the initial conditions of the computational domain; Run the LES turbulence model based on the second boundary conditions and the second initial conditions until the preset simulation duration is reached; Extract the wind pressure distribution data of the prefabricated building according to the simulation results and import the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building.

2. The prefabricated building safety and health detection method according to claim 1, wherein The importing the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building includes: Import the geometric model of the prefabricated building into ABAQUS; Perform a third mesh division on the geometric model of the prefabricated building according to the preset division accuracy; Create a static analysis step in the Step module and define the analysis type, time step, and third boundary conditions; Create an analysis job in the Job module and set the solution parameters; Submit the analysis job and run the static stress analysis.

3. The prefabricated building safety and health detection method according to claim 1, wherein, The key areas include the wind pressure concentration area and the airflow separation and reattachment area; the determining the key areas in the prefabricated building based on the results of the simulation of the k-ε model includes: Obtain the simulation result file; Create an isosurface plot in the Post-Processing module in ANSYS Fluent; Define the surface variable as pressure and determine the surface for displaying the wind pressure distribution; Generate a pressure distribution plot; Generate a flow field plot; Determine the wind pressure concentration area based on the pressure distribution plot; Determine the airflow separation and reattachment area based on the flow field plot.

4. The prefabricated building safety and health detection method according to claim 1, characterized in that, The importing the geometric model and the mesh into ANSYS Fluent through a custom import script includes: Use the os.system() command to start ANSYS Fluent and execute the script containing the imported mesh Read the imported mesh; Set the solver to a pressure-based model; Initialize the flow field; Perform 1000 steps of calculation; Save the calculation results as a.cas file.

5. The prefabricated building safety and health detection method according to claim 1, wherein, On the geometric model, perform a second mesh division on the key area to obtain a local mesh including: Use the pyansys.launch_mapdl() command to start Ansys MAPDL and create a connection instance; Enter the preprocessing environment ansys.prep7(); Load the geometric model and mesh through the ansys.resume() command; Select the key area through the ansys.lsel() and ansys.cm() commands and define it as a component; Set the local mesh size of the key area through ansys.lesize(); Define the mesh shape as three-dimensional through ansys.mshape(0,'3D'); Use ansys.mopt('INRES','OFF') to turn off the internal reentry option; Apply the meshing operation through the ansys.vmesh('ALL') command.

6. The prefabricated building safety and health detection method according to claim 1, wherein The use of the automated import script to re-import the local mesh obtained after the second mesh division into ANSYS Fluent includes: Create a command set that contains the file / read-mesh command and the mesh / check command; Write the command set into the TUT script file; Run ANSYS Fluent through the subprocess.run(command,shell=True,check=True) command and execute the TUT script file.

7. The prefabricated building safety and health detection method according to claim 6, wherein The file / read-mesh command is used to specify the path of the local mesh after the second mesh division; The mesh / check command is used to perform a mesh quality check.

8. An assembled building safety and health detection system, characterized in that The system includes: A first model processing unit for constructing a geometric model of a prefabricated building and performing a first mesh division on the geometric model of the prefabricated building using ANSYS Meshing; A first import unit for importing the geometric model and mesh into ANSYS Fluent through a custom import script; A first configuration unit for configuring a first boundary condition and a first initial condition in the k-ε model, the first boundary condition including an inlet boundary condition, an outlet boundary condition, and a wall boundary condition, and the first initial condition including an initial condition of the computational domain; A first simulation unit for running the k-ε model for simulation based on the boundary condition and the initial condition until a preset simulation duration is reached; A key area determination unit for determining a key area in the prefabricated building based on the results of the k-ε model simulation; A second model processing unit, configured to perform a second mesh generation on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh generation is higher than that of the first mesh generation; A second import unit, configured to use an automated import script to import the local mesh obtained after the second mesh generation into the ANSYS Fluent again; A second configuration unit, configured to configure a second boundary condition and a second initial condition in the LES turbulence model, where the second boundary condition includes an inlet wind force vector, a turbulence intensity, an outlet pressure or a free outflow, and a wall no-slip condition, and the second initial condition includes an initial condition of the computational domain; A second simulation unit, configured to run the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation duration is reached; An analysis unit, configured to extract wind pressure distribution data of the prefabricated building according to the simulation result, and import the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building.

9. The prefabricated building safety and health detection system according to claim 8, characterized in that, The analysis unit is specifically configured to: Import the geometric model of the prefabricated building into ABAQUS; Perform a third mesh generation on the geometric model of the prefabricated building according to a preset division accuracy; Create a static analysis step in the Step module, and define an analysis type, a time step size, and a third boundary condition; Create an analysis job in the Job module, and set solution parameters; Submit the analysis job and run a static stress analysis.

10. An assembled building safety and health detection system, characterized in that, The system includes: A processor, a memory, an input / output unit, and a bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Wind-resistant design method for large-span retractable roof structure

    CN108932389A

  • Design method and device for novel roof additional component of transformer substation prefabricated cabin

    CN114547722A