Replies: 2 comments 12 replies
|
@Gnadi27 thanks for reporting! Actually, foamlib should be able to parse these kinds of files, so this is likely a bug. Could you share the full files (as attachments) and the errors you get? |
0 replies
|
processors4/0/U.C When I run a simple test script like this: The complete terminal output is this: |
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Great tool and solid parsing for OpenFoam dictionary files. But I ran into two limitations with the same root cause:
For OpenFoam files (v2312 in my case) like polymesh/boundary or a decomposed case using the collated file handler, the files have a different structure, where instead of dictionaries they are lists of dictionaries, where the "keys" are wrapped inside a N (...) structure - which the foamlib grammar fails to unwrap and thus doesn't catch the keys inside such files.
Here and example polyMesh/boundary:
and for a
decompose -fileHandler collatedU-Fieldfile (processors4/0/U):All reactions