Coder Social home page Coder Social logo

hirtanak / cyclecloud-star-ccmplus Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 124 KB

Azure CycleCloud template for Siemens STAR-CCMplus

License: MIT License

Ruby 11.85% Python 82.41% Shell 5.63% HTML 0.12%
cae azure big compute hpc starccm azure-cyclecloud

cyclecloud-star-ccmplus's Introduction

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 [email protected]
#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, [email protected], @hirtanak All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.