Patran的PCL用户手册 - 图文(3)

2019-03-10 22:21

PCL for Everyone

Entering Equations

?

Use of PCL when creating spatial fields:

?X + ?X**2 – sinr(?X)

The PCL interpreter interprets anything immediately following a ? symbol as a field variable as opposed to a PCL function, such as, sinr().

MSC.Patran PCL Workshop Notes 04/13/16 11/236

PCL for Everyone

Entering Data

?

Use of PCL when entering geometric coordinates:

[ `5./16.` 0 0 ]

The PCL interpreter “evaluates” expressions enclosed in back tics, “`”.

Other examples:

[ `radius/length` 0 0 ] < `cosr(theta)` 1 1 >

[ `MyFunction(radius)` 0 1 ]

MSC.Patran PCL Workshop Notes 04/13/16 12/236

PCL for Everyone

Session Files

?

Session and journal files are comprised entirely of PCL

commands. Model changes (dimensions, mesh density, etc.) can be made quickly by editing and then replaying the session or journal files.

$# Session file patran.ses.01 started recording at 16-Aug-01 14:33:54 $# Recorded by: MSC.Patran 2001

STRING asm_create_patch_xy_created_ids[VIRTUAL]

asm_const_patch_xyz( \asm_create_patch_xy_created_ids ) $# 1 Patch created: Patch 1

STRING sgm_edit_surface_add_h_edit_ids[VIRTUAL]

sgm_edit_surface_add_hole( 1, 1., TRUE, \sgm_edit_surface_add_h_edit_ids ) $# 1 Surface Edited: Surface 1

$# Session file patran.ses.01 stopped recording at 16-Aug-01 14:34:52

MSC.Patran PCL Workshop Notes 04/13/16 13/236

PCL for Everyone

Rebuilding Models

?

The following session file creates a trimmed surface, 10” x10” with a 1” diameter hole at the center. Note that the parameter that controls the diameter of the hole is indicated below.

$# Session file patran.ses.01 started recording at 16-Aug-01 14:33:54 $# Recorded by: MSC.Patran 2001

STRING asm_create_patch_xy_created_ids[VIRTUAL]

asm_const_patch_xyz( \asm_create_patch_xy_created_ids ) $# 1 Patch created: Patch 1

STRING sgm_edit_surface_add_h_edit_ids[VIRTUAL] sgm_edit_surface_add_hole( 1,

A. B. 1., TRUE, \sgm_edit_surface_add_h_edit_ids ) $# 1 Surface Edited: Surface 1

$# Session file patran.ses.01 stopped recording at 16-Aug-01 14:34:52

A. Create/Surface/XYZ B. Edit/Surface/Add Hole

MSC.Patran PCL Workshop Notes 04/13/16 14/236

PCL for Everyone

?

In the session file below, the previous session file is edited to change the hole diameter from 1” to 4”

$# Session file patran.ses.01 started recording at 16-Aug-01 14:33:54 $# Recorded by: MSC.Patran 2001

STRING asm_create_patch_xy_created_ids[VIRTUAL]

asm_const_patch_xyz( \asm_create_patch_xy_created_ids ) $# 1 Patch created: Patch 1

STRING sgm_edit_surface_add_h_edit_ids[VIRTUAL] sgm_edit_surface_add_hole( 1, 4., TRUE, \sgm_edit_surface_add_h_edit_ids ) $# 1 Surface Edited: Surface 1

$# Session file patran.ses.01 stopped recording at 16-Aug-01 14:34:52

MSC.Patran PCL Workshop Notes 04/13/16 15/236


Patran的PCL用户手册 - 图文(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:12年7月劳动法串讲资料

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: