The code for the core of the ENFOLDing Global Demonstration Model