'merge' processor data for foam reader of parallel cases to disappear processor boundaries on transparent visualization

Hello,
I have a small annoying issue with the visualization of openfoam cases when they are decomposed. If this is the case, when we only load the internalMesh and set a transparency (or also use the feature edges representation) the boundaries of the processors are shown:
image
which are not pleasant to see and would like to not show them for my presentations. the only ‘solution’ that I have found for the moment is to load something else more than the internalMesh (such as a patch) and then use merge blocks on the foam reader filter. but would like to find out if there is any way to not need to load any patches or extra data, simply a filter (or a setting) that will make disapear the processor boundaries;
image

thanks in advance

CleanToGrid or Clean filter should do the trick. Make sure to enable “Merge Points” property.

Hello mathieu,
thanks for the answer, clean filter looks like it is not available when I try to do over the filter of the openfoam reader. on the other side, cleanToGrid works, and gives the expected result but I have two questions:

  1. I did not find any “merge points” property in the filter, not even with the toggled advanced properties. I missunderstood something in your message? or it is missing? or it was for the clean filter?
  2. any data modification that I should know about of using this filter?or that once done I can keep working with the cleanToGrid filter as if it was the filter of openfoam reader? I mean can i inject it to the my pipe line and do something like:
simfoam = OpenFOAMReader(registrationName='sim.foam', FileName=casePath, CaseType=CaseType)
if simfoam.CaseType=='Decomposed Case':
    filterToUse= CleantoGrid(registrationName='CleantoGrid1', Input=simfoam)
else:
    filterToUse=simfoam

thanks in advance

clean filter looks like it is not available when I try to do over the filter of the openfoam reader.

Yes, you probably need ExtractSurface

That was for Clean filter indeed.

I mean can i inject it to the my pipe line and do something like:

Yes, I think so

1 Like

Hello mathieu,
I am still having troubles with the visualization, saddly i can not share the data. now that being said, in my openfoam simulation I am using a baffle inside the mesh (this are internal faces that are repeated to give different boundary conditions from each side) it is used to simulate thin walls that are simulated as they have a thickness of 0. when i do the CleantoGrid filter (shouldnt it be CleanToGrid ? :hushed: ) and I use the opacity different to 1 i get strange artifacts over this baffle zone as one can see in the following image:

I tested the different fitlers you mentioned (clean, cleantoGrid and also clean cells to grid non of them solved the visual issue, any clues?

I’m afraid I cannot help much more without a way to reproduce the issue.

i just found a openfoam tutorial that has this hope it helps: FileSender
here you can see the faces i was mentioning:
image

regards

In that case there is a clear discontinuity in the mesh:

To make this internal faces disappear would require remeshing or resampling

A simple way to do this is to use ResampleToImage:

Of course, you are loosing the actual surfaces.

1 Like