(→How do I run SPHYSICS on Linux) |
(→How do I run SPHYSICS on windows?) |
||
Line 47: | Line 47: | ||
SPHYSICS.exe | SPHYSICS.exe | ||
− | The code includes special subroutines to generate the appropriate compilation make files which can be adjusted for other compilers and operating environments. The code has been developed to run on Windows using Compaq Visual Fortran. | + | The code includes special subroutines to generate the appropriate compilation make files which can be adjusted for other compilers and operating environments. The code has been developed to run on Windows using Compaq Visual Fortran. If you are using the Compaw Visual Fortran Compiler, you can use the batch file: |
+ | |||
+ | .\Case1_cvf.bat | ||
+ | |||
+ | This will call SPHYSICSgen_2D/3D which will subsequently compile the executable SPHYSICS_2D/3D under the directory execs/ | ||
=== How do I run SPHYSICS on Linux === | === How do I run SPHYSICS on Linux === |
Welcome to the SPHYSICS FAQ Page. If you do not find the answer to the question you were looking for, please try the other Forum pages:
SPHYSICS is a Smoothed Particle Hydrodynamics (SPH) code written in fortran for the simulation of potentially violent free-surface hydrodynamics. For release version 1.0, the SPHYSICS code can simulate various phenomena including wave breaking, dam breaks, sloshing, sliding objects, wave impact on a structure, etc. More information on the technical capabilities can be found on the SPHYSICS home page.
Please see the Downloads Page.
SPHYSICS was written by a number of contributors from universities from around the world. For a list of code authors please see the Contributors page. The code took several years to develop, apply to test cases and improve.
The SPHYSICS source code is downloadable from the main Downloads page. Therefore, the code can run on any operating system or platform where you have a fortran compiler. (please see the following webpage for fortran compilers available on the internet). During development every effort has been made to ensure that the SPHYSICS code is as portable as possible. The code has been tested on the following operating systems and compilers:
Windows:
Compaq Visual Fortran
Linux: GPL gfortran compiler, Intel fortran compiler
Mac: GPL gfortran
This depends whether you are using an Intergrated Development Environment (IDE). Generally, your compiler will produce SPHYSICS.exe which are then run from the command line:
SPHYSICS.exe
The code includes special subroutines to generate the appropriate compilation make files which can be adjusted for other compilers and operating environments. The code has been developed to run on Windows using Compaq Visual Fortran. If you are using the Compaw Visual Fortran Compiler, you can use the batch file:
.\Case1_cvf.bat
This will call SPHYSICSgen_2D/3D which will subsequently compile the executable SPHYSICS_2D/3D under the directory execs/
The SPHYSICS code comes with batch files which are used to compile the source code and then run the codes. For example, for Case1 which is supplied with the code (under run_directory), at the command prompt, type:
./Case1_linux.bat
This will call SPHYSICSgen_2D/3D which will generate the makefile SPHYSICS.mak and subsequently compile the executable SPHYSICS_2D/3D under the directory execs/
Some basic visualisation tools are included with the source code. The results can be visualized either with Matlab or ParaView. In order to use ParaView, the raw data files require some processing which at present is done using some Matlab code. This will be converted to fortran source code soon.
The code has been validated for a number of different test cases including dam breaks, waves hitting structures, breaking waves at beaches, Poiseuille flow, Couette flow. Interested readers are referred to the following publications for more detailed information Publication list.
A good rule of thumb is that in a commerical code there is a bug every 100 lines of code. If you find a bug in the SPHYSICS code, please let the developers know using the Forum pages (DO NOT email the developers directly!)
For starters you can buy the main developers a drink of beer at the next conference or workshop. Failing that, you can post any new subroutines that you want to share with other users to the Forum pages. Periodically the core developers of SPHYSICS will meet and discuss future developments and directions of SPHYSICS. If your new subroutines are considered to be an invaluable addition to the code, they will be considered for inclusion in the next release version.