Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary data reader exits on } character. #2

Open
derekrisseeuw opened this issue Dec 20, 2018 · 1 comment
Open

Binary data reader exits on } character. #2

derekrisseeuw opened this issue Dec 20, 2018 · 1 comment

Comments

@derekrisseeuw
Copy link

When reading binary data, I found that sometimes the reader exited early for boundary data. I think this is due to the fact that the } character is sometimes in binary OF data. In the function split_boundary_content this causes a wrong content range.

At line 172 of field_parser.py. I added an ugly fix which checks if the following line is long enough to still contain binary data:

        if in_boundary_field:
            #USER FIX
            if (lc.rstrip() == b'}' and len(content[n+1])<30):
                break
            if in_patch_field:
                if (lc.strip() == b'}' and len(content[n+1])<30):
xu-xianghua pushed a commit that referenced this issue Aug 24, 2023
Fixed wrong keyword for symmTensor
@campanalorenzo
Copy link

Thanks again for you valuable work. I have noticed that the reading field is still a problem with rotatingWall BC since there are parenthesis { } by imposing rotation \omega before the values , it is possible to find a way to fix it?

rotatingWall BC:
boundaryField
{
innerWall
{
type rotatingWallVelocity;
origin (0 0 0);
axis (0 0 1);
omega
{
type constant;
value 6.28318530718;
}
value nonuniform List
512
(.......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants