macOS

Download

Please go to the download page of macOS installer of swEOS to download the proper version (e.g. Catalina or newer) according to your system version. If there is not a proper version, please look at the Build from source section for help.

Install

The downloaded installer is a .dmg file. Then you can get all the files (see Fig. 1) of swEOS app by simply double clicking the .dmg file and accepting the licence.

../../../_images/mac_installer_contents.png

Fig. 1 Files in the installer

Listing 1 File trees of macOS installer of swEOS app
 1/Volumes/swEOS-MacOSX-Installer
 2├── API
 3│   ├── c++
 4│   │   ├── CMakeLists.txt
 5│   │   ├── ReadMe.md
 6│   │   └── main.cpp
 7│   ├── python
 8│   │   ├── H2O.py
 9│   │   ├── H2ONaCl.py
10│   │   ├── NaCl.py
11│   │   ├── PhaseDiagramSlice.py
12│   │   ├── _H2O.so
13│   │   ├── _H2ONaCl.so
14│   │   ├── _NaCl.so
15│   │   ├── test_H2O.py
16│   │   ├── test_H2ONaCl.py
17│   │   └── test_NaCl.py
18│   └── tcl
19│       ├── H2O
20│       ├── H2ONaCl
21│       ├── NaCl
22│       ├── test_H2O.tcl
23│       ├── test_H2ONaCl.tcl
24│       └── test_NaCl.tcl
25├── Applications -> /Applications
26├── LICENSE
27├── commandline
28│   └── swEOS
29├── include
30│   ├── Gallery.H
31│   ├── H2O.H
32│   ├── H2ONaCl.H
33│   ├── NaCl.H
34│   ├── Polynomial.h
35│   ├── PolynomialRootFinder.h
36│   ├── Validation.H
37│   ├── dataStruct_H2ONaCl.H
38│   ├── stdfunc.H
39│   └── steam4.h
40├── lib
41│   └── libeosH2ONaCl.a
42└── swEOS.app
43    └── Contents
44        ├── Frameworks
45        ├── Info.plist
46        ├── MacOS
47        ├── PlugIns
48        └── Resources

Desktop app with GUI

If you want to use the desktop app, just drag the swEOS (see Fig. 1) to Applications folder. This “drag” install process is the same as any other macOS app.

Tip

The app has not been notarized by Apple because there is no funding to support a Apple Developer ID. Therefore the swEOS app will be blocked by the Gatekeeper of macOS (see Apple support for more details). In order to allow swEOS to run on your macOS, you have to run the following command with superuser permission(sudo) in the terminal:

sudo xattr -r -d com.apple.quarantine /Applications/swEOS.app

Command line tool

The standalone command line tool(cmd) is also included in the installer, if you want to use this cmd app, just need to copy commandline/swEOS (see lines 27-28 in Listing 1) file to some directory (e.g. /usr/local/bin) in your file system, or make a symbol link to the environment PATH folder, e.g. ln -s /Applications/swEOS.app/Contents/MacOS/swEOS /usr/local/bin。 The you can use the cmd app in the for batch calculation purpose (see the following animation).

Tip

If there is a error information of permission denied: swEOS, one can run command of chmod 755 /usr/local/bin/swEOS to change its file model as an executable.