CN109684743A - Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method - Google Patents

Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method Download PDF

Info

Publication number
CN109684743A
CN109684743A CN201811607369.3A CN201811607369A CN109684743A CN 109684743 A CN109684743 A CN 109684743A CN 201811607369 A CN201811607369 A CN 201811607369A CN 109684743 A CN109684743 A CN 109684743A
Authority
CN
China
Prior art keywords
post
model
finite element
analysis
cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201811607369.3A
Other languages
Chinese (zh)
Inventor
陈颖
方家玥
康锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201811607369.3A priority Critical patent/CN109684743A/en
Publication of CN109684743A publication Critical patent/CN109684743A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/06Power analysis or power optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of, and the Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method, it include: the input 3D geometrical model local address in local visualization interface, material parameter, fixed constraint position, load p SD spectrum and direction and analysis type, it upload the data to cloud, the ANSYS workbench simulation software in cloud imports 3D geometrical model, assign material parameter to 3D geometrical model, 3D geometrical model is updated and grid dividing, then apply mode boundary condition, then the post-processing of model analysis is carried out, random vibration analysis is selected according to user, one of harmonic responding analysis or transient analysis, apply different loads again and is post-processed accordingly.The application is emulated using cloud platform, improves simulation efficiency, fast and accurately carries out the emulation of Avionic Products failure behavior and reliability prediction.

Description

Avionic Products vibration cloud based on ANSYS scripting language is emulated from mobile interface Method
Technical field
The invention belongs to aeronautical product stress simulation technical fields, and in particular to a kind of boat based on ANSYS scripting language Empty electronic product vibration cloud emulates automatic interface method.
Background technique
Avionic Products are usually made of all kinds of electronic systems with standalone feature, such as flight control system, Navigation system etc., they are the brains for controlling aircraft operation, and reliability is taken seriously all the time.Avionic Products Structure is substantially made of cabinet, circuit board and component thereon and connecting component, by temperature, vibration during task The influence of dynamic, air pressure etc., generallys use stress simulation method at present to guarantee its reliability under circumstances.Vibration Simulation It is exactly one kind of stress simulation method, is sliding a series of task ranks such as race, rising, circulation, decline, landing for simulated flight device Vibration environment in section, examines or check whether its vibratory response will cause the failure of product.Structure is complicated for Avionic Products, arrives machine greatly Case, it is small to arrive important component, it requires to take in when emulation, therefore grid rule when finite element vibration analysis Mould is larger, in addition Avionic Products belong to multistage multitask system, oscillatory type, the vibration of different phase and different task Magnitude applies the possible difference in direction, therefore, to carry out Vibration Simulation to an Avionic Products, calculation scale is larger, needs The memory space to be occupied is big, usually also wants long time using work station emulation, and many users are due to lacking hardware and soft Part resource can not carry out vibration stress emulation.
There is provided a kind of form of computing resource sharing, user can put into the money such as seldom fund and manpower for cloud computing Source, so that it may access data center by modes such as desktop computer, notebook, mobile phones, using the software in cloud, server, network, Memory carries out operation by the demand of oneself.The appearance of cloud computing provides portable strip for Avionic Products Vibration Simulation The efficiency of part, calculating also greatly improves.The cloud of Avionic Products calculates, and is exactly user on local operation cloud server Computer aided analysis software, realize the process that stress response of the product under vibration environment condition calculates.Realize cloud It calculates, first has to for the setting of model and material parameter and some parameters being transmitted in the Vibration Simulation software in cloud, need The automatic calling of design interface realization Vibration Simulation software.
The Vibration Simulation of Avionic Products includes the types such as Modal Analysis, random vibration, sinusoidal vibration and Impact Simulation, Wherein Modal Analysis is basis, and latter three will then be determined according to the practical oscillatory type born of electronic product.Whether at this The step of ground calculates or cloud calculates, Vibration Simulation will include usually modeling, assign material parameter, grid division, setting Boundary and load-up condition and post-processing result extraction etc..Common Avionic Products Vibration Simulation software include ANSYS, MSC.Nastran etc., wherein the Workbench module of ANSYS software has stronger threedimensional model processing function, therefore more It is common.And this software provides the scripting language of secondary development language APDL and Javascript, Python program, facilitate user It is automatic to call.By investigation find, for the different step of Vibration Simulation, the script development language of ANSYS be it is different, For example, assigning material parameter by Python, then processing result extraction needs to need comprehensive benefit using JavaScript With different scripting languages, the design of cloud emulation interface is realized.By looking into new and retrieval to the prior art, do not have also both at home and abroad About the report of the interface method of Avionic Products vibration cloud emulation.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides it is a kind of carry out beyond the clouds Avionic Products vibration cloud emulation from Dynamicization interface method, its appearance can overcome inefficient, cost of the existing Vibration Simulation in local computing excessively high And the deficiency excessively high to technical staff's Capability Requirement, so that the Vibration Simulation of Avionic Products is more efficient, save the cost, It is easy to spread, to improve the reliability level of Avionic Products.
The invention discloses a kind of, and the Avionic Products vibration cloud based on ANSYS scripting language is emulated from mobile interface side Method calls the secondary development language APDL and JavaScript, Python of offer automatically according to ANSYS software in order to facilitate user The scripting language of program uses the script development language of different ANSYS to the different step of Vibration Simulation in the present invention, User is realized to be automatically performed emulation beyond the clouds after local input emulates data and Vibration Simulation result is returned to local, tool Steps are as follows for body:
Step 1, the visualization interface for opening local Avionic Products vibration cloud emulation, inputs boat in visualization interface 3D geometrical model local address, the Avionic Products of empty electronic product carry out the material parameter of vibration Simulation Analysis, fix about Beam position, load p SD spectrum and direction and user according to the working environment selection analysis types of the Avionic Products, After the completion of fully entering, cloud is uploaded data to, includes at least 3D geometrical model local address, Vibration Simulation in the data of upload Material parameter, fixed constraint position, load p SD spectrum and the direction of analysis and analysis type;
Step 2, the data that user uploads upload cloud after saving with jason document form, pass through Python scripting language The jason conversion format code write, is converted into the workbench that cloud ANSYS workbench simulation software can identify File format, which is placed on, to be uploaded in data packet;
Step 3, from reading 3D geometrical model path in data packet is uploaded, pass through Python scripting language and realize aviation electronics The 3D geometrical model of product imported into the ANSYS workbench simulation software in cloud from local;
Step 4, from the material parameter for reading Avionic Products in data packet and carrying out vibration Simulation Analysis is uploaded, pass through Python scripting language, which is realized, assigns material parameter to 3D geometrical model;
Step 5, by the ANSYS workbench simulation software in JavaScript script language calling cloud Two functions of Refresh and Update realize update and grid dividing to 3D geometrical model, export finite element mesh model;
Step 6, from acquisition fixed constraint position in data packet is uploaded, pass through JavaScript script language calling ANSYS AddSupport function in workbench simulation software, which is realized, applies mode boundary condition, input to finite element mesh model For fixed constraint position, export to be applied with the finite element modal boundary model after mode boundary condition;
Step 7, pass through the AddResult in JavaScript script language calling ANSYS workbench simulation software Function carries out the post-processing of model analysis to the finite element modal boundary model, inputs as finite element modal boundary model Solid exports to have carried out the finite element modal after mode post-processing and having post-processed model;
Step 8, the analysis type for uploading user's selection in data packet is read, is executed not according to the analysis type of user's selection With operation, analysis type is divided into one of random vibration analysis, harmonic responding analysis or transient analysis, when user be selected as with When machine vibration is analyzed, step 9 is executed;When user is selected as harmonic responding analysis, step 10 is executed;Or when user is selected as wink When state is analyzed, step 11 is executed;
Step 9, when the user selects random vibration analysis, random vibration is applied to finite element modal post-processing model Dynamic boundary condition is simultaneously post-processed, and output post-processing result is dynamic respond cloud atlas;Step 12 is executed after step 9;
Step 10, when the user selects harmonic responding analysis, model is post-processed to the finite element modal, applies Harmony response Boundary condition is simultaneously post-processed, and output post-processing result is total acceleration frequency response chart;Step is executed after step 10 12;
Step 11, when the user selects transient analysis, model is post-processed to the finite element modal, applies transient state boundary Condition is simultaneously post-processed, and output post-processing result is impact acceleration response diagram;Step 12 is executed after step 11;
Step 12, result will be post-processed by the order of sftp telecopy and returns to local computer, and described in the step 1 Show cloud ANSYS workbench software to the processing result of Avionic Products in visualization interface.
Preferably, apply random vibration boundary condition to finite element modal post-processing model in the step 9 to go forward side by side Row post-processing output displacement responds cloud atlas, specifically:
It reads and uploads load p SD spectrum and direction in data packet, frequency values are included at least in the load p SD spectrum and add Speed-power spectrum density applies finite element modal post-processing model by APDL scripting language according to load p SD spectrum and direction Add Random Vibration Load, exports as finite element random vibration boundary model;Then, then pass through JavaScript script language calling The AddResult function of ANSYS workbench software post-processes the finite element random vibration boundary model, the letter Several inputs is the solid of finite element random vibration boundary model, and the post-processing result of output is dynamic respond cloud atlas.
Preferably, Harmony response boundary condition is applied to finite element modal post-processing model in the step 10 and carried out Post-processing output total acceleration frequency response chart, specifically:
It reads and uploads load p SD spectrum and direction in data packet, include at least sinusoidal pattern load in the load p SD spectrum Characteristic value applies sinusoidal pattern to finite element modal post-processing model using APDL scripting language according to load p SD spectrum and direction Load exports as finite element Harmony response boundary model;Then, then pass through JavaScript script language calling ANSYS The AddResultChart function of workbench simulation software post-processes the finite element Harmony response boundary model, should The input of order is the solid of finite element Harmony response boundary model, and the post-processing result of output is total acceleration frequency response Figure.
Preferably, after finite element modal post-processing model being applied transient state boundary condition and is carried out in the step 11 Processing output impact acceleration response diagram, specifically: it reads and uploads load p SD spectrum and direction in data packet, the load p SD Impacting acceleration value is included at least in spectrum, using APDL scripting language according to load p SD spectrum and direction, to finite element modal It post-processes model and applies shock loading, export as finite element transient state boundary model;Then, then pass through JavaScript scripting language The AddResult function of ANSYS workbench simulation software is called to post-process finite element transient state boundary model, the letter Number input is the solid of finite element transient state boundary model, and the post-processing result of output is impact acceleration response diagram.
Preferably, the 3D geometrical model in the step 1 is by obtaining to the processing of fillet, chamfering, threaded hole or through-hole The 3D geometrical model obtained.
Preferably, the post-processing carried out in the step 7 is the post-processing of multistage intrinsic frequency, the multistage intrinsic frequency Post-processing realized by repeating first natural frequency post-processing.
Preferably, realize the 3D geometrical model of Avionic Products from originally by Python scripting language in the step 3 Ground imported into the ANSYS workbench simulation software in cloud, specifically:
It is realized by the SetFile function of Python scripting language, assigns the 3D geometrical model path of reading to SetFile FilePath in function, format are as follows:
Geometry1.SetFile (FilePath=" 3D geometrical model path ");
Wherein " 3D geometrical model path " is that local machine name adds 3D geometrical model local address, and model is ordered beyond the clouds Entitled geometry1.
The advantages of the application, is:
1, Avionic Products vibration automatic simulation uses two modules of workbench and mechanical, local imitative Three script file Python, JavaScript, APDL are very also utilized with the interface method in cloud, respectively realize modeling, Assign material parameter, grid division, setting boundary and load-up condition and post-processing result extract and etc., solve automatic The crucial problem of emulation realizes the vibration finite element automatic simulation in cloud;
2, the realization of Avionic Products cloud automatic simulation overcomes local emulation to computing resource and to technical staff Demanding problem improves the computational efficiency of emulation, has saved hardware cost and human cost.
Detailed description of the invention
Fig. 1 is that the Avionic Products of ANSYS scripting language vibrate the flow chart that cloud emulates automatic interface method;
Fig. 2 is the 3D geometrical model viewing area of visualization interface;
Fig. 3 is the material label area of visualization interface;
Fig. 4 is the material data User Interface of visualization interface;
Fig. 5 is the boundary label area of visualization interface;
Fig. 6 is the mission profile label area of visualization interface;
Fig. 7 is the mission profile data User Interface of visualization interface;
Fig. 8 is to select stress types in task cross-sectional data User Interface;
Fig. 9 is the direction that selection applies load in task cross-sectional data User Interface;
Figure 10 is the result after the post-processing of complete machine first natural frequency;
The result that Figure 11 post-processes for 3 rank intrinsic frequencies before the circuit board of the first power supply;
Figure 12 is complete random vibration automation simulation block diagram;
Figure 13 is that random vibration PSD output displacement responds cloud atlas;
Figure 14 is complete Harmony response automation simulation block diagram;And
Figure 15 is complete transient analysis automation simulation block diagram;
Specific embodiment
A kind of claimed Avionic Products vibration cloud emulation based on ANSYS scripting language of the application connects automatically Mouthful method overall procedure as shown in Figure 1, will be described in detail according to specific embodiment below, the specific steps of which are as follows:
Step 1, the visualization interface for opening local Avionic Products vibration cloud emulation, inputs boat in visualization interface 3D geometrical model local address, the Avionic Products of empty electronic product carry out the material parameter of vibration Simulation Analysis, fix about Beam position, load p SD spectrum and direction and user are according to the working environment selection analysis types of Avionic Products;All After the completion of input, the data of input are uploaded into cloud.
It include 3D geometrical model viewing area, geometry mould in the visualization interface of local Avionic Products vibration cloud emulation Type label area, material label area, boundary label area and mission profile label area, display needs to carry out in 3D geometrical model viewing area The 3D geometrical model of emulation, geometrical model label area is for inputting 3D geometrical model local address, and material label area is for inputting Avionic Products carry out the material parameter of vibration Simulation Analysis, and for inputting fixed constraint position, task is cutd open in boundary label area Face label area is used to input Avionic Products and carries out the PSD spectrum of vibration Simulation Analysis and apply direction.
In the present embodiment 3D geometrical model as shown in Figure 2 be located at " E: 2017 emulation the ANSYS based on cloud platform Under this catalogue of workbench software emulation ", then at this time 3D geometrical model path be exactly " E: 2017 emulation it is flat based on cloud The ANSYS workbench " of platform, the mode for inputting 3D geometrical model local address can be used since my computer from level to level The mode of downward path selection finds the model for needing to upload, and can also directly input 3D geometrical model local address, this field Technical staff both knows about the input of 3D geometrical model local address and can be accomplished in several ways, defeated in geometrical model label area Enter path, will show 3D geometrical model in 3D geometrical model viewing area after the completion of input.The 3D geometry mould of Avionic Products Type can be the simplification 3D geometrical model formed after carrying out simplifying processing to fillet, chamfering, threaded hole, through-hole etc., simplify 3D geometrical model have that structure is relatively simple, subsequent processing of being more convenient for compared with original product 3D geometrical model.
Material label area is used to input the material parameter that Avionic Products carry out vibration Simulation Analysis, including each section knot Young's modulus, Poisson's ratio and the density of structure, select material label specially in visualization interface, and material label shows such as Fig. 3 It is shown title material list, title material is clicked and enters material data User Interface as shown in Figure 4, material data fills in boundary Face includes the information for having the needs such as object of title, density, elasticity modulus, Poisson's ratio, color, application to fill in, can be according to reality Border is filled in, and density, Young's modulus and the Poisson's ratio of a variety of different isotropic elastic materials can be by searching for hands Volume or actual measurement obtain.
It is to apply fixed constraint in the bore area of 4 dampers in the present embodiment;As shown in Figure 5, in visualization interface Middle selection boundary label area includes constraint name in boundary label area, frontier properties, applies the parameters such as object.
Mission profile label area is used to input the analysis type and PSD spectrum that Avionic Products carry out vibration Simulation Analysis Value and application direction.Mission profile label is selected specially in visualization interface, mission profile label area is shown as shown in Figure 6 For mission profile list, clicks task names and enter mission profile data User Interface as shown in Figure 7, mission profile data are filled out Writing interface includes the information that the needs such as the direction of stress types, PSD spectrum, application load are filled in, can be by searching for handbook Or actual measurement obtains, the PSD frequency spectrum that different analysis types needs to use accordingly using different stress types is not yet Together, therefore according to stress types it is known that analysis type, and corresponding PSD frequency spectrum is inputted.In mission profile label area Specific input method is as follows: firstly, user selects random vibration analysis, Harmony response point according to the working environment of Avionic Products One of analysis or transient analysis, i.e. selection stress types, the present embodiment is random vibration analysis, therefore is being selected as shown in Figure 8 It selects and selects Random Vibration Load in stress types;Secondly, the random vibration PSD specific value such as table 1 inputted in the present embodiment It is shown:
1 Random Vibration Load PSD of table
Therefore random vibration PSD specific value is inputted in a manner of filling in a form clicking " addition input point ", such as Fig. 7 institute Show, the PSD spectrum that sectional view is inputted with image display user is also produced after input;It is applied finally, can choose in interface bottom The direction for loading lotus selects Z-direction as the direction for applying load, as shown in Figure 9 in the present embodiment.
It after the completion of fully entering, clicks " analysis operation " and uploads data to cloud, the data of upload include at least 3D geometry Model local address, the material parameter of vibration Simulation Analysis, fixed constraint position, load p SD spectrum and direction and analysis classes Type.
Step 2, the 3D geometrical model local address of user's upload, the material parameter of vibration Simulation Analysis, fixed constraint position Set, load p SD spectrum and the data such as direction and analysis type are uploaded to cloud after saving with jason document form, beyond the clouds Jason file is converted cloud ANSYS workbench emulation by the jason conversion format code write by Python The workbench file format that software can identify, which is placed on, to be uploaded in data packet.
Step 3, from reading 3D geometrical model path in data packet is uploaded, then pass through Python scripting language SetFile function realizes the ANSYS workbench simulation software that the 3D geometrical model of Avionic Products is imported into cloud, This process is that the 3D geometrical model path that will be read assigns the FilePath in SetFile function, format are as follows:
Geometry1.SetFile (FilePath=" 3D geometrical model path ");
Wherein " 3D geometrical model path " is that local machine name adds 3D geometrical model local address, and model is ordered beyond the clouds Entitled geometry1.
Step 4, from the material parameter for reading Avionic Products in data packet and carrying out vibration Simulation Analysis is uploaded, then lead to The CreateMaterial function for crossing Python scripting language realizes the material that Avionic Products are carried out to vibration Simulation Analysis Parameter assigns 3D geometrical model.
CreateMaterial function is according to the material parameter for uploading vibration Simulation Analysis in data packet, to different materials Different material numbers is created, the attribute and attribute value different according to the data definition uploaded in data packet to every kind of material should The function creation material properties and specific example for assigning attribute value is as follows:
Matl0=engineeringData1.CreateMaterial (Name=" 116 ")
MatlProp1=matl0.CreateProperty (Name=" Density ")
MatlProp1.SetData (Index=-1, Variables=[" Density "], Values=[[" 1144"]])
MatlProp2=matl0.CreateProperty (Name=" Elasticity ", Behavior=" Isotropic")
MatlProp2.SetData (Index=-1, Variables=[" Young's Modulus "], Values= [["7E+10[Pa]"]])
MatlProp2.SetData (Variables=[" Poisson's Ratio "], Values=[[" 0.333 "]])
The above scripting language realizes the material that creation number is 116 and definition material attribute and attribute value, No. 116 materials The attribute and attribute value being related to specifically: density (Density) value is 1144Mpa, vibrates the material in finite element simulation Consider that isotropic elastic material, Young's modulus (Young's Modulus) value are 7E+10 [Pa], Poisson's ratio (Poisson' S Ratio) value be 0.333.
Step 5, it usually requires to be updated 3D geometrical model before carrying out 3D geometrical model grid division, to ensure It is grid dividing to be carried out to newest 3D geometrical model, therefore use the ANSYS in JavaScript script language calling cloud Two functions of Refresh and Update in workbench simulation software realize update and grid dividing to 3D geometrical model Afterwards, finite element mesh model is exported, specifically:
component1.Refresh();
component1.Update();
Wherein, component1 is Model module of the 3D geometrical model in ANSYS workbench of Avionic Products In title;Component1.Refresh order is used to update the 3D geometrical model imported;Component1.Update order For grid division, finite element mesh model is generated.
Step 6, from acquisition fixed constraint position in data packet is uploaded, JavaScript script language calling ANSYS is used AddSupport function in workbench simulation software, which is realized, applies mode boundary condition to finite element mesh model, such as Fixed constraint, symmetry constraint etc., fixed constraint simulate the true fixed form of Avionic Products, and symmetry constraint is according to model Simplified condition determines;The input of AddSupport function herein is node or the face that apply constraint, is exported to be applied with Finite element modal boundary model after mode boundary condition.
As applied fixed constraint in the bore area of 4 dampers in present case;So pass through JavaScript script The AddSupport function of language are as follows:
sim.AddSupport(SM,510);
Wherein, sim is the finite element mesh model that step 5 generates, and SM is that the user obtained from upload data packet is having It limits and chooses the frontier properties for applying fixed constraint in first grid model and apply object, 510 be fixed constraint in ANSYS Number in workbench simulation software.
Step 7, using the AddResult in JavaScript script language calling ANSYS workbench simulation software Function, the post-processing of model analysis is carried out to finite element modal boundary model, and the input of the order is finite element modal module of boundary The solid of type exports and post-processes model for finite element modal;Solid indicates a part of entire model or model, herein Input is preferably entire finite element modal boundary model.
Such as carry out the function of first natural frequency post-processing are as follows:
results.AddResult(SM,25);
Wherein, results indicates the title of finite element modal post-processing model, and SM indicates finite element modal boundary model Solid, 25 for intrinsic frequency post-processing numbers, different post-processings have in ANSYS workbench system it is different after Processing number.When needing the corresponding post-processing of n rank intrinsic frequency, it is only necessary to repeat n times results.AddResult (SM, 25) sentence.
Figure 10 be shown the present embodiment carry out complete machine first natural frequency post-processing after as a result, Figure 11 is shown Before the circuit board of first power supply 3 rank intrinsic frequencies post-process as a result, this is to carry out mode point to finite element modal boundary model Analyse common two post-processings.
Step 8, different operations is executed according to the analysis type for uploading user's selection in data packet, analysis type be divided into One of machine vibration analysis, harmonic responding analysis or transient analysis execute step 9 when user is selected as random vibration analysis; When user is selected as harmonic responding analysis, step 10 is executed;Or when user is selected as transient analysis, step 11 is executed.
Step 9, when user selects random vibration analysis, random vibration boundary is applied to finite element modal post-processing model Condition, Random Vibration Load simulate the real load of Avionic Products, generate finite element random vibration boundary model;Then right The solid of finite element random vibration boundary model is post-processed, and output displacement responds cloud atlas, and executes step 12;Completely Random vibration automation simulation step is as shown in figure 12.
It reads first and uploads load p SD spectrum and direction in data packet, frequency values are included at least in load p SD spectrum and add Speed-power spectrum density applies finite element modal post-processing model by APDL scripting language according to load p SD spectrum and direction Add Random Vibration Load, exports as finite element random vibration boundary model;In the present embodiment, cloud is ordered by APDL scripting language It enables according to from the load p SD spectrum obtained in data packet and direction is uploaded, random vibration is applied to finite element modal post-processing model Dynamic boundary condition, specific implementation are as follows:
sim.AddCommandEditor();
Wherein, sim is that finite element modal post-processes model, and AddCommandEditor is addition APDL order;
Var command=sim.CommandEditors (1);
Command.Text=
"cmsel,s,_fixedsu\nnsel,r,d,uy,0\nd,all,uy,1\nnsel,all\ncmsel,all\ nPSDUNIT,1,ACCG,9.81456\nPSDFRQ,1,,1.,2.,15.,16.\n";
Wherein, the direction that uy indicates to apply PSD spectrum is y-axis, and the direction for then indicating to apply PSD spectrum if it is ux is x-axis, such as Fruit is that the direction that uz then indicates to apply PSD spectrum is z-axis;PSDFRQ indicates the frequency values of PSD spectrum, the frequency of PSD spectrum in this sentence Value takes 1., 2., 15., 16.;Other parameters are all system default parameter;
Command.Text=command.Text+
"PSDVAL,1,12.,30.,30.,12.\npfact,1,base\nnsel,s,d,uy,1\nd,all,uy,0\ nnsel,all";
Wherein, PSDVAL indicates the acceleration power spectral density of PSD spectrum.The acceleration power spectrum that PSD is composed in this sentence Degree takes 12., 30., 30., 12..
Then, then pass through the AddResult function pair of JavaScript script language calling ANSYS workbench software The solid of finite element random vibration boundary model carries out the post-processing of random vibration analysis, such as random vibration PSD output bit Response cloud atlas is moved, then the input of the function is that user chooses the geometry for applying the finite element random vibration boundary model of post-processing Body exports as dynamic respond cloud atlas, and as shown in figure 13, the solid of finite element random vibration boundary model is preferably entire limited First random vibration boundary model, specifically:
results.AddResult(SM,26);
Wherein, results indicates that finite element random vibration boundary model, SM indicate that user chooses and apply the limited of post-processing The solid of first random vibration boundary model, 26 numbers post-processed for the response of random vibration PSD output displacement, different rear places Reason has different post-processing numbers in ANSYS workbench system.
Step 12 is directly executed after step 9;
Step 10, when user selects harmonic responding analysis, Harmony response perimeter strip is applied to finite element modal post-processing model Part, the real load of the load simulated Avionic Products of sinusoidal pattern generate finite element Harmony response boundary model;Then to finite element The solid of Harmony response boundary model carries out post-processing output total acceleration frequency response chart, and gos to step 12;Completely Harmony response automation simulation step is as shown in figure 14.
It reads first and uploads load p SD spectrum and direction in data packet, include at least sinusoidal pattern load in load p SD spectrum Characteristic value applies sinusoidal pattern to finite element modal post-processing model by APDL scripting language according to load p SD spectrum and direction Load exports as finite element Harmony response boundary model;It is obtained by the order of APDL scripting language according to from upload data packet in cloud The load p SD spectrum obtained and direction apply sinusoidal pattern load, specific implementation to finite element modal post-processing model are as follows:
sim.AddCommandEditor();
Wherein, sim is that finite element modal post-processes model, and AddCommandEditor indicates addition APDL order;
Command=sim.CommandEditors (2);
Command.Text=" * DIM, _ acelx, TABLE, 1,1,1, TIME, n_acelx (1,0,1)=1. n_ Acelx (1,1,1)=0. n ";
Wherein, _ acelx indicates the direction x, and _ acelx (1,1,1)=0. indicates that sine in the x direction is average at sentence In be 0;Other parameters are all default parameters;
Command.Text=command.Text+
" * DIM, _ acely, TABLE, 1,1,1, TIME, n_acely (1,0,1)=1. n_acely (1,1,1)= 15.\n";
Wherein, _ acely indicates the direction y, and _ acely (1,1,1)=15. indicates that sine in y-direction is average at language It is 15 in sentence;Other parameters are all default parameters;
Command.Text=command.Text+
" * DIM, _ acelz, TABLE, 1,1,1, TIME, n_acelz (1,0,1)=1. n_acelz (1,1,1)=0. n";
Wherein, _ acelz indicates the direction z, and _ acelz (1,1,1)=0. indicates that sine in a z-direction is average at sentence In be 0;Other parameters are all default parameters;
Command.Text=command.Text+
"fdele,all,all\nsfdele,all,all\nsfedele,all,all,all\nacel,0,0,0\ Nlvscale, 0,1 nlvscale, %_acely%, 1 ";
Wherein, %_acely%, 1 indicates that the selection direction y applies sinusoidal pattern load characteristic value, if %_acelx%, if 1 Indicate that the selection direction x applies sinusoidal pattern load characteristic value, if %_acelz%, 1, then it represents that the selection direction z applies sinusoidal pattern Load characteristic value;Other parameters are all default parameters.
Then, then pass through the AddResultChart of JavaScript script language calling ANSYS workbench software Function post-processes finite element Harmony response boundary model, such as carries out the post-processing of total acceleration frequency response, then the letter Number input is that user chooses the solid for applying the finite element Harmony response boundary model of post-processing, and the post-processing result of output is total Acceleration frequence responses figure;The solid of finite element Harmony response boundary model is preferably entire finite element Harmony response boundary model, Specifically:
results.AddResultChart(SM,80,0);
Wherein, results is finite element Harmony response boundary model, and it is humorous that SM indicates that user chooses the finite element for applying and post-processing The solid of boundary model is responded, 80 indicate the number of ResultChart type, and 0 represents total acceleration frequency response post-processing Number.
Step 12 is directly executed after step 10;
Step 11, when user selects transient analysis, transient state boundary condition, punching are applied to finite element modal post-processing model The real load of load simulated Avionic Products is hit, finite element transient state boundary model is generated;Then to finite element transient state boundary The solid of model is post-processed, and output post-processing is as a result, and go to step 12;Complete Harmony response automation simulation step It is rapid as shown in figure 15.
It reads first and uploads load p SD spectrum and direction in data packet, include at least impact acceleration in load p SD spectrum Value applies shock loading to finite element modal post-processing model by APDL scripting language according to load p SD spectrum and direction, Output is finite element transient state boundary model;Cloud is by the order of APDL scripting language according to the load obtained from upload data packet PSD spectrum and direction apply shock loading, specific implementation to finite element modal post-processing model are as follows:
For (var i=1;I≤NOS;i++)
{
AnalysisSettings.CurrentStepNumber=i;
Wherein CurrentStepNumber indicates current step-length
AnalysisSettings.EndTime=i/10;
Wherein EndTime indicates the end time of current step-length
AnalysisSettings.TimeStep=1/50;
Wherein TimeStep indicates that initial time step-length is 1/50
AnalysisSettings.MinimumTimeStep=1/50;
Wherein MinimumTimeStep indicates that shortest time step-length is 1/50
AnalysisSettings.MaximumTimeStep=1/50;
Wherein MaximumTimeStep indicates that shortest time step-length is 1/50
condition.SetPropertyByStep(i,"ComponentX",acelx);
Wherein SetPropertyByStep indicates the acceleration acelx of setting step-length i in the X direction
condition.SetPropertyByStep(i,"ComponentY",acely);
Wherein SetPropertyByStep indicates the acceleration acely of setting step-length i in the Y direction
condition.SetPropertyByStep(i,"ComponentZ",acelz);
Wherein SetPropertyByStep indicates the acceleration acelz of setting step-length i in z-direction
}
Then, then pass through the AddResult function pair of JavaScript script language calling ANSYS workbench software Finite element transient state boundary model is post-processed, such as carries out the post-processing of impact acceleration response, then function input is use The solid for applying the finite element transient state boundary model of post-processing is chosen at family, and the post-processing result of output is rung for total acceleration frequency Ying Tu;The solid of finite element transient state boundary model is preferably entire finite element transient state boundary model, specifically:
results.AddResult(SM,79);
Wherein, results indicates that finite element transient state boundary model, SM indicate that user chooses the finite element wink for applying post-processing The solid of state boundary model, 79 indicate the number of impact acceleration response post-processing.
Step 12 is directly executed after step 11;
Step 12, the post-processing result of step 9, step 10 or step 11 is returned to by this by the order of sftp telecopy Ground computer, and show cloud ANSYS workbench software to the post-processing knot of Avionic Products in visualization interface Fruit.
Finally, it should be noted that above-described embodiments are merely to illustrate the technical scheme, rather than to it Limitation;Although the present invention is described in detail referring to the foregoing embodiments, those skilled in the art should understand that: It can still modify to technical solution documented by previous embodiment, or to part of or all technical features into Row equivalent replacement;And these modifications or substitutions, it does not separate the essence of the corresponding technical solution various embodiments of the present invention technical side The range of case.

Claims (7)

1. a kind of Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method, it is characterised in that: packet Include following steps:
Step 1, the visualization interface for opening local Avionic Products vibration cloud emulation, inputs aviation electricity in visualization interface 3D geometrical model local address, the Avionic Products of sub- product carry out the material parameter of vibration Simulation Analysis, fixed constraint position It sets, the working environment selection analysis type of load p SD spectrum and direction and user according to the Avionic Products, whole After the completion of input, cloud is uploaded data to, includes at least 3D geometrical model local address, vibration Simulation Analysis in the data of upload Material parameter, fixed constraint position, load p SD spectrum and direction and analysis type;
Step 2, the data that user uploads upload cloud after saving with jason document form, pass through Python scripting language Jason convert format code, be converted into the workbench file that cloud ANSYS workbench simulation software can identify Format, which is placed on, to be uploaded in data packet;
Step 3, from reading 3D geometrical model path in data packet is uploaded, pass through Python scripting language and realize Avionic Products 3D geometrical model from the local ANSYS workbench simulation software for importeding into cloud;
Step 4, from the material parameter for reading Avionic Products in data packet and carrying out vibration Simulation Analysis is uploaded, pass through Python Scripting language, which is realized, assigns material parameter to 3D geometrical model;
Step 5, pass through the Refresh in the ANSYS workbench simulation software in JavaScript script language calling cloud Update and grid dividing to 3D geometrical model are realized with two functions of Update, export finite element mesh model;
Step 6, from acquisition fixed constraint position in data packet is uploaded, pass through JavaScript script language calling ANSYS AddSupport function in workbench simulation software, which is realized, applies mode boundary condition, input to finite element mesh model For fixed constraint position, export to be applied with the finite element modal boundary model after mode boundary condition;
Step 7, by the AddResult function in JavaScript script language calling ANSYS workbench simulation software, The post-processing that model analysis is carried out to the finite element modal boundary model, inputs as the geometry of finite element modal boundary model Body exports to have carried out the finite element modal after mode post-processing and having post-processed model;
Step 8, the analysis type for uploading user's selection in data packet is read, is executed according to the analysis type that user selects different Operation, analysis type is divided into one of random vibration analysis, harmonic responding analysis or transient analysis, when user is selected as random vibration When dynamic analysis, step 9 is executed;When user is selected as harmonic responding analysis, step 10 is executed;Or when user is selected as transient state point When analysis, step 11 is executed;
Step 9, when the user selects random vibration analysis, random vibration side is applied to finite element modal post-processing model Boundary's condition is simultaneously post-processed, and output post-processing result is dynamic respond cloud atlas;Step 12 is executed after step 9;
Step 10, when the user selects harmonic responding analysis, model is post-processed to the finite element modal, applies Harmony response boundary Condition is simultaneously post-processed, and output post-processing result is total acceleration frequency response chart;Step 12 is executed after step 10;
Step 11, when the user selects transient analysis, model is post-processed to the finite element modal, applies transient state boundary condition And post-processed, output post-processing result is impact acceleration response diagram;Step 12 is executed after step 11;
Step 12, result will be post-processed by the order of sftp telecopy and returns to local computer, and is described in step 1 visual Changing in interface shows cloud ANSYS workbench software to the processing result of Avionic Products.
2. the Avionic Products vibration cloud according to claim 1 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that: random vibration boundary condition is applied to finite element modal post-processing model in the step 9 and is carried out It post-processes output displacement and responds cloud atlas, specifically:
It reads and uploads load p SD spectrum and direction in data packet, include at least frequency values and acceleration in the load p SD spectrum Power spectral density, by APDL scripting language according to load p SD spectrum and direction, to finite element modal post-processing model apply with Machine vibration load exports as finite element random vibration boundary model;Then, then pass through JavaScript script language calling The AddResult function of ANSYS workbench software post-processes the finite element random vibration boundary model, the letter Several inputs is the solid of finite element random vibration boundary model, and the post-processing result of output is dynamic respond cloud atlas.
3. the Avionic Products vibration cloud according to claim 2 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that: model is post-processed to the finite element modal in the step 10, applies Harmony response boundary condition and carries out Post-processing output total acceleration frequency response chart, specifically:
It reads and uploads load p SD spectrum and direction in data packet, include at least sinusoidal pattern load characteristic in the load p SD spectrum Value applies sinusoidal pattern to finite element modal post-processing model and carries using APDL scripting language according to load p SD spectrum and direction Lotus exports as finite element Harmony response boundary model;Then, then pass through JavaScript script language calling ANSYS The AddResultChart function of workbench software post-processes the finite element Harmony response boundary model, the order Input be finite element Harmony response boundary model solid, the post-processing result of output is total acceleration frequency response chart.
4. the Avionic Products vibration cloud according to claim 3 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that: model is post-processed to the finite element modal in the step 11, after applying transient state boundary condition and carrying out Processing output impact acceleration response diagram, specifically:
It reads and uploads load p SD spectrum and direction in data packet, include at least impacting acceleration value in the load p SD spectrum, Shock loading, output are applied to finite element modal post-processing model according to load p SD spectrum and direction using APDL scripting language For finite element transient state boundary model;Then, then by JavaScript script language calling ANSYS workbench software AddResult function post-processes the finite element transient state boundary model, and order input is finite element transient state module of boundary The solid of type, the post-processing result of output are impact acceleration response diagram.
5. the Avionic Products vibration cloud according to claim 1 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that:
3D geometrical model in the step 1 is the 3D geometry mould by obtaining to the processing of fillet, chamfering, threaded hole or through-hole Type.
6. the Avionic Products vibration cloud according to claim 1 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that:
The post-processing carried out in the step 7 is the post-processing of multistage intrinsic frequency, and the post-processing of the multistage intrinsic frequency is logical It crosses and repeats first natural frequency post-processing to realize.
7. the Avionic Products vibration cloud according to claim 1 based on ANSYS scripting language is emulated from mobile interface side Method, it is characterised in that:
Realize that the 3D geometrical model of Avionic Products imported into cloud from local in the step 3 by Python scripting language ANSYS workbench simulation software, specifically:
It is realized by the SetFile function of Python scripting language, assigns the 3D geometrical model path of reading to SetFile function In FilePath, format are as follows:
Geometry1.SetFile (FilePath=" 3D geometrical model path ");
Wherein " 3D geometrical model path " is that local machine name adds 3D geometrical model local address, and model is named as beyond the clouds geometry1。
CN201811607369.3A 2018-12-27 2018-12-27 Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method Withdrawn CN109684743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811607369.3A CN109684743A (en) 2018-12-27 2018-12-27 Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811607369.3A CN109684743A (en) 2018-12-27 2018-12-27 Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method

Publications (1)

Publication Number Publication Date
CN109684743A true CN109684743A (en) 2019-04-26

Family

ID=66188519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811607369.3A Withdrawn CN109684743A (en) 2018-12-27 2018-12-27 Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method

Country Status (1)

Country Link
CN (1) CN109684743A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027197A (en) * 2019-12-03 2020-04-17 南方电网科学研究院有限责任公司 Simulation analysis system and method for power equipment
CN111444559A (en) * 2020-03-20 2020-07-24 杭州电子科技大学 Dynamic simulation method for FDM type 3D printing process based on ANSYS
CN111553106A (en) * 2020-05-12 2020-08-18 杭州电子科技大学 ANSYS-based piezoelectric actuator motion process simulation method for GUI (graphical user interface)
CN111625982A (en) * 2020-05-29 2020-09-04 成都赫尔墨斯科技股份有限公司 Impact and crash analysis method of portable navigation equipment based on Ansys
CN116757012A (en) * 2023-05-25 2023-09-15 成都飞机工业(集团)有限责任公司 Simulation analysis method for sealing performance of pipeline in vibration environment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027197A (en) * 2019-12-03 2020-04-17 南方电网科学研究院有限责任公司 Simulation analysis system and method for power equipment
CN111027197B (en) * 2019-12-03 2023-09-26 南方电网科学研究院有限责任公司 Power equipment simulation analysis system and method
CN111444559A (en) * 2020-03-20 2020-07-24 杭州电子科技大学 Dynamic simulation method for FDM type 3D printing process based on ANSYS
CN111444559B (en) * 2020-03-20 2023-05-12 杭州电子科技大学 FDM type 3D printing process dynamic simulation method based on ANSYS
CN111553106A (en) * 2020-05-12 2020-08-18 杭州电子科技大学 ANSYS-based piezoelectric actuator motion process simulation method for GUI (graphical user interface)
CN111625982A (en) * 2020-05-29 2020-09-04 成都赫尔墨斯科技股份有限公司 Impact and crash analysis method of portable navigation equipment based on Ansys
CN116757012A (en) * 2023-05-25 2023-09-15 成都飞机工业(集团)有限责任公司 Simulation analysis method for sealing performance of pipeline in vibration environment

Similar Documents

Publication Publication Date Title
CN109684743A (en) Avionic Products vibration cloud based on ANSYS scripting language emulates automatic interface method
CN106155755B (en) Program compiling method and program compiler
CN107103113A (en) Towards the Automation Design method, device and the optimization method of neural network processor
CN109918796A (en) A kind of multidisciplinary collaboration analogue system and method
CN112433819A (en) Heterogeneous cluster scheduling simulation method and device, computer equipment and storage medium
US10180996B2 (en) Multi-component computational fluid dynamics simulations
CN110399684B (en) Data extraction method, system and computer readable storage medium for ABAQUS crack propagation
CN112286512A (en) UI management subsystem of avionics simulation test platform
CN111656321B (en) Dynamic replacement of calls in a software library with calls of an accelerator
US9286424B1 (en) Efficient waveform generation for emulation
CN101645101B (en) General unmanned aerial vehicle simulation modeling method
CN115796083B (en) Helicopter flow field simulation method, device, equipment and readable storage medium
CN104331530A (en) An electronic warfare visual simulation platform based on XML description and working method thereof
CN100531070C (en) Network resource scheduling simulation system
CN117236111A (en) Fastener parametric modeling method and device, terminal equipment and storage medium
CN103440391A (en) Semiconductor process corner scanning and simulating method based on numerical value selection function
Johnson et al. TranAir: A full-potential, solution-adaptive, rectangular grid code for predicting subsonic, transonic, and supersonic flows about arbitrary configurations. User's manual
US9892227B1 (en) Systems, methods and storage media for clock tree power estimation at register transfer level
CN103164228A (en) Method and device for generating field-programmable gate array (FPGA) procedure
Li et al. Digital twin technology in intelligent manufacturing
CN117574767A (en) Simulation method and simulator for software and hardware systems of in-memory computing architecture
CN116152460B (en) Method, device, terminal and medium for generating rock stratum model based on UE4
US11797731B2 (en) Systems and methods for simulating printed circuit board components
KR102657224B1 (en) Method and system for rom based dynamic thermal management analysis and control
CN115983076A (en) Modelica system reduced model generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190426

WW01 Invention patent application withdrawn after publication