WIP: Fluctuating Equations non-normalized
3 unresolved threads
3 unresolved threads
Compare changes
Conflict: This file was modified in the source branch, but removed in the target branch.
Ask someone with write access to resolve it.
+ 12
− 5
@@ -178,7 +178,7 @@ from lbmpy.fieldaccess import (
@@ -178,7 +178,7 @@ from lbmpy.fieldaccess import (
AAEvenTimeStepAccessor, AAOddTimeStepAccessor, CollideOnlyInplaceAccessor, EsoTwistEvenTimeStepAccessor,
EsoTwistOddTimeStepAccessor, PdfFieldAccessor, PeriodicTwoFieldsAccessor, StreamPullTwoFieldsAccessor,
from lbmpy.methods import create_mrt3, create_mrt_orthogonal, create_mrt_raw, create_srt, create_trt, create_trt_kbc
@@ -309,9 +309,6 @@ def create_lb_collision_rule(lb_method=None, optimization={}, **kwargs):
@@ -309,9 +309,6 @@ def create_lb_collision_rule(lb_method=None, optimization={}, **kwargs):
@@ -326,13 +323,22 @@ def create_lb_collision_rule(lb_method=None, optimization={}, **kwargs):
@@ -326,13 +323,22 @@ def create_lb_collision_rule(lb_method=None, optimization={}, **kwargs):
correction = fluctuation_correction(lb_method, random_symbol(collision_rule.subexpressions, dim=lb_method.dim),
changed this line in version 8 of the diff
@@ -528,6 +534,7 @@ def update_with_default_parameters(params, opt_params=None, fail_on_unknown_para
@@ -528,6 +534,7 @@ def update_with_default_parameters(params, opt_params=None, fail_on_unknown_para
I don't like the name "fluctuating_temperature". Of course it is the temperature of the fluctuating LB, but the name sounds like it's a bool that specifies whether you want the temperature to fluctuate or not. Why not just name it "temperature"? It's unlikely any future modification will ever require specifying separate temperatures for the LB method and for the fluctuation algorithm, so the distinction is not needed.
I agree with you its not that great. I just didn't want to assume that its the only temperature that will ever be introduced, hence the qualifier. If you also agree that we can just name it "temperature" I'm fine with that.
I'm a bit hesitant to just name it
temperature
. How about passing a dict as thefluctuating
parameter if additional options are required?Is it correct that one can either pass variance values or temperature values? Could the user also just call
create_lb_*(fluctuating=variance_expressions_from_temperature(temperature))