Rocks集群系统的CentOS 服务器计算集群进行fluent CFX计算的shell图形化操作界面

这篇博客介绍了一种简化Rocks集群系统中CentOS服务器计算集群上fluent CFX计算的方法。通过编写shell脚本,实现了连接不同节点、启动不同版本的fluent CFX、清理fluent CFX进程以及调整CFX并行计算的系统变量等操作,旨在降低Linux初学者的操作难度。
摘要由CSDN通过智能技术生成

由于进行CFD计算连接Rocks集群系统的CentOS 服务器计算集群,需要输入各种命令代码,十分繁琐且对于Linux小白很不友好,特编写了shell脚本来实现不同节点的连接、不同版本的fluent CFX启动、fluent CFX 进程的清理、CFX并行中系统变量的修改操作。

#!/bin/bash
#Compute Server Cluster Graphical Shell Script
#Time: 2019/04/29
#Version: V1.0
#Author: @Kevin WALKER


jiedian_select_animo=
function radiolist() {
    DISTROS=$(whiptail --title "Chose Compute Node" --radiolist \
    "Welcome to use the HOST compute cluster, please select the server node" 15 60 4 \
    "No_1" "Mian Node: cluster0" ON \
    "No_2" "Sub Node1: node1" OFF \
    "No_3" "Sub Node2: node2" OFF 3>&1 1>&2 2>&3)
 
    exitstatus=$?
    if [ $exitstatus = 0 ]; then
        jiedian_select_animo=$DISTROS
        echo_green_enter "The compute node you selected is  $jiedian_select_animo" 
    else
        echo "You have chosen to cancel"
    fi
}


function No_1 {
    OPTION=$(whiptail --title "Menu" --menu \
    "Please select the menu" 15 60 4 \
    "1" "Fluent 12" \
    "2" "Fluent 14" \
    "3" "Fluent 15" \
    "4" "Fluent 19" \
    "5" "CFX 14" \
    "6" "CFX 15" \
    "7" "CFX 19" \
    "8" "Kill Fluent Process" \
    "9" "Kill CFX Process" \
    "10" "CFX MPI"  3>&1 1>&2 2>&3)
 
    exitstatus=$?
    if [ $exitstatus = 0 ]; then
        if [ $OPTION == 1 ];then
        	  exit
        	  exit
        	  /share/apps/ansys_inc/v121/fluent/bin/fluent
            echo "Fluent 12 is Runing!"
        elif [ $OPTION == 2 ];then
        	  exit
        	  exit
        	  /share/apps/ansys_inc/v140/fluent/bin/fluent
            echo "Fluent 14 is 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值