hexagon logo

I would like to know any PCL function to plot contour----pressure----for a particular case ---all sets----Top Surface pr--- selected group---- and then Apply to create a contour plot. Thanks in advance.

I would like to know any PCL function to plot contour----pressure----for a particular case ---all sets----Top Surface pr--- selected group---- and then Apply to create a contour plot. Thanks in advance.
Parents
  • @Vishal Kalkunte​ You can retrieve Load Case and LBC info from the database using functions documented in Patran PCL and Customization . Take a look at Chapter 8: Accessing the Patran Database; specifically sections on Load Cases and Loads.
    The process is fairly straightforward:
    1. Retrieve # of loads associated to the load case.
    2. Retrieve load_ids associated to the load case.
    3. Loop thru load_ids, get load type and element dimension.
    4. Save the load_ids where type=8 (for pressure) and dimension=2 (for 2d)
    5. Continue process with steps provided in my previous post.
     
    Attached is a short function that includes steps 1-3. Note that Load Case name is hard-coded to work with my example model. This is a prototype and doesn't have a GUI or error checking. It should get you started.
    To run in Patran enter:
    !! INPUT check_2d_press_lbcs.pcl
    check_2d_press_lbcs()
     
    Regards,
    -Ken
     

    Attached Files (1)
Reply
  • @Vishal Kalkunte​ You can retrieve Load Case and LBC info from the database using functions documented in Patran PCL and Customization . Take a look at Chapter 8: Accessing the Patran Database; specifically sections on Load Cases and Loads.
    The process is fairly straightforward:
    1. Retrieve # of loads associated to the load case.
    2. Retrieve load_ids associated to the load case.
    3. Loop thru load_ids, get load type and element dimension.
    4. Save the load_ids where type=8 (for pressure) and dimension=2 (for 2d)
    5. Continue process with steps provided in my previous post.
     
    Attached is a short function that includes steps 1-3. Note that Load Case name is hard-coded to work with my example model. This is a prototype and doesn't have a GUI or error checking. It should get you started.
    To run in Patran enter:
    !! INPUT check_2d_press_lbcs.pcl
    check_2d_press_lbcs()
     
    Regards,
    -Ken
     

    Attached Files (1)
Children
No Data