diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/core/c++/geometry/poiseulle_channel.hpp | 7 | ||||
| -rw-r--r-- | lib/core/c++/hlbm.hpp | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/core/c++/geometry/poiseulle_channel.hpp b/lib/core/c++/geometry/poiseulle_channel.hpp new file mode 100644 index 0000000..f675a99 --- /dev/null +++ b/lib/core/c++/geometry/poiseulle_channel.hpp @@ -0,0 +1,7 @@ +#pragma once + +namespace kel { +namespace lbm { + +} +} diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 0373125..ea57ef4 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -50,7 +50,9 @@ public: auto& N = particle_N_f.at(index); auto& D = particle_D_f.at(index); // Convex combination of velocities - vel = vel * porosity + N * flip_porosity / D; + vel = vel * porosity + [&]() -> saw::data<sch::Vector<T,Descriptor::D>> { + return (D.at({}).get() > 0.0 ? N * flip_porosity / D : N); + }(); // Equilibrium auto eq = equilibrium<T,Descriptor>(rho,vel); |
