Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[4d64af]: example / Darcy-Stokes / P2P0 / Err_eps.ufl Maximize Restore History

Download this file

Err_eps.ufl    8 lines (5 with data), 214 Bytes

P2 = VectorElement("CG", triangle, 2)

v = Coefficient(P2)
vh = Coefficient(P2)
ep  = Constant(triangle)

M = (dot(v-vh,v-vh) + div(v-vh)*div(v-vh) + ep*ep*div(v-vh)*div(v-vh) + ep*ep*dot(rot(v-vh), rot(v-vh)))*dx