Dear all,
in this post I want to collect all issues arising with the Blender SPHysics Add-On that are NOT covered in the guide.
--------------------------------------------------------------------------------------------
#1 Known Bugs:
--------------------------------------------------------------------------------------------
#1.1 Gate in Tutorial not moving.
--------------------------------------------------------------------------------------------
FIX:
In movingObjects_3D.f add the following line:
inquire(file="MULT_MV",EXIST=mult_mv)
before (line 38)
if(mult_mv) call move_ext_file !arno
This forces mult_mv to be recalculated which is the source of the problem.
--------------------------------------------------------------------------------------------
#1.2 Particles are penetrating moving objects.
--------------------------------------------------------------------------------------------
FIX:
To avoid this you need to change the following in getdata_3D.f line 573ff:
replace:
if(iopt_gate .eq.1.or.
& iopt_wavemaker .eq.1.or.
& iopt_RaichlenWedge.eq.1.or.
& iopt_FloatingBodies.eq.1) then
iopt_movingObject = 1
by:
if(iopt_gate .eq.1.or.
& iopt_wavemaker .eq.1.or.
& iopt_RaichlenWedge.eq.1.or.
& iopt_FloatingBodies.eq.1.or.
& mult_mv) then !arno
iopt_movingObject = 1
--------------------------------------------------------------------------------------------
#2 Compiler Version
--------------------------------------------------------------------------------------------
With gfortran it is important to have version 4.2 or higher. This is due to the use of the Fortran 2003 standard which is not correctly implemented in older versions. Indication for this problem is the following output while compiling:
> make -f SPHYSICSgen_gfortran.mak
> gfortran -O3 -c -o SPHYSICSgen_3D.o SPHYSICSgen_3D.f
> In file mstack.f:8
>
> Included at SPHYSICSgen_3D.f:22
>
> double precision, allocatable :: rdata(:,:)
> 1
> Error: Attribute at (1) is not allowed in a TYPE definition
> In file mstack.f:14
>
> Included at SPHYSICSgen_3D.f:22
>
> integer, allocatable :: idata(:,:)
> 1
> Error: Attribute at (1) is not allowed in a TYPE definition
--------------------------------------------------------------------------------------------
This list will be updated as new issues arise.
Best regards,
Arno