Question about boundaryCondition.addPressureBoundary for to observe the rarefaction effects

Hello community,

I am writing a condition boundary on a periodic system whose source is an external force, to see the effects of rarefaction.

I could see these effects in a system that simulates a pressure gradient but obviously it is not periodic. Now, I would like to see this effect in a periodic system.

The effect of the external force only affects the velocity profiles, and for that reason I take this line into account

boundaryCondition.addPressureBoundary0N

but I need the boundary condition not to increase the pressure but to decrease it,

Is there an equivalent in PaLaBos?

boundaryCondition.subtractPressureBoundary0N

Thanks for your comments community,

Hi,

what you can do is continuously modify the pressure with setDensity on the nodes where you want a varying density. Not sure that’s exactly what you want to do though.