Fabricated building safety and health detection method and system
By combining the k-ε model and the LES turbulence model, multiple grid divisions and local grid refinement are carried out, and the problem of wind pressure distribution evaluation of prefabricated buildings under extreme weather conditions is solved, and high-precision wind pressure analysis and Structural health assessment improves the safety and lifespan of the building.
Patent Information
- Application Number
- CN202411395605.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-08
AI Technical Summary
The existing wind pressure analysis methods cannot accurately evaluate the wind pressure distribution of prefabricated buildings in extreme weather conditions in real time, especially in tall buildings, multi-story structures or complex shapes, where there is a risk of concentrated wind pressure and local failure.
The method of combining k-ε model and LES turbulence model is used to capture the wind pressure distribution of prefabricated buildings under different wind farm conditions through preliminary and fine simulation. Through multiple meshing and high-precision local meshing, the accuracy and reliability of the simulation results are improved, and the wind pressure distribution data is imported into ABAQUS for stress and strain analysis.
Accurate assessment of the wind pressure distribution of prefabricated buildings is achieved, and high-stress areas and weak points in the structure are identified, which helps to strengthen and optimize the structure in advance and improve the overall safety and life of the building.
Smart Images

Figure CN119475491A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of building safety technology, and in particular to a method and system for detecting safety and health of assembled buildings. Background Art
[0002] As a solution for rapid construction and sustainable development, prefabricated buildings are being widely used around the world. Compared with traditional buildings, prefabricated buildings have the advantages of short construction period, controllable quality, and efficient resource utilization, so they have wide application potential in various climatic conditions.
[0003] However, with the development of building structure complexity and height, the structural design and wind pressure analysis of prefabricated buildings under complex wind field conditions have become key challenges. The current wind pressure analysis methods are often unable to accurately evaluate the wind pressure distribution of buildings under extreme weather conditions in real time, especially in high-rise buildings, multi-story structures or buildings with complex shapes, which have problems such as wind pressure concentration and local failure risks. These problems not only affect the safety of building structures, but may also lead to a decrease 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 impact 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 unable to provide real-time feedback, which limits their application and effectiveness in actual projects. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a method and system for safety and health detection of prefabricated buildings.
[0006] In a first aspect, the present application provides a method for detecting safety and health of an assembled building, the method comprising:
[0007] 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;
[0008] Importing the geometric model and mesh into ANSYS Fluent via a custom import script;
[0009] In the k-ε model, a first boundary condition and a first initial condition are configured, wherein 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 a computational domain;
[0010] Running the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached;
[0011] Based on the results of the k-ε model simulation, determining the key areas in the prefabricated building;
[0012] On the geometric model, performing a second mesh division on the key area to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division;
[0013] Importing the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script;
[0014] The second boundary condition and initial condition are configured in the LES turbulence model, wherein the second boundary condition includes an inlet wind vector, turbulence intensity, outlet pressure or free outflow and a wall no-slip condition, and the second initial condition includes an initial condition of the computational domain;
[0015] Running the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation time is reached;
[0016] The wind pressure distribution data of the prefabricated building is extracted according to the simulation results, and the wind pressure distribution data is imported 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] Importing the geometric model of the prefabricated building into ABAQUS;
[0019] Performing a third mesh division on the geometric model of the prefabricated building according to a preset division accuracy;
[0020] Create a static analysis step in the Step module and define the analysis type, time step, and third boundary condition;
[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 wind pressure concentration areas and airflow separation and reattachment areas; the key areas in the prefabricated building determined based on the results of the k-ε model simulation include:
[0024] Get the simulation result file;
[0025] Creating an isosurface plot in a Post-Processing module in the ANSYS Fluent;
[0026] Define the surface variable as pressure and identify the surface showing the wind pressure distribution;
[0027] Generate pressure distribution map;
[0028] Generate flow field map;
[0029] Determine a wind pressure concentration area based on the pressure distribution map;
[0030] Airflow separation and reattachment regions are determined based on the flow field map.
[0031] Optionally, importing the geometric model and mesh in ANSYS Fluent by using a custom import script includes:
[0032] Use the os.system() command to start ANSYS Fluent and execute the script containing the imported mesh to read the imported mesh;
[0033] Set the solver to a pressure-based model;
[0034] Initialization is smooth;
[0035] Perform a thousand-step calculation;
[0036] Save the calculation results as a .cas file.
[0037] Optionally, performing 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 AnsysMAPDL and create a connection instance;
[0039] Enter the pre-processing environment ansys.prep7();
[0040] Load the geometric model and mesh through ansys.resume() command;
[0041] Select the key area through 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 reentrancy option;
[0045] Apply meshing operations via the ansys.vmesh('ALL') command.
[0046] Optionally, the step of importing the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script comprises:
[0047] Create a command set, wherein the command set includes a file / read-mesh command and a mesh / check command;
[0048] Writing the command set into a TUT script file;
[0049] Run ANSYSFluent 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 mesh division;
[0051] The mesh / check command is used to perform mesh quality checks.
[0052] A second aspect of the present application provides a prefabricated building safety and health detection system, the system comprising:
[0053] A first model processing unit, used to construct a geometric model of the prefabricated building, and perform a first meshing of the geometric model of the prefabricated building using ANSYS Meshing;
[0054] A first import unit, used for importing the geometric model and mesh in ANSYS Fluent through a custom import script;
[0055] A first configuration unit is used to configure a first boundary condition and a first initial condition in the k-ε model, wherein 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 a calculation domain;
[0056] A first simulation unit, configured to run the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached;
[0057] A key area determination unit, used to determine the key area in the prefabricated building based on the result of the k-ε model simulation;
[0058] A second model processing unit is used to perform a second mesh division on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division;
[0059] A second importing unit is used to import the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script;
[0060] A second configuration unit is used to configure a second boundary condition and an initial condition in the LES turbulence model, wherein the second boundary condition includes an inlet wind 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 a computational domain;
[0061] 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 time is reached;
[0062] The analysis unit is used 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 used for:
[0064] Importing the geometric model of the prefabricated building into ABAQUS;
[0065] Performing a third mesh division 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, and third boundary condition;
[0067] Create an analysis job in the Job module and set the solution parameters;
[0068] Submit the analysis job and run the static stress analysis.
[0069] A third aspect of the present application provides a prefabricated building safety and health detection system, the system comprising:
[0070] Processor, memory, input-output unit, and bus;
[0071] The processor is connected to the memory, the input and output unit, and the bus;
[0072] The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.
[0073] It can be seen from the above technical solutions that this application has the following advantages:
[0074] 1. The combination of the k-ε model and the LES turbulence model can more accurately capture the wind pressure distribution of prefabricated buildings under different wind conditions through preliminary and detailed simulations. The accuracy and reliability of the simulation results are improved through multiple meshing and high-precision local meshing.
[0075] 2. By importing the wind pressure distribution data obtained from CFD simulation into ABAQUS for stress and strain analysis, the structural health of the prefabricated building can be fully evaluated. Identifying high stress areas and possible structural weaknesses in the structure will help to strengthen the structure 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 to perform detailed simulation in key areas, which can balance efficiency and accuracy. Through this multi-level simulation method, the details and dynamic behavior of turbulence can be better captured, and the reliability of simulation results can be improved.
[0077] 4. Based on the results of stress and strain analysis, the structural optimization design of prefabricated buildings can be carried out to reduce the risk of high stress areas and fatigue cracks, and improve the overall safety and life of the structure. It provides data support and technical guidance for future design and construction, and promotes the development of the prefabricated building industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0079] Figure 1 A schematic diagram of an embodiment of the method for detecting safety and health of prefabricated buildings provided in this application;
[0080] Figure 2 This is a schematic diagram of the structure of an embodiment of the prefabricated building safety and health detection system provided in this application;
[0081] Figure 3 This is a schematic structural diagram of an embodiment of another prefabricated building safety and health detection system provided in this application. DETAILED DESCRIPTION
[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 or 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 explanation, this application uses the terminal as an example for the execution subject.
[0083] See also Figure 1 , Figure 1 A schematic flow chart of an embodiment of a method for detecting safety and health of prefabricated buildings provided in this application. The method of this embodiment includes:
[0084] S101, constructing a geometric model of a prefabricated building, and performing a first meshing operation 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 build a geometric model of the prefabricated building. Export the geometric model file (such as STEP or IGES format) to ensure that the model details are complete. Import the geometric model into the ANSYSMeshing module. Select an appropriate mesh type (such as a tetrahedral mesh or a hexahedral mesh). Set the initial mesh size and quality control parameters to perform the first mesh division.
[0086] First determine the modeling software
[0087] AutoCAD: Suitable for 2D plan drawings and simple 3D modeling. Suitable for geometric construction in the early design stage.
[0088] SolidWorks: A powerful 3D modeling tool suitable for modeling complex prefabricated building structures. It can create accurate 3D geometric models and perform detailed design.
[0089] Revit: Focuses on Building Information Modeling (BIM), suitable for overall modeling and detailed design of building structures, and convenient for processing building construction information.
[0090] Define building size and shape: Enter the specific size and shape of the building according to the architectural design drawings.
[0091] Add structural components, including walls, floors, beams, columns, etc., to ensure the accuracy and completeness of the model.
[0092] Check and correct the model to ensure that there are no errors in the model, such as overlapping parts, missing faces, etc., and confirm that the model is consistent with the actual building.
[0093] Export the geometry 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 geometry model data.
[0094] During the export process, select the appropriate precision and units to ensure that the exported geometry model can be correctly read in ANSYS. Export the model to STEP or IGES format and confirm the integrity and accuracy of the file.
[0095] Import the geometry model into ANSYS Meshing module
[0096] Open ANSYS Workbench and create a new project. Import the geometry 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 irregular geometric shapes.
[0099] Hexahedral Mesh: Suitable for regular geometric shapes, can provide higher accuracy and computational efficiency, but has high requirements on geometry.
[0100] Select mesh type: Select the appropriate mesh type in the ANSYS Meshing module based on the complexity of the geometric model and the computational requirements.
[0101] Set the mesh size and quality control parameters. First, set the overall size of the mesh, including the edge length of each element. Smaller mesh sizes provide higher accuracy, but computational time and resource consumption will also increase.
[0102] Global Size: Set the size of the overall grid.
[0103] Element Size: Sets the side length of each grid cell, usually adjusted based on the complexity of the geometry.
[0104] For critical areas or high stress areas in the geometric model, local mesh refinement is performed to improve simulation accuracy. Check the quality of the mesh to ensure that the mesh does not have excessive distortion or irregular elements. You can use the mesh quality assessment tools provided by ANSYS Meshing to check mesh distortion, element shape, etc.
[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 meshing results and check if there are any problems such as mesh overlap or holes. Save the mesh file and import it into ANSYS Fluent for further simulation.
[0107] Here is a tutorial on how to create and mesh a geometric model in Python using pyansys (a Python library for interacting with ANSYS). This example mainly shows how to use Python scripts to handle meshing operations.
[0108] import pyansys
[0109] import numpy as np
[0110] #Initialize 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 geometry - creates 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 grid settings
[0117] ansys.et(1,185)#define the unit type (185 is a 3D structural solid unit)
[0118] ansys.sectype(1,'SOLID')#Define the section type as solid
[0119] ansys.secdata(1,1)#define cross-section data
[0120] #Define the grid size
[0121] mesh_size=0.1#define mesh size
[0122] ansys.size(mesh_size)#Set the global mesh size
[0123] # Generate the grid
[0124] ansys.mesh('all')#Mesh all volumes
[0125] #Save the grid
[0126] ansys.save('geometry_mesh.cdb')#Save the mesh to a file
[0127] #Close ANSYS
[0128] ansys.finish()
[0129] print("Grid generation completed and saved.")
[0130] In this example, ANSYS MAPDL is launched using pyansys.launch_mapdl(). A simple cube model is created using ansys.block(). In real applications, you need to create complex geometric models based on architectural design. Use ansys.mesh() to generate a mesh of the entire geometry. Save the mesh data to a file.
[0131] S102, importing the geometric model and 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 mesh are imported into ANSYS Fluent through a custom import script.
[0134] First, start ANSYSFluent using the os.system('fluent 3d-g-iimport_mesh.jou') command and execute the script (import_mesh.jou) containing the imported mesh.
[0135] Example of import_mesh.jou file content:
[0136] This file contains a series of Fluent commands for importing meshes 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 grid file:
[0144] / file / read-case final_mesh.cdb: Read the mesh file generated previously.
[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: saves the calculation results as a .cas file.
[0153] Exit Fluent:
[0154] exit: Exit ANSYS Fluent.
[0155] Through the above steps, the geometric model and mesh files will be imported into ANSYS Fluent and preliminary fluid calculations will be performed.
[0156] S103, configuring a first boundary condition and a first initial condition in the k-ε model, wherein 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 a computational domain;
[0157] In this step, you need to set the inlet velocity or wind speed vector and 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 at the wall is zero. Set the initial velocity field and pressure field of the computational domain and select the appropriate initial conditions according to the actual situation.
[0158] S104, running the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached;
[0159] This step can be implemented using an automated script. Run the following command in the command line to execute the script:
[0160] fluent 3d-gi 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 simulations)
[0166] / solve / set / time-step 0.001
[0167] Setting the convergence criteria
[0168] / solve / monitors / residual / criteria 0.001
[0169] Initialize the solution
[0170] / solve / initialize / initialize-flow
[0171] Run calculation
[0172] / solve / iterate 1000
[0173] Save calculation results
[0174] / file / write-case-data final_solution.cas
[0175] In this example:
[0176] Select the Standard k-epsilon model in the Viscous Model menu. 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 graph during the calculation. Save the .cas and .dat files after the calculation is completed, ensuring that all important simulation data is saved.
[0177] Through the above steps, the k-ε turbulence model can be successfully run to simulate the wind pressure distribution, and the calculation results can be saved to provide data support for subsequent structural analysis.
[0178] S105. Determine the key area in the prefabricated building based on the result of the k-ε model simulation;
[0179] In this step, ANSYS Fluent’s post-processing tool is used to review the simulation results and identify areas with high wind pressure and turbulence intensity. Based on the wind pressure and turbulence distribution, structural weaknesses and areas that require further simulation refinement are determined.
[0180] In this step, the wind pressure distribution map can be used to find areas with higher wind pressure. These areas are usually where the structure is subjected to greater stress and may contain potential weak points.
[0181] In the turbulence intensity distribution map, look for areas of high turbulence intensity. These areas are usually where the fluid flow changes dramatically, which may cause additional dynamic loads on the structure.
[0182] On the wind pressure distribution map, use the marking tool to mark areas of high wind pressure and record their location and extent.
[0183] In the turbulence intensity distribution map, use the marker tool to mark areas of high turbulence intensity and record their location and extent.
[0184] The following is a specific example of operation, using the ANSYS Fluent GUI and command line interface to identify critical areas:
[0185] Load 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 key area data
[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 ANSYS Fluent / file / read-case-data command to load a previously saved calculation result file.
[0196] View wind pressure and turbulence intensity distribution:
[0197] Use the / display / contour command to view the distribution of static pressure and turbulence intensity.
[0198] By analyzing the wind pressure and turbulence intensity distribution maps, areas of high wind pressure and high turbulence intensity are identified.
[0199] Use the Marking tool to mark key areas in the diagram and record their location and extent.
[0200] Use the / file / export command to export data information of key areas for subsequent analysis.
[0201] S106, performing a second mesh division on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division;
[0202] In this step, you need to select key areas in the geometric model and re-mesh the local mesh. Set higher mesh accuracy and refinement parameters to ensure that the local mesh is more detailed.
[0203] First import the geometry model and the first meshing result. Make sure the geometry model and the first meshing result have been imported into the ANSYS Meshing module.
[0204] Based on the previous simulation results, identify the key areas that require a second meshing. These areas can be areas with concentrated wind pressure or high turbulence intensity.
[0205] In ANSYS Meshing, use the selection tools to select critical areas in the geometry.
[0206] In ANSYS Meshing, create local mesh controls for critical 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 of the first meshing.
[0208] Generate a new mesh where the critical areas will have higher mesh accuracy. Click Generate Mesh to generate the new refined mesh.
[0209] In an alternative embodiment, which can be automated using ANSYS ACT or PyAnsys, 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 existing projects and geometry
[0214] ansys.prep7()
[0215] ansys.resume('geometry_mesh.cdb')
[0216] #Define key points / regions for local mesh refinement
[0217] keypoint_id=1#Example keypoint ID, replace with the actual keypoint 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 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 key points
[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 # 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 constraint option
[0229] ansys.type(1)#Set element type
[0230] ansys.et(1,185)#Define 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 cross-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 to perform local mesh refinement on the geometric model in AnsysMAPDL. First, use pyansys.launch_mapdl() to start AnsysMAPDL and create a connection instance. Enter the pre-processing environment ansys.prep7(), and load the previously saved geometric model and mesh data through ansys.resume('geometry_mesh.cdb'). Next, 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') select and define the key point component.
[0239] Use ansys.lesize('ALL',local_mesh_size) to set the local mesh size in the refined area to ensure the accuracy of the mesh. Define the mesh shape as three-dimensional using ansys.mshape(0,'3D') and turn off the internal reentry option using ansys.mopt('INRES','OFF') to optimize meshing. 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 mesh refinement operation ansys.vmesh('ALL'), save the updated mesh data ansys.save('refined_geometry_mesh.cdb'), and end the session with ansys.finish().
[0240] Through the above steps, a finer mesh can be generated in key areas, thereby improving the accuracy and reliability of local simulations.
[0241] S107, using an automated import script to import the local mesh obtained after the second meshing into the ANSYS Fluent again;
[0242] In this embodiment, the local mesh obtained by the second meshing is imported into ANSYS Fluent again using an automated import script. Importing the local mesh file in ANSYS Fluent and checking the mesh quality using an automated script can significantly improve efficiency. An example Python script is provided below, which uses the pyansys library to implement this process. In this example, pyansys is mainly used to interact with ANSYS MAP DL, and Fluent's scripts need to use Fluent's scripting language (such as TUI commands) or other adapter libraries. The following example assumes that the TUI scripting language of ANSYS Fluent is used for mesh checking.
[0243] importsubprocess
[0244] #Set the Fluent script file path
[0245] fluent_script_path='fluent_script.tui'
[0246] mesh_file_path = 'refined_geometry_mesh.msh' # local mesh file path
[0247] #Create Fluent script content
[0248] fluent_script=f"""
[0249] / file / read-mesh{mesh_file_path}#Import local mesh file
[0250] / mesh / check#Check mesh quality
[0251] #Write the script to a file
[0252] withopen(fluent_script_path,'w')asfile:
[0253] file.write(fluent_script)
[0254] #Run Fluent script
[0255] defrun_fluent_script(script_path):
[0256] #Run Fluent through the command line and execute the TUI script
[0257] command=f"fluent3d-i{script_path}"
[0258] subprocess.run(command,shell=True,check=True)
[0259] #Execute the script
[0260] run_fluent_script(fluent_script_path)
[0261] print("Grid import and inspection completed.")
[0262] In this example, the main task of the script is to automate the import of local mesh files in ANSYS Fluent and check the mesh quality. First, the script implements 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. The script then writes these commands to 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 TUI script just created, thereby completing the automated process of mesh import and quality check.
[0263] S108. configuring a second boundary condition and an initial condition in the LES turbulence model, wherein the second boundary condition includes an inlet wind vector, turbulence intensity, outlet pressure or free outflow, and a wall no-slip condition, and the second initial condition includes an initial condition of a computational domain;
[0264] In step S108, it is necessary to configure a 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 includes defining the wind vector to specify the direction and speed of the wind, and setting the turbulence intensity to describe the volatility of the flow. Then configure the outlet boundary conditions, which can be set to 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 to no-slip conditions to ensure that the velocity of the fluid at the wall is zero, thereby simulating the interaction between the real 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 boundaries and initial conditions is the basis for LES simulation.
[0265] S109, running the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation time 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 inlet wind vector, turbulence intensity, outlet pressure or free outflow and wall no-slip conditions) 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 run and set an appropriate time step to ensure the stability and accuracy of the simulation. The LES model calculates 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 time is reached.
[0267] S110. Extracting wind pressure distribution data of the prefabricated building according to the simulation results, and importing the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building.
[0268] In this embodiment, after the simulation is completed, the post-processing tools of ANSYS Fluent are used to view and extract wind pressure distribution data using functions such as Contour, XYPlot or Field Function. These tools allow the user to visualize the wind pressure field and obtain specific wind pressure values for data points or data areas.
[0269] Export the extracted wind pressure distribution data to a data format suitable for importing into ABAQUS, such as CSV, TXT, or Excel. 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 surfaces or nodes of the model based on the exported wind pressure data. You can choose to map the data onto the model by directly entering the data or using the Field Output function of ABAQUS.
[0271] Applying the imported data to the corresponding surface of the model requires interpolating the wind pressure data onto the grid nodes to ensure the accuracy and continuity of the data.
[0272] Select the appropriate analysis type, such as static stress analysis or transient analysis, as needed. Configure the analysis steps, including time step, nonlinear options, etc. Set and check all relevant boundary conditions to ensure that they meet the actual structural stress conditions. Run the ABAQUS analysis to calculate the stress and strain response of the model under wind pressure. Monitor the solution progress during the calculation process to ensure that the calculation is proceeding normally and there are no convergence problems. After the analysis is completed, use ABAQUS's visualization tools to view the stress and strain distribution. Generate stress, strain cloud diagrams and other related graphics for result interpretation. Based on the analysis results, check the performance of the building structure and identify potential weak points or design optimization points.
[0273] The above embodiment describes in detail the prefabricated building safety and health detection method provided in the present application. The following describes in detail the prefabricated building safety and health detection system provided in the present application:
[0274] See also Figure 2 , the present application provides an embodiment of an assembled building safety and health detection system, the embodiment system includes:
[0275] A first model processing unit 201 is used to construct a geometric model of the prefabricated building and perform a first meshing of the geometric model of the prefabricated building using ANSYS Meshing;
[0276] A first importing unit 202, used for importing the geometric model and mesh into ANSYS Fluent through a custom import script;
[0277] A first configuration unit 203 is used to configure a first boundary condition and a first initial condition in the k-ε model, wherein 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 a calculation domain;
[0278] A first simulation unit 204 is used to run the k-ε model to perform simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached;
[0279] A key area determination unit 205, configured to determine the key area in the prefabricated building based on the result of the k-ε model simulation;
[0280] The second model processing unit 206 is used to perform a second mesh division on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division;
[0281] A second importing unit 207 is used to import the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script;
[0282] A second configuration unit 208 is used to configure a second boundary condition and an initial condition in the LES turbulence model, wherein the second boundary condition includes an inlet wind vector, turbulence intensity, outlet pressure or free outflow and a wall no-slip condition, and the second initial condition includes an initial condition of a computational domain;
[0283] A second simulation unit 209, configured to run the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation time is reached;
[0284] The analysis unit 210 is used 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.
[0285] Optionally, the analysis unit 210 is specifically configured to:
[0286] Importing the geometric model of the prefabricated building into ABAQUS;
[0287] Performing a third mesh division on the geometric model of the prefabricated building according to a preset division accuracy;
[0288] Create a static analysis step in the Step module and define the analysis type, time step, and third boundary condition;
[0289] Create an analysis job in the Job module and set the solution parameters;
[0290] Submit the analysis job and run the static stress analysis.
[0291] Optionally, the key area determination unit 205 is specifically configured to:
[0292] Get the simulation result file;
[0293] Creating an isosurface plot in a Post-Processing module in the ANSYS Fluent;
[0294] Define the surface variable as pressure and identify the surface showing the wind pressure distribution;
[0295] Generate pressure distribution map;
[0296] Generate flow field map;
[0297] Determine a wind pressure concentration area based on the pressure distribution map;
[0298] Airflow separation and reattachment regions are determined based on the flow field map.
[0299] Optionally, the first importing unit 202 is specifically used for:
[0300] Use the os.system() command to start ANSYS Fluent and execute the script containing the imported mesh to read the imported mesh;
[0301] Set the solver to a pressure-based model;
[0302] Initialization is smooth;
[0303] Perform a thousand-step calculation;
[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 AnsysMAPDL and create a connection instance;
[0307] Enter the pre-processing environment ansys.prep7();
[0308] Load the geometric model and mesh through ansys.resume() command;
[0309] Select the key area through 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 reentrancy option;
[0313] Apply meshing operations via the ansys.vmesh('ALL') command.
[0314] Optionally, the second import unit 207 is specifically used for:
[0315] Create a command set, wherein the command set includes a file / read-mesh command and a mesh / check command;
[0316] Writing the command set into a TUT script file;
[0317] Run ANSYSFluent through the subprocess.run(command, shell=True, check=True) command 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 division;
[0319] The mesh / check command is used to perform mesh quality checks.
[0320] See also Figure 3 , the present application also provides a prefabricated building safety and health detection system, including:
[0321] Processor 301, memory 302, input and output unit 303, bus 304;
[0322] The processor 301 is connected to the memory 302, the input and 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 prefabricated building safety and health detection methods.
[0324] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer executes any of the above-mentioned prefabricated 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 systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0326] In the several embodiments provided in the present 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 only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0327] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0328] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[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 this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A method for detecting safety and health of assembled buildings, characterized in that: The method comprises: 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; Importing the geometric model and mesh into ANSYS Fluent via a custom import script; In the k-ε model, a first boundary condition and a first initial condition are configured, wherein 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 a computational domain; Running the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached; Based on the results of the k-ε model simulation, determining the key areas in the prefabricated building; On the geometric model, performing a second mesh division on the key area to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division; Importing the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script; The second boundary condition and initial condition are configured in the LES turbulence model, wherein the second boundary condition includes an inlet wind vector, turbulence intensity, outlet pressure or free outflow and a wall no-slip condition, and the second initial condition includes an initial condition of the computational domain; Running the LES turbulence model based on the second boundary condition and the second initial condition until a preset simulation time is reached; The wind pressure distribution data of the prefabricated building is extracted according to the simulation results, and the wind pressure distribution data is imported into ABAQUS to perform stress and strain analysis on the prefabricated building.
2. According to the method for safety and health detection of prefabricated buildings as described in claim 1, it is characterized in that: The importing of the wind pressure distribution data into ABAQUS to perform stress and strain analysis on the prefabricated building includes: Importing the geometric model of the prefabricated building into ABAQUS; Performing a third mesh division 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 the analysis type, time step, and third boundary condition; 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 method for detecting safety and health of prefabricated buildings according to claim 1, characterized in that: The key areas include wind pressure concentration areas and airflow separation and reattachment areas; based on the results of the k-ε model simulation, the key areas in the prefabricated building are determined to include: Get the simulation result file; Creating an isosurface plot in a Post-Processing module in the ANSYS Fluent; Define the surface variable as pressure and identify the surface showing the wind pressure distribution; Generate pressure distribution map; Generate flow field map; Determine a wind pressure concentration area based on the pressure distribution map; Airflow separation and reattachment regions are determined based on the flow field map.
4. The method for detecting safety and health of prefabricated buildings according to claim 1, characterized in that: The importing of the geometric model and mesh in ANSYS Fluent by a custom import script includes: Use the os.system() command to start ANSYS Fluent and execute the script containing the imported mesh to read the imported mesh; Set the solver to a pressure-based model; Initialization is smooth; Perform a thousand-step calculation; Save the calculation results as a .cas file.
5. The method for detecting safety and health of prefabricated buildings according to claim 1, characterized in that: The second meshing of the key area on the geometric model is performed to obtain a local mesh including: Use the pyansys.launch_mapdl() command to start AnsysMAPDL and create a connection instance; Enter the pre-processing environment ansys.prep7(); Load the geometric model and mesh through ansys.resume() command; Select the key area through 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 reentrancy option; Apply meshing operations via the ansys.vmesh('ALL') command.
6. The method for detecting safety and health of prefabricated buildings according to claim 1, characterized in that: The method of using an automated import script to import the local mesh obtained after the second meshing into the ANSYS Fluent again comprises: Create a command set, wherein the command set includes a file / read-mesh command and a mesh / check command; Writing the command set into a TUT script file; Run ANSYSFluent through the subprocess.run(command, shell=True, check=True) command and execute the TUT script file.
7. The method for detecting safety and health of prefabricated buildings according to claim 6, characterized in that: 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 mesh quality checks.
8. An assembled building safety and health detection system, characterized in that: The system comprises: A first model processing unit, used to construct a geometric model of the prefabricated building, and perform a first meshing of the geometric model of the prefabricated building using ANSYS Meshing; A first import unit, used for importing the geometric model and mesh in ANSYS Fluent through a custom import script; A first configuration unit is used to configure a first boundary condition and a first initial condition in the k-ε model, wherein 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 a calculation domain; A first simulation unit, configured to run the k-ε model for simulation based on the boundary conditions and the initial conditions until a preset simulation time is reached; A key area determination unit, used to determine the key area in the prefabricated building based on the result of the k-ε model simulation; A second model processing unit is used to perform a second mesh division on the key area on the geometric model to obtain a local mesh; the mesh accuracy used in the second mesh division is higher than the accuracy of the first mesh division; A second importing unit is used to import the local mesh obtained after the second meshing into the ANSYS Fluent again using an automated import script; A second configuration unit is used to configure a second boundary condition and an initial condition in the LES turbulence model, wherein the second boundary condition includes an inlet wind 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 a 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 time is reached; The analysis unit is used 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.
9. The prefabricated building safety and health detection system according to claim 8, characterized in that: The analysis unit is specifically used for: Importing the geometric model of the prefabricated building into ABAQUS; Performing a third mesh division 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 the analysis type, time step, and third boundary condition; Create an analysis job in the Job module and set the solution parameters; Submit the analysis job and run the static stress analysis.
10. An assembled building safety and health detection system, characterized in that: The system comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and 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 8.
Citation Information
Patent Citations
Wind-resistant design method for large-span retractable roof structure
CN108932389A
An LNG full-capacity storage tank stress analysis method under the wind load effect
CN113158357A
Design method and device for novel roof additional component of transformer substation prefabricated cabin
CN114547722A
High-rise building wind resistance design method based on gap flow effect
CN114647966A
Building wind environment analogue simulation method based on fluid mechanics
CN118332664A
Cited By
Method for installing and detecting building special-shaped multi-curve external envelope structure based on unmanned aerial vehicle three-dimensional reconstruction
CN120764046A
Installation detection method for building special-shaped multi-curved outer envelope structure of unmanned aerial vehicle three-dimensional reconstruction
CN120764046B