전체 글 썸네일형 리스트형 Calculation step의 저장 LIGGGHTS에서 현재 시점의 step을 variable로 저장하는 방법. (메뉴얼을 뒤져도 안나온다) variable step_now equal step fix print_time all print 100 "current step = ${step_now}" screen yes 현재 시점의 time으로 기록하고 싶다면, variable dt_ equal 0.00001 timestep ${dt_} variable step_now equal step variable time_now equal step*v_dt_ fix print_time all print 100 "current step, dt, time = ${step_now}, ${dt_}, ${time_now}" screen yes 출력결과는 curr.. 더보기 Fix or Compute stored value LIGGGHTS에서 특정 fix 또는 compute command를 사용시 명령어의 실행 결과가 f_ID, c_ID에 각각 저장되며, 변수로 넘겨서 확인 가능하다. 예를 들어, fix style 중 mesh/surface/stress/servo 를 사용하는 경우 아래와 같이 stored value를 찾아볼 수 있다. 이 경우 stored value는 array이다. 우선, fix style로 top_cap을 servo wall로 구성하고 gran wall로 설정 fix topcap_ovp all mesh/surface/stress/servo file top_cap.stl type 2 com 0.0 0.0 0.027 ctrlPV force axis 0 0 1 target_val -10 vel_max 0.1.. 더보기 Print variable 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 "======== Debugg.. 더보기 PARAVIEW를 이용한 시계열 Plot 작성하기 - Part 2 Part 1에 이어서, vtk파일이 정상적으로 생성되었을 경우 시계열 그래프를 Plot하는 방법에 대해서 알아보도록 하자. 본 예제는 top_cap의 velocity 변화를 그려 보도록 한다. 우선, PARAVIEW에서 vtk파일을 읽어 오면, 그림과 같이 point gaussian으로 표현된 atoms와 mesh/surface가 나타나게 된다. Part - 1에서 마지막에 dump시 mesh id를 top_cap만으로 특정하여 top_cap만 나타나게 된다. mesh의 coloring을 v (velocity)로 선택하면 contour 색상이 표시된다. 시계열 그래프를 plot하기 위해서는 pipeline filter를 사용한다. 처음에 사용할 것은 threshold이다. threshold는 여러 id .. 더보기 PARAVIEW를 이용한 시계열 Plot 작성하기 - Part 1 DEM해석시 해석시간에 따른 여러 물리량의 그래프를 그리는 경우가 있다. LIGGGHTS에서는 시간대에 따라 vtk/vtm파일로 해석데이터를 저장을 하게 되는데, 시계열에 따른 변화를 Plot하려면 시간대에 따른 vtk파일 중 특정 물리량만을 뽑아내어 그래프를 작성하여야 한다. 이 작업은 PARAVIEW에서 지원한다. 우선 LIGGGHTS에서 vtk/vtm파일을 작성하는 방법은 dump명령어를 사용한다. (vtk/vtm)파일의 차이점은 ASCII/Binary의 차이이다. 먼저 vtk파일을 만들기 위한 dump 명령어를 알아보도록 하자. (본 포스팅에서는 mesh기반으로 생성된 granwall에 대한 예제이다) # Read Mesh data fix cad_box all mesh/surface file aa.. 더보기 Extrude planar In 3D computer graphics, extrude planar means to create a 3D object from a 2D planar object by extending it along a specified direction. The resulting 3D object is called an extrusion. The process of extruding a planar object is typically done by specifying the following: The 2D planar object to be extruded. The direction along which the extrusion will be performed. The distance or height to whi.. 더보기 SAVE and RESTART LIGGGHTS에서 save file을 만드는 방법은 두 가지방법이 있다. restart 150000 pluviation.rest write_restart pluviation.rest restart는 N번째 스텝마다 주기적으로 save파일을 작성하는 것이며, write_restart는 명령어가 실행되는 위치의 시점에서 save파일을 생성하게 된다. save파일을 불러오는 방법은 save명령어를 어떤 것을 사용하는지와 상관없이 아래와 같이 동일하다. read_restart pluviation.rest 단, 주의하여야 할 것은 LIGGGHTS에서 save파일에 저장되지 않는 정보는 fix된 정보이다. 따라서, read_restart후에 fix로 지정된 사항은 다시 실행되어야 한다. 특히, atoms는 sav.. 더보기 LIGGGHTS에서 인식가능한 stl파일 형식 LIGGGHTS에서는 아래와 같은 형식의 stl 파일을 인식하여 불러들일 수 있다. solid Visualization Toolkit generated SLA File facet normal 0 0 1 outer loop vertex 0.07 0 0.7 vertex 0 0.07 0.7 vertex 0 0 0.7 endloop endfacet endsolid Visualization Toolkit generated SLA File 중요한 것은 "solid Visualization Toolkit generated SLA File" 이게 고정된 string이라는 거다. 더보기 이전 1 ··· 20 21 22 23 24 25 26 ··· 28 다음