SPHYSICS_3D_v2.2.001

所属分类:OpenGL
开发工具:Fortran
文件大小:2521KB
下载次数:72
上传日期:2011-12-07 13:46:29
上 传 者xutiaojian
说明:  基于sph的三维水动力计算程序的源代码。能够计算很多种水动力问题。
(Based on the SPH 3 d hydrodynamic calculation programs source code. Can calculate the very many water power problems. )

文件列表:
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_3D.f (13087, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_Conservative_3D.f (13989, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_KC_3D.f (1490, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_KGC_3D.f (13965, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_MLS_3D.f (10914, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_NONE_3D.f (1090, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ac_Shepard_3D.f (11295, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\approx_RiemannSolver_Conservative_3D.f (16043, 2010-06-30)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\approx_RiemannSolver_NonConservative_3D.f (14987, 2010-06-30)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Dalrymple_3D.f (5327, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Dalrymple_FloatingBodies_3D.f (6865, 2010-06-19)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_3D.f (6821, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_FloatingBodies_3D.f (10639, 2010-06-30)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_FloatingBodies_RiemannConservative_3D.f (12483, 2010-06-30)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_FloatingBodies_RiemannNonConservative_3D.f (11084, 2010-06-30)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_RiemannConservative_3D.f (8577, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\celij_BC_Monaghan_RiemannNonConservative_3D.f (7298, 2010-09-18)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\check_limits_3D.f (5689, 2009-12-10)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\correct_3D.f (1354, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\correct_Conservative_3D.f (1679, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\correct_SPS_3D.f (2858, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\densityFilter_MLS_3D.f (5941, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\densityFilter_NONE_3D.f (1037, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\densityFilter_Shepard_3D.f (1347, 2009-12-11)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\divide_3D.f (4456, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\energy_3D.f (1747, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\EoS_IdealGas_3D.f (1166, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\EoS_Morris_3D.f (1230, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\EoS_Tait_3D.f (1170, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ext_moving_3D.f (12275, 2010-07-07)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ext_moving_NONE_3D.f (136, 2010-07-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\getdata_3D.f (33830, 2011-01-22)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\gradients_calc_basic_3D.f (2949, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\gradients_calc_Conservative_3D.f (4041, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\ini_divide_3D.f (1096, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\keep_list_3D.f (1010, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\kernel_correction_KC_3D.f (1491, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\kernel_correction_KGC_3D.f (1330, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\kernel_correction_NC_3D.f (1098, 2009-12-06)
SPHYSICS_3D_2.2.001\source\SPHYSICS3D\kernel_cubic_3D.f (1592, 2009-12-06)
... ...

--- QUICKSTART GUIDE TO RUNNING 3D version of SPHYSICS --- (All source codes for SPHYSICS are distributed under the terms of General Public License, GPL, as published by the Free Software Foundation, http://www.gnu.org) CONTENTS 1. File Structure 2. Running SPHYSICS 3. Plotting SPHYSICS output 1. File Structure The SPHYSICS code has the following structure: directories: execs : executable files execs.bak : backup executable files Post-Processing: plotting routines are located here under matlabRoutines run_directory : each demonstration case is under a separate subdirectory, e.g. CaseN source : the fortran source codes are contained under two subdirectories SPHYSICS3D and SPHYSICSgen3D 2. Running SPHYSICS Which Compilers? - Under windows the code has been run using the Intel ifort compiler and the Silverfrost/Salford FTN95, as well as the GCC gfortran compiler on cygwin (linux emulator). - Under linux the code has been run using the GCC gfortran compiler and the non-commerical version of the Intel ifort compiler. These compilers along with the GNU Make utility should be available on the machine's default PATH. NOTE: The choice of compiler is controlled by one of the last options in the input file for each demonstration case located under: run_directory/CaseN/CaseN.txt. The Default value is set at 3 for the Compaq Visual Fortran Compiler. 1 - gfortran 2 - ifort (linux/unix) 3 - Intel ifort for Windows 4 - Silverfrost/Salford ftn95 (Windows) (i) COMPILE & RUN SPHYSICS EXECUTABLE IN ONE STEP After compiling SPHYSICSgen, change to directory: run_directory/CaseN/ where N is the number of the case to run. LINUX/UNIX: Open the file CaseN.txt in a text editor and change the number on the penultimate line to 1 (for gfortran) or 2(for ifort). Then type the following at the command prompt. ./CaseN_unix_gfortran.bat OR ./CaseN_unix_ifort.bat ifort on WINDOWS: Open the file CaseN.txt in a text editor and change the number on the penultimate line to 3 for the CVF compiler on windows. Then type the following at the command prompt .\CaseN_windows_ifort.bat FTN95 on WINDOWS: Open the file CaseN.txt in a text editor and change the number on the penultimate line to 4 for the Silverfrost FTN95 compiler on windows. Then type the following at the command prompt .\CaseN_windows_ftn95.bat NOTES: (i) for FTN95 you must have the file default.mk in the source directories. (ii) in the CaseN.txt file, there must be a space character " " (not a TAB) after each numerical entry gfortran on cygwin WINDOWS: Open the file CaseN.txt in a text editor and change the number on the last line to 1 (for gfortran). Then type the following at the command prompt. ./CaseN_windows_cygwin_gfortran.bat This compiles and runs the SPHYSICS code. For further details on running the test cases please refer to the SPHYSICS User's Manual. (ii) COMPILE SPHYSICSgen EXECUTABLE ONLY Once the code is downladed, the pre-processing program SPHYSICSgen_3D should be compiled. To do this, Change to directory: source/SPHYSICSgen3D/ gfortran on linux: make -f SPHYSICSgen_gfortran.mak ifort on linux: make -f SPHYSICSgen_ifort.mak ifort on windows: NMAKE/f"SPHYSICSgen_win_ifort.mak" Silverfrost FTN95 on windows: mk32 -f SPHYSICSgen_ftn95.mak gfortran on cygwin: make -f SPHYSICSgen_gfortran.mak (iii) COMPILE SPHYSICS EXECUTABLE ONLY To compile the SPHYSICS_3D executable only, a Makefile (say SPHYSICS.mak), needs to be generated by running SPHYSICSgen_3D. Then this Makefile has to be copied to the directory /source/SPHYSICS3D. Then Change to directory: source/SPHYSICS3D/ linux/cygwin: make -f SPHYSICS.mak ifort on Windows: NMAKE/f"SPHYSICS.mak" FTN95 on Windows: mk32 -f SPHYSICS.mak (iv) GENERATE GEOMETRY & INPUT FILES Change to directory: run_directory/CaseN where N is the number of the case to run. LINUX/UNIX: Open the file CaseN.txt in a text editor and change the number on the last line to 1 (for gfortran) or 2(for ifort). Then type the following at the command prompt. ../../execs/SPHYSICSgen_3D < CaseN.txt Intel IFORT, FTN95 or gfortran on WINDOWS: Open the file CaseN.txt in a text editor and change the number on the last line to 3 (for the CVF compiler), 4 (for FTN95) or 1 (for gfortran on windows). Then type the following at the command prompt ..\..\execs\SPHYSICSgen_3D.exe < CaseN.txt NOTES: (i) for FTN95 you must have the file default.mk in the source directories. (ii) in the CaseN.txt file, there must be a space character " " (not a TAB) after each numerical entry 3. Plotting SPHYSICS output SPHYSICS comes with routines to plot the results in both Matlab and ParaView 3.0+. The SPHYSICS code generates the following output files: PART_ijkl : Particle Field snap shot, x y z u v w .... DT : Output timesteps of PART_ijkl files ENERGY : Energy of System, EPART : Final Particle Field snap shot These files are generated in the current working directory for each case, i.e. run_directory/CaseN/ To plot the results, more information can be found under each directory: Post-Processing/fortranRoutines/README and Post-Processing/matlabRoutines/README.

近期下载者

相关文件


收藏者