Monthly Archives: February 2017

FreeCAD compatible Fenics mshr geometry building

Fenics geometry building API is based on CGAL, it can import CAD, but can not export CAD file like step. Here is a solution, not fully tested. This file may be further developed in github.

Posted in Uncategorized | Comments Off on FreeCAD compatible Fenics mshr geometry building

solved Fenics (2016.2) cpp code compiling error on ubuntu 16.04

for any expression in Expression for Fenics 2016.2( installed from PPA ) expr = “”” x[2]> {} ? {}:{}”””.format(disc_zmax, lambda_p, lambda_d) print(expr) K = Expression(expr, element=V.ufl_element()) # error in compiling instant error log: ” — The imported target “vtkRenderingPythonTkWidgets” references … Continue reading

Posted in Programming | Comments Off on solved Fenics (2016.2) cpp code compiling error on ubuntu 16.04