Msc. Patran pcl handbook In a Nutshell 7


MSC.Patran Built-In Functions



Download 1.08 Mb.
Page10/25
Date05.08.2017
Size1.08 Mb.
#26706
1   ...   6   7   8   9   10   11   12   13   ...   25

MSC.Patran Built-In Functions


Built-In functions are those that are predefined by MSC.Patran. Some represent high level functionality such as creating a mesh on a surface, and others are low-level functions such as opening a file for reading. Some examples of these are:

ga_group_current_set(name) – Sets the current group.

ga_display_vector_set(name,style) – Sets the way vector lengths are displayed.

asm_construct_grid_xyz(…) – Creates a geometric point a the specified location.

fem_create_mesh_surface(…) – Creates a plate mesh on the specified surface.

loadsbcs_modify(…) – Modifies a LBC set.

list_create_surface_ass_group(…) – Creates a list of surfaces that are members of a group.

db_get_element_ids(num_elem, elem_ids) – Returns an array of all elements in the database.

ui_form_create(…) – Creates a MSC.Patran form.

utl_process_spawn(…) – Spawns a background process.

file_exists(…) – Determines whether an external file exists.

sys_time(…) – Returns the current system time.

sys_get_user(…) – Returns the user name.

text_open(…) – Opens a text file for reading or writing.

MSC.Patran Built-In Functions


Naming Conventions for Applications


Prefix

Application

asm_ or sgm_

Geometry

fem_ or mesh_

Finite Elements

loadsbcs_

Loads/BCs

res_

Results

insight_

Insight

xy_

XY Plot

list_

Tools/List

ga_

Graphics (Groups, Viewports, Viewing, Display)

pref_

Preferences

mat_ material_

Materials

fields_

Fields

loadcase_

Loadcases

elementprops_

Element Properties

MSC.Patran Built-In Functions

Naming Conventions for Other Operations


Prefix

Operations

db_

add and retrieve from the MSC.Patran database

file_

operating system file and path manipulation

fio_, io_, virtual_, record, text_, stream_

file reading and writing

gm_

drawing graphic primatives

str_

string manipulation functions

mth_

math functions

sys_

system and memory operations

lp_, app_, fem_u_

list processor functions

ui_

form and widget creation and manipulation

N
Which function do I use?

I can’t find the function but I know one exists somewhere!

Aaaarrgghhhh!

Sigh, I give up!!!

Relief is in sight!

Elation after finding just the right function!!!
ote: Not all categories are covered here and
some functions do not follow the conventions.

MSC.Patran Built-In Functions



  • Refer to Appendices A through C for examples of using MSC.Patran built-in functions.

  • Appendix A shows how to perform several common PCL tasks such as getting nodes for selected elements, getting property data for selected elements, or extracting element results

  • Appendix B describes commonly used string manipulation functions

  • Appendix C describes some noteworthy functions, i.e., functions used to sort arrays, search arrays, or calculate common element data such as length, area, volume or centroid location


Download 1.08 Mb.

Share with your friends:
1   ...   6   7   8   9   10   11   12   13   ...   25




The database is protected by copyright ©ininet.org 2024
send message

    Main page