아래 명령은 openfoam221 쉘안에서 하니 되긴한데
openfoam2212:~/src/OpenFOAMTeaching/JozsefNagy/ minimonk$ fluentMeshToFoam elbow_tri.msh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _f8e05934-20230403 OPENFOAM=2212 patch=230110 version=2212 Arch : "LSB;label=32;scalar=64" Exec : fluentMeshToFoam elbow_tri.msh Date : May 24 2023 Time : 16:38:06 Host : mini2760p PID : 23712 I/O : uncollated Case : /home/minimonk/src/OpenFOAMTeaching/JozsefNagy nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM FATAL ERROR: (openfoam-2212 patch=230110) cannot find file "/home/minimonk/src/OpenFOAMTeaching/JozsefNagy/system/controlDict" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 561. FOAM exiting openfoam2212:~/src/OpenFOAMTeaching/JozsefNagy/ minimonk$ |
[링크 : https://youtu.be/KznljrgWSvo?t=1129]
[링크 : https://www.youtube.com/watch?v=KznljrgWSvo]
[링크 : https://openfoamwiki.net/index.php/Fluent3DMeshToFoam]
[링크 : https://github.com/jnmlujnmlu/OpenFOAMTeaching/tree/master/JozsefNagy]
$ openfoam openfoam = /usr/lib/openfoam/openfoam2212 * Using: OpenFOAM-v2212 (2212) - visit www.openfoam.com * Build: _f8e05934-20230403 (patch=230110) * Arch: label=32;scalar=64 * Platform: linux64GccDPInt32Opt (mpi=sys-openmpi) OpenFOAM shell session - use 'exit' to quit openfoam2212:~/src/tutorials/incompressible/icoFoam/elbow_tri/ minimonk$ fluentMeshToFoam elbow_tri.msh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _f8e05934-20230403 OPENFOAM=2212 patch=230110 version=2212 Arch : "LSB;label=32;scalar=64" Exec : fluentMeshToFoam elbow_tri.msh Date : May 24 2023 Time : 17:15:20 Host : mini2760p PID : 24479 I/O : uncollated Case : /home/minimonk/src/tutorials/incompressible/icoFoam/elbow_tri nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Reading header: "TGrid 2D 2.4.1" Reading header: "PreBFC V4.3" Dimension of grid: 2 Embedded blocks in comment or unknown: ( Embedded blocks in comment or unknown:( Found end of section in unknown:) Embedded blocks in comment or unknown:( Found end of section in unknown:) Found end of section in unknown:) Embedded blocks in comment or unknown: ( Embedded blocks in comment or unknown:( Found end of section in unknown:) Embedded blocks in comment or unknown: ( Found end of section in unknown:) Found end of section in unknown:) Embedded blocks in comment or unknown: ( Embedded blocks in comment or unknown:( Found end of section in unknown:) Found end of section in unknown:) Number of points: 537 number of faces: 1454 Number of cells: 918 Reading points Reading points Reading uniform faces Reading uniform faces Reading uniform faces Reading uniform faces Reading uniform faces Reading uniform faces Tgrid syntax problem: 9 1 396 1 cellGroupZoneID:9 cellGroupStartIndex:1 cellGroupEndIndex:918 cellGroupType:1 Read zone1:3 name:internal-3 patchTypeID:interior Reading zone data Read zone1:4 name:wall-4 patchTypeID:wall Reading zone data Read zone1:5 name:velocity-inlet-5 patchTypeID:velocity-inlet Reading zone data Read zone1:6 name:velocity-inlet-6 patchTypeID:velocity-inlet Reading zone data Read zone1:7 name:pressure-outlet-7 patchTypeID:pressure-outlet Reading zone data Read zone1:8 name:wall-8 patchTypeID:wall Reading zone data Read zone1:9 name:fluid-9 patchTypeID:fluid Reading zone data FINISHED LEXING dimension of grid: 2 Grid is 2-D. Extruding in z-direction by: 1.87548 Creating shapes for 2-D cells Building patch-less mesh...--> FOAM Warning : From Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 645 Found 1990 undefined faces in mesh; adding to default patch defaultFaces done. Building boundary and internal patches. Creating patch 0 for zone: 3 start: 155 end: 1454 type: interior name: internal-3 Creating patch 1 for zone: 4 start: 55 end: 154 type: wall name: wall-4 Creating patch 2 for zone: 5 start: 47 end: 54 type: velocity-inlet name: velocity-inlet-5 Creating patch 3 for zone: 6 start: 43 end: 46 type: velocity-inlet name: velocity-inlet-6 Creating patch 4 for zone: 7 start: 35 end: 42 type: pressure-outlet name: pressure-outlet-7 Creating patch 5 for zone: 8 start: 1 end: 34 type: wall name: wall-8 Creating patch for front and back planes Patch internal-3 is internal to the mesh and is not being added to the boundary. Adding new patch wall-4 of type wall as patch 0 Adding new patch velocity-inlet-5 of type patch as patch 1 Adding new patch velocity-inlet-6 of type patch as patch 2 Adding new patch pressure-outlet-7 of type patch as patch 3 Adding new patch wall-8 of type wall as patch 4 Adding new patch frontAndBackPlanes of type empty as patch 5 Writing mesh... to "constant/polyMesh" done. End openfoam2212:~/src/tutorials/incompressible/icoFoam/elbow_tri/ minimonk$ tree . ├── 0 │ ├── U │ └── p ├── 0.orig │ ├── U │ └── p ├── Allclean ├── Allrun ├── constant │ ├── polyMesh │ │ ├── boundary │ │ ├── cellZones │ │ ├── faceZones │ │ ├── faces │ │ ├── neighbour │ │ ├── owner │ │ ├── pointZones │ │ └── points │ ├── transportProperties │ └── transportProperties.bak ├── elbow_quad.msh ├── elbow_tri.msh └── system ├── controlDict ├── foamDataToFluentDict ├── fvSchemes └── fvSolution 5 directories, 22 files openfoam2212:~/src/tutorials/incompressible/icoFoam/elbow_tri/ minimonk$ ico ico icoReactingMultiphaseInterFoam icoUncoupledKinematicParcelFoam iconv icoFoam icoUncoupledKinematicParcelDyMFoam icontopbm iconvconfig openfoam2212:~/src/tutorials/incompressible/icoFoam/elbow_tri/ minimonk$ icoFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _f8e05934-20230403 OPENFOAM=2212 patch=230110 version=2212 Arch : "LSB;label=32;scalar=64" Exec : icoFoam Date : May 24 2023 Time : 17:19:48 Host : mini2760p PID : 24543 I/O : uncollated Case : /home/minimonk/src/tutorials/incompressible/icoFoam/elbow_tri nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PISO: Operating solver in PISO mode Reading transportProperties Reading field p Reading field U Reading/calculating face flux field phi Starting time loop Time = 0.05 Courant Number mean: 0.000415941 max: 0.173205 smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 2.59879e-07, No Iterations 1 smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 2.7558e-06, No Iterations 1 DICPCG: Solving for p, Initial residual = 1, Final residual = 0.036127, No Iterations 62 DICPCG: Solving for p, Initial residual = 0.0964781, Final residual = 0.00388218, No Iterations 3 DICPCG: Solving for p, Initial residual = 0.00947597, Final residual = 0.000467612, No Iterations 44 time step continuity errors : sum local = 7.42259e-05, global = 1.62183e-06, cumulative = 1.62183e-06 DICPCG: Solving for p, Initial residual = 0.00302872, Final residual = 0.000137611, No Iterations 9 DICPCG: Solving for p, Initial residual = 0.00040051, Final residual = 1.89259e-05, No Iterations 11 DICPCG: Solving for p, Initial residual = 7.55534e-05, Final residual = 7.72999e-07, No Iterations 55 time step continuity errors : sum local = 1.18435e-07, global = 2.9852e-09, cumulative = 1.62482e-06 ExecutionTime = 0.01 s ClockTime = 0 s Time = 0.1 Courant Number mean: 0.0788444 max: 0.397028 smoothSolver: Solving for Ux, Initial residual = 0.41777, Final residual = 1.43339e-06, No Iterations 2 smoothSolver: Solving for Uy, Initial residual = 0.415998, Final residual = 7.16337e-06, No Iterations 2 DICPCG: Solving for p, Initial residual = 0.0174141, Final residual = 0.000701295, No Iterations 60 DICPCG: Solving for p, Initial residual = 0.503317, Final residual = 0.0203323, No Iterations 3 DICPCG: Solving for p, Initial residual = 0.0837591, Final residual = 0.00367981, No Iterations 45 time step continuity errors : sum local = 6.59525e-05, global = -1.04379e-06, cumulative = 5.81027e-07 DICPCG: Solving for p, Initial residual = 0.104572, Final residual = 0.00332569, No Iterations 58 DICPCG: Solving for p, Initial residual = 0.257662, Final residual = 0.0119158, No Iterations 6 DICPCG: Solving for p, Initial residual = 0.0349453, Final residual = 6.69377e-07, No Iterations 73 time step continuity errors : sum local = 1.96408e-09, global = -3.1581e-11, cumulative = 5.80996e-07 ExecutionTime = 0.02 s ClockTime = 0 s ... Time = 74.95 Courant Number mean: 0.0810354 max: 0.50158 smoothSolver: Solving for Ux, Initial residual = 1.22107e-05, Final residual = 3.41265e-08, No Iterations 1 smoothSolver: Solving for Uy, Initial residual = 9.0529e-06, Final residual = 9.0529e-06, No Iterations 0 DICPCG: Solving for p, Initial residual = 0.000279752, Final residual = 1.15931e-05, No Iterations 5 DICPCG: Solving for p, Initial residual = 4.33362e-05, Final residual = 1.84484e-06, No Iterations 20 DICPCG: Solving for p, Initial residual = 1.21591e-05, Final residual = 9.52858e-07, No Iterations 6 time step continuity errors : sum local = 2.40141e-10, global = 4.53557e-11, cumulative = 5.99696e-07 DICPCG: Solving for p, Initial residual = 9.88006e-05, Final residual = 4.91478e-06, No Iterations 4 DICPCG: Solving for p, Initial residual = 1.34255e-05, Final residual = 9.18873e-07, No Iterations 18 DICPCG: Solving for p, Initial residual = 5.38886e-06, Final residual = 9.52181e-07, No Iterations 1 time step continuity errors : sum local = 2.39966e-10, global = -3.02947e-12, cumulative = 5.99693e-07 ExecutionTime = 6.25 s ClockTime = 7 s Time = 75 Courant Number mean: 0.0810354 max: 0.501578 smoothSolver: Solving for Ux, Initial residual = 1.29443e-05, Final residual = 3.26777e-08, No Iterations 1 smoothSolver: Solving for Uy, Initial residual = 8.86138e-06, Final residual = 8.86138e-06, No Iterations 0 DICPCG: Solving for p, Initial residual = 0.000425003, Final residual = 1.9758e-05, No Iterations 3 DICPCG: Solving for p, Initial residual = 3.72637e-05, Final residual = 1.5002e-06, No Iterations 47 DICPCG: Solving for p, Initial residual = 1.25032e-05, Final residual = 9.53705e-07, No Iterations 4 time step continuity errors : sum local = 2.40409e-10, global = -2.83052e-12, cumulative = 5.9969e-07 DICPCG: Solving for p, Initial residual = 8.65794e-05, Final residual = 4.13674e-06, No Iterations 8 DICPCG: Solving for p, Initial residual = 1.40349e-05, Final residual = 8.71206e-07, No Iterations 15 DICPCG: Solving for p, Initial residual = 4.26225e-06, Final residual = 7.88447e-07, No Iterations 1 time step continuity errors : sum local = 1.98748e-10, global = -4.50203e-11, cumulative = 5.99645e-07 ExecutionTime = 6.26 s ClockTime = 7 s End openfoam2212:~/src/tutorials/incompressible/icoFoam/elbow_tri/ minimonk$ |
여기는 연산하는 거고
이제 보는건 paraview를 쓰면 된다.
1. 좌측 상단의 폴더 눌러서 파일 열기
2. elbow_tri/system 디렉토리에서 파일을 모든 유형으로 선택하고 controlDict를 연다.
3. OpenFoam 유형으로 연다.
4. apply를 누른다.
(처음 열어 보면 그냥 wireframe만 나오는데, icoFoam 까지 하고 나서 다시 열면 색상이 보인다)
5. 상단에 U로 바꾸어 주고 재생 버튼을 누르면 75초간 시뮬레이션 한 결과가 재생된다.
오.. 신기해라(영혼 없음)
'프로그램 사용 > openFOAM' 카테고리의 다른 글
mpirun illegal instruction (0) | 2023.09.01 |
---|---|
openFOAM + freecad + salome (0) | 2023.06.07 |
openfoam on ubuntu (0) | 2023.05.24 |
openFOAM tutorial (4) | 2023.05.24 |
openfoam7 on ubuntu 18.04 (0) | 2020.08.09 |