c and cpp pitfalls, mixing signed and unsigned integer, implicit conversion
1. mixing unsigned and sign int is a bad idea first of all, remember: signed int types will be implicitly converted to unsigned if sizeof(signed int types) == sizeof(unsigned int types) Google C++...
View Articlesolved 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,...
View ArticleFreeCAD 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....
View Articlefrom gmsh geo file to fenics mesh with subdomain and boundary facet exported
[crayon-593082e0b8c8f534972629/]
View ArticleBoundaryLayer setup for Gmsh 3D meshing
Precise control of the thickness of the first cell normal to wall, is crucial for turbulence models like k-epsilon, k-omega. Before moving to turbulence flow simulation for CFD workbench of FreeCAD 2D...
View Articleusing cloud space as a private git repo
[answer from stackoverflow] It is absolutely possible – what you probably want to do is create a “bare” git repository in folder Y (git init --bare) and then add that file location as a remote:...
View ArticleAdd visual studio command prompt to windows explorer context menu
Recently relised visual studio build tool (with cmake support), enables building windows c++ project without GUI. It is essential to accelerate the testing of cross-platform program. It is convenient...
View ArticleI have developed several multi-physics solver based on Fenics and GUI within...
This is also announced in Fenics support forum Screenshot of FenicsSolver in FreeCAD Dear all, I have developed several multi-physics solver based on Fenics, it is hosted on github:...
View ArticleFreeCAD 0.17 + OpenFOAM CFD module now works on windows 10 WSL
after windows 10 2018 april update, it is possible to run my CFD module on FreeCAD 0.17 Limited by my time I can spend on this open source project, I will will make new feature in about half year, but...
View ArticlepreCICE build and test on Ubuntu 16.04
please read PDF version for better code highlighting preCICE build and test on Ubuntu 16.04
View ArticleCoupling OpenFOAM with FeniCS for multiphysis simulation (OpenFOAM workshop...
This is my presentation for OpenFOAM workshop 13 presentation, unfortunately, I can not attend the workshop in person. Link to my presentation PDF:...
View Articleexport salome mesh to FeNICS mesh
Salome installation download Salome platform 8.5 binary for Ubuntu 16.04 (64bit) Salome-meca is the combination of salome and code_aster (FEA), it is also possible to manually add the Code_saturne...
View ArticleCfd module for FreeCAD can work with external mesh file
http://www.iesensor.com/blog/wp-content/uploads/2018/12/FreeCAD_CFD_using_external_mesh.webm
View ArticleEffectively setup multiple monitor layout at startup
This belongs to Research Software Engineering on Linux series Super+P shortcut key can bring up a menu to switch between mirror, single, multiple modes. keep Super key (windows key) pressed on, while P...
View ArticleEffectively work with terminal
This belongs to Research Software Engineering on Linux series get package name for a missing command which can print the program full path for the command, useful if multiple version is installed....
View ArticleEffectively work with Nautilus File Manager
This belongs to Research Software Engineering on Linux series Add new file types into “Create Document” shortcut menu After adding empty or template files into “Template” folder in the user home,...
View ArticleChoices and example of wrapping C++ code into Python
In 2019, I started a new project on my github. This project list most popular approaches to wrap C and C++ classes into Python modules. pybind11boost-pythonswigcythoncfficppyy There are codes for C++...
View ArticlePrepare and postwork for upgrading Ubuntu LTS from 18.04 to 20.04
This article contains some tips to ease the upgrade LTS in a productivity scenario/work environment. I. preparation and backup Because it is my working Ubuntu, backup is essential before even thinking...
View ArticleI’d like to transfer this domain name iesensor.com
It is unlikely I will be entrepreneur in IoT and AI sensor design; I would like to transfer this domain name. Contact me if you are interested...
View Article