CFDEM 해석을 위한 기본디렉토리 구조는 다음과 같다.
Case디렉토리를 생성한 후 그 아래 CFD, DEM, Module 디렉토리가 필요하며 일괄 실행을 위한 두개의 sh파일을 생성한다.
다음은 CFD해석을 위한 하위디렉토리 CFD의 구조이다. "0", "constant", "system" 디렉토리가 필요하다
1. OpenFOAM 격자 생성
- OpenFOAM에서는 BlockMesh유틸리티를 지원한다. 이를 위해서는 Mesh정보를 가지는 blockMeshDict 파일이 선행되어 만들어져야 한다. 만드는 위치는 (/system)이다.
/Test-1/CFD/system$ touch blockMeshDict
ls
blockMeshDict
- blockMeshDict 파일을 구성한다.
- blockMesh 실행을 위해 추가로 필요한 파일은 controlDict이다.
- blockMeshDict와 controlDIct가 생성되면, CFD 디렉토리에서 blockMesh를 실행한다.
~/CFDEM/hp-z8-PUBLIC-5.x/run/Test-1/CFD$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-538044ac05c4
Exec : blockMesh
Date : Jan 07 2024
Time : 16:55:01
Host : "HP-Z8"
PID : 5820
I/O : uncollated
Case : /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/run/Test-1/CFD
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Creating block mesh from
"/home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/run/Test-1/CFD/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches
Creating block mesh topology
Check topology
Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency
Creating block offsets
Creating merge list .
Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.01
Block 0 cell size :
i : 0.0035 .. 0.0035
j : 0.0035 .. 0.0035
k : 0.0035 .. 0.0035
Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (-0.035 -0.035 -0.035) (0.035 0.035 0.035)
nPoints: 9261
nCells: 8000
nFaces: 25200
nInternalFaces: 22800
----------------
Patches
----------------
patch 0 (start: 22800 size: 2400) name: fixedWalls
End
- 생성된 mesh를 PARAVIEW에서 확인하기 위해선는, PARAVIEW인식을 위해 CFD디렉토리 아래 *.foam 파일을 생성한다.
~/CFDEM/hp-z8-PUBLIC-5.x/run/Test-1/CFD$ touch test-1.foam
~/CFDEM/hp-z8-PUBLIC-5.x/run/Test-1/CFD$ ls
0 constant system test-1.foam
2. OpenFOAM 디렉토리 구조
- OpenFOAM만을 실행할 때와 다르게, CFDEM을 위해서는 OpenFOAM디렉토리 아래 추가되어야할 파일들이 있다.
- constant디렉토리 아래 : CouplingProperties, g
- 0디렉토리 아래 : Particle fileds
'CFDEM' 카테고리의 다른 글
명령어 Reference (0) | 2024.01.03 |
---|---|
bashrc (1) | 2024.01.02 |
CFD-DEM의 설치 (0) | 2023.08.30 |