LIGGGHTS에서 Debugging을 위한 방법 중 print command를 사용하면 편하다.
print는 print와 fix print의 두가지 형태로 사용이 가능하다.
variable a equal sin(3.141592)
variable b equal 0.5
variable b_x equal 0.7
print " " screen yes newline yes
print "======== Debugging =========" screen yes newline yes
print " " screen yes newline yes
print "This is test" screen yes newline yes
print " " screen yes newline yes
print "======== Debugging =========" screen yes newline yes
print " " screen yes newline yes
fix print_test all print 100 "Oh! the value of b is $a $b ${b_x}" screen yes
위는 print, fix print문의 예제이며, 변수명이 1개 이상의 문자(알파벳, 숫자, 언더바)를 사용하는 경우 print " "내에서 ${ }안에 들어와야 한다.
'LIGGGHTS' 카테고리의 다른 글
Calculation step의 저장 (0) | 2023.07.05 |
---|---|
Fix or Compute stored value (0) | 2023.07.02 |
PARAVIEW를 이용한 시계열 Plot 작성하기 - Part 2 (0) | 2023.06.27 |
PARAVIEW를 이용한 시계열 Plot 작성하기 - Part 1 (0) | 2023.06.27 |
SAVE and RESTART (1) | 2023.06.22 |