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​ , are you familiar with GUI to create fringe plot of the pressure?
    You pick the a) Load Set(s) (eg a PLOAD4), b) Data Variable (Top or Bottom Surface Pressure) and the Group(s). If you have multiple Load Sets in a Subcase, you pick all of them along with appropriate groups. Multiple Load Sets and Groups can be selected.
     
    Regarding 2d vs 3d pressures, the Load Sets will take care of this, as pressure uses a "Target Element Type", so you won't have 2d and 3d elems in the same load set.
     
    Five PCL calls are used to create the plot (plus one global variable declaration). The easiest way to get them is to create a plot and examine the session file. I've included the calls below WITHOUT the arguments (for brevity).
    lbc_create_scalar_table( ) ; creates scalar table, referencing desired load sets, and groups
    res_data_load_elem_scalar( ) ; loads scalar table (above) for plotting
    res_data_title( )
    res_display_fringe_create( ) ; creates the plot from the elem_scalar_table data (also references groups for plotting)
    res_display_fringe_post( )
     
    If you don't have groups to match Load Sets, Patran can create them for you.
     
    If you want to automate for Subcases and Groups, you will need to interrogate each Patran Load Case, then extract Plot Set info. Not complicated, but more involved than doing it 1-by-1. It might be easier to create a session file for load sets and groups of interest (unless you need to do this frequently).
     
Reply
  • @Vishal Kalkunte​ , are you familiar with GUI to create fringe plot of the pressure?
    You pick the a) Load Set(s) (eg a PLOAD4), b) Data Variable (Top or Bottom Surface Pressure) and the Group(s). If you have multiple Load Sets in a Subcase, you pick all of them along with appropriate groups. Multiple Load Sets and Groups can be selected.
     
    Regarding 2d vs 3d pressures, the Load Sets will take care of this, as pressure uses a "Target Element Type", so you won't have 2d and 3d elems in the same load set.
     
    Five PCL calls are used to create the plot (plus one global variable declaration). The easiest way to get them is to create a plot and examine the session file. I've included the calls below WITHOUT the arguments (for brevity).
    lbc_create_scalar_table( ) ; creates scalar table, referencing desired load sets, and groups
    res_data_load_elem_scalar( ) ; loads scalar table (above) for plotting
    res_data_title( )
    res_display_fringe_create( ) ; creates the plot from the elem_scalar_table data (also references groups for plotting)
    res_display_fringe_post( )
     
    If you don't have groups to match Load Sets, Patran can create them for you.
     
    If you want to automate for Subcases and Groups, you will need to interrogate each Patran Load Case, then extract Plot Set info. Not complicated, but more involved than doing it 1-by-1. It might be easier to create a session file for load sets and groups of interest (unless you need to do this frequently).
     
Children
No Data