Closed JanGaertner closed 7 months ago
When the simulation is restarted the topoSet has to be executed beforehand
Yes, we have something like this in the Foam-Extend version already, thanks for reminding me to add it to this library too 😄
0b6fe84 takes care of this feature. Instead of relying on cell sets (which would make it possible to operate based on "distance from a patch") I opted for marking boundary cells and their neighbors in layers. It's much cheaper for polyhedral meshes to do this.
This unit test case documents how the new keywords are supposed to be used.
Restarts should pose no problems because this approach does not rely on cell remapping...
The unit tests seem to do fine, so I'm happy with it; closing this issue don't hesitate to re-open if more issues appear
For wall bounded flows it may be beneficial to design the boundary layer at the wall and prevent mesh changes in this region, e.g., if the wall distance of Y+>20 should be kept that the selected wall model is working correctly.
Within the codedErrorEstimator it is possible to implement this with a cellSet defined in the topoSetDict in the system folder. However, this requires adding
#include "cellSet.H"
to theerrorEstimator.H
file.An example how this can be implemented is shown below: