I sm trying to run the fish function in cyclic triaxial test program But I am getting error which is below the fish function
fish define cyclic_shear
if (math.ln(wlz/lz0)100.0)<=-target
wall.vel.z(wp_bot)=[vel]
wall.vel.z(wp_top)=-[vel]
wall.vel.x(wp_lef)=0.25[vel]
wall.vel.x(wp_rig)=-0.25*[vel]
wall.vel.y(wp_fro)=0.25*[vel]
wall.vel.y(wp_bac)=-0.25*[vel]
endif
if (math.ln(wlz/lz0)100.0) >=target
wall.vel.z(wp_bot)=[vel]
wall.vel.z(wp_top)=-[vel]
wall.vel.x(wp_lef)=-0.25[vel]
wall.vel.x(wp_rig)=0.25*[vel]
wall.vel.y(wp_fro)=-0.25*[vel]
wall.vel.y(wp_bac)=0.25*[vel]
endif
end
pfc3d>fish define cyclic_shear
Fish> if (math.ln(wlz/lz0)*100.0)<=-target ; error is here not understanding
Fish> wall.vel.z(wp_bot)=[vel] ; error is here not understanding
*** Syntax error
While compiling line 107 column 28 of source D:/PFC/Examples/abhik/Ottawa_5.txt.
While processing line 105 of source D:/PFC/Examples/abhik/Ottawa_5.txt.