--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/616cc961-82f3-4d18-afb2-5b5618b9e859n%40googlegroups.com.
Hello, Steve!
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/b9cf2836-aedc-420f-9ea4-d36feed9a6fan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/08892cef-14b8-46b7-9059-0fa6915a9516n%40googlegroups.com.
I'm planning to write a GUI for the user to choose the section of the model, the array of vectors, and the results.
The goal is to let user get the results relevant to them from a huge full-fledged analysis with thousands of cases. Also, each case contains output vectors (stresses, forces, strains etc) which are not used 95% of the time. Deleting these vectors manually, or even through API is inefficient.
Mike,
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/2331b558-f542-460a-a08b-07b744d943a8n%40googlegroups.com.
Hello, Steve!
In the past few days, I have outlined 4 main approaches I could try to do the thing. Several combinations of Femap API, pynastran, PyTables, .op2 and hdf5 basically.
I would say the easiest one is:
1. Read .op2 using pynastran
2. Create the subset of data in memory using the requested arrays, compute additional vectors if needed. Just slice / filter dataframes.
3. Using Femap API create empty results and fill them with data. Femap API provides a decently convenient way to define the data vector by vector and then write it in one go.
I started implementing it and encountered the part where I can't access vector ID = 8033 (Femap ID) Midsurface Plate VonMises stress. It's not present in op2 by default, you have to flip the option "Compute Averaged Mid Stress/Strain" in Femap preferences for it to appear in op2.
So, if I do this to access cquad4 data:
```
results = read_op2(
op2_filename=RESULTS_PATH,
encoding="windows-1251",
build_dataframe=True,
combine=False,
debug=False,
)
loadcase_1 = (1, 1, 1, 0, 0, "", "")
loadcase_2 = (2, 1, 1, 0, 0, "", "")
loadcase_3 = (3, 1, 1, 0, 0, "", "")
cquad4_stress = results.op2_results.stress.cquad4_stress
cquad4_stress_case_1 = cquad4_stress[loadcase_1].data_frame
cquad4_stress_case_2 = cquad4_stress[loadcase_2].data_frame
cquad4_stress_case_3= cquad4_stress[loadcase_3].data_frame
```
I only get default vectors.
Obviously, I can easily compute it myself using Plate Forces and it won't slow down the process, but I would prefer not to do this.
So, can I use pynastran to access this vector? Maybe there is some special table where these kinds of vectors are put?
Thanks in advance!
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/bf3ce7e3-d9b5-439f-811d-e210bc0d8d57n%40googlegroups.com.