본문 바로가기

전체 글

100 step마다 particle생성하기 ### 1. Initializaion Phase # Preliminaries atom_style granular atom_modify map array # necessary? boundary f f f # default is p p p newton off # need more information and examples communicate single vel yes units si # This command cannot be used after the simulation box hard_particles yes dimension 3 # default value is 3 # Neighbor listing neighbor 0.003 bin neigh_modify delay 0 #processors # ne.. 더보기
우분투 원격접속 우분투 22 이상부터는 자체 OS에서 RDP를 이용한 원격접속기능을 제공하고 있다. 아래의 순서로 따라하면 Ubuntu측에서의 세팅이 완료된다. Settings에서 Users Unlock 자동 로그인이 가능하도록 On Screen Blanking과 자동 Screen lock 기능을 끈다 마지막으로 리모트 데스크답을 허용 접속 아이디/비번 확인해 주고, 리붓을 해주자. 출처는 https://linuxhint.com/enable-remote-desktop-ubuntu-access-windows/ How to Enable Remote Desktop on Ubuntu Desktop 22.04 LTS and Access it from Windows Freelancer & Linux System Administra.. 더보기
실제 현상과 DEM해석의 차이 DEM해석에서는 이상적인 상태의 Particle간 interaction이 구현되어 혼란을 주는 경우가 있다. 예를 들어, 아래와 같이 두 particle의 도심이 정확히 연직 선상에 위치하는 경우 충돌시 particle의 회전이 발생하지 않는다. (동영상에서 particle의 색깔은 회전각속도를 나타낸다) particle의 회전이 발생하지 않는경우 원형 particle은 최종적으로 굴러 떨어지지 않고 세울 수 있다. 이건 현실에서는 불가능한 상황이라, 해석프로그램의 오류가 아닌가? 하는 착각을 불러일으킬 수 있다. ### 2. Setup # Material and interaction properties required fix m_1 all property/global youngsModulus perat.. 더보기
단단한 atom의 생성 LIGGGHTS는 LAAMPS의 파생 프로그램이라, Granular particle에 대한 이해가 낮은 프로그램이다. 그러다보니, 기본적으로 Hertz model의 Young's modulus는 1E9 이하로 setting되어 있다. 따라서, 이 이상의 Young's modulus를 가지는 atom을 생성하기 위해서는 units명령어 뒤에 특정 명령어를 선언해야 하는데, 다들 아시다 시피 그지 같은 LIGGGHTS의 user manual에는 이러한 명령어가 존재하기 않고, run-time error로 발생하는 골때리는 상황이 연출된다. ㅅㅂ 그래서, 아래와 같은 예제를 적어 본다. units si # This command cannot be used after the simulation box hard_.. 더보기
Type이 다른 atom 생성방법 LIGGGHTS에서 2개 Type이상의 atom을 생성하기 위해서는 우선, atom 생성 이전에 model region에서 사용될 수 있는 총 type의 개수를 먼저 정의하여야 한다. 정의하는 방법은 특이하게 create_box명령을 사용한다. create_box 3 위의 명령어는 총 3개 type의 atom이 사용할 수 있도록 정의한다. 이에 따라, 아래와 같이 atom을 생성할 수 있다. 이때, atom의 ID는 자동생성되며, 아래의 1, 2, 3은 type을 의미한다. create_atoms 1 single 0.025 0.025 0.15 create_atoms 2 single 0.025 0.025 0.25 create_atoms 3 single 0.025 0.025 0.00 이렇게 생성된 atoms.. 더보기
Free falling of single atoms in the box Box : loaded from STL file ### 1. Initializaion Phase # Preliminaries atom_style granular atom_modify map array # necessary? boundary f f f # default is p p p newton off # need more information and examples communicate single vel yes units si # This command cannot be used after the simulation box dimension 3 # default value is 3 neighbor 0.002 bin neigh_modify delay 0 #region reg block -0.05 0.0.. 더보기
Dependency 문제 해결 Ubuntu에서 deb파일을 dpkg 명령어로 install하려고 할 때 dependency 에서가 발생하는 경우가 있다. 이때 문제가 되는 파일을 직접 인스톨 할 수 있으나, 아래의 명령어로 한큐에 쉽게 해결이 가능하다. sudo apt install -f 더보기
Package 확인방법 YADE나 LIGGGHS를 컴파일러를 통해 컴파일하여 설치하려면, 선행으로 깔려야 되는 패키지들이 존재한다. 대표적으로 PARAVIEW를 연결하여 사용하려면 VTK관련 패키지들이 설치되어야 하는데, 이것들은 보통 PARAVIEW가 설치되어 이으면 자동으로 깔려 이다. 혹시나 안되어 있으면, Ubuntu 17.10: sudo apt-get install openmpi-bin libopenmpi-dev libvtk6.3 libvtk6-dev 이런식의 설치 예제가 instruction으로 주어지는데, Ubuntu verstion이 맞지 않아 out-of-date한 경우가 종종 발생한다. 사용하는 Ubuntu에 해당되는 최신 패키지는 아래의 링크에서 검색하면 된다. https://packages.ubuntu.c.. 더보기