Does sampleDict have limitation in number of fields?
Hi,
I have 32 fields which I would like to monitor using sampleDict. The issue is that I get error when I have 32 fields added in sampleDict but when I remove any of them (it does not matter which one) it works fine. To me it is really strange. Is there any limitation on the number of fields which can be added to sampleDict? sampleDict: Code:
sets Code:
Time = 10 |
Hi,
I think, it is limitation of a file system (file name length, ex. https://serverfault.com/questions/95...imits-on-linux). sample utility object reads all field names normally, but when it tries to create output file, it fails. |
Quote:
Thank you for your reply. You are right. I reduced the fields' names and now it works fine. Bests, Reza |
1 Attachment(s)
Hey there,
I don't know if this is still relevant but maybe someone will someday face the same problem that I did. I wanted to output a very high number (~1000) of fields in sets to postprocess them in a second step. Due to the maximum file name limit and the naming convention of OF output files when sets are created, it is impossible to write everything in one file. So I wrote a small script that basically ensures that all fields are divided in various (sub) sets functionObjects so that the maximum file name length is kept smaller than 255. The script must of course be modified to consider your personal field names and set data. It writes an outputfile "manyFieldsFO" (manyFields-FunctionObject) in the system folder of your case. This file can then be included in the controlDict file in the functions subdict. Code:
functions RP PS 1: it's a python script >> python3 createManyFieldSets.py PS 2: Somehow, It is not possible to attach python scripts. I had to zip it. PS 3: If any OF-dev reads this - I know it is a niche but it would be nice to be able to specify an alternative output file name to bypass this problem. |
All times are GMT -4. The time now is 15:55. |