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

N phase model working

-> test_numerical_1D notebook
parent 807ee8b1
No related merge requests found
import sympy as sp import sympy as sp
from pystencils import Field, TypedSymbol from pystencils import Field, TypedSymbol
from pystencils.integer_functions import bitwise_and from pystencils.integer_functions import bitwise_and
from pystencils.boundaries.boundaryhandling import FlagInterface from pystencils.boundaries.boundaryhandling import DEFAULT_FLAG_TYPE
from pystencils.data_types import create_type from pystencils.data_types import create_type
...@@ -22,7 +22,7 @@ def add_neumann_boundary(eqs, fields, flag_field, boundary_flag="neumann_flag", ...@@ -22,7 +22,7 @@ def add_neumann_boundary(eqs, fields, flag_field, boundary_flag="neumann_flag",
fields = set(fields) fields = set(fields)
if type(boundary_flag) is str: if type(boundary_flag) is str:
boundary_flag = TypedSymbol(boundary_flag, dtype=create_type(FlagInterface.FLAG_DTYPE)) boundary_flag = TypedSymbol(boundary_flag, dtype=create_type(DEFAULT_FLAG_TYPE))
substitutions = {} substitutions = {}
for eq in eqs: for eq in eqs:
......
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