云極(EPC)是UCloud提供的高性能計(jì)算產(chǎn)品,為用戶提供基于公有云技術(shù)的超高性能算力以及涵蓋數(shù)據(jù)傳輸、數(shù)據(jù)計(jì)算、數(shù)據(jù)可視化等一站式的使用體驗(yàn)。
-秒級創(chuàng)建計(jì)算節(jié)點(diǎn),按需計(jì)費(fèi),關(guān)機(jī)不收費(fèi)
-支持開箱即用的應(yīng)用鏡像
-贈送1000GB共享存儲,支持FTP文件上傳和下載功能,帶寬最高可達(dá)100Mb
-可掛載虛擬的Nvidia Tesla T4 GPU, 為圖形處理功能加速
-支持8- 240核多種規(guī)格計(jì)算節(jié)點(diǎn)
本文將演示基于CentOS-7.6 x86_64位系統(tǒng)部署OpenFOAM。
流程:注冊-登錄-實(shí)名。UCloud注冊鏈接:https://passport.ucloud.cn/#login
-鏡像:支持標(biāo)準(zhǔn)鏡像,自定義鏡像以及部分高性能應(yīng)用鏡像
-配置:點(diǎn)擊卡片即可
-網(wǎng)絡(luò)增強(qiáng):Nvidia Tesla T4, 顯存4GB,如需云上處理,可開啟,目前僅支持Windows系統(tǒng)(增值服務(wù))
-存儲:默認(rèn)1000GB
-網(wǎng)絡(luò):外網(wǎng)帶寬默認(rèn)5Mb(免費(fèi))
可使用PuTTY登錄(注意,該模式登錄后是命令行界面),輸入云主機(jī)的公網(wǎng)IP即可SSH登錄;CentOS系統(tǒng)賬號是root,密碼是在購買云主機(jī)時設(shè)置的密碼;
# yum install -y autoconf automake gcc glibc gcc-c++ gcc-gfortran git libgcc libstdc++ cmake bison flex patch
# yum install -y boost-devel gmp-devel gstreamer-plugins-base-devel libXi-devel libXinerama-devel libXrandr-devel libXrender-devel \
libXt-devel mpfr-devel ncurses-devel python-devel qt-devel readline-devel zlib-devel
# mkdir -p /data/OpenFOAM
# cd /data/OpenFOAM
# wget -c https://sourceforge.net/projects/openfoam/files/v2006/OpenFOAM-v2006.tgz?use_mirror=nchc -O OpenFOAM-v2006.tgz# wget -c https://sourceforge.net/projects/openfoam/files/v2006/ThirdParty-v2006.tgz?use_mirror=nchc -O ThirdParty-v2006.tgz# tar zxvf OpenFOAM-v2006.tgz
# tar zxvf ThirdParty-v2006.tgz
# sed -i 's/$HOME/\/data/g' OpenFOAM-v2006/etc/bashrc
修改其他細(xì)節(jié)
# sed -i 's#\(default_gcc_version=\)gcc-4.8.5#\1gcc-7.2.0#' OpenFOAM-v2006/etc/config.sh/compiler
# sed -i 's#gmp-system#gmp-6.1.2#' OpenFOAM-v2006/etc/config.sh/compiler
# sed -i 's#mpfr-system#mpfr-4.0.1#' OpenFOAM-v2006/etc/config.sh/compiler
# sed -i 's#mpc-system#mpc-1.1.0#' OpenFOAM-v2006/etc/config.sh/compiler
# sed -i 's#\(cmake_version=\)cmake-system#\1cmake-3.12.4#' OpenFOAM-v2006/etc/config.sh/cmake
# sed -i 's=\(^unset WM_ARCH_OPTION\)=#\1=' OpenFOAM-v2006/etc/config.sh/settings
加載OpenFOAM環(huán)境變量
# source /data/OpenFOAM/OpenFOAM-v2006/etc/bashrc WM_COMPILER_TYPE=ThirdParty WM_COMPILER=Gcc72 WM_MPLIB=OPENMPI WM_ARCH_OPTION=64# echo "alias of2006='source /data/OpenFOAM/OpenFOAM-v2006/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
使用別名來管理多OpenFOAM版本
# of2006
加載環(huán)境變量時,可能會看到如下消息,需求編譯Gcc版本
Warning in /data/OpenFOAM/OpenFOAM-v2006/etc/config.sh/settings:
Cannot find 'Gcc72' compiler installation
/data/OpenFOAM/ThirdParty-v2006/platforms/linux64/gcc-7.2.0Either install this compiler version, or use the system compiler by setting
WM_COMPILER_TYPE to 'system' in $WM_PROJECT_DIR/etc/bashrc.
# cd $WM_THIRD_PARTY_DIR
# wget https://raw.githubusercontent.com/wyldckat/scripts4OpenFOAM3rdParty/master/getGcc# wget https://raw.github.com/wyldckat/ThirdParty-2.0.x/binutils/getBinutils# wget https://raw.github.com/wyldckat/ThirdParty-2.0.x/binutils/makeBinutils# chmod +x get* make*
編譯Gcc 7.2.0
# sed -i 's#gccPACKAGE.tar.bz2#gccPACKAGE.tar.gz#' getGcc
# ./getGcc gcc-7.2.0 gmp-6.1.2 mpfr-4.0.1 mpc-1.1.0# ./makeGcc
# wmRefresh
編譯GNU Binutils
# sed -i 's/binutils-2.23/binutils-2.31.1/g' getBinutils
# sed -i 's/binutils-2.23/binutils-2.31.1/g' makeBinutils
# ./getBinutils
# ./makeBinutils gcc-7.2.0
ParaView 5.6.0需要較新的CMake3.0以上版本,而CGAL也需要CMake;
# cd $WM_THIRD_PARTY_DIR
# wget https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getCmake# chmod +x getCmake
# sed -i -e 's#2.8#3.12#' -e 's#version}.3#version}.4#' getCmake
# ./getCmake
# ./makeCmake cmake-3.12.4 > log.makeCM 2>&1# wmRefresh
# cd $WM_THIRD_PARTY_DIR
# ./Allwmake -j
# wmRefresh
# foamSystemCheck
# cd $WM_PROJECT_DIR
# ./Allwmake -j
# cd $WM_THIRD_PARTY_DIR
# wget https://github.com/wyldckat/scripts4OpenFOAM3rdParty/raw/master/getQt# sed -i -e 's=4.6=5.9=' -e 's=5.9.4=5.9.6=' -e 's=tar -xzf=tar -Jxvf=' getQt
# sed -i -e 's=tar.gz=tar.xz=' -e 's=$major/$tarFile=$major/$version/single/$tarFile=' getQt
# chmod +x getQt
# ./getQt
# ./makeQt qt-5.9.6 > log.mkqt
# cd $WM_THIRD_PARTY_DIR
# ./makeParaView -qt-5.9 -mpi -python -python-lib /path/lib64/libpython2.7.so -python-include /path/include/python2.7
10、測試motor流場算例
# wget http://hpc.cn-sh2.ufileos.com/hpc_case/motorBike_v2006.tar.gz# tar zxvf motorBike_v2006.tar.gz
# cd motorBike_v2006
# surfaceFeatureExtract
# blockMesh
# decomposePar -copyZero
# mpirun -np 32 snappyHexMesh -parallel -overwrite
# mpirun -np 32 patchSummary -parallel
# mpirun -np 32 potentialFoam -parallel
# mpirun -np 32 simpleFoam -parallel
備注:
如果需要修改計(jì)算的CPU數(shù)量,修改算例中decomposeParDict文件的numberOfSubdomains參數(shù),這個等于CPU核數(shù);
1、UCloud 云極高性能計(jì)算EPC限時特惠,新客注冊贈送1000核時免費(fèi)集群算力
http://m.specialneedsforspecialkids.com/site/active/epc.html
2、更有EPC校園大使活動,成功邀請高校用戶或科研機(jī)構(gòu)使用我們的產(chǎn)品即可獲得現(xiàn)金獎勵,期待你來!
3、如有任何問題,可在此留言或加入UCloud-HPC高校科研交流群溝通 ?
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/127473.html
摘要:為了滿足在更多復(fù)雜場景科研攻堅(jiān)時,對于超高性能算力高速網(wǎng)絡(luò)傳輸海量數(shù)據(jù)存儲的更高需求,再次發(fā)力,于近日推出了為科研量身定制的新一代超算產(chǎn)品,并將正式更名為云極高性能計(jì)算以下簡稱。科研是科技創(chuàng)新的基礎(chǔ),而高性能計(jì)算則是科研的基石。隨著數(shù)字化走向縱深,科研教育進(jìn)入信息化時代。在科研項(xiàng)目的推進(jìn)過程中,往往會面對復(fù)雜的數(shù)據(jù)密集型計(jì)算任務(wù),例如仿真、數(shù)據(jù)建模、渲染等大量運(yùn)算場景。此時如果使用單一的通用...
摘要:為了滿足在更多復(fù)雜場景科研攻堅(jiān)時,對于超高性能算力高速網(wǎng)絡(luò)傳輸海量數(shù)據(jù)存儲的更高需求,再次發(fā)力,于近日推出了為科研量身定制的新一代超算產(chǎn)品,并將正式更名為云極高性能計(jì)算以下簡稱。科研是科技創(chuàng)新的基礎(chǔ),而高性能計(jì)算則是科研的基石。隨著數(shù)字化走向縱深,科研教育進(jìn)入信息化時代。在科研項(xiàng)目的推進(jìn)過程中,往往會面對復(fù)雜的數(shù)據(jù)密集型計(jì)算任務(wù),例如仿真、數(shù)據(jù)建模、渲染等大量運(yùn)算場景。此時如果使用單一的通用...
云極(EPC)是UCloud提供的高性能計(jì)算產(chǎn)品,為用戶提供基于公有云技術(shù)的超高性能算力以及涵蓋數(shù)據(jù)傳輸、數(shù)據(jù)計(jì)算、數(shù)據(jù)可視化等一站式的使用體驗(yàn)。EPC支持以下功能:-秒級創(chuàng)建計(jì)算節(jié)點(diǎn),按需計(jì)費(fèi),關(guān)機(jī)不收費(fèi)-支持開箱即用的應(yīng)用鏡像-贈送1000GB共享存儲,支持FTP文件上傳和下載功能,帶寬最高可達(dá)100Mb-可掛載虛擬的Nvidia Tesla T4 GPU, 為圖形處理功能加速-支持8- 24...
閱讀 2349·2024-01-26 19:15
閱讀 1967·2022-09-02 15:44
閱讀 11153·2022-09-02 09:58