'프로그램 사용/openFOAM'에 해당되는 글 5건

  1. 2020.08.09 openfoam7 on ubuntu 18.04
  2. 2020.07.19 openFOAM tutorial
  3. 2020.07.18 openFOAM 우분투 패키지
  4. 2020.07.17 openFOAM 예제
  5. 2020.07.16 beowulf cluster , openMPI, openFOAM?

예전에 설치했더니 openfoam 4 버전이고 심볼링 링크가 죄다 이상한것 같아서

7버전으로 다시 설치!

sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam7
openfoam7 (20200120) 설정하는 중입니다 ...

** To use OpenFOAM please add
**
**    . /opt/openfoam7/etc/bashrc
**
** To your ~/.bashrc

[링크 : https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-7/Ubuntu]

[링크 : https://openfoam.org/download/7-ubuntu/]

 

[링크 : https://openfoam.org/download/source/setting-environment/]

  [링크 : https://openfoam.org/download/source/]

 

 

openfoam 7을 설치하고 simpleFoam을 실행했는데 4.0 이라 대실망

$ simpleFoam 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 4.0
Exec   : simpleFoam
Date   : Aug 09 2020
Time   : 14:38:08
Host   : "mini2760p"
PID    : 8640
Case   : /home/minimonk
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

 

설치 오류가 나긴 했는데 아무튼 환경 변수를 불러오고 다시 실행하니 Build 7 로 뜬다. 신기하네..

$ . /opt/openfoam7/etc/bashrc
$ simpleFoam 
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-1ff648926f77
Exec   : simpleFoam
Date   : Aug 09 2020
Time   : 14:39:32
Host   : "mini2760p"
PID    : 9424
I/O    : uncollated
Case   : /home/minimonk
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

'프로그램 사용 > openFOAM' 카테고리의 다른 글

openfoam7 on ubuntu 18.04  (0) 2020.08.09
openFOAM tutorial  (0) 2020.07.19
openFOAM 우분투 패키지  (0) 2020.07.18
openFOAM 예제  (0) 2020.07.17
beowulf cluster , openMPI, openFOAM?  (0) 2020.07.16
Posted by 구차니

댓글을 달아 주세요

받아서 해보려니 어렵네..

config.sh에 설정이 안되어 있어서 그런건가?

 

$ git clone https://develop.openfoam.com/Development/openfoam.git

 

$ ./Allrun
./Allrun: 70: ./Allrun: WM_PROJECT_DIR: parameter not set or null

[링크 : https://develop.openfoam.com/Development/openfoam/-/tree/master/tutorials]

[링크 : https://www.openfoam.com/documentation/tutorial-guide/index.php]

 

설정법인데 정작 WM_PROJECT_DIR의 경로를 어디로 해야 하는진 안나온다.

[링크 : https://openfoamwiki.net/.../Installation/Working_with_the_Shell#OpenFOAM_Environment_Variables]

 

WM_PROJECT_DIR은 그럼 개발용 디렉토리를 의미하는게 맞는건가?

Test this works correctly by typing “echo $WM_PROJECT_DIR” in the terminal window, which should return the full path to your repository directory, e.g. ${HOME}/OpenFOAM/OpenFOAM-dev.

[링크 : https://openfoam.org/download/source/setting-environment/]

 

4.0 버전의 소스를 뒤져보니 RunFunctions는 존재함.

[링크 : http://dl.openfoam.org/source/4-0]

    [링크 : https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-4.0/Ubuntu]

'프로그램 사용 > openFOAM' 카테고리의 다른 글

openfoam7 on ubuntu 18.04  (0) 2020.08.09
openFOAM tutorial  (0) 2020.07.19
openFOAM 우분투 패키지  (0) 2020.07.18
openFOAM 예제  (0) 2020.07.17
beowulf cluster , openMPI, openFOAM?  (0) 2020.07.16
Posted by 구차니

댓글을 달아 주세요

헐.. 예제까지 패키지로 존재하네?

 

$ sudo apt-cache search openfoam
libopenfoam - Set of programs for Computational Fluid Dynamics (CFD). Libraries
openfoam - Set of programs for Computational Fluid Dynamics (CFD). Binaries
openfoam-examples - Set of programs for Computational Fluid Dynamics (CFD). Examples

 

$ sudo apt-get install openfoam openfoam-examples
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다:
  efibootmgr libegl1-mesa libfwup1 libllvm8
Use 'sudo apt autoremove' to remove them.
다음의 추가 패키지가 설치될 것입니다 :
  libfabric1 libhwloc-plugins libhwloc5 libopenfoam libopenmpi2
  libpsm-infinipath1 libptscotch-6.0 libscotch-6.0 mpi-default-bin
  ocl-icd-libopencl1 openmpi-bin openmpi-common
제안하는 패키지:
  libhwloc-contrib-plugins opencl-icd gfortran
다음 새 패키지를 설치할 것입니다:
  libfabric1 libhwloc-plugins libhwloc5 libopenfoam libopenmpi2
  libpsm-infinipath1 libptscotch-6.0 libscotch-6.0 mpi-default-bin
  ocl-icd-libopencl1 openfoam openfoam-examples openmpi-bin openmpi-common
0개 업그레이드, 14개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
70.6 M바이트 아카이브를 받아야 합니다.
이 작업 후 331 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] 

 

설치 경로는 아래와 같은데 openfoam은 설정 파일만 있는 듯 하다.(바이너리는 다른 곳에)

/usr/share/openfoam/
/usr/share/doc/openfoam-examples/

 

음.. 홈페이지에서는 7.0 이야기를 하는데 18.04 LTS에서는 4.0 버전까지 릴리즈 한 것으로 보인다.

$ simpleFoam 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 4.0
Exec   : simpleFoam
Date   : Jul 19 2020
Time   : 21:07:28
Host   : "mini2760p"
PID    : 6823
Case   : /usr/share/openfoam
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL IO ERROR: 
cannot find file

file: /usr/share/openfoam/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 72.

FOAM exiting


[링크 : https://openfoam.org/download/7-ubuntu/]

'프로그램 사용 > openFOAM' 카테고리의 다른 글

openfoam7 on ubuntu 18.04  (0) 2020.08.09
openFOAM tutorial  (0) 2020.07.19
openFOAM 우분투 패키지  (0) 2020.07.18
openFOAM 예제  (0) 2020.07.17
beowulf cluster , openMPI, openFOAM?  (0) 2020.07.16
Posted by 구차니

댓글을 달아 주세요

한번 돌려는 볼까 싶어서 찾아보는 중

 

[링크 : https://www.openfoam.com/documentation/guides/latest/doc/tutorial-pimplefoam-ami-rotating-fan.html]

[링크 : https://www.openfoam.com/.../guide-applications-solvers-incompressible-pimpleFoam.html]

[링크 : https://develop.openfoam.com/.../pimpleFoam/RAS/rotatingFanInRoom/system]

'프로그램 사용 > openFOAM' 카테고리의 다른 글

openfoam7 on ubuntu 18.04  (0) 2020.08.09
openFOAM tutorial  (0) 2020.07.19
openFOAM 우분투 패키지  (0) 2020.07.18
openFOAM 예제  (0) 2020.07.17
beowulf cluster , openMPI, openFOAM?  (0) 2020.07.16
Posted by 구차니

댓글을 달아 주세요

예전에 해보려다 못한거 지금이라도 해볼까..

아니면 openFOAM 같은걸로 CFD 한번 해보는게 나을까?

 

[링크 : https://nixingaround.blogspot.com/2017/01/a-homebrew-beowulf-cluster-part-1.html]

[링크 : https://nixingaround.blogspot.com/2017/01/a-homemade-beowulf-cluster-part-2.html]

 

[링크 : https://help.ubuntu.com/community/MpichCluster]

[링크 : https://ko.wikipedia.org/wiki/MPICH]

 

[링크 : https://www.mpich.org/downloads/]

[링크 : http://mvapich.cse.ohio-state.edu/]

[링크 : https://software.intel.com/content/www/us/en/develop/tools/mpi-library.html]

[링크 :https://www.open-mpi.org/]

 

+

2020.07.17

 

도움말을 보다 보니 아래와 같이 machinefile 혹은 hostfile에 사용할 호스트 목록을 적고

mpirun을 통해 해당 호스트 들에 명령을 넘기는 것으로 보인다.(그러기 위한 nfs와 ssh 설정으로 보임)

$ cat my_hostfile
host01.example.com
host02.example.com
$ mpirun --hostfile my_hostfile -np 4 my_parallel_application

[링크 : https://www.open-mpi.org/faq/?category=running#mpi-environmental-variables]

 

+

2020.07.17

예전 글을 따라가서 보니 openFOAM도 mpirun으로 구동하는 것 봐서는..

openFOAM 을 돌려보면 둘다 하게 되는걸로 생각이 되는데.. openFOAM이 난이도가 높아서 어떻게 해볼수 있으려나?

 

2019/03/31 - [파일방] - 열해석 프로그램(오픈소스)

'프로그램 사용 > openFOAM' 카테고리의 다른 글

openfoam7 on ubuntu 18.04  (0) 2020.08.09
openFOAM tutorial  (0) 2020.07.19
openFOAM 우분투 패키지  (0) 2020.07.18
openFOAM 예제  (0) 2020.07.17
beowulf cluster , openMPI, openFOAM?  (0) 2020.07.16
Posted by 구차니

댓글을 달아 주세요