Parallelizing the filter code in OpenFOAM: Topology Optimization #1004
Ananth-Narayan-IITM
started this conversation in
General
Replies: 0 comments
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.
Hello all,
I am writing a filter function for Topology optimization. I am trying to verify the code by generating a impulse (one cell in entire domain will have higher value (here its 1.0) rest of the cells have 0.0). Ideally this should produce diffused result as this is weighted average filtering.
I do have a problem as when I run in parallel, each local domain creates a impulse thus leading to 8 different impulse (as I used 8 processors). But when I run in serial, this code works good.
How do I modify the code such that I expect the same result in Parallel as in serial. I am trying to lookup things such as
Pstream,syncToolsetc., but required some support or clue.Attaching results for serial and parallel

Serial Output:
Parallel Output:

All reactions