Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Bindgen
pystencils
Commits
42e2698d
Commit
42e2698d
authored
Mar 28, 2019
by
Martin Bauer
Browse files
Phase field equation derived from free energy - first draft
parent
223f12d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/fd/spatial.py
View file @
42e2698d
from
typing
import
Tuple
import
sympy
as
sp
from
functools
import
partial
from
pystencils.astnodes
import
LoopOverCoordinate
from
pystencils.cache
import
memorycache
from
pystencils
import
AssignmentCollection
,
Field
from
pystencils
import
Field
from
pystencils.fd
import
Diff
from
pystencils.transformations
import
generic_visit
from
.derivative
import
diff_args
...
...
@@ -164,8 +162,10 @@ def discretize_spatial_staggered(expr, dx, stencil=fd_stencils_standard):
return
generic_visit
(
expr
,
visitor
)
# -------------------------------------- special stencils --------------------------------------------------------------
@
memorycache
(
maxsize
=
1
)
def
forth_order_2d_derivation
()
->
Tuple
[
FiniteDifferenceStencilDerivation
.
Result
,
...]:
# Symmetry, isotropy and 4th order conditions are not enough to fully specify the stencil
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment