Python 가상 환경으로 BARAM 설치하기
지원 OS 플랫폼
- Windows 10 or newer
- macOS 10.14 or newer (Apple Silicon only)
- Ubuntu 20.04 or newer
- CentOS 8.2 or alternatives ( Rocky Linux, AlmaLinux, … )
- OpenSUSE Leap 15.4
- Linux Mint 21 "Vanessa"
BARAM 설치에 필요한 소프트웨어:
- Python 3.9.x
- MS-MPI 10.0 or newer ( Windows Only )
- OpenMPI 4.1 or newer ( Linux, macOS )
- GNU C Compiler or any other C Compiler ( Linux, macOS )
소스코드 복제
git clone https://github.com/nextfoam/baram.git
cd baram
Python 가상 환경 설정
다운로드한 소스 코드의 최상위 디렉토리에서 다음 명령을 실행합니다.
Python 3.9.x 가 필요하니 잊지 마세요.python3 -V
명령으로 버전을 확인할 수 있습니다.
python3.9 -m venv venv
가상 환경 활성화
다운로드한 소스 코드의 최상위 디렉토리에서 다음 명령을 실행합니다.
Windows
.\venv\Scripts\activate.bat
Linux 또는 macOS
source ./venv/bin/activate
pip 버전 업그레이드
pip install --upgrade pip
Python 패키지 설치
다운로드한 소스 코드의 최상위 디렉토리에서 다음 명령을 실행합니다.
pip install -r requirements.txt
PyQtGraph 설치
다운로드한 소스 코드의 최상위 디렉토리에서 다음 명령을 실행합니다.
pip install https://d3c6e16xufx1gb.cloudfront.net/wheels/pyqtgraph-0.13.5-py3-none-any.whl
QT Advanced Docking System package 설치
다운로드한 소스 코드의 최상위 디렉토리에서 다음 명령을 실행합니다.
Windows
pip install https://d3c6e16xufx1gb.cloudfront.net/wheels/PySide6_QtAds-4.2.1.2.dev0-cp38-abi3-win_amd64.whl
Linux
pip install https://d3c6e16xufx1gb.cloudfront.net/wheels/PySide6_QtAds-4.2.1.2.dev0-cp38-abi3-linux_x86_64.whl
솔버 실행 파일 복사
다운로드한 솔버 실행 파일을 다운로드한 소스 코드의 최상위 디렉토리로 복사하고 압축을 해제합니다.
압축 파일에는 solvers 폴더가 포함되어 있습니다.
solvers 폴더를 최상위 디렉토리에 배치하세요.
최종 디렉토리 구조는 다음과 같습니다.
($BARAM)
|
+-- requirements.txt
+-- ...
+-- solvers/
| |
| +-- openfoam/
| |
| +-- bin/
| +-- etc/
| +-- ...
+-- ...
Windows
solvers_windows_25.1.0_20250121.zip
Linux
solvers_linux_25.1.0_20250121.tar.xz
cURL 또는 wget 명령을 사용하여 다음과 같이 파일을 다운로드 할 수 있습니다.
wget https://d3c6e16xufx1gb.cloudfront.net/solvers_linux_25.1.0_20250131.tar.xz
curl -L https://d3c6e16xufx1gb.cloudfront.net/solvers_linux_25.1.0_20250131.tar.xz -o solvers_linux_25.1.0_20250131.tar.xz
macOS (Apple Silicon 전용)
엄격한 코드 서명 정책으로 인해 아직 준비되지 않았습니다.
Daemonizer 컴파일 ( Linux and macOS )
압축파일이 해제되면서 "solvers"디렉토리가 생성됩니다.
gcc -o solvers/openfoam/bin/baramd misc/baramd.c
리소스 파일 컴파일
python convertUi.py
BaramFlow 실행
python -m baramFlow.main
BaramMesh 실행
python -m baramMesh.main
수동 venv 활성화가 필요없는 편리한 스크립트
baramFlow.sh
baramMesh.sh
Azure market place
Azure market place에서 Cloud 서비스를 이용하실 수 있습니다!!
아래 링크 접속을 통해 넥스트폼에서 제공하는 Cloud 서비스를 사용해보세요.
Azure market place 링크
Paraview
BaramFlow 후처리를 위해 ParaView를 실행하는 메뉴가 있습니다.
사용자들은 후처리를 위해 Paraview를 다운로드 및 설치해야 합니다. 다운로드는 ParaView Download Site에서 할 수 있습니다.
만약 ParaView 가 이미 설치되어 있다면, 이 메뉴로 ParaView에서 case folder를 실행할 수 있습니다.