Skip to content

kdg5424/nextfoam-cfd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

About NextFOAM solver

NextFOAM solver is a free, open source computational fluid dynamics (CFD) software package released by NEXTfoam based on OpenFOAM released by OpenCFD.

Copyright

NextFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See the file COPYING in this directory or http://www.gnu.org/licenses/, for a description of the GNU General Public License terms under which you can copy the files.

NextFOAM-2404 features than OpenFOAM released by OpenCFD

  • Density based compressible solver TSLAeroFoam is added
  • Improvement of pressure-velocity coupling
  • Improvement of velocity & density interpolation
  • Improvement of under-relaxation factor dependency of navier-stokes equation
  • Improvement of discretization method of pressure gradient term
  • Improvement of time step dependency of transient solver
  • Improvement of linearization method of production term of turbulence model
  • Development of convergence judgment function of CHT solver
  • Improvement of porous media model
  • Improvement of MRF (Multi Reference Frame)

Download and Installation instructions on Ubuntu Linux

NextFOAM top directory is set as /opt/OpenFOAM for all users. Installation directories are followings:

application directory
NextFOAM-2404 /opt/OpenFOAM/NextFOAM-2404
ThirdParty-2404 /opt/OpenFOAM/ThirdParty-2404

Install required packages for building NextFOAM-2404 in the Ubuntu Linux. Run commands as root:

apt-get -y update
apt-get install -y build-essential flex zlib1g-dev libgmp-dev libmpfr-dev libboost-all-dev texinfo cmake

Download openmpi 4.0.5 source and install on /opt/openmpi-4.0.5 directory

wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.5.tar.gz
tar zxf openmpi-4.0.5.tar.gz
rm openmpi-4.0.5.tar.gz
cd openmpi-4.0.5
./configure --prefix=/opt/openmpi-4.0.5
make -j 4 all
make install
echo 'export PATH=$PATH:/opt/openmpi-4.0.5/bin' >> /etc/bash.bashrc

Clone nextfoam-cfd and move to the top directory

mkdir -p /opt/OpenFOAM
git clone https://github.com/nextfoam/nextfoam-cfd.git
mv nextfoam-cfd/NextFOAM-2404 /opt/OpenFOAM
mv nextfoam-cfd/ThirdParty-2404 /opt/OpenFOAM

Setup the environment variables in the /opt/OpenFOAM/NextFOAM-2404/etc/bashrc

vi /opt/OpenFOAM/NextFOAM-2404/etc/bashrc

export WM_PROJECT_VERSION=2404
projectDir="/opt/OpenFOAM/NextFOAM-$WM_PROJECT_VERSION"
export WM_LABEL_SIZE=64

(Note) When running decomposePar command, the no scotch library error is shown, download SCOTCH-6.1.0 and set this version in the etc/config.sh/scotch

cd /opt/OpenFOAM/ThirdParty-2404
wget https://sources.easybuild.io/s/SCOTCH/scotch_6.1.0.tar.gz
tar zxf scotch_6.1.0.tar.gz

vi /opt/OpenFOAM/NextFOAM-2404/etc/config.sh/scotch

SCOTCH_VERSION=scotch_6.1.0

Compile NextFOAM-2404. Set your number of cores at WM_NCOMPPROCS

(Note) If you install NextFOAM-2404 on Ubuntu 22.04, you should install gcc-9 and g++-9 and set gcc-9 as the compiler.

apt install gcc-9 g++-9
export WM_COMPILE_CONTROL="version=9"
echo 'export WM_COMPILE_CONTROL="version=9"' >> /etc/bash.bashrc
source /opt/OpenFOAM/NextFOAM-2404/etc/bashrc
cd /opt/OpenFOAM/NextFOAM-2404
export WM_NCOMPPROCS=4
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WM_THIRD_PARTY_DIR/platforms/linux64Gcc/fftw-3.3.10/lib
./Allwmake

Enable the environment variables at start time

echo 'source /opt/OpenFOAM/NextFOAM-2404/etc/bashrc' >> /etc/bash.bashrc

Contact to NEXTfoam

Contact to NEXTfoam by [email protected]

About

NextFOAM-$VERSION Solver

Resources

Stars

Watchers

Forks

Packages

No packages published