Skip to content

hirtanak/cyclecloud-STAR-CCMplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure CycleCloud template for Siemens STAR-CCM+

Prerequisites

  1. Prepaire for your STAR-CCM+ bilnary.
  2. Install CycleCloud CLI

How to install

  1. tar zxvf cyclecloud-STAR-CCMplus.tar.gz
  2. cd cyclecloud-STAR-CCMplus
  3. put your STAR-CCMplus binanry /blob directory.
  4. Rewrite "Files" attribute for your binariy in "project.ini" file.
  5. run "cyclecloud project upload cloud-storage(azure-storage)" for uploading template to CycleCloud
  6. "cyclecloud import_template -f templates/pbs_extended_nfs_pw.txt" for register this template to your CycleCloud

How to run Siemens STAR-CCM+

  1. Create Execute Node manually
  2. Check Node IP Address
  3. Create hosts file for your nodes
  4. qsub ~/starccmrun.sh (sample as below)


#!/bin/bash
#PBS -j oe
#PBS -l select=4:ncpus=15
NP=60

logfile=starlog-`date +%Y%m%d_%H-%M-%S`.log
FILE=~/runccm.sh
echo "===========================================================================" >> $logfile
cat $FILE >> $logfile
echo "===========================================================================" >> $logfile

STARCCMPLUS_VERSION=15.02.007
PRECISION=-R8 #-R8 double precision
INSTALL_DIR=/shared/home/azureuser
INPUT=/shared/home/azureuser/test1.sim
export DISPLAY=0:0

source /etc/profile.d/starccm.sh

source /opt/intel/oneapi/mpi/latest/env/vars.sh

export CDLMD_LICENSE_FILE=1999@flex.cd-adapco.com
#PODKEY=
	
# sample command line2 "use BatterySimulationModuleCellThermalAnalysis2Running3CellsInSeries_final.sim"
JAVA=Introduction.java
INPUT1=Introduction_final.sim
${INSTALL_DIR}/${STARCCMPLUS_VERSION}${PRECISION}/STAR-CCM+${STARCCMPLUS_VERSION}${PRECISION}/star/bin/starccm+ -np ${NP} -licpath ${CDLMD_LICENSE_FILE} -power -podkey ${PODKEY} -mpi intel -rsh ssh -batch ${JAVA} ${INPUT1} >> $logfile

Known Issues

1. This tempate support only single administrator. So you have to use same user between superuser(initial Azure CycleCloud User) and deployment user of this template

-> Fixed by "Script User" you should input correct user in "Script User".

. Currently AutoScale is disabled. you have to create execute node and get IP. In addtion, create hosts file for your execute node environment.

-> Fxied

Azure CycleCloud用テンプレート:Siemens STAR-CCM+(NFS/PBSPro)

Azure CycleCloud はMicrosoft Azure上で簡単にCAE/HPC/Deep Learning用のクラスタ環境を構築できるソリューションです。(図はOSS PBS Proテンプレートの場合)

Azure CycleCloudの構築・テンプレート構成

Azure CyceCloudのインストールに関しては、こちら のドキュメントを参照してください。

STAR-CCM+用のテンプレートになっています。 以下の構成、特徴を持っています。

  1. OSS PBS ProジョブスケジューラをMasterノードにインストール
  2. H16r, H16r_Promo, HC44rs, HB60rs, HB120s_v2を想定したテンプレート、イメージ - OpenLogic CentOS 7.6 HPC を利用
  3. Masterノードに512GB * 2 のNFSストレージサーバを搭載 - Executeノード(計算ノード)からNFSをマウント
  4. MasterノードのIPアドレスを固定設定 - 一旦停止後、再度起動した場合にアクセスする先のIPアドレスが変更されない

Siemens STAR-CCM+ テンプレート構成

Siemens STAR-CCM+ テンプレートインストール方法

前提条件: テンプレートを利用するためには、Azure CycleCloud CLIのインストールと設定が必要です。詳しくは、 こちら の文書からインストールが必要です。  展開されたAzure CycleCloudサーバのFQDNの設定が必要です。

  1. テンプレート本体をダウンロード
  2. 展開、ディレクトリ移動
  3. STAR-CCM+バイナリを準備
  4. project.ini内で利用するバイナリを設定、もしくはAzure CycleCloudに直接アップロード
  5. cyclecloudコマンドラインからテンプレートインストール
    • tar zxvf cyclecloud-STAR-CCM+.tar.gz
    • cd cyclecloud-STAR-CCM+
    • cyclecloud project upload cloud-storage(古いバージョンだと、azure-storage)
    • cyclecloud import_template -f templates/pbs_extended_nfs_starccm.txt
    • デフォルトのバイナリを変更可能(199行目当たりのデフォルトファイル名を設定変更)
  6. 削除したい場合、 cyclecloud delete_template STAR-CCM+ コマンドで削除可能

Copyright Hiroshi Tanaka, hirtanak@gmail.com, @hirtanak All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.