The phase-change functionality in interPhaseChangeFoam has been generalised and
moved into the run-time selectable twoPhaseChange library included into
interFoam providing optional phase-change. The three cavitation models provided
in interPhaseChangeFoam are now included in the twoPhaseChange library and the
two interPhaseChangeFoam cavitation tutorials updated for interFoam.
interPhaseChangeFoam has been replaced by a user redirection script which prints
the following message:
The interPhaseChangeFoam solver has solver has been replaced by the more general
interFoam solver, which now supports phase-change using the new twoPhaseChange
models library.
To run with with phase-change create a constant/phaseChangeProperties dictionary
containing the phase-change model specification, e.g.
phaseChangeModel SchnerrSauer;
pSat 2300; // Saturation pressure
See the following cases for an example converted from interPhaseChangeFoam:
$FOAM_TUTORIALS/multiphase/interFoam/laminar/cavitatingBullet
$FOAM_TUTORIALS/multiphase/interFoam/RAS/propeller
55 lines
2.0 KiB
Bash
Executable File
55 lines
2.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#------------------------------------------------------------------------------
|
|
# ========= |
|
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
# \\ / O peration | Website: https://openfoam.org
|
|
# \\ / A nd | Copyright (C) 2021 OpenFOAM Foundation
|
|
# \\/ M anipulation |
|
|
#------------------------------------------------------------------------------
|
|
# License
|
|
# This file is part of OpenFOAM.
|
|
#
|
|
# OpenFOAM 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.
|
|
#
|
|
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
# for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
# Script
|
|
# interPhaseChangeFoam
|
|
#
|
|
# Description
|
|
# Script to inform the user that interPhaseChangeFoam has been replaced
|
|
# by the more general interFoam solver.
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
cat << EOF
|
|
|
|
The interPhaseChangeFoam solver has solver has been replaced by the more general
|
|
interFoam solver, which now supports phase-change using the new twoPhaseChange
|
|
models library.
|
|
|
|
To run with with phase-change create a constant/phaseChangeProperties dictionary
|
|
containing the phase-change model specification, e.g.
|
|
|
|
phaseChangeModel SchnerrSauer;
|
|
|
|
pSat 2300; // Saturation pressure
|
|
|
|
See the following cases for an example converted from interPhaseChangeFoam:
|
|
|
|
\$FOAM_TUTORIALS/multiphase/interFoam/laminar/cavitatingBullet
|
|
\$FOAM_TUTORIALS/multiphase/interFoam/RAS/propeller
|
|
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|