60
edits
No edit summary |
No edit summary |
||
Line 120: | Line 120: | ||
# Plot solution | # Plot solution | ||
plot(u, interactive=True) | plot(u, interactive=True) | ||
© Copyright 2011, The FEniCS Project | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 263: | Line 265: | ||
interactive() | interactive() | ||
© Copyright 2011, The FEniCS Project | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 309: | Line 312: | ||
J = derivative(F, u, du) | J = derivative(F, u, du) | ||
© Copyright 2011, The FEniCS Project | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
Line 596: | Line 600: | ||
return 0; | return 0; | ||
} | } | ||
© Copyright 2011, The FEniCS Project | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 753: | Line 757: | ||
</div> | </div> | ||
<div style="float:right; width: 48%"> | <div style="float:right; width: 48%"> | ||
{{Code|Define NS problem with fenics python|<syntaxhighlight lang="python" style="font-size:13px"> | {{Code|Define NS problem with fenics python |<syntaxhighlight lang="python" style="font-size:13px"> | ||
from dolfin import * | from dolfin import * | ||
Line 895: | Line 899: | ||
# Hold plot | # Hold plot | ||
interactive() | interactive() | ||
© Copyright 2011, The FEniCS Project | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> |
edits