Summary of the programming experience of ANSYS Programming Language

Source: Internet
Author: User
ArticleDirectory
    • Some experiences in using ANSYS are summarized as follows:
    • (1) geometric and finite element models
    • (2) To be continued!
Experience in using ANSYS: 1. Understanding of some key concepts in ANSYS; (1) geometric model and Finite Element Model

Ry model refers to the geometric information of the model. It is embodied in ANSYS as keypoint, area, and volume.
The finite element model refers to the information used for Finite Element Computation. It is often confused with key points, surfaces, and bodies by nodes and units ).
What is actually used for finite element calculation is the node and unit, rather than the so-called key point. The key point is the geometric information when the finite element model is created.
.

(2) To be continued! 2. Summary of selection commands in analyticdb

 

In the process of using analyticdb for programming, whether it is geometric modeling, grid partitioning, solving, computing, post-processing, etc., the common mode is to select the phase
And then apply some operations defined by ANSYS to the object. Relatively speaking, the most common and skillful operation is usually select.
You can select a vertex, line, plane, body, node, unit, and other objects to apply operations. The following methods are usually used:

<1>. Select by element number

Including the specific serial numbers or serial numbers (same-deviation sequence: its start, end, and step size), and specifying Vmax, Vmin, and other parameters in the corresponding command of the analyticdb;

Common command streams include* Sel, (where * represents k, n a v e l, etc)
<2> attached

Elements in ANSYS are correlated, and low-dimensional objects are attached to high-level objects. For example, the key points are attached to the line, surface, body, and node.

Common command streams include* Sl * (the first * indicates the object to be selected, and the last * indicates the object to be attached)
<3>. Select by location

This method is included in the * sel command parameters.

<4>. Choose from different material attributes and unit types.

This is also a convenient method, which is executed by specifying * sel parameters in the Command stream.

The selection method is included in * sel parameters. That is, S, R, U, A, etc. Their meanings are

S: select a set from the collection of all objects of the same type.

R: Select a set from the currently selected object set.

U: select a collection from the selected object set.
A: select a set from the set that contains all objects of the same type and merge it into the current set.

PS: these options are available in the GUI.

3. methods for extracting data from the database

 

Another important operation in analyticdb programming is how to extract information from the ANSYS database.

<1>.* Get and * vget commands* Get is the command for extracting scalar parameters, and * vget is the command for extracting database information in batches.

<2>.Equivalent embedded extraction functions;

<3>.Object Information Query FunctionIn ANSYS, the query function for extracting database information is ** inqr (where ** represents KP, ls, AR, VL, Nd, minute
Do not represent the key point, line, surface, body, node, etc.), but the query function corresponding to the unit is elmiqr.
<4>.Query information using the/inquire Function, Including path, working directory, jobCompositionComponent name.

4. Common Operation templates


For example, geometric modeling, grid division, solution and setup, and post-processing can all be done using several lines of analyticdb, which is similar to the other. Therefore
Some templates are useful for programming.

Geometric ModelingProgram:
......
Grid Division:

1. Asel, 2! Choice plane

SMRT, 3! Grid size

Mshape, 1, 2D! Grid Type
Mshkey, 0! Grid Generation Mode
Amesh, all! Grid division
Solution:
......
Post-processing:
......
(To be continued !)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.