Could you be more specific as to what “did not work”? Are you receiving an error in the command line or are the results not what you expect. As posted you have a ufl.dot() with no arguments, are you receiving a TypeError? Please provide more information as per read-before-posting-how-do-i-get-my-question-answered.