cd ~/Programs git clone https://github.com/jbeder/yaml-cpp.git && cd yaml-cpp mkdir build && cd build cmake -DBUILD_SHARED_LIBS=ON .. make sudo make install
下载openfast源码
1 2 3
cd ~/Programs wget https://github.com/OpenFAST/openfast/archive/refs/tags/v2.4.0.tar.gz tar -zxvf v2.4.0.tar.gz && cd openfast-2.4.0
#!/bin/bash SOWFA-6() { # Important locations. export inst_loc=$HOME/OpenFOAM export sowfa_loc=$HOME/OpenFOAM
# Unset OpenFOAM environment variables. export OPENFOAM_VERSION=6 if [ -z "$FOAM_INST_DIR" ]; then echo"Nothing to unset..." else echo" *Unsetting OpenFOAM environment variables..." if [ -f "$FOAM_INST_DIR/OpenFOAM-$OPENFOAM_VERSION/etc/config.sh/unset" ]; then . $FOAM_INST_DIR/OpenFOAM-$OPENFOAM_VERSION/etc/config.sh/unset else . $FOAM_INST_DIR/OpenFOAM-$OPENFOAM_VERSION/etc/config/unset.sh fi fi
# Set the OpenFOAM version and installation directory export OPENFOAM_VERSION=6 export OPENFOAM_NAME=OpenFOAM-$OPENFOAM_VERSION export FOAM_INST_DIR=$inst_loc export WM_PROJECT_USER_DIR=/home/$USER/OpenFOAM/SOWFA-$OPENFOAM_VERSION export FOAMY_HEX_MESH=true
# Source the OpenFOAM main environment. foamDotFile=$FOAM_INST_DIR/$OPENFOAM_NAME/etc/bashrc if [ -f $foamDotFile ] ; then echo"Sourcing $foamDotFile..." source$foamDotFile fi
# For wmake compiling. export WM_NCOMPPROCS=12 export WM_COLOURS="white blue green cyan red magenta yellow"
# Alias to tutorials. alias tut='cd /home/$USER/OpenFOAM/SOWFA-$OPENFOAM_VERSION/exampleCases'
# Unset OpenFOAM environment variables. if [ -z "$FOAM_INST_DIR" ]; then echo"Nothing to unset..." else echo" *Unsetting OpenFOAM environment variables..." . $FOAM_INST_DIR/OpenFOAM-2.4.0/etc/config/unset.sh fi
# Set the OpenFOAM version and installation directory export OPENFOAM_VERSION=2.4.0 export OPENFOAM_NAME=OpenFOAM-$OPENFOAM_VERSION export FOAM_INST_DIR=$inst_loc export WM_PROJECT_USER_DIR=$HOME/OpenFOAM/SOWFA-$OPENFOAM_VERSION
foamDotFile=$FOAM_INST_DIR/$OPENFOAM_NAME/etc/bashrc if [ -f $foamDotFile ] ; then echo"Sourcing $foamDotFile..." source$foamDotFile fi
export WM_NCOMPPROCS=12 export WM_COLOURS="white blue green cyan red magenta yellow"
alias tut='cd /$HOME/OpenFOAM/$USER-$OPENFOAM_VERSION/SOWFA-$OPENFOAM_VERSION/exampleCases'
source ~/.bashrc of24x # 编译安装gmp # 将本文档根目录的gmp.tar上传到服务器~/Packages/目录下 cd ~/Packages tar -xvf gmp-5.1.2.tar cd gmp-5.1.2 ./configure --prefix=$HOME/Packages/gmp-5.1.2/install --enable-cxx make make check make install