Skip to content
Snippets Groups Projects

removed power of two in symbolic descriptions in order to make compilation for localhost work

Closed Markus Holzer requested to merge (removed):update_phase_field_allen_cahn into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -220,7 +220,8 @@ def interface_tracking_force(phi_field, stencil, interface_thickness):
@@ -220,7 +220,8 @@ def interface_tracking_force(phi_field, stencil, interface_thickness):
normal_fd = normalized_isotropic_gradient_symbolic(phi_field, stencil)
normal_fd = normalized_isotropic_gradient_symbolic(phi_field, stencil)
result = []
result = []
for i in range(dimensions):
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) * (phi_field.center - 0.5)) / interface_thickness)
 
* normal_fd[i])
return result
return result
@@ -376,7 +377,7 @@ def initializer_kernel_phase_field_lb(phi_field_distributions, phi_field, veloci
@@ -376,7 +377,7 @@ def initializer_kernel_phase_field_lb(phi_field_distributions, phi_field, veloci
f = []
f = []
for i, d in enumerate(stencil):
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) * (phi_field.center - 0.5)) / interface_thickness)
* scalar_product(d, normal_fd[0:dimensions]))
* scalar_product(d, normal_fd[0:dimensions]))
for i, _ in enumerate(stencil):
for i, _ in enumerate(stencil):
Loading