SPHYSICS_2D_v1.2.000

所属分类:数学计算
开发工具:Fortran
文件大小:239KB
下载次数:29
上传日期:2012-08-30 05:27:58
上 传 者houshangi
说明:  SPHYSICS open source in SPH method

文件列表:
SPHYSICS_2D_v1.2.000 (0, 2008-04-22)
SPHYSICS_2D_v1.2.000\execs (0, 2008-04-22)
SPHYSICS_2D_v1.2.000\execs\SPHYSICSgen_2D (91779, 2008-02-25)
SPHYSICS_2D_v1.2.000\execs\SPHYSICS_2D (44815, 2008-02-27)
SPHYSICS_2D_v1.2.000\execs.bak (0, 2008-04-16)
SPHYSICS_2D_v1.2.000\execs.bak\SPHYSICS_2D (44815, 2008-02-27)
SPHYSICS_2D_v1.2.000\execs.bak\SPHYSICSgen_2D (91779, 2008-02-25)
SPHYSICS_2D_v1.2.000\Post-Processing (0, 2008-04-16)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines (0, 2008-04-22)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\MovingObjects2D.m (1419, 2007-09-26)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\NoMovingObjects2D.m (1327, 2007-09-26)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\PART2VTU_2D.m (6013, 2007-08-01)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\PVDinput.m (1182, 2007-08-01)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\SPHYSICS2D_Plot.m (1835, 2008-02-25)
SPHYSICS_2D_v1.2.000\Post-Processing\matlabRoutines\SPHYSICSgen2D_Plot.m (1618, 2007-09-17)
SPHYSICS_2D_v1.2.000\Post-Processing\.DS_Store (6148, 2007-09-17)
SPHYSICS_2D_v1.2.000\source (0, 2008-04-22)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D (0, 2008-04-22)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\ac_2D.f (3941, 2008-02-24)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\ac_MLS_2D.f (2554, 2008-01-20)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\celij_BC_Dalrymple_2D.f (5685, 2008-01-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\celij_BC_Monaghan_2D.f (6784, 2008-02-24)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\check_limits_2D.f (2296, 2008-04-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\common.2D (4645, 2008-04-21)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\correct_2D.f (1256, 2007-08-02)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\correct_SPS_2D.f (2288, 2007-08-02)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\densityFilter_MLS_2D.f (5652, 2008-01-21)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\densityFilter_Shepard_2D.f (1607, 2008-01-19)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\divide_2D.f (2543, 2008-01-22)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\energy_2D.f (1717, 2007-08-02)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\EoS_IdealGas_2D.f (1165, 2008-01-16)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\EoS_Poisson_2D.f (1109, 2008-01-15)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\EoS_Tait_2D.f (1182, 2008-02-06)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\getdata_2D.f (16618, 2008-04-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\ini_divide_2D.f (1090, 2008-01-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\keep_list_2D.f (1011, 2008-01-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\kernel_cubic_2D.f (2234, 2008-01-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\kernel_gaussian_2D.f (1950, 2008-01-17)
SPHYSICS_2D_v1.2.000\source\SPHYSICS2D\kernel_quadratic_2D.f (1897, 2008-01-17)
... ...

--- QUICKSTART GUIDE TO RUNNING 2D 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 SPHYSICS2D and SPHYSICSgen2D 2. Running SPHYSICS Which Compilers? - Under windows the code has been run using the Compaq Visual Fortran (CVF) compiler. - 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 the last option 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 - Compaq (Compaq Visual Fortran) (i) COMPILE SPHYSICSgen EXECUTABLE ONLY Once the code is downladed, the pre-processing program SPHYSICSgen_2D should be compiled. To do this, Change to directory: source/SPHYSICSgen2D/ gfortran on linux: make -f SPHYSICSgen_gfortran.mak ifort on linux: make -f SPHYSICSgen_ifort.mak CVF on windows: NMAKE/f"SPHYSICSgen_cvf.mak" (ii) 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: 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. ./CaseN_linux.bat CVF 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 on windows. Then tupe the following at the command prompt .\CaseN_cvf.bat This compiles and runs the SPHYSICS code. For further details on running the test cases please refer to the SPHYSICS User's Manual. (iii) COMPILE SPHYSICS EXECUTABLE ONLY To compile the SPHYSICS_2D executable only, a Makefile (say SPHYSICS.mak), needs to be generated by running SPHYSICSgen_2D. Then this Makefile has to be copied to the directory /source/SPHYSICS2D. Then Change to directory: source/SPHYSICS2D/ linux: make -f SPHYSICS.mak CVF on Windows: NMAKE/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: 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_2D < CaseN.txt CVF 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 on windows. Then tupe the following at the command prompt ..\..\execs\SPHYSICSgen_2D.exe < CaseN.txt 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 SCAL : Output time and particle numbers of PART_ijkl files ENERGY : Energy of Syste, ESCAL : Final Output time and particle numbers 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 directory: postProcessing/matlabRoutines/README.

近期下载者

相关文件


收藏者