I have undertaken an automated crack growth analysis using the SMART tool, which gives a result with multiple time points (where each time point is for the different crack length). The multiple steps are viewable through the GUI with no issues.
I would like to access a particular time point using dpf to grab the stress field for subsequent post-processing.
The key part of the code is as given below. ("dataSource_static" is defined elsewhere and is just the pointer to my results file).
my_time_scoping = dpf.Scoping()
my_time_scoping.Ids = [1]
Stress1 = dpf.operators.result.stress_X(data_sources=dataSource_static)
Stress1.inputs.time_scoping.Connect(my_time_scoping)
Stress1.outputs.fields_container.GetData()[0]
The above code works fine for the first time point only (ie result set 1) and shows the dpf result details upon execution. If the scoping Id is changed to set 2 or any other time point, then the error below is given.
_
SX:0<-component_selector_fc:2<-S:1<-to_nodal_fc:13<-mapdl::rst::S:10<-mapdl::rst::S<-Unknown exception occurred. Failed to read mapdl::rst::S from rst file., failed to read element nodal component stresses from rst file._
This code works fine for a standard static analysis with multiple time steps, but does not work for the SMART analysis. I presume this is something to do with the mesh being changed for each time step beyond the first point.
Does anyone know how to work around this issue (via dpf or other results reader)?
Thanks.