Ws21_PCLSesFile_surfparam.pdf

26
WS21-1 PAT302, Workshop 21, December 2004 Copyright2004 MSC.Software Corporation WORKSHOP 21 PCL VIA SESSION FILE PIPE INTERSECTION

Transcript of Ws21_PCLSesFile_surfparam.pdf

  • WS21-1PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    WORKSHOP 21

    PCL VIA SESSION FILEPIPE INTERSECTION

  • WS21-2PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

  • WS21-3PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Problem Description This exercise involves the use of two real type(REAL) variables in

    the creation of geometry. The variables are created in theMSC.Patran command window, and subsequently used in the GUIinstead of their values. These variables are recorded in the sessionfile instead of their numerical values. Once the geometry is createdthe session file is edited to change the value of the real variables.Then, the session file is played in MSC.Patran to easily create thegeometry with new dimensions.

  • WS21-4PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Suggested Exercise Steps1. Create a new database, and three REAL type variables.2. Create a point using a variable.3. Create a curve by revolving the point.4. Create a surface by extruding the curve.5. Create another point using the second variable.6. Create a curve by revolving the point.7. Create a surface by extruding using a variable.8. Break surface with surface.9. Break on edge parametrically.10. Create surfaces using curves and edges.11. Delete unnecessary entities.12. Break a surface at a point.13. Mirror the surfaces about plane Z=0.14. Mirror the surfaces about plane X=0.15. Mirror the surfaces about plane Y=0.

  • WS21-5PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Suggested Exercise Steps (continued)16. Completed model with two variables.17. Copy the session file, then edit copy.18. Change the value of the radius variables19. Change the value of the global model tolerance

  • WS21-6PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 1. Create a Database and Three Real Variables

    Create a new database, and define twoPCL real variables.

    a. File / New.b. Enter pipe as the file name.c. Click OK.d. Choose Based on Model for the

    Tolerance.e. Select MSC.Nastran as the

    Analysis Code.f. Select Structural as the Analysis

    Type.g. Click OK.h. Define two PCL real variables for

    radii by entering the following in thecommand line:REAL rad_1 = 1.0 , rad_2 =0.5

    i. Also, create a real variable for theglobal model tolerance:REAL gmt = 0.005

    j. Check variable values using thecommand dump, e.g.dump rad_1

    a

    b c

    d

    e

    f

    g

    h

  • WS21-7PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 1. Create a Database and Three Real Variables (Cont.)

    Use the real variable for the global modeltolerance, gmt.

    a. Preferences/Global.b. Enter `gmt` under Global Model

    Tolerance.c. Click Apply.d. Click Cancel.

    b

  • WS21-8PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 2. Create a Point Using a Variable

    Create the first point using apreviously defined PCL variable.

    a. Geometry: Create / Point /XYZ.

    b. Under Point Coordinates Listenter [ `rad_1` 0 0].

    c. Click on Apply.d. Increase the point size and

    turn on the point labels.

    a

    b

    c

  • WS21-9PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 3. Create a Curve by Revolving the Point

    From the first point created createa curve using the revolve method.

    a. Geometry: Create / Curve /Revolve.

    b. Enter {[0 0 0][0 0 1]} underAxis.

    c. Set the Total Angle to 90.0.d. Check Auto Execute.e. Under Point List select

    Point 1.

    a

    b

    c

    d

    e

  • WS21-10PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 4. Create a Surface by Extruding the Curve

    Extrude the curve to produce thefirst surface.

    a. Geometry: Create / Surface /Extrude.

    b. Under Translation Vectorenter .

    c. Select Curve 1 for the CurveList.

    d. Change the view to Iso 1View and click on Fit view. b

    a

    c

  • WS21-11PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 5. Create another Point Using the Second Variable

    Create another point.a. Geometry: Create / Point /

    XYZ.b. Under Point Coordinates

    List enter [0 0 `rad_2` ].c. Click on Apply.

    c

    a

    b

  • WS21-12PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 6. Create a Curve by Revolving the Point

    Create a curve from the point justpreviously created.

    a. Geometry: Create / Curve /Revolve.

    b. Enter {[0 0 0][1 0 0]} underAxis.

    c. Set the Total Angle to -90.0.d. Under Point List select

    Point 5.

    a

    b

    c

    d

  • WS21-13PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 7. Create a Surface by Extruding Using a Variable

    Extrude the curve just created toobtain the second surface.

    a. Geometry: Create / Surface /Extrude.

    b. Translation Vector:< `2.0 * rad_1` 0 0>

    c. Curve List: select Curve 2.d. Turn off the point labels.

    a

    b

    c

  • WS21-14PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 8. Break Surface With Surface

    Break the last surface created.a. Geometry: Edit / Surface /

    Break.b. Set the Option to Surface.c. For Surface List select

    Surface 2.d. For Break Surface List

    select Surface 1.e. Click Yes to the prompt to

    delete the original surface.

    a

    b

    c

    d

  • WS21-15PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 9. Break on Edge Parametrically

    Create two curves by breaking on anedge at parametric u=0.5.

    a. Geometry : Edit / Curve /Break.

    b. Set the Option to Parametric.c. Set the u Parametric Value to

    0.5.d. Check Delete Original

    Curves.e. Under Curve List select the

    surface edge indicated.

    a

    b

    c

    d

    e

    e

  • WS21-16PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 10. Create Surfaces Using Curves and Edges

    Create two surfaces using twocurves and two correspondingedges.

    a. Under Label Control turnon the curve labels.

    b. Geometry : Create / Surface/ Curve.

    c. Set the Option to 2 Curve.d. Check Manifold, and select

    Surface 1.e. For the Starting Curve List

    enter Curve 3 4.f. For the Ending Curve List

    enter edges Surface 1.31.2.

    g. Click on Apply.

    Surface 1.3

    Surface 1.2

    b

    c

    e

    g

    f

    a

    d

  • WS21-17PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Delete the unnecessary entities.a. Geometry : Delete / Any.b. Under Geometric Entity List

    enter Surface 1 3 Curve 1:4.c. Click on Apply.d. Refresh the graphics.e. Turn off the curve labels and

    turn on the surface labels.

    Step11. Delete Unnecessary Entities

    a

    c

    b

  • WS21-18PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 12. Break a Surface at a Point

    Break the surface.a. Geometry : Edit / Surface /

    Break.b. Set the Option to Point.c. Check Delete Original

    Surfaces.d. Under Surface List select

    Surface 4.e. Under Break Point List

    select Point 11.f. Click on Apply.g. Respond Yes to the prompt

    to delete Surface 4.

    a

    b

    c

    d

    e

    f

  • WS21-19PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 13. Mirror the Surfaces About Plane Z=0

    Mirror the surfaces to get one quarterof the complete model.

    a. Geometry: Transform / Surface/ Mirror.

    b. Under Define Mirror PlaneNormal, enter {[0 0 0][0 0 1]}.(Note: requires axis format.)

    c. Under Offset Parameters enter0.0.

    d. Under the Surface List selectthe entire model.

    a

    b

    c

    d

  • WS21-20PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 14. Mirror the Surfaces About Plane X=0

    Mirror the surfaces again.a. Geometry: Transform / Surface

    / Mirror.b. Under Define Mirror Plane

    Normal enter {[0 0 0][1 0 0]}.c. Leave the Offset Parameters at

    0.0.d. Under Surface List select the

    entire model.

    a

    b

    c

    d

  • WS21-21PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 15. Mirror the Surfaces About Plane Y=0

    Mirror the surfaces once more tocomplete the model.

    a. Geometry: Transform / Surface/ Mirror.

    b. Under Define Mirror PlaneNormal enter {[0 0 0][0 1 0]}.

    c. Leave the Offset Parameters at0.0.

    d. For the Surface List, select theentire model.

    a

    b

    c

    d

  • WS21-22PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 16. Completed Model With two Variables

  • WS21-23PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 17. Copy the Session File, Then Edit Copy

    Create a custom session file for playingin MSC.Patran.

    a. File / Quit.b. Open the file patran.ses.##

    (number may vary) using anapplication such as notepad.

    c. Copy the session file (Save As)naming the copy as shell.ses.

    d. Remove the PCL line thatcorresponds to creating aMSC.Patran database:uil_file_new.go (d:\msc\patran2005/template.db)

    a

    b

    d

  • WS21-24PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 17. Copy the Session File, Then Edit Copy (Cont.)

    a

    Continue editing the session file.a. Remove the line that causes

    MSC.Patran to close adatabase or quit, e.g.uil_file_close.goquit()

    b. Create an empty database.c. Play the session file, shell.ses.

    c

    The entire model should becreated using the originalvalues of the radii.

  • WS21-25PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Step 18. Change the Value of the Radius Variables

    Use new values for the two radii.a. File / Quit.b. Edit the session file,

    shell.ses, to change thevalue of the radii:rad_1 = 4.0rad_2 = 3.0

    c. Create a new database.d. Play the session file

    d

    The entire model should be re-built with the new values for the radii. But, because ofthe tolerance used, gmt = 0.005, the surfaces should not be correctly created.

    b

  • WS21-26PAT302, Workshop 21, December 2004Copyright2004 MSC.Software Corporation

    Use a new value for the globalmodel tolerance.

    a. File / Quit.b. Edit the session file,

    shell.ses, to change thevalue of the tolerance:gmt = 0.04

    c. Create a new database.d. Play the session file

    e. End this exercise: File / Quit

    d

    The entire model should be re-built using the new values of the radii, and becauseof the increased tolerance, gmt = 0.04, the surfaces should be correctly built.

    Step 19. Change the Value of the Global Model Tolerance