An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design

By building the call module and OpenFOAM solver on the Grasshopper platform, we can realize the numerical simulation of wind-induced snow drift in the early stage of architectural design, solving the problem of difficulty in effective simulation in the early stage with existing technology, and improving the design automation level and simulation accuracy. .

CN118364554BActive Publication Date: 2024-10-18HARBIN INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult to effectively carry out numerical simulation of wind-induced snow drift in the early stages of architectural design with existing technology. Field measurement efficiency is low and wind tunnel testing costs are high. Moreover, existing numerical simulation methods are mainly used for structural calculation and risk assessment in the later stages of design, and are insufficient in the early stage. integrated solutions.

Method used

By building a call module on the Grasshopper platform and combining it with the OpenFOAM solver, the numerical simulation of wind-induced snow drift is realized, including generating a digital wind tunnel, dividing fine grids, setting initial conditions, updating configuration files and executing calculation commands, using a two-fluid model. Perform numerical solutions and output the results to the Rhino platform for visualization.

Benefits of technology

It realizes the numerical simulation of wind-induced snow drift in the early stage of architectural design, improves the automation level of the design process, reduces the difficulty of using the two-fluid model, can conduct multiple performance simulations on a unified platform, supports scientific decision-making, and reduces the time spent in the deepening design stage. workload and reduce the probability of performance issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364554B_ABST
    Figure CN118364554B_ABST
Patent Text Reader

Abstract

A method for numerical simulation of wind-induced snow drift in the early stage of architectural design that can be integrated belongs to the field of architectural engineering technology. In order to realize the simulation of wind-induced snow drift in the early stage of architectural design, the present invention constructs multiple calling modules in the Grasshopper platform, which are used to generate simulation files through the Grasshopper platform, call simulation commands, and realize the numerical simulation of wind-induced snow drift in the early stage of architectural design that can be integrated based on OpenFOAM; in the early stage of architectural design, the basic simulation file is established through the command module, meshing is performed, the initial phase state of the simulation is configured, and the numerical simulation process of model partitioning, numerical solution and model reconstruction is performed to obtain the numerical simulation data of wind-induced snow drift, which is output to the Rhino visualization platform for visualization settings. The present invention can be integrated with other simulation targets in the early stage of architectural design to improve the automation level of architectural design and the overall design efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of building engineering, and in particular relates to an integrated numerical simulation method for wind-induced snow drift in the early stage of building design. Background Art

[0002] Building wind-induced snow drift belongs to the research field of architectural engineering. The main research methods for building wind-induced snow drift are field measurement, wind tunnel experiment and numerical simulation. In the early days, due to the limitations of computer technology, field measurement and wind tunnel test have always been the main technical methods. However, field observations are highly accidental and inefficient, and wind tunnel tests are expensive and have many similarity parameters. Driven by the development of computer technology, numerical simulation methods based on computational fluid dynamics (CFD) have gradually become the main technical means in the current engineering field. In numerical simulation, existing technical solutions mainly describe the two motion states of snow: "jump" and "suspension". Based on different description methods of snow motion process, there are currently two main methods for wind and snow flow simulation: Euler-Euler and Euler-Lagrangian. Since the Euler-Lagrangian method regards the snow phase as a discrete medium, it has high requirements on the solver and long calculation time. The Euler-Euler method that regards the snow phase as a continuous medium is more widely used. The current Euler-Euler method can be divided into a single equation model and a two-equation model for describing the snow motion state. The difference lies in whether the motion mechanism of saltation and suspension is distinguished. For the treatment of the air phase, the Reynolds time-averaged method is generally used. The model selection includes the standard k-ε model, the Realizable k-ε model, the RNG k-ε model, the k-kl-ω model, etc. The simulation object can be a 3D model or a 2D model. From the perspective of the coupling object, the existing methods can be divided into two categories: one-way coupling and two-way coupling. The implementation tools of the above numerical methods mainly rely on the commercial CFD software Ansys Fluent. Only a small number of studies use the open source OpenFOAM for implementation. However, in general, the existing methods are mainly used in structural calculation and analysis in the later stage of design and risk assessment under special weather conditions. The Grasshopper platform has a large number of performance simulation tools in the early stage of architectural design, and has an open and complete plug-in ecological environment, which is conducive to the integration of simulation tools. Snow and wind flow simulation belongs to the category of computational fluid dynamics (CFD) simulation. Butterfly and Eddy3D can realize CFD simulation in this platform. At present, the above tools all realize the simulation process by calling the solver of the open source CFD platform OpenFOAM. However, the above tools can only simulate the motion process of single-phase flow. Summary of the invention

[0003] The problem to be solved by the present invention is to realize the simulation of wind-induced snow drift in the early stage of building design, and propose an integrated numerical simulation method of wind-induced snow drift in the early stage of building design.

[0004] To achieve the above object, the present invention is implemented through the following technical solutions:

[0005] An integrable numerical simulation method for wind-induced snow drift in the early stages of building design includes the following steps:

[0006] S1. Construct the calling module CreateSnowDrift Tunnel for generating a digital wind tunnel for wind and snow flow simulation in the Grasshopper platform, the calling module SnowDriftSnappyHexMesh for dividing the refined grid and overwriting the original file, the calling module SnowDriftsetFields for setting the air phase and snow phase areas under the initial conditions, the calling module SnowDrift Solution for updating the configuration file and executing the calculation command, the calling module SnowDrift Recipe for inputting the called two-phase flow solver, the calling module SnowDrift ControlDict for inputting the solution control file, and the calling module SnowDriftSolutionParams for updating the control file and the pointer file. Generate and call the basic files required for simulation through the Grasshopper platform, and realize the numerical simulation of wind-induced snow drift in the early stage of integrated building design based on OpenFOAM;

[0007] S2. Use Create SnowDrift Tunnel obtained in step S1, cooperate with the existing call module createBFGeometry for generating digital model blocks and the call module refinementRegion for mesh refinement parameters, and establish the basic file of numerical simulation of wind-induced snow drift in the early stage of architectural design by inputting wind direction, wind speed, building blocks, snow accumulation blocks, refinement area, and folder name, and generate a digital model of numerical simulation of wind-induced snow drift in the early stage of architectural design;

[0008] S3. Use the existing structured hexahedral meshing command module blockMesh and the mesh parameter input command calling module gradXYZ to perform simple meshing based on the basic file of numerical simulation of wind-induced snow drift constructed in step S2;

[0009] S4. Based on the SnowDrift SnappyHexMesh obtained in step S1 and the simple mesh obtained in step S3, in cooperation with the existing calling module snappyHexMeshDict for inputting refined mesh division parameters, mesh parameters are input to perform fine mesh division of the wind-induced snow drift numerical simulation model;

[0010] S5. Generate the initial field state setting log setFields.log file through SnowDrift setFields obtained in step S1, execute the setFields command for setting the initial field conditions in OpenFOAM, and configure the initial phase state of the wind-induced snow drift numerical simulation model;

[0011] S6. Based on the SnowDrift Solution, SnowDrift Recipe, SnowDriftControlDict, and SnowDrift SolutionParams obtained in step S1, the model partitioning, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation are performed in cooperation with the existing calling module decomposeParDict_simple for inputting the parallel computing model partition parameters to obtain the wind-induced snow drift numerical simulation data;

[0012] S7. Output the integrable wind-induced snow drift numerical simulation results in the early stage of building design obtained in step S6 to the Rhino visualization platform for visualization setting.

[0013] Furthermore, the specific implementation method of step S1 includes the following steps:

[0014] S1.1. Construct a command calling module Create SnowDriftTunnel for generating a digital wind tunnel for snow drift simulation;

[0015] S1.1.1. Modify the original fvScheme.py and fvSolution.py files in the butterfly folder, enter the discrete format and the physical parameters and mathematical methods to be solved. In order not to affect the use of the original command module, save them as fvSchemeTPT.py and fvSolutionTPT.py files;

[0016] S1.1.2. Modify the original fields.py file in the butterfly folder and add the following boundary conditions to meet the parameter input requirements of the added control file: no-slip boundary condition NoSlip, particle temperature boundary condition JohnsonJacksonParticleTheta, particle slip boundary condition JohnsonJacksonParticleSlip, gap inflow velocity boundary strip InterstitialInletVelocity, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary k wall function NutkAtmRoughWallFunction, alphatJayatilleke wall function AlphatJayatillekeWallFunction, compressed alphat wall function Compressible::alphatWallFunction, p_rgh pressure condition PrghPressure, fixed flux pressure condition FixedFluxPressure, flow rate inlet velocity condition FlowRateInletVelocity, in order not to affect the use of the original command module, save it as fieldsTPT.py file;

[0017] S1.1.3. Modify the original case.py file in the butterfly folder, add the module calls of the aforementioned physical parameter control dependency files, constant parameter control dependency files, and system operation parameter control dependency files, and add the calls of the above modules in the calling logic of the Case class method, call the corresponding Field module from fieldsTPT, and cooperate with the parameter settings. In order not to affect the use of the original command module, save the file as caseTPT.py file;

[0018] S1.1.4. Modify the original boundaryCondition.py file in the butterfly folder, add the aforementioned physical parameter module and the corresponding boundary condition module to the specific boundary conditions added under the BoundaryCondition class, and save it as boundaryConditionTPT.py file so as not to affect the use of the original command module;

[0019] S1.1.5. Modify the original windTunnel.py file in the butterfly folder, call the Case module in caseTPT and the series boundary condition module in boundaryconditionTPT, and save it as windTunnelTPT.py file so as not to affect the use of the original command module;

[0020] S1.1.6. Modify the case.py file in the original butterfly_grasshopper folder, import the caseTPT module in the butterfly folder, and save it as caseTPT.py file to avoid affecting the use of the original command module;

[0021] S1.1.7. Modify the windTunnel.py file in the original butterfly_grasshopper folder, import the Case module of the caseTPT.py file and the windtunnelTPT module in the butterfly folder, and save the file as windTunnelTPT.py so as not to affect the use of the original command module;

[0022] S1.1.8. Modify the original wind tunnel generation command module in GhPython Script, import the WindTunnelGH module in butterfly_grasshopper.windtunnelTPT, and save and encapsulate it as CreateSnowDriftTunnel command module;

[0023] S1.2. Construct a command calling module SnowDriftSnappyHexMesh for dividing fine meshes and overwriting original files. Modify the original fine mesh division command module in GhPython Script, import and set the judgment value of the optional parameter overwrite in the log file generation content of the command execution part to True, realize the file overwriting after fine mesh division, and save and encapsulate it as SnowDrift SnappyHexMesh command module;

[0024] S1.3. Construct a command calling module SnowDriftsetFields for setting the air phase and snow phase areas under initial conditions. Referring to the log file generation logic of fine grid division, write the setFields.log file generation command through GhPython Script to achieve the initial setting of the two-phase flow field environment, and save and encapsulate it as SnowDriftsetFields command module;

[0025] S1.4. Build a command calling module SnowDrift Solution for updating configuration files and performing calculations;

[0026] S1.4.1. Modify the founction.py file in the butterfly folder and modify the string formatting method to input the calculation parameters. In order not to affect the use of the original command module, save it as founctionTPT.py file;

[0027] S1.4.2. Modify the foamfile.py file in the butterfly folder and the update rules of the update_values() method in the FoamFile class to enter the configuration file parameters. In order not to affect the use of the original command module, save it as a foamfileTPT.py file;

[0028] S1.4.3. Modify the controlDict.py file in the butterfly folder, import the corresponding modules from foamfileTPT.py and fountainTPT.py, modify the parameter settings under the ControlDict class definition, and save it as condrolDictTPT.py file so as not to affect the use of the original command module;

[0029] S1.4.4. Modify the original solution control command module in GhPython Script, call the ControlDict class in controlDictTPT, implement the control parameter update of snow drift simulation, and save and encapsulate it as SnowDrift ControlDict command module;

[0030] S1.5. Construct a command calling module SnowDrift Recipe for inputting the called two-phase flow solver;

[0031] S1.5.1. Modify the solution.py file in the butterfly folder, modify the input content of the from_ccp_dictionary method, add the required controlDict control file parameters, and save it as solutionTPT.py file;

[0032] S1.5.2. Modify the original update control file and pointer command module in GhPython Script, call the solutionTPT module, implement the complete control parameter update of the wind and snow flow simulation, and save and encapsulate it as SnowDriftSolutionParams command module;

[0033] S1.6. Construct the command calling module SnowDrift ControlDict for inputting the solution control file;

[0034] S1.6.1. Modify the recipe.py file in the butterfly folder, add a MultiPhase subclass under its Recipe class, the command called by this subclass is an executable two-phase flow simulation solver, and save it as recipeTPT.py file;

[0035] S1.6.2. Modify the original solver recipe command module in GhPython Script, call the Multiphase module from recipeTPT to implement the solver selection, and save the package as SnowDrift Recipe command module;

[0036] S1.7. Construct the command calling module SnowDriftSolutionParams for updating the control file and pointer file, modify the original calculation execution command module in GhPython Script, call the Solution module in solutionTPT, implement file update and solution, and save and encapsulate it as SnowDrift Solution command module.

[0037] Furthermore, the basic files for numerical simulation of wind-induced snow drift established in step S2 are generated in the calculation folder, mainly including the 0 folder, the Constant folder, and the System folder;

[0038] The 0 folder is used to store the boundary and field initial parameters of the calculation model and generate volume fraction conditions, including the air phase volume fraction alpha.air file and the particle phase volume fraction alpha.particles file;

[0039] The Constant folder is used to store basic physical parameters used for calculation and information of digital models required for simulation, and to generate polyMesh files for storing mesh boundary conditions and triSurface folders for storing digital model features;

[0040] The System folder is used to store command information files related to the calculation process, generate structured grid division information blockMeshDict file, refined grid division information snappyHexMesh file, calculation control information controlDict file, discrete format information fvSchemes file, solution parameter information fvSolution file, and field initial state information setFieldsDict file, which are used for controlling grid division, numerical format and calculation conditions.

[0041] Furthermore, the specific method for basic mesh division in step S3 is to call the existing module blockMesh for dividing the structured mesh and the module gradXYZ for inputting the mesh parameters, input the mesh size, the number of meshes, and the expansion coefficient for basic mesh division, write the mesh parameter settings by updating the blockMeshDict file, and generate a structured mesh division log blockMesh.log file in the log folder under the calculation folder for storing command execution logs to realize the call of the blockMesh command in OpenFOAM, and update the polyMesh folder after executing the command.

[0042] Furthermore, step S4 performs fine mesh division by calling SnowDrift snappyHexMesh with snappyHexMeshDict and inputting mesh parameters;

[0043] S4.1. First, generate the surface feature extraction log surfaceFeatureExtract.log file and call the surface feature extraction surfaceFeatureExtract command in OpenFOAM. After the command is executed, the surface features of the numerical simulation digitized model are extracted, and the ExtendedFeatureEdgeMesh file for storing the surface features is generated in the Constant folder;

[0044] S4.2. Update the snappyHexMeshDict file, generate refined mesh division and overwrite the original file log snappyHexMesh-overwrite.log file. Execute the snappyHexMesh command and overwrite the original mesh file. After the command is executed, update the polyMesh file and triSurface folder in the Constant folder.

[0045] Furthermore, the specific implementation method of step S5 is to generate the initial field state setting log setFields.log file through SnowDrift setFields, execute the setFields command for setting the initial field conditions in OpenFOAM, configure the initial phase state of the wind-induced snow drift numerical simulation model, and update the alpha.air file and alpha.particles file in the 0 file after the command is executed.

[0046] Furthermore, in step S6, based on the SnowDrift Solution, SnowDrift Recipe, SnowDrift ControlDict, and SnowDrift SolutionParams obtained in step S1, a specific implementation method of the numerical simulation process of model division, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation in cooperation with decomposeParDict_simple includes the following steps:

[0047] S6.1. Input the number and precision of partitions through the model partition parameter decomposeParDict_simple for inputting parallel computing, generate the decomposeParDict file for storing the partition parameter in the system folder, and generate the parallel partition log decomposePar.log file to call the decomposePar command for executing model partition in OpenFOAM;

[0048] S6.2. Input probe data, physical parameters and mathematical calculation model through SnowDrift ConrtolDict and SnowDrift SolutionParams;

[0049] S6.3. Update the storage calculation control parameter controlDict, storage discrete format parameter fvSchemes, storage solution information parameter fvSolution in the system folder, generate a probe, and use it to store the data probes file of the selected test points in the model;

[0050] Generate the thermophysical parameters of air thermophysicalProperties.air, the thermophysical parameters of particles thermophysicalProperties.particles, the turbulence parameters of air turbulenceProperties.air, the turbulence parameters of particles turbulenceProperties.particles, the property parameters of all phases phaseProperties, and the gravity parameter g file in the Constant folder;

[0051] Generate in the 0 folder the ABLConditions file storing atmospheric boundary condition parameters, the initialConditions file storing internal field condition parameters, the alphat.air file storing air turbulence thermal diffusivity parameters, the alphat.particles file storing particle turbulence thermal diffusivity parameters, the T.air file storing air temperature parameters, the T.particles file storing particle temperature parameters, the U.air file storing air velocity parameters, the U.particles file storing particle velocity parameters, the nut.air file storing air turbulence viscosity parameters, the nut.particles file storing particle turbulence viscosity parameters, the k.air file storing air turbulence kinetic energy parameters, the epsilon.air file storing air turbulence dissipation rate parameters, the Theta.particles file storing particle temperature parameters, the p_rgh file storing dynamic pressure parameters, and the p file storing static pressure parameters to set the initial boundary conditions;

[0052] Generate the parallel computing execution log mpirun.log file in the log folder to execute the reactingTwoPhaseEulerFoam–parallel command of the parallel computing two-phase flow solver in OpenFOAM.

[0053] Furthermore, in step S6, the simulation involves a mass transfer process. In phaseProperties, the heat and mass transfer model heatAndMomentumTransferTwoPhaseSystem is input under the calculation model phase system for selecting the phase, and the pure phase model pureIsothermalPhaseModel with constant temperature is selected thereunder. The solution of the energy equation is closed by controlling the number of iterations of the controller solver, and the calculation process adopts the PIMPLE method for transient solution.

[0054] Furthermore, the calculation model of the numerical simulation of wind-induced snow drift in step S6 adopts a two-fluid model, taking the air phase and the snow phase as the continuous phase and the discrete phase i, and using the Navier-Stokes equation to describe it. The expressions of the momentum equation and the continuity equation are:

[0055]

[0056]

[0057] Among them, U i is the velocity of the discrete term and the continuous phase, α i is the phase fraction of the discrete term and the continuous phase, ρ iis the density of the discrete term and the continuous phase, p is the pressure, g is the gravity vector, τ i is the stress tensor of the discrete term and the continuous phase, M i is the momentum exchange phase between the discrete term and the continuous phase;

[0058] The standard k-ε model and particle dynamics theory model are used to deal with the turbulence of air phase and particle phase. The expression of the standard k-ε model is:

[0059]

[0060] Where k is the turbulent kinetic energy, D k is the effective dispersion coefficient of k, P is the turbulent kinetic energy generation rate, and ε is the turbulent kinetic energy dissipation rate; the expression of the particle dynamics theory model is:

[0061]

[0062] Among them, k Θ is the diffusion coefficient, Θ s is the particle temperature, γ Θ is the wave energy dissipation, Φ Θ is the wave energy exchange between phases, I is the moment of inertia, τ s is the stress tensor, described by the Sinclair-Jackson model, α s is the volume fraction of snow, ρ s is the density of snow, P s The pressure of snow particles.

[0063] Beneficial effects of the present invention:

[0064] The present invention discloses an integrable numerical simulation method for wind-induced snow drift in the early stage of architectural design. Based on the logic of Butterfly on Grasshopper, the dependent module library is modified and supplemented, the OpenFOAM solver is called and the corresponding files are configured, so as to realize the simulation of wind-induced snow drift in the early stage of architectural design. The application effect of the method is verified by taking the typical roof forms, flat roofs and double-step roofs in the study of wind-induced snow drift as examples, and the verification results are shown in the figure below. The results show that the simulation accuracy of the method meets expectations and can be applied in the analysis of practical projects. In the process of achieving this goal, the present invention builds a large number of calculation models and parameter settings into the calling module group, which greatly reduces the difficulty of using the dual fluid model for architects and improves the level of automation in the architectural design process. In addition, thanks to the excellent performance simulation ecological environment of the Grasshopper platform, the present invention can be completed on a unified platform with simulations such as solar radiation, wind environment, and structural performance, thereby realizing the integrated application of multiple performance simulation tools. Ultimately, the application of this invention in design practice will provide strong support for scientific decision-making in the early stages of architectural design. Reasonable optimization in the early stages will greatly reduce the workload of morphological optimization in the in-depth design stage, improve overall design efficiency, and reduce the probability of performance problems in the building operation and maintenance stage. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A flow chart of an integrated numerical simulation method for wind-induced snow drift in the early stage of building design according to the present invention;

[0066] Figure 2 A detailed flow chart of an integrated numerical simulation method for wind-induced snow drift in the early stage of building design according to the present invention;

[0067] Figure 3 It is the flat roof simulation result curve obtained by the method of the present invention;

[0068] Figure 4 This is a double-step roof simulation result curve obtained by the method of the present invention. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the specific embodiments described are only part of the embodiments of the present invention, rather than all of the specific embodiments. The components of the specific embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations, and the present invention can also have other embodiments.

[0070] Therefore, the following detailed description of the specific embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected specific embodiments of the present invention. Based on the specific embodiments of the present invention, all other specific embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0071] In order to further understand the content, features and effects of the present invention, the following specific implementation methods are given as examples, and the attached Figure 1 -Attached Figure 4 The detailed instructions are as follows: Specific implementation method one:

[0073] An integrable numerical simulation method for wind-induced snow drift in the early stages of building design includes the following steps:

[0074] S1. Construct the calling module CreateSnowDrift Tunnel for generating a digital wind tunnel for wind and snow flow simulation in the Grasshopper platform, the calling module SnowDriftSnappyHexMesh for dividing the refined grid and overwriting the original file, the calling module SnowDriftsetFields for setting the air phase and snow phase areas under the initial conditions, the calling module SnowDriftSolution for updating the configuration file and executing the calculation command, the calling module SnowDrift Recipe for inputting the called two-phase flow solver, the calling module SnowDrift ControlDict for inputting the solution control file, and the calling module SnowDriftSolutionParams for updating the control file and the pointer file, which are used to generate and call the basic files required for simulation in the Grasshopper platform, so as to realize the numerical simulation of wind-induced snow drift in the early stage of integrated building design based on OpenFOAM;

[0075] Furthermore, the dependency files of the existing parameter conditions in the Butterfly folder are not sufficient to support the boundary conditions required for two-phase flow simulation, and it is necessary to refer to the existing dependency files for supplementation. The supplementary content is: in the butterfly folder, refer to the code logic of the original U.py, T.py and other files to create new physical parameter control dependency files, including alphaa.py (air phase parameters), alphap.py (snow phase parameters), alphata.py (air turbulent thermal diffusivity), alphatp.py (snow phase thermal diffusivity), nuta.py (air turbulent viscosity), nutp.py (snow phase turbulent viscosity), p_rghTPT.py (dynamic pressure), pTPT.py (static pressure), Ta.py (air temperature), Tp.py (snow phase temperature), Ua.py (air velocity), Up.py (snow phase velocity), thetap.py (snow particle temperature), ka.py (air turbulent kinetic energy), and epsilona.py (air turbulent dissipation rate). In the butterfly folder, refer to the code logic of the original transportProperties.py file to create a constant file parameter control dependent file, including thermophysicalPropertiesa.py (air thermophysical parameters), thermophysicalPropertiesp.py (snow thermophysical parameters), turblencePropertiesa.py (air turbulence model parameters), turblencePropertiesp.py (snow particle turbulence model parameters), phaseProperties.py (two-phase flow calculation model parameters). In the butterfly folder, refer to the code logic of the original snappyHexMeshDict.py file to create a system operation parameter control dependent file, mainly setFieldsDict.py (initial phase distribution condition setting).

[0076] The main parameters built into the above dependency files are shown in Table 1:

[0077] Table 1

[0078]

[0079] Furthermore, the specific implementation method of step S1 includes the following steps:

[0080] S1.1. Construct a command calling module CreateSnowDriftTunnel for generating a digital wind tunnel for snow flow simulation;

[0081] S1.1.1. Modify the original fvScheme.py and fvSolution.py files in the butterfly folder, enter the discrete format and the physical parameters and mathematical methods to be solved. In order not to affect the use of the original command module, save them as fvSchemeTPT.py and fvSolutionTPT.py files; the built-in main parameters are shown in Table 2:

[0082] Table 2

[0083]

[0084] S1.1.2. Modify the original fields.py file in the butterfly folder and add the following boundary conditions to meet the parameter input requirements of the added control file: no-slip boundary condition NoSlip, particle temperature boundary condition JohnsonJacksonParticleTheta, particle slip boundary condition JohnsonJacksonParticleSlip, gap inflow velocity boundary strip InterstitialInletVelocity, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary k wall function NutkAtmRoughWallFunction, alphatJayatilleke wall function AlphatJayatillekeWallFunction, compressed alphat wall function Compressible::alphatWallFunction, p_rgh pressure condition PrghPressure, fixed flux pressure condition FixedFluxPressure, flow rate inlet velocity condition FlowRateInletVelocity, in order not to affect the use of the original command module, save it as fieldsTPT.py file;

[0085] S1.1.3. Modify the original case.py file in the butterfly folder, add the module calls of the aforementioned physical parameter control dependency files, constant parameter control dependency files, and system operation parameter control dependency files, and add the calls of the above modules in the calling logic of the Case class method, call the corresponding Field module from fieldsTPT, and cooperate with the parameter settings. In order not to affect the use of the original command module, save the file as caseTPT.py file;

[0086] S1.1.4. Modify the original boundaryCondition.py file in the butterfly folder, add the aforementioned physical parameter module and the corresponding boundary condition module to the specific boundary conditions added under the BoundaryCondition class, and save it as boundaryConditionTPT.py file so as not to affect the use of the original command module;

[0087] S1.1.5. Modify the original windTunnel.py file in the butterfly folder, call the Case module in caseTPT and the series boundary condition module in boundaryconditionTPT, and save it as windTunnelTPT.py file so as not to affect the use of the original command module;

[0088] S1.1.6. Modify the case.py file in the original butterfly_grasshopper folder, import the caseTPT module in the butterfly folder, and save it as caseTPT.py file to avoid affecting the use of the original command module;

[0089] S1.1.7. Modify the windTunnel.py file in the original butterfly_grasshopper folder, import the Case module of the caseTPT.py file and the windtunnelTPT module in the butterfly folder, and save the file as windTunnelTPT.py so as not to affect the use of the original command module;

[0090] S1.1.8. Modify the original wind tunnel generation command module in GhPython Script, import the WindTunnelGH module in butterfly_grasshopper.windtunnelTPT, and save and encapsulate it as CreateSnowDriftTunnel command module;

[0091] S1.2. Construct a command calling module SnowDriftSnappyHexMesh for dividing fine meshes and overwriting original files. Modify the original fine mesh division command module in GhPython Script, import and set the judgment value of the optional parameter overwrite in the log file generation content of the command execution part to True, realize the file overwriting after fine mesh division, and save and encapsulate it as SnowDrift SnappyHexMesh command module;

[0092] S1.3. Construct a command calling module SnowDriftsetFields for setting the air phase and snow phase areas under initial conditions. Referring to the log file generation logic of fine grid division, write the setFields.log file generation command through GhPython Script to achieve the initial setting of the two-phase flow field environment, and save and encapsulate it as SnowDriftsetFields command module;

[0093] S1.4. Build a command calling module SnowDrift Solution for updating configuration files and performing calculations;

[0094] S1.4.1. Modify the founction.py file in the butterfly folder and modify the string formatting method to input the calculation parameters. In order not to affect the use of the original command module, save it as founctionTPT.py file;

[0095] S1.4.2. Modify the foamfile.py file in the butterfly folder and the update rules of the update_values() method in the FoamFile class to enter the configuration file parameters. In order not to affect the use of the original command module, save it as a foamfileTPT.py file;

[0096] S1.4.3. Modify the controlDict.py file in the butterfly folder, import the corresponding modules from foamfileTPT.py and fountainTPT.py, modify the parameter settings under the ControlDict class definition, and save it as condrolDictTPT.py file so as not to affect the use of the original command module;

[0097] S1.4.4. Modify the original solution control command module in GhPython Script, call the ControlDict class in controlDictTPT, implement the control parameter update of snow drift simulation, and save and encapsulate it as SnowDrift ControlDict command module;

[0098] S1.5. Construct a command calling module SnowDrift Recipe for inputting the called two-phase flow solver;

[0099] S1.5.1. Modify the solution.py file in the butterfly folder, modify the input content of the from_ccp_dictionary method, add the required controlDict control file parameters, and save it as solutionTPT.py file;

[0100] S1.5.2. Modify the original update control file and pointer command module in GhPython Script, call the solutionTPT module, implement the complete control parameter update of the wind and snow flow simulation, and save and encapsulate it as SnowDriftSolutionParams command module;

[0101] S1.6. Construct the command calling module SnowDrift ControlDict for inputting the solution control file;

[0102] S1.6.1. Modify the recipe.py file in the butterfly folder, add a MultiPhase subclass under its Recipe class, the command called by this subclass is an executable two-phase flow simulation solver, and save it as recipeTPT.py file;

[0103] S1.6.2. Modify the original solver recipe command module in GhPython Script, call the Multiphase module from recipeTPT to implement the solver selection, and save the package as SnowDrift Recipe command module;

[0104] S1.7. Construct the command calling module SnowDriftSolutionParams for updating the control file and pointer file, modify the original calculation execution command module in GhPython Script, call the Solution module in solutionTPT, implement file update and solution, and save and encapsulate it as SnowDrift Solution command module;

[0105] S2. Use Create SnowDrift Tunnel obtained in step S1, cooperate with the existing call module createBFGeometry for generating digital model blocks and the call module refinementRegion for mesh refinement parameters, and establish the basic file of numerical simulation of wind-induced snow drift in the early stage of architectural design by inputting wind direction, wind speed, building blocks, snow accumulation blocks, refinement area, and folder name, and generate a digital model of numerical simulation of wind-induced snow drift in the early stage of architectural design;

[0106] Furthermore, the basic files for numerical simulation of wind-induced snow drift established in step S2 are generated in the calculation folder, mainly including the 0 folder, the Constant folder, and the System folder;

[0107] The 0 folder is used to store the boundary and field initial parameters of the calculation model and generate volume fraction conditions, including the air phase volume fraction alpha.air file and the particle phase volume fraction alpha.particles file;

[0108] The Constant folder is used to store basic physical parameters used for calculation and information of digital models required for simulation, and to generate polyMesh files for storing mesh boundary conditions and triSurface folders for storing digital model features;

[0109] The System folder is used to store command information files related to the calculation process, generate structured grid division information blockMeshDict file, refined grid division information snappyHexMesh file, calculation control information controlDict file, discrete format information fvSchemes file, solution parameter information fvSolution file, field initial state information setFieldsDict file, which are used for the control of grid division, numerical format and calculation conditions;

[0110] S3. Use the existing structured hexahedral meshing command module blockMesh and the mesh parameter input command calling module gradXYZ to perform simple meshing based on the basic file of wind-induced snow drift numerical simulation constructed in step S2;

[0111] Furthermore, the specific method of performing basic mesh division in step S3 is to call the existing blockMesh module for dividing structured meshes and the gradXYZ module for inputting mesh parameters, input the mesh size, the number of meshes, and the expansion coefficient to perform basic mesh division, write the mesh parameter settings by updating the blockMeshDict file, and generate the structured mesh division log blockMesh.log file in the log folder for storing command execution logs under the calculation folder to realize the call of the blockMesh command in OpenFOAM, and update the polyMesh folder after executing the command;

[0112] S4. Based on the SnowDrift SnappyHexMesh obtained in step S1 and the simple mesh obtained in step S3, in cooperation with the existing calling module snappyHexMeshDict for inputting refined mesh division parameters, mesh parameters are input to perform fine mesh division of the wind-induced snow drift numerical simulation model;

[0113] Furthermore, step S4 performs fine mesh division by calling SnowDrift snappyHexMesh with snappyHexMeshDict and inputting mesh parameters;

[0114] S4.1. First, generate the surface feature extraction log surfaceFeatureExtract.log file and call the surface feature extraction surfaceFeatureExtract command in OpenFOAM. After the command is executed, the surface features of the numerical simulation digitized model are extracted, and the ExtendedFeatureEdgeMesh file for storing the surface features is generated in the Constant folder;

[0115] S4.2. Update the snappyHexMeshDict file, generate a refined mesh division and overwrite the original file log snappyHexMesh-overwrite.log file. Execute the snappyHexMesh command and overwrite the original mesh file. After the command is executed, the polyMesh file and triSurface folder in the Constant folder are updated;

[0116] S5. Generate the initial field state setting log setFields.log file through SnowDrift setFields obtained in step S1, execute the setFields command for setting the initial field conditions in OpenFOAM, and configure the initial phase state of the wind-induced snow drift numerical simulation model;

[0117] Further, the specific implementation method of step S5 is to generate an initial field state setting log setFields.log file through SnowDrift setFields, execute the setFields command for setting the initial field conditions in OpenFOAM, configure the initial phase state of the wind-induced snow drift numerical simulation model, and update the alpha.air file and alpha.particles file in the 0 file after the command is executed;

[0118] S6. Based on the SnowDrift Solution, SnowDrift Recipe, SnowDriftControlDict, and SnowDrift SolutionParams obtained in step S1, the numerical simulation process of model partitioning, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation model is performed in cooperation with the existing calling module decomposeParDict_simple for inputting the parallel computing model partition parameters to obtain the wind-induced snow drift numerical simulation data;

[0119] Furthermore, in step S6, based on the SnowDrift Solution, SnowDrift Recipe, SnowDrift ControlDict, and SnowDrift SolutionParams obtained in step S1, a specific implementation method of the numerical simulation process of model division, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation in cooperation with decomposeParDict_simple includes the following steps:

[0120] S6.1. Input the number and precision of partitions through the model partition parameter decomposeParDict_simple for inputting parallel computing, generate the decomposeParDict file for storing the partition parameter in the system folder, and generate the parallel partition log decomposePar.log file to call the decomposePar command for executing model partition in OpenFOAM;

[0121] S6.2. Input probe data, physical parameters and mathematical calculation model through SnowDrift ConrtolDict and SnowDrift SolutionParams;

[0122] S6.3. Update the storage calculation control parameter controlDict, storage discrete format parameter fvSchemes, storage solution information parameter fvSolution in the system folder, generate a probe, and use it to store the data probes file of the selected test points in the model;

[0123] Generate the thermophysical parameters of air thermophysicalProperties.air, the thermophysical parameters of particles thermophysicalProperties.particles, the turbulence parameters of air turbulenceProperties.air, the turbulence parameters of particles turbulenceProperties.particles, the property parameters of all phases phaseProperties, and the gravity parameter g file in the Constant folder;

[0124] Generate in the 0 folder the ABLConditions file storing atmospheric boundary condition parameters, the initialConditions file storing internal field condition parameters, the alphat.air file storing air turbulence thermal diffusivity parameters, the alphat.particles file storing particle turbulence thermal diffusivity parameters, the T.air file storing air temperature parameters, the T.particles file storing particle temperature parameters, the U.air file storing air velocity parameters, the U.particles file storing particle velocity parameters, the nut.air file storing air turbulence viscosity parameters, the nut.particles file storing particle turbulence viscosity parameters, the k.air file storing air turbulence kinetic energy parameters, the epsilon.air file storing air turbulence dissipation rate parameters, the Theta.particles file storing particle temperature parameters, the p_rgh file storing dynamic pressure parameters, and the p file storing static pressure parameters to set the initial boundary conditions;

[0125] Generate the parallel computing execution log mpirun.log file in the log folder and execute the two-phase flow solver reactingTwoPhaseEulerFoam–parallel command in OpenFOAM;

[0126] Furthermore, in step S6, the simulation involves a mass transfer process. In phaseProperties, the heat and mass transfer model heatAndMomentumTransferTwoPhaseSystem is input under the calculation model phase system for selecting the phase, and the pure phase model pureIsothermalPhaseModel with constant temperature is selected thereunder. The solution of the energy equation is closed by controlling the number of iterations of the controller solver, and the calculation process adopts the PIMPLE method for transient solution.

[0127] Furthermore, the calculation model of the numerical simulation of wind-induced snow drift in step S6 adopts a two-fluid model, taking the air phase and the snow phase as the continuous phase and the discrete phase i, and using the Navier-Stokes equation to describe it. The expressions of the momentum equation and the continuity equation are:

[0128]

[0129]

[0130] Among them, U i is the velocity of the discrete term and the continuous phase, α i is the phase fraction of the discrete term and the continuous phase, ρ i is the density of the discrete term and the continuous phase, p is the pressure, g is the gravity vector, τ i is the stress tensor of the discrete term and the continuous phase, M i is the momentum exchange phase between the discrete term and the continuous phase;

[0131] The standard k-ε model and particle dynamics theory model are used to deal with the turbulence of air phase and particle phase. The expression of the standard k-ε model is:

[0132]

[0133] Where k is the turbulent kinetic energy, D k is the effective dispersion coefficient of k, P is the turbulent kinetic energy generation rate, and ε is the turbulent kinetic energy dissipation rate;

[0134] The expression of the particle dynamics theory model is:

[0135]

[0136] Among them, k Θ is the diffusion coefficient, Θ s is the particle temperature, γ Θ is the wave energy dissipation, Φ Θ is the wave energy exchange between phases, I is the moment of inertia, τ s is the stress tensor, described by the Sinclair-Jackson model, α s is the volume fraction of snow, ρ s is the density of snow, P s The pressure of snow particles.

[0137] Furthermore, the momentum exchange phase is composed of multiple interphase forces, expressed as:

[0138]

[0139] in, is the drag force, For lift, is the wall lubrication force, is the turbulent dispersion force, is the virtual quality;

[0140] Drag and turbulent dispersion force are the main forces in wind-induced snow drift simulation. To ensure the stability and efficiency of the calculation process, they are simplified to be affected only by drag while meeting the calculation accuracy. The expression of drag is:

[0141]

[0142]

[0143] Where subscript s is the solid phase, subscript g is the gas term, and C D is the particle drag coefficient, Re p is the particle Reynolds number in the fluid, d s is the particle diameter, μ g is the fluid dynamic viscosity;

[0144] The Gidaspow-Schiller-Naumann model can be used to describe the drag coefficient and particle Reynolds number, expressed as:

[0145]

[0146] Furthermore, the expressions of turbulent kinetic energy and turbulent dissipation rate are:

[0147]

[0148]

[0149] Among them, D ε is the effective dispersion coefficient of ε. C1 and C2 are model coefficients, which are 1.44 and 1.92 respectively. t is the turbulent viscosity, C μ is the model coefficient of turbulent viscosity 0.09;

[0150] Furthermore, the simulation process is as follows Figure 2 As shown:

[0151] Establish calculation model → write boundary conditions → divide grid → set snow phase area → update editing conditions → perform calculation;

[0152] The calculation content is: the internal field and boundary condition data of the previous time step → calculate the predicted velocity field → calculate the corrected pressure field → calculate the corrected velocity field → judge the number of inner loop iterations, if it is judged to be yes, proceed to the next step, if it is judged to be no, update the predicted velocity field for iterative calculation;

[0153] Based on the data obtained in the previous step, determine the number of outer loop iterations, and proceed to the next step if it is yes;

[0154] If it is judged as otherwise, the velocity field and pressure field data are updated, and the iterative calculation of the previous step is repeated;

[0155] Based on the data obtained in the previous step, the particle temperature, turbulent kinetic energy and wet flow dissipation rate are solved, and then all relevant data of the current time step are saved. It is determined whether the final time step has been reached. If it is determined to be yes, the calculation is terminated. If it is not, the time step is advanced, and then the calculation step is returned;

[0156] S7. Output the integrable wind-induced snow drift numerical simulation results in the early stage of building design obtained in step S6 to the Rhino visualization platform for visualization setting.

[0157] Furthermore, this embodiment adopts a two-fluid model that can realize bidirectional coupling as a theoretical basis. The numerical implementation of the physical model is through the C++ library of the tensor method object-oriented technology open source OpenFOAM. Specifically, it is OpenFOAM 5.x. The integration in the early design stage uses the Butterfly0.0.5 API to realize the generation of OpenFOAM files and the calling of commands. In the specific implementation process, the basic files that can be called in the grasshopper platform are realized by modifying and supplementing some python files in the butterfly folder under the Rhinoceros folder and the butterfly_grasshopper folder. The aforementioned basic files are called through the GhPython Script, and cooperated with the existing calling modules to realize multiple calculation steps of numerical simulation. The new calling module is encapsulated as a ghuser file through the grasshopper platform and placed in the UserObjects folder under the Grasshopper folder. It is convenient for designers to call during the design stage.

[0158] The integrated numerical simulation method for wind-induced snow drift in the early stage of building design described in this embodiment is as follows: Figure 3 As shown in the figure, the simulation result curve of the double-step roof is as follows: Figure 4 shown.

[0159] Figure 3The snow distribution coefficient of the cross section with half the width of the model, the horizontal axis is the ratio of length to height, and the vertical axis is the snow distribution coefficient result at this point. The red squares, circles, triangles and hexagons in the figure represent the results of simulations of 2.5s, 5s, 10s and 20s respectively. The blue triangles, circles and squares represent the simulation results of the existing simulation methods at 25 steps, 50 steps and 100 steps respectively. The data show that the simulation results of this method have achieved the expected results.

[0160] Figure 4 The snow distribution coefficient of the low roof with a half-width section of the model, the horizontal axis is the ratio of length to height, and the vertical axis is the snow distribution coefficient result at this point. The red triangles, circles and squares in the figure represent the results of this simulation method at 2 seconds, 5.5 seconds and 9 seconds respectively. The blue hexagons, triangles, circles and squares represent the simulation results of the existing simulation method in stages 1, 2, 3 and 4 respectively. The green squares represent the existing field measurement results. The data show that the simulation results of this method have achieved the expected results.

[0161] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0162] Although the present application has been described above with reference to specific embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present application. In particular, as long as there is no structural conflict, the various features in the specific embodiments disclosed in the present application may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design, It is characterized in that The steps include: S1. Construct the calling module CreateSnowDrift Tunnel for generating a digital wind tunnel for wind and snow flow simulation in the Grasshopper platform, the calling module SnowDriftSnappyHexMesh for dividing the refined grid and overwriting the original file, the calling module SnowDriftsetFields for setting the air phase and snow phase areas under the initial conditions, the calling module SnowDrift Solution for updating the configuration file and executing the calculation command, the calling module SnowDrift Recipe for inputting the called two-phase flow solver, the calling module SnowDrift ControlDict for inputting the solution control file, and the calling module SnowDriftSolutionParams for updating the control file and the pointer file. Generate and call the basic files required for simulation through the Grasshopper platform, and realize the numerical simulation of wind-induced snow drift in the early stage of integrated building design based on OpenFOAM; The specific implementation method of step S1 includes the following steps: S1.

1. Construct a command calling module Create SnowDrift Tunnel for generating a digital wind tunnel for snow drift simulation; S1.1.

1. Modify the original fvScheme.py and fvSolution.py files in the butterfly folder, enter the discrete format and the physical parameters and mathematical methods to be solved. In order not to affect the use of the original command module, save them as fvSchemeTPT.py and fvSolutionTPT.py files; S1.1.

2. Modify the original fields.py file in the butterfly folder and add the following boundary conditions to meet the parameter input requirements of the added control file: no-slip boundary condition NoSlip, particle temperature boundary condition JohnsonJacksonParticleTheta, particle slip boundary condition JohnsonJacksonParticleSlip, gap inflow velocity boundary strip InterstitialInletVelocity, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary, atmospheric boundary layer inlet velocity condition AtmBoundaryLayerInletVelocity0, atmospheric boundary layer inlet ε condition AtmBoundaryLayerInletEpsilon0, atmospheric boundary layer inlet k condition AtmBoundaryLayerInletK0, atmospheric boundary condition AtmBoundary k wall function NutkAtmRoughWallFunction, alphatJayatilleke wall function AlphatJayatillekeWallFunction, compressed alphat wall function Compressible::alphatWallFunction, p_rgh pressure condition PrghPressure, fixed flux pressure condition FixedFluxPressure, flow rate inlet velocity condition FlowRateInletVelocity, in order not to affect the use of the original command module, save it as fieldsTPT.py file; S1.1.

3. Modify the original case.py file in the butterfly folder, add the module calls of the aforementioned physical parameter control dependency files, constant parameter control dependency files, and system operation parameter control dependency files, and add the calls of the above modules in the calling logic of the Case class method, call the corresponding Field module from fieldsTPT, and cooperate with the parameter settings. In order not to affect the use of the original command module, save the file as caseTPT.py file; S1.1.

4. Modify the original boundaryCondition.py file in the butterfly folder, add the aforementioned physical parameter module and the corresponding boundary condition module to the specific boundary conditions added under the BoundaryCondition class, and save it as boundaryConditionTPT.py file so as not to affect the use of the original command module; S1.1.

5. Modify the original windTunnel.py file in the butterfly folder, call the Case module in caseTPT and the series boundary condition module in boundaryconditionTPT, and save it as windTunnelTPT.py file so as not to affect the use of the original command module; S1.1.

6. Modify the case.py file in the original butterfly_grasshopper folder, import the caseTPT module in the butterfly folder, and save it as caseTPT.py file to avoid affecting the use of the original command module; S1.1.

7. Modify the windTunnel.py file in the original butterfly_grasshopper folder, import the Case module of the caseTPT.py file and the windtunnelTPT module in the butterfly folder, and save the file as windTunnelTPT.py so as not to affect the use of the original command module; S1.1.

8. Modify the original wind tunnel generation command module in GhPython Script, import the WindTunnelGH module in butterfly_grasshopper.windtunnelTPT, and save and encapsulate it as Create SnowDriftTunnel command module; S1.

2. Construct a command calling module SnowDriftSnappyHexMesh for dividing fine meshes and overwriting original files. Modify the original fine mesh division command module in GhPython Script, import and set the judgment value of the optional parameter overwrite in the log file generation content of the command execution part to True, realize the file overwriting after fine mesh division, and save and encapsulate it as SnowDrift SnappyHexMesh command module; S1.

3. Construct a command calling module SnowDriftsetFields for setting the air phase and snow phase areas under initial conditions. Referring to the log file generation logic of fine grid division, write the setFields.log file generation command through GhPython Script to achieve the initial setting of the two-phase flow field environment, and save and encapsulate it as SnowDriftsetFields command module; S1.

4. Build a command calling module SnowDrift Solution for updating configuration files and performing calculations; S1.4.

1. Modify the founction.py file in the butterfly folder and modify the string formatting method to input the calculation parameters. In order not to affect the use of the original command module, save it as founctionTPT.py file; S1.4.

2. Modify the foamfile.py file in the butterfly folder and the update rules of the update_values ​​method in the FoamFile class to enter the configuration file parameters. In order not to affect the use of the original command module, save it as a foamfileTPT.py file; S1.4.

3. Modify the controlDict.py file in the butterfly folder, import the corresponding modules from foamfileTPT.py and fountainTPT.py, modify the parameter settings under the ControlDict class definition, and save it as condrolDictTPT.py file so as not to affect the use of the original command module; S1.4.

4. Modify the original solution control command module in GhPython Script, call the ControlDict class in controlDictTPT, implement the control parameter update of snow drift simulation, and save and encapsulate it as SnowDrift ControlDict command module; S1.

5. Construct a command calling module SnowDrift Recipe for inputting the called two-phase flow solver; S1.5.

1. Modify the solution.py file in the butterfly folder, modify the input content of the from_ccp_dictionary method, add the required controlDict control file parameters, and save it as solutionTPT.py file; S1.5.

2. Modify the original update control file and pointer command module in GhPython Script, call the solutionTPT module, implement the complete control parameter update of the wind and snow flow simulation, and save and encapsulate it as SnowDriftSolutionParams command module; S1.

6. Construct the command calling module SnowDrift ControlDict for inputting the solution control file; S1.6.

1. Modify the recipe.py file in the butterfly folder, add a MultiPhase subclass under its Recipe class, the command called by this subclass is an executable two-phase flow simulation solver, and save it as recipeTPT.py file; S1.6.

2. Modify the original solver recipe command module in GhPython Script, call the Multiphase module from recipeTPT to implement the solver selection, and save and encapsulate it as SnowDrift Recipe command module; S1.

7. Construct the command calling module SnowDriftSolutionParams for updating the control file and pointer file, modify the original calculation execution command module in GhPython Script, call the Solution module in solutionTPT, implement file update and solution, and save and encapsulate it as SnowDrift Solution command module; S2. Use Create SnowDrift Tunnel obtained in step S1, cooperate with the existing call module createBFGeometry for generating digital model blocks and the call module refinementRegion for mesh refinement parameters, and establish the basic file of numerical simulation of wind-induced snow drift in the early stage of architectural design by inputting wind direction, wind speed, building blocks, snow accumulation blocks, refinement area, and folder name, and generate a digital model of numerical simulation of wind-induced snow drift in the early stage of architectural design; S3. Use the existing structured hexahedral meshing command module blockMesh and the mesh parameter input command calling module gradXYZ to perform simple meshing based on the basic file of numerical simulation of wind-induced snow drift constructed in step S2; S4. Based on the SnowDrift SnappyHexMesh obtained in step S1 and the simple mesh obtained in step S3, in cooperation with the existing calling module snappyHexMeshDict for inputting refined mesh division parameters, mesh parameters are input to perform fine mesh division of the wind-induced snow drift numerical simulation model; S5. Generate the initial field state setting log setFields.log file through SnowDrift setFields obtained in step S1, execute the setFields command for setting the initial field conditions in OpenFOAM, and configure the initial phase state of the wind-induced snow drift numerical simulation model; S6. Based on the SnowDrift Solution, SnowDrift Recipe, SnowDriftControlDict, and SnowDrift SolutionParams obtained in step S1, the model partitioning, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation are performed in cooperation with the existing calling module decomposeParDict_simple for inputting the parallel computing model partition parameters to obtain the wind-induced snow drift numerical simulation data; S7. Output the integrable wind-induced snow drift numerical simulation results in the early stage of building design obtained in step S6 to the Rhino visualization platform for visualization setting.

2. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 1, It is characterized in that The basic files for numerical simulation of wind-induced snow drift established in step S2 are generated in the calculation folder, mainly including the 0 folder, the Constant folder, and the System folder; The 0 folder is used to store the boundary and field initial parameters of the calculation model and generate volume fraction conditions, including the air phase volume fraction alpha.air file and the particle phase volume fraction alpha.particles file; The Constant folder is used to store basic physical parameters used for calculation and information of digital models required for simulation, and to generate polyMesh files for storing mesh boundary conditions and triSurface folders for storing digital model features; The System folder is used to store command information files related to the calculation process, generate structured grid division information blockMeshDict file, refined grid division information snappyHexMesh file, calculation control information controlDict file, discrete format information fvSchemes file, solution parameter information fvSolution file, and field initial state information setFieldsDict file, which are used for controlling grid division, numerical format and calculation conditions.

3. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 2, It is characterized in that The specific method for performing simple mesh division in step S3 is to call the existing module blockMesh for dividing the structured mesh and the module gradXYZ for inputting the mesh parameters, input the mesh size, the number of meshes, and the expansion coefficient for simple mesh division, write the mesh parameter settings by updating the blockMeshDict file, and generate a structured mesh division log blockMesh.log file in the log folder under the calculation folder for storing command execution logs to implement the call of the blockMesh command in OpenFOAM, and update the polyMesh folder after executing the command.

4. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 3, It is characterized in that Step S4 calls SnowDrift snappyHexMesh with snappyHexMeshDict and inputs mesh parameters for fine mesh division; S4.

1. First, generate the surface feature extraction log surfaceFeatureExtract.log file and call the surface feature extraction surfaceFeatureExtract command in OpenFOAM. After the command is executed, the surface features of the numerical simulation digitized model are extracted, and the ExtendedFeatureEdgeMesh file for storing the surface features is generated in the Constant folder; S4.

2. Update the snappyHexMeshDict file, generate refined mesh division and overwrite the original file log snappyHexMesh-overwrite.log file. Execute the snappyHexMesh command and overwrite the original mesh file. After the command is executed, update the polyMesh file and triSurface folder in the Constant folder.

5. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 4, It is characterized in that The specific implementation method of step S5 is to generate the initial field state setting log setFields.log file through SnowDrift setFields, execute the setFields command used to set the initial field conditions in OpenFOAM, configure the initial phase state of the wind-induced snow drift numerical simulation model, and update the alpha.air file and alpha.particles file in the 0 file after the command is executed.

6. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 5, It is characterized in that In step S6, based on the SnowDrift Solution, SnowDrift Recipe, SnowDrift ControlDict, and SnowDrift SolutionParams obtained in step S1, the specific implementation method of the numerical simulation process of model division, numerical solution, and model reconstruction of the wind-induced snow drift numerical simulation in cooperation with decomposeParDict_simple includes the following steps: S6.

1. Input the number and precision of partitions through the model partition parameter decomposeParDict_simple for inputting parallel computing, generate the decomposeParDict file for storing the partition parameter in the system folder, and generate the parallel partition log decomposePar.log file to call the decomposePar command for executing model partition in OpenFOAM; S6.

2. Input probe data, physical parameters and mathematical calculation model through SnowDrift ConrtolDict and SnowDrift SolutionParams; S6.

3. Update the storage calculation control parameter controlDict, storage discrete format parameter fvSchemes, storage solution information parameter fvSolution in the system folder, generate a probe, and use it to store the data probes file of the selected test points in the model; Generate the thermophysical parameters of air thermophysicalProperties.air, the thermophysical parameters of particles thermophysicalProperties.particles, the turbulence parameters of air turbulenceProperties.air, the turbulence parameters of particles turbulenceProperties.particles, the property parameters of all phases phaseProperties, and the gravity parameter g file in the Constant folder; Generate in the 0 folder the ABLConditions file storing atmospheric boundary condition parameters, the initialConditions file storing internal field condition parameters, the alphat.air file storing air turbulence thermal diffusivity parameters, the alphat.particles file storing particle turbulence thermal diffusivity parameters, the T.air file storing air temperature parameters, the T.particles file storing particle temperature parameters, the U.air file storing air velocity parameters, the U.particles file storing particle velocity parameters, the nut.air file storing air turbulence viscosity parameters, the nut.particles file storing particle turbulence viscosity parameters, the k.air file storing air turbulence kinetic energy parameters, the epsilon.air file storing air turbulence dissipation rate parameters, the Theta.particles file storing particle temperature parameters, the p_rgh file storing dynamic pressure parameters, and the p file storing static pressure parameters to set the initial boundary conditions; Generate the parallel computing execution log mpirun.log file in the log folder to execute the reactingTwoPhaseEulerFoam–parallel command of the parallel computing two-phase flow solver in OpenFOAM.

7. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 6, It is characterized in that The simulation in step S6 involves a mass transfer process. In phaseProperties, under the calculation model phase system for selecting the phase, the heat and mass transfer model heatAndMomentumTransferTwoPhaseSystem is input, and the pure phase model pureIsothermalPhaseModel with constant temperature is selected thereunder. The solution of the energy equation is closed by controlling the number of iterations of the controller solver. The calculation process uses the PIMPLE method for transient solution.

8. An integrable method for numerical simulation of wind-induced snow drift in the early stages of building design according to claim 7, It is characterized in that The calculation model for the numerical simulation of wind-induced snow drift in step S6 adopts a two-fluid model, taking the air phase and the snow phase as the continuous phase and the discrete phase i, and using the Navier-Stokes equation to describe it. The expressions of the momentum equation and the continuity equation are: Among them, U i is the velocity of the discrete term and the continuous phase, α i is the phase fraction of the discrete term and the continuous phase, ρ i is the density of the discrete term and the continuous phase, p is the pressure, g is the gravity vector, τ i is the stress tensor of the discrete term and the continuous phase, M i is the momentum exchange phase between the discrete term and the continuous phase; The standard k-ε model and particle dynamics theory model are used to deal with the turbulence of air phase and particle phase. The expression of the standard k-ε model is: Where k is the turbulent kinetic energy, D k is the effective dispersion coefficient of k, P is the turbulent kinetic energy generation rate, and ε is the turbulent kinetic energy dissipation rate; The expression of the particle dynamics theory model is: Among them, k Θ is the diffusion coefficient, Θ s is the particle temperature, γ Θ is the wave energy dissipation, Φ Θ is the wave energy exchange between phases, I is the moment of inertia, τ s is the stress tensor, described by the Sinclair-Jackson model, α s is the volume fraction of snow, ρ s is the density of snow, P s The pressure of snow particles.

Citation Information

Patent Citations

  • Test method for outdoor wind-induced snow drifting

    CN106053006A

  • A method of calculating snow accumulation

    CN109558645A