hystrath / hyStrath

Hypersonic / Rarefied gas dynamics code developments (GPL-3.0)
https://hystrath.github.io/
GNU General Public License v3.0
225 stars 109 forks source link

Is it possible to add partial deletion for singular species in dsmcDeletionPatch? #135

Open PrikMushi opened 1 year ago

PrikMushi commented 1 year ago

I am working on a project where I want the dsmcDeletionPatch to delete particles, but at the same time reflect some particles backwards. Is it possible to add some probability here, where some particles hitting the deletion patch do not get detelted but get reflected?

I have only one gas species in the study.

timteichmann commented 1 year ago

Take a look at dsmcAbsorbingWallPatch and associated mixed boundaries, e.g. dsmcAbsorbingDiffuseWallPatch.

PrikMushi commented 1 year ago

Thank you.

From my understanding, absorbing doesn't equate to deletion from the domain? I would still like to implement something sort of deletion patch plus some particles being reflected back.

timteichmann commented 1 year ago

From my understanding, absorbing doesn't equate to deletion from the domain?

Yes, it does. For more details please have a look at the source code.

PrikMushi commented 1 year ago

Thank you again.

I have never used the Absorption patch. Is the syntax for absorption probability as such? For 50% absorption of Argon.

absorptionProbabilities = 50_[Ar];

du-zhihua commented 1 year ago

How to use this boundary condition? I just need to use dsmcAbsorbingDiffuseWallPatch.