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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Patran的PCL用户手册 - 图文(3)在线全文阅读。
相关推荐: