This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

error in assemble for new version dolfin * _domains remove

0 votes

i need to calculate effort on boundary of cylindre and i use this santence :

assemble(dot(FacetNormal(mesh),sigma(u0,p0))[0]*ds(13),exterior_facet_domains=boundaries,mesh=mesh)

but i have this message error :

Parameters *_domains of assemble has been deprecated in DOLFIN version 1.4.0.
It will be removed from version 1.6.0.
Parameter *_domains of assemble will be removed. Include this in the ufl form instead.

how remplace exterior_facet_domains in the new version dolfin for calculate effort on boudaries of cylindre ?

asked Apr 20, 2015 by charly FEniCS Novice (140 points)

1 Answer

0 votes

Include everything in the Measure:

assemble(dot(FacetNormal(mesh),sigma(u0,p0))[0]*ds(13, domain=mesh, subdomain_data=boundaries))
answered Apr 20, 2015 by Øyvind Evju FEniCS Expert (17,700 points)
...