Exercise 23 Pipe Pipe Intersection
Exercise 23 Pipe Pipe Intersection
Parameterized Pipe
Pipe Intersection
Objectives:
Model a pipe pipe intersection.
Create a PCL Function from the resulting session file.
23-1
23-2
LESSON 23
Model Description:
In this exercise you will model a cylinder (pipe) of one radius
intersecting a cylinder of a different radius. The resulting
session file will be used to create a PCL function which will
allow you to vary the two radii to solve a set of modeling
problems.
Shown below is the resulting pipe intersection model.
23-3
Files:
All the files used in this exercise are listed below. Each listing includes
the file, where it originated, its format (text/binary) and summary
information as to how it relates to this exercise.
File
Supplied/Create
pipe.db
patran.ses
Created
Created
pipe.pcl
Created
Description
This is a P3/PATRAN database (binary) that is
created in this exercise. The geometry for the
model is created in this exercise using
parametric variables rad_1 and rad_2.
This is a session file (text) that is created when
the pipe.db is made. This file contains the basic
instructions for making the pipe-pipe
intersection. This file will be copied to pipe.pcl
and modified.
This file is a modified version of the patran.ses
file (above). Additional logic is added to check
for one pipe being larger than the other.
Exercise Procedure:
In your xterm window type p3 to start P3/PATRAN.
After that, create a new database named pipe.db.
1.
Model the
Pipe Pipe
Intersection
File/New ...
pipe
OK
l
In the New Model Preference from set the following:
Tolerance:
Based on Model
Analysis Code:
MSC/NASTRAN
Analysis Type:
Structural
OK
Enter the following in the command line:
REAL rad_1 = 1., rad_2 = .5
23-4
LESSON 23
Geometry
Action:
Create
Object:
Point
Method:
XYZ
[rad_1 0 0]
Apply
A point should show up on the screen.
2.
Geometry
Action:
Create
Object:
Curve
Method:
Revolve
Axis
Total Angle
90.0
Point List
Point 1
Apply
23-5
Y
Z
3.
Geometry
Action:
Create
Object:
Surface
Method:
Extrude
Translation Vector
<0 0 2. * rad_1>
Curve List
Curve 1
23-6
LESSON 23
4.
Geometry
Action:
Create
Object:
Point
Method:
XYZ
[0 0 rad_2]
Apply
5.
Geometry
Action:
Create
Object:
Curve
Method:
Revolve
Axis
Total Angle
-90.0
Point List
Point 5
23-7
6.
Geometry
23-8
Action:
Create
Object:
Surface
Method:
Extrude
Translation Vector
Curve List
Curve 2
LESSON 23
Surface 1
1
Surface 2
2
1
2
7.
Geometry
Action:
Edit
Object:
Surface
Method:
Break
Option:
Surface
Surface List
Surface 2
Surface 1
23-9
Answer Yes to the prompt to delete the original surface. Your model
should look like the following:
Surface 3.1
1
3
4
Y
8.
Break the
Edge
Geometry
Action:
Edit
Object:
Curve
Method:
Break
Option:
Parametric
u Parametric Value
0.5
23-10
Surface 3.1
LESSON 23
Surface 1.3
Curve 3
Surface 1.2
Curve 4
Z
9.
Geometry
Action:
Create
Object:
Surface
Method:
Curve
Option:
2 Curve
Manifold
Autoexecute
Manifold Surface
Surface 1
Curve 3 4
Apply
23-11
Surface 1
Curve 1
Curve 2
Y
10.
Surface 3
Geometry
Action:
Delete
Object:
Any
Surface 1 3 Curve 1 2
Apply
Your model should appear as follows:
Point 11
23-12
Surface 4
LESSON 23
11.
Geometry
Action:
Edit
Object:
Surface
Method:
Break
Option:
Break the
Surface
Point
Surface 4
Point 11
Apply
Respond Yes to the prompt to delete Surface 4. The
following should appear in your viewport.
7
6
8
12.
Mirror the
surfaces
Geometry
Action:
Transform
Object:
Surface
PATRAN 302 Exercise Workbook - Release 8.0
23-13
Method:
Mirror
Offset Parameters
0.0
Surface List
Surface 5:8
(Select all surfaces on
screen)
Apply
Your model should appear as follows:
Geometry
Action:
Transform
Object:
Surface
Method:
Mirror
Offset Parameters
0.0
Surface List
Surface 5:12
(Select all surfaces on
screen)
Apply
23-14
LESSON 23
Geometry
Action:
Transform
Object:
Surface
Method:
Mirror
Offset Parameters
0.0
Surface List
Surface 5:20
(Select all surfaces on
screen)
Apply
23-15
13.
Create a PCL
Function
from the
session file
Edit the file by deleting all the lines before the lines
shown below (but not including):
STRING asm_create_grid_xyz_created_ids[VIRTUAL]
asm_const_grid_xyz( "1", "[rad_1 0 0]", "Coord 0", @
asm_create_grid_xyz_created_ids )
.
.
.
14.
uil_file_close.goquit( )
$# Journal file stopped recording at 21-Mar-95 17:10:52
$# P3/PATRAN 1.3-2 has released 68 license(s) to NetLS at 21-Mar-95 17:10:55.
$# Session file patran.ses.08 stopped recording at 21-Mar-95 17:10:55
23-16
LESSON 23
15.
16.
17.
23-17
23-18