Changes

Jump to navigation Jump to search

Fem-fenics

27 bytes added, 05:55, 6 September 2013
no edit summary
</div>
<div style="clear:both"></div>
 
 
=== Mixed Formulation for Poisson Equation ===
# CG = FiniteElement("CG", triangle, 1)
# f = Coefficient(CG)
f = Expression ('f', @(x,y) 10*exp(-((x - 0.5)^2 + (y - 0.5)^2) / 0.02));
# Define variational form
plot (sigma);
plot (u);
 
</syntaxhighlight>}}
f = Expression ("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
# Define variational form
plot(u)
interactive()
 
</syntaxhighlight>}}
</div>
60

edits

Navigation menu