×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Patran/PCL - parametrization

Patran/PCL - parametrization

Patran/PCL - parametrization

(OP)
Dear eng-tips users,

I have decided to learn how to use .ses and .pcl files in Patran to simplify repeatable operations.

In my problem, I would like to consider several beams of the same length, loading/BC conditions etc. but with different cross-section dimensions.
In order to make my calculations fully automatic, I have parametrized both width and height of the cross sections (as REAL a,b) and created nested FOR loops to obtain 20 different designs.

I would be grateful for answers on these questions:
1. As long as I play session file for a single dimensions case, everything works perfectly fine. Case is created, submitted, results attached and post-proccessed, after which all the job files (except for the necessary images) are deleted. However, when I copy the same lines from the .ses file into the FUNCTION in .pcl file (in order to create FOR loops there), my variables a and b are not recognized, e.g. here:

REAL a=20., b=30.
$#
$# Creating geometry
$#
asm_const_grid_xyz( "2", "[`a` 0 0]", "Coord 0", asm_create_grid_xyz_created_ids )

$# ERROR, Patran doesn't understand what "[`a` 0 0]" means and doesn't create a point

How to use/declare my variables in FUNCTION in .pcl file to make Patran create parametrized geometry when my function is called?

2. In the same FUNCTION, I have also written the lines responsible for submitting job, attaching and postprocessing the results. Unlike in session file, keyword analysis_submit_2 doesn't ask if Patran should wait for the analysis to complete before reading next lines. That generates an error: .xdb file is not yet created, however lines referring to .xdb attachment are read soon after submitting analysis.

Is there any command to use in .pcl file to "freeze" Patran for reading next lines for a while (or- until the analysis is finished)?


Thank you in advance
MeMechanicalEng

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources