Editing Fem-fenics
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 154: | Line 154: | ||
# Plot solution | # Plot solution | ||
plot(u, interactive=True) | plot(u, interactive=True) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 337: | Line 335: | ||
interactive() | interactive() | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 393: | Line 390: | ||
J = derivative(F, u, du) | J = derivative(F, u, du) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
Line 760: | Line 756: | ||
return 0; | return 0; | ||
} | } | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> | ||
Line 917: | Line 913: | ||
</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 1,059: | Line 1,055: | ||
# Hold plot | # Hold plot | ||
interactive() | interactive() | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
</div> | </div> |