I have a query regarding load and boundary conditions syntax using PCL.
Problem definition: I am creating a session file for GFEM to DFEM pressure mapping using PCL commands. My query is, how patran is writing PLOAD cards for a particular subcase as highlighted in below example.
Example : How these highlighted load ids are considered in Patran PCL. Kindly explain the load case id pattern being considered as this is required to loop for many load cases.
these highlighted IDs are the internal ids of the LBCs that you are using to make the plot. These are probably all the pressure LBCs of the "current" Load Case.
You are filtering these through the gui form via the Object (= Pressure), "Current Load case" and as you highlight them in the list.
To get the lbc's for a load case name you could use functions:
db_count_lbc_by_load_case to retrieve the number of LBCs for a loadcase
ues this to size the arrays for the call to
db_get_load_case2 to retrieve all the LBC ids and additional data for the loadcase.
Then you need to filter the load_ids to get the ones you are interested in doing something with,
i.e. loop through all the LBC ids and call db_get_lbc and see what "load_type"
it is e.g. the pressure ones, and store the ones you want in the array you want to process.
Attached is a pcl routine to dump loadcase detail for a given name.
I'll leave you to do the next loop to filter those of the correct load_type.
these highlighted IDs are the internal ids of the LBCs that you are using to make the plot. These are probably all the pressure LBCs of the "current" Load Case.
You are filtering these through the gui form via the Object (= Pressure), "Current Load case" and as you highlight them in the list.
To get the lbc's for a load case name you could use functions:
db_count_lbc_by_load_case to retrieve the number of LBCs for a loadcase
ues this to size the arrays for the call to
db_get_load_case2 to retrieve all the LBC ids and additional data for the loadcase.
Then you need to filter the load_ids to get the ones you are interested in doing something with,
i.e. loop through all the LBC ids and call db_get_lbc and see what "load_type"
it is e.g. the pressure ones, and store the ones you want in the array you want to process.
Attached is a pcl routine to dump loadcase detail for a given name.
I'll leave you to do the next loop to filter those of the correct load_type.