Strong Coupling Core
0.1.0
Library for solving a system of strong coupled physical subsystems.
|
Library for solving a system of strong coupled physical subsystems. Aimed to use in co-simulation, where each slave has mechanical connector points.
The library has support for a number of constraints, see subclasses of sc::Constraint. These can be used to mechanically constrain the connectors to each other.
The code is typically used like so:
Sample code can be found in test/rigid.cpp
To make an out-of-source build in CMake, make a build directory and make it current:
mkdir build; cd build; cmake ..;
You need UMFPACK to continue. When running cmake, pass the locations of its include and library paths using -D flags:
cmake .. -DUMFPACK_INCLUDE_DIR=<path> -DUMFPACK_LIBRARY_DIR=<path>
In Ubuntu, UMFPACK is included in the suitesparse package.
Install suitesparse using the following command.
sudo apt-get install suitesparse
And then try running cmake like this:
cmake .. -DUMFPACK_INCLUDE_DIR=/usr/include/suitesparse -DUMFPACK_LIBRARY_DIR=/usr/lib
Finally, run make to compile the code.
make make install # optional
Install SuiteSparse via MacPorts
port install SuiteSparse;
CMakeLists.txt should add /opt/local/include and /opt/local/lib to the paths for you. Run:
mkdir build; cd build; cmake .. && make;
TODO
You need Doxygen to generate the documentation. Build the documentation by doing this:
doxygen Doxyfile;
The HTML files will end up in docs/.
Funded in part by VINNOVA through project Simovate (dnr 2012-01235) and Umeå University, Umeå, Sweden.
0.1.0