Sep-17-2021, 05:50 PM
I see CDB files described many times in Post-Processing APDL Models Inside Ansys Workbench V15.0 - SimuTech Group but I do not see much that seems to help here. I suggest asking questions about Ansys somewhere that specialists can help you. Then when you need helps specific to Python you will have questions that Python specialists can help with. Ansys Learning Forum seems to be a good place to ask about Ansys and its files.
One possible explanation is that the newline characters are different. For example in Windows a newline is CRLF (carriage return and line feed) and in Unix/Linux it is just a CR and in Apple systems it is just a LF. Details like that might be overlooked. You could write an analysis program that just reads the lines and counts how many there are. If the count matches what you expect then using an editor to browse the file you can determine the record number you need. Then modify the analysis program to print just the lines (5 or 10 or so) before and after the line you need.
One possible explanation is that the newline characters are different. For example in Windows a newline is CRLF (carriage return and line feed) and in Unix/Linux it is just a CR and in Apple systems it is just a LF. Details like that might be overlooked. You could write an analysis program that just reads the lines and counts how many there are. If the count matches what you expect then using an editor to browse the file you can determine the record number you need. Then modify the analysis program to print just the lines (5 or 10 or so) before and after the line you need.