Skip to content
Snippets Groups Projects
Commit bdca2b8e authored by Martin Bauer's avatar Martin Bauer
Browse files

Phasefield equations: use integer exponents

parent 15992f4a
Branches
Tags
No related merge requests found
Pipeline #20101 passed with stages
in 8 minutes and 34 seconds
......@@ -220,7 +220,7 @@ def interface_tracking_force(phi_field, stencil, interface_thickness):
normal_fd = normalized_isotropic_gradient_symbolic(phi_field, stencil)
result = []
for i in range(dimensions):
result.append(((1.0 - 4.0 * (phi_field.center - 0.5) ** 2.0) / interface_thickness) * normal_fd[i])
result.append(((1.0 - 4.0 * (phi_field.center - 0.5) ** 2) / interface_thickness) * normal_fd[i])
return result
......@@ -376,7 +376,7 @@ def initializer_kernel_phase_field_lb(phi_field_distributions, phi_field, veloci
f = []
for i, d in enumerate(stencil):
f.append(weights[i] * ((1.0 - 4.0 * (phi_field.center - 0.5) ** 2.0) / interface_thickness)
f.append(weights[i] * ((1.0 - 4.0 * (phi_field.center - 0.5) ** 2) / interface_thickness)
* scalar_product(d, normal_fd[0:dimensions]))
for i, _ in enumerate(stencil):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment