diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-25 10:21:35 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-25 10:21:35 +0200 |
| commit | d1b0e854b603c06b44c736df06ba6ee62711d83c (patch) | |
| tree | 19b6210890f883199f0c7fc6a11b37c8830197a7 /modules/core/c++/fplbm.hpp | |
| parent | 3a3c0a82a6f97521c15aaac42fc7d23a8ad44c75 (diff) | |
| download | libs-lbm-d1b0e854b603c06b44c736df06ba6ee62711d83c.tar.gz | |
two to two thirds
Diffstat (limited to 'modules/core/c++/fplbm.hpp')
| -rw-r--r-- | modules/core/c++/fplbm.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/core/c++/fplbm.hpp b/modules/core/c++/fplbm.hpp index 1d2b2d4..d130c8d 100644 --- a/modules/core/c++/fplbm.hpp +++ b/modules/core/c++/fplbm.hpp @@ -92,10 +92,9 @@ public: auto& vel_f = macros.template get<"momentum">(); saw::data<sch::Vector<T,Descriptor::D>> vel = vel_f.at(index); - auto eq = equilibrium<T,Descriptor>(rho,vel); - vel = vel + force * half / rho; - // compute_rho_u<T,Descriptor>(dfs,rho,vel); + vel = vel + force * half / rho; + auto eq = equilibrium<T,Descriptor>(rho,vel); using dfi = df_info<T,Descriptor>; @@ -176,6 +175,9 @@ public: } auto& aabb = eo_aabb.get_value(); + saw::data<sch::Scalar<T>> three; + three.at({}).set(3.0f); + saw::data<sch::Scalar<T>> two; two.at({}).set(2.0f); @@ -204,7 +206,7 @@ public: // vel_s is technically time the density of the particle? - force = ( vel_s * rho - vel * rho ) * two * flip_por; + force = ( vel_s * rho - vel * rho ) * (two / three) * flip_por; force_p = force_p - force; }, aabb.template get<"a">(), aabb.template get<"b">()); |
