Search

CN-116776473-B - StarCCM + based interface passenger cabin simulation analysis auxiliary method and tool

CN116776473BCN 116776473 BCN116776473 BCN 116776473BCN-116776473-B

Abstract

The invention discloses an interface passenger cabin simulation analysis auxiliary method and tool based on StarCCM +, wherein the method comprises the following tasks of responding to the operation of a user on a user operation interface, reading the user operation interface and determining the input setting of the user on each parameter of the user operation interface; the method comprises the steps of generating a model setting module macro file with parameters based on a simulation analysis function, a model file and calculation parameters, calling StarCCM + software to run the model setting module macro file with the parameters to automatically generate a calculated simulation model, calling a model post-processing module macro file to generate a model post-processing module macro file with the parameters based on a post-processing auxiliary file, running the model post-processing module macro file with the parameters to automatically generate a post-processing output file based on the calculated simulation model, running a report generation program to automatically generate a simulation analysis report based on the post-processing output file. The invention can improve the simulation analysis efficiency.

Inventors

  • SUN QINGLING
  • XU LIQING
  • SONG NUAN
  • YAN HONGYU

Assignees

  • 深蓝汽车科技有限公司

Dates

Publication Date
20260508
Application Date
20230628

Claims (9)

  1. 1. The StarCCM + based interface passenger cabin simulation analysis assisting method is characterized by comprising the following steps of: in response to a user operation of the user operation interface, performing the following tasks: reading a user operation interface, and determining the selection of a user on a simulation analysis function, the selection of a model file, the setting of calculation parameters and the selection of a post-processing auxiliary file; calling a model setting module macro file, and generating a model setting module macro file with parameters based on a simulation analysis function, the model file and calculation parameters; calling StarCCM +software to run a model setting module macro file with parameters, and automatically generating a calculated simulation model; Calling a model post-processing module macro file, and generating a model post-processing module macro file with parameters based on the post-processing auxiliary file; Operating a model post-processing module macro file with parameters, and automatically generating a post-processing output file based on the calculated simulation model; Running a report generating program, and automatically generating a simulation analysis report based on the post-processing output file; The method comprises the steps of calling a model setting module macro file with parameters for StarCCM + software operation, and automatically generating a calculated simulation model, wherein the step of calling StarCCM + software to read the model file, if the suffix name of the read model file is ". NAS", the model setting module macro file with the parameters obtains the model group name of the model file, determines grid generation parameters based on the model group name, sets the grid generation parameters of StarCCM + software, sets the calculation parameters of StarCCM + software, automatically generates the calculated simulation model, and if the suffix name of the read model file is ". SIM", sets the calculation parameters of StarCCM + software, and automatically generates the calculated simulation model.
  2. 2. The StarCCM + based interfaced passenger compartment simulation analysis assistance method of claim 1, wherein: the grid generation parameters include grid size, boundary layer necessity, boundary layer size, anti-contact necessity, anti-contact size, encryption area range, and encryption size.
  3. 3. The method for assisting simulation analysis of a StarCCM + based interfaced passenger compartment of claim 1, wherein the calculation parameters include a simulation calculation step number, a calculation node number and an import parameter.
  4. 4. The method for assisting in simulating analysis of an interfaced passenger compartment based on StarCCM + of claim 1, wherein the simulated analysis functions include a defrost defogging analysis function and a blow-down pattern analysis function.
  5. 5. The method for assisting simulation analysis of an interfaced passenger cabin based on StarCCM + of claim 1, wherein the post-processing output file comprises a picture and a physical quantity value, and the report generation program is used for operating a PPT document, adjusting a picture layout, making data table bearing data and generating a simulation analysis report of a unified template by using a POI based on the picture and the physical quantity value.
  6. 6. StarCCM + based interfaced passenger cabin simulation analysis auxiliary tool is characterized by comprising: The model setting module macro file with parameters acquires the model group name of the model file if the suffix name of the read model file is ". Na", determines grid generation parameters based on the model group name, sets the grid generation parameters of StarCCM + software, sets the calculation parameters of StarCCM + software and automatically generates a calculated simulation model, and sets the calculation parameters of StarCCM + software if the suffix name of the read model file is ". Sim", so as to automatically generate the calculated simulation model; The model post-processing module macro file enables StarCCM + software to generate a post-processing output file based on a calculated simulation model after operation; the report generating program can generate a simulation analysis report based on the post-processing output file after running; the user operation interface is created based on a Java platform and is used for calling StarCCM + software, a model setting module macro file, a model post-processing module macro file and a report generating program according to the operation of a user so as to realize expected functions.
  7. 7. The StarCCM + based interfaced passenger compartment simulation analysis aid of claim 6, The user operation interface comprises a plurality of functional modules for triggering, inputting or displaying, wherein the functional modules are respectively as follows: the analysis function module selection buttons comprise a defrosting and demisting analysis button and a face blowing mode analysis button, and can be switched to corresponding simulation analysis functions when the defrosting and demisting analysis button or the face blowing mode analysis button is triggered; the simulation calculation step number input box is used for setting the simulation calculation step number; A calculation node number input box for setting the calculation node number; calculating an import parameter input frame of the model, which is used for setting import parameters; The system comprises a plurality of selection keys, wherein a post-processing auxiliary file path input box is correspondingly arranged behind each selection key and is used for inputting required parameters for a model post-processing module macro file; The model file adding area is provided with a data table in which a file selecting function is arranged, wherein each row of the data table allows one file to be selected, the absolute path of the file is displayed in the data table, and a plurality of files are processed one by one according to the ordering in the data table; the selector is added with a function key, and the number of lines is increased at the lowest part of the data table when the function key is triggered; The selector reduces the function keys, and reduces the number of lines at the lowest part of the data table when triggering; the selector deletes the function key, delete the specified file of a certain row of the data sheet while triggering; Calculating a process display area, reading StarCCM + software data flow and then synchronously displaying the StarCCM + software data flow in the display area when StarCCM + background is operated, and monitoring grid generation and calculation processes in real time; starting a key, calling StarCCM + software by using a command line when triggering, and running a model setting module macro file with parameters to automatically generate a calculated simulation model; a termination key, which executes a calculation termination function when triggered, and ends StarCCM + process; The post-processing key is used for operating a model post-processing module macro file with parameters when triggered, and automatically generating a post-processing output file based on the calculated simulation model; and a report generation button, which is used for running a report generation program when triggered, and automatically generating a simulation analysis report based on the post-processing output file.
  8. 8. The StarCCM + based interfaced passenger compartment simulation analysis aid of claim 7, The model setting module macro file comprises: The parameter setting module is used for reading the calculation parameters set by the user operation interface and assigning values for the boundary of the simulation model; the file reading module is used for reading the corresponding model file of the model file adding area; The grid size setting module is used for reading the model group names and determining the corresponding group grid sizes through the model group names; The boundary layer setting module is used for reading the model group names and determining the necessity and the size of the boundary layer based on the names; the anti-contact setting module is used for reading the model group names and determining anti-contact necessity and anti-contact size based on the names; the encryption zone setting module is used for reading the model group names and determining the encryption zone range and the encryption size based on the names; And the execution module is used for setting calculation parameters, grid size, boundary layer necessity, boundary layer size, anti-contact necessity and anti-contact size and generating a simulation model after calculation by executing corresponding macro commands on StarCCM + software.
  9. 9. The StarCCM + based interfaced passenger compartment simulation analysis aid of claim 8, The model post-processing module macro file comprises: the image intercepting and outputting module reads the calculated simulation model, creates a view of the physical quantity required by scene display based on the requirement, adjusts the view angle and the size, and outputs an image on a file path where the calculated simulation model is positioned; And the physical quantity statistical output module is used for counting the calculated key physical quantity of the simulation model and generating text storage physical quantity names and assignments on a file path where the calculated simulation model is positioned.

Description

StarCCM + based interface passenger cabin simulation analysis auxiliary method and tool Technical Field The invention relates to a principle framework of a CFD simulation analysis auxiliary tool for an automobile passenger cabin, in particular to a StarCCM + based interfacial simulation analysis auxiliary method and tool for the passenger cabin. Background Along with the development of the automobile industry, CFD simulation analysis is widely applied to various fields of automobile research and development, and in project development, when passenger cabin simulation analysis (particularly important analysis items, such as defrosting and demisting analysis and blowing mode analysis) is carried out, the analysis repetition number is high, the degree of analysis modeling is high, and a great deal of time is occupied by calculation model setting, model post-processing and report programming, so that the analysis process is automatically changed into a requirement, so that the simulation analysis time is shortened, and the analysis efficiency is improved. CN112163270A discloses a CFD automatic modeling and analyzing system and method based on ANSA and StarCCM + platforms, a user operation interface module calls a lower module through a script program of a system main control program to realize automation of a complete vehicle CFD simulation flow, a vehicle parameter module is used for inputting complete vehicle information to generate a parameter model to provide required input for subsequent analysis, a preprocessing and calculation model generation module is built on the basis of ANSA platforms to automatically or semi-automatically preprocess the parameter model input by the vehicle parameter module according to a call preprocessing script to generate a grid model conforming to the standard, an example generation and post-processing module is built on the basis of StarCCM + platforms, the grid model generated by the preprocessing and calculation model generation module is used for calling an example generation and calculation script and a post-processing script to realize automatic generation and submission calculation of simulation examples, finally, the post-processing picture is output and summarized, and an analysis report is automatically generated. Needless to say, the technical solution disclosed in the above patent document is a beneficial attempt in the technical field, but the automation of the passenger cabin simulation cannot be achieved. Disclosure of Invention Therefore, the invention aims to provide the StarCCM + based interface passenger cabin simulation analysis auxiliary method and tool, which do not need a user to manually adjust various parameters in StarCCM + software, realize passenger cabin simulation automation, shorten simulation analysis time and improve simulation analysis efficiency. The invention discloses a StarCCM + based interfacial passenger cabin simulation analysis auxiliary method, which comprises the following steps: in response to a user operation of the user operation interface, performing the following tasks: reading a user operation interface, and determining the selection of a user on a simulation analysis function, the selection of a model file, the setting of calculation parameters and the selection of a post-processing auxiliary file; calling a model setting module macro file, and generating a model setting module macro file with parameters based on a simulation analysis function, the model file and calculation parameters; calling StarCCM +software to run a model setting module macro file with parameters, and automatically generating a calculated simulation model; Calling a model post-processing module macro file, and generating a model post-processing module macro file with parameters based on the post-processing auxiliary file; Operating a model post-processing module macro file with parameters, and automatically generating a post-processing output file based on the calculated simulation model; And running a report generating program, and automatically generating a simulation analysis report based on the post-processing output file. Further, the method comprises the steps of, Calling StarCCM +software to run a model setting module macro file with parameters, and automatically generating a calculated simulation model, wherein the method comprises the following steps: Calling StarCCM + software to read a model file, if the suffix name of the read model file is ". NAs", a model setting module macro file with parameters obtains the model group name of the model file, determines grid generation parameters based on the model group name, sets the grid generation parameters of StarCCM + software, sets the calculation parameters of StarCCM + software and automatically generates a calculated simulation model, and if the suffix name of the read model file is ". SIm", sets the calculation parameters of StarCCM + software and automatically generates the calculated simulation