You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,11 @@ To build the code, a compiler that supports C++11 is required. Platform-specific
18
18
Jet supports OS X 10.10 Yosemite or higher. Also, Xcode 6.4 or higher and the command line tools are required for building Jet. Once ready, install [Homebrew](http://brew.sh) and run the following command line to setup [CMake](https://cmake.org/):
19
19
20
20
```
21
-
brew install cmake
21
+
brew install cmake python
22
22
```
23
23
24
+
> Note that we want `brew` version of Python which is recommended. You can still use macOS's default Python.
25
+
24
26
Once CMake is installed, build the code by running
25
27
26
28
```
@@ -30,18 +32,22 @@ cmake ..
30
32
make
31
33
```
32
34
35
+
> Of course, use `make -j<num_threads>` flag to boost up the build performance by using multithreads.
36
+
33
37
This will build entire codebase. To run the unit test, execute
34
38
35
39
```
36
40
bin/unit_tests
37
41
```
38
42
43
+
It should show all the tests are passing.
44
+
39
45
### Building from Ubuntu
40
46
41
47
Jet supports Ubuntu 14.04 or higher. Using `apt-get`, install required tools and libraries by running,
This will install GNU compilers, python, and CMake. Once installed, build the code by running
@@ -53,15 +59,19 @@ cmake ..
53
59
make
54
60
```
55
61
62
+
> Again, use `make -j<num_threads>` flag to boost up the build performance by using multithreads.
63
+
56
64
This will build entire codebase. To run the unit test, execute
57
65
58
66
```
59
67
bin/unit_tests
60
68
```
61
69
70
+
It should show all the tests are passing.
71
+
62
72
### Building from Windows
63
73
64
-
To build the code on Windows, [CMake](https://cmake.org/)and Visual Studio 2015 is required. Windows' version of CMake is available from [this website](https://cmake.org/), and free version of VS 2015 also can be downloaded from [Visual Studio Community 2015](https://www.Visualstudio.com/en-us/products/Visual-studio-community-vs.aspx). In addition to Visual Studio, install [Python](https://www.python.org/) (2.7.9 or higher recommended) to run post-build events.
74
+
To build the code on Windows, CMake, Python, and Visual Studio 2015 (or higher) is required. Windows' version of CMake is available from [this website](https://cmake.org/), Python installer can be downloaded from [here](https://python.org/). For Python, version 2.7.9 or later is recommended. To install Visual Studio, the community edition of the tool can be downloaded from [Visual Studio Community 2015](https://www.Visualstudio.com/en-us/products/Visual-studio-community-vs.aspx). You can also use Visual Studio 2017.
65
75
66
76
Once everything is installed, run the following commands:
67
77
@@ -87,9 +97,9 @@ bin\Release\unit_tests.exe
87
97
88
98
### Running Tests
89
99
90
-
There are three different tests in the codebase including the unit test, manual test, and performance test. For the detailed instruction on how to run those tests, please checkout the documentation page from [the project website](http://doyubkim.github.io/fluid-engine-dev/documentation/).
100
+
There are four different tests in the codebase including the unit test, manual test, performance test, and Python API test. For the detailed instruction on how to run those tests, please checkout the documentation page from [the project website](http://doyubkim.github.io/fluid-engine-dev/documentation/).
91
101
92
-
### Installing SDK
102
+
### Installing C++ SDK
93
103
94
104
For macOS and Ubuntu platforms, the library can be installed by running
Then, build `INSTALL` project under `jet.sln`. This will install the header files and the static library `jet.lib` under `_INSTALL_PATH_`.
111
121
122
+
### Installing Python SDK
123
+
124
+
To install the Python SDK, `pyjet`, run the following command from the project root directory (where `setup.py` lives):
125
+
126
+
```
127
+
pip install .
128
+
```
129
+
130
+
Once installed, try running the unit test to see if the module is installed correctly:
131
+
132
+
```
133
+
python src/tests/python_tests/main.py
134
+
```
135
+
136
+
The tests should pass.
137
+
112
138
### Coding Style
113
139
114
140
Jet uses clang-format. Checkout [`.clang-format`](https://github.com/doyubkim/fluid-engine-dev/blob/master/.clang-format) file for the style guideline.
Jet framework is a fluid simulation engine SDK for computer graphics applications that was created by Doyub Kim as part of the book, ["Fluid Engine Development"](https://www.crcpress.com/Fluid-Engine-Development/Kim/p/book/9781498719926). The code is built on C++11 and can be compiled with most of the commonly available compilers such as g++, clang++, or Microsoft Visual Studio. Jet currently supports macOS (10.10 or later), Ubuntu (14.04 or later), and Windows (Visual Studio 2015 or later). Other untested platforms that support C++11 also should be able to build Jet.
5
+
Jet framework is a fluid simulation engine SDK for computer graphics applications that was created by Doyub Kim as part of the book, ["Fluid Engine Development"](https://www.crcpress.com/Fluid-Engine-Development/Kim/p/book/9781498719926). The code is built on C++11 and can be compiled with most of the commonly available compilers such as g++, clang++, or Microsoft Visual Studio. Jet currently supports macOS (10.10 or later), Ubuntu (14.04 or later), and Windows (Visual Studio 2015 or later). Other untested platforms that support C++11 also should be able to build Jet. The framework also provides Python API for faster prototyping.
6
6
7
7
The latest code is always available from the [`master`](https://github.com/doyubkim/fluid-engine-dev/tree/master) branch. Since the code evolves over time, the latest from the master could be somewhat different from the code in the book. To find the version that is consistent with the book, check out the branch [`book-1st-edition`](https://github.com/doyubkim/fluid-engine-dev/tree/book-1st-edition).
8
8
@@ -15,6 +15,7 @@ The latest code is always available from the [`master`](https://github.com/doyub
15
15
* PIC, FLIP, and APIC fluid simulators
16
16
* Upwind, ENO, and FMM level set solvers
17
17
* Converters between signed distance function and triangular mesh
18
+
* C++ and Python API
18
19
19
20
Every simulator has both 2-D and 3-D implementations.
Copy file name to clipboardExpand all lines: doc/doxygen/main.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Jet framework is a fluid simulation engine SDK for computer graphics applications that was created by Doyub Kim as part of the book, ["Fluid Engine Development"](https://www.crcpress.com/Fluid-Engine-Development/Kim/p/book/9781498719926). The code is built on C++11 and can be compiled with most of the commonly available compilers such as g++, clang++, or Microsoft Visual Studio. Jet currently supports macOS (10.10 or later), Ubuntu (14.04 or later), and Windows (Visual Studio 2015 or later). Other untested platforms that support C++11 also should be able to build Jet.
1
+
Jet framework is a fluid simulation engine SDK for computer graphics applications that was created by Doyub Kim as part of the book, ["Fluid Engine Development"](https://www.crcpress.com/Fluid-Engine-Development/Kim/p/book/9781498719926). The code is built on C++11 and can be compiled with most of the commonly available compilers such as g++, clang++, or Microsoft Visual Studio. Jet currently supports macOS (10.10 or later), Ubuntu (14.04 or later), and Windows (Visual Studio 2015 or later). Other untested platforms that support C++11 also should be able to build Jet. The framework also provides Python API for faster prototyping.
2
2
3
3
### Key Features
4
4
* Basic math and geometry operations and data structures
@@ -9,5 +9,6 @@ Jet framework is a fluid simulation engine SDK for computer graphics application
9
9
* PIC, FLIP, and APIC fluid simulators
10
10
* Upwind, ENO, and FMM level set solvers
11
11
* Converters between signed distance function and triangular mesh
12
+
* C++ and Python API
12
13
13
14
Every simulator has both 2-D and 3-D implementations.
0 commit comments