Merge branch 'nextRelease'
This commit is contained in:
commit
6c0c77dee2
4262 changed files with 322556 additions and 20746 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -119,4 +119,7 @@ src/lduSolvers/amg/amgPolicy/samgPolicy.H
|
||||||
src/lduSolvers/amg/amgPolicy/aamgPolicy.C
|
src/lduSolvers/amg/amgPolicy/aamgPolicy.C
|
||||||
src/lduSolvers/amg/amgPolicy/aamgPolicy.H
|
src/lduSolvers/amg/amgPolicy/aamgPolicy.H
|
||||||
|
|
||||||
|
# vagrant stuff
|
||||||
|
vagrantSandbox/.vagrant/
|
||||||
|
|
||||||
# end-of-file
|
# end-of-file
|
||||||
|
|
|
@ -108,4 +108,7 @@ src/lduSolvers/amg/amgPolicy/samgPolicy.H
|
||||||
src/lduSolvers/amg/amgPolicy/aamgPolicy.C
|
src/lduSolvers/amg/amgPolicy/aamgPolicy.C
|
||||||
src/lduSolvers/amg/amgPolicy/aamgPolicy.H
|
src/lduSolvers/amg/amgPolicy/aamgPolicy.H
|
||||||
|
|
||||||
|
# vagrant stuff
|
||||||
|
vagrantSandbox/.vagrant/
|
||||||
|
|
||||||
# end-of-file
|
# end-of-file
|
||||||
|
|
|
@ -7,19 +7,19 @@ then
|
||||||
echo "Error: Current directory is not \$WM_PROJECT_DIR"
|
echo "Error: Current directory is not \$WM_PROJECT_DIR"
|
||||||
echo " The environment variables are not consistent with the installation."
|
echo " The environment variables are not consistent with the installation."
|
||||||
echo " Please source configuration files."
|
echo " Please source configuration files."
|
||||||
echo
|
echo
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
echo " bash: . etc/bashrc"
|
echo " bash: . etc/bashrc"
|
||||||
echo " tcsh: source etc/cshrc"
|
echo " tcsh: source etc/cshrc"
|
||||||
echo
|
echo
|
||||||
echo " If you sourced the configuration files, please check the 'foamInstall' entry."
|
echo " If you sourced the configuration files, please check the 'foamInstall' entry."
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$PARAVIEW_SYSTEM" ] && [ -z "$QT_BIN_DIR" ]
|
if [ -z "$PARAVIEW_SYSTEM" ] && [ -z "$QT_BIN_DIR" ]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo "\$QT_BIN_DIR not set. To compile Paraview from sources"
|
echo "\$QT_BIN_DIR not set. To compile Paraview from sources"
|
||||||
echo "the command \$QT_BIN_DIR/qmake needs to be valid."
|
echo "the command \$QT_BIN_DIR/qmake needs to be valid."
|
||||||
echo
|
echo
|
||||||
|
@ -27,13 +27,13 @@ then
|
||||||
echo " Ubuntu: \"export QT_BIN_DIR=/usr/bin\""
|
echo " Ubuntu: \"export QT_BIN_DIR=/usr/bin\""
|
||||||
echo " Fedora: \"export QT_BIN_DIR=/usr/lib64/qt4/bin\""
|
echo " Fedora: \"export QT_BIN_DIR=/usr/lib64/qt4/bin\""
|
||||||
echo " openSuse: \"export QT_BIN_DIR=/usr/bin\""
|
echo " openSuse: \"export QT_BIN_DIR=/usr/bin\""
|
||||||
echo
|
echo
|
||||||
read -r -p "Proceed without compiling ParaView [Y/n] " response
|
read -r -p "Proceed without compiling ParaView [Y/n] " response
|
||||||
if [[ $response =~ ^([nN][oO]|[nN])$ ]]
|
if [[ $response =~ ^([nN][oO]|[nN])$ ]]
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check whether we will be compiling cudaSolvers
|
# Check whether we will be compiling cudaSolvers
|
||||||
if [ -f $CUDA_BIN_DIR/nvcc ]
|
if [ -f $CUDA_BIN_DIR/nvcc ]
|
||||||
|
@ -43,12 +43,12 @@ then
|
||||||
echo "cudaSolvers will be compiled by default."
|
echo "cudaSolvers will be compiled by default."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# If yes, check presence of $CUDA_ARCH
|
# If yes, check presence of $CUDA_ARCH
|
||||||
if [ -z "$CUDA_ARCH" ]
|
if [ -z "$CUDA_ARCH" ]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo "\$CUDA_ARCH is required by nvcc compiler but not set."
|
echo "\$CUDA_ARCH is required by nvcc compiler but not set."
|
||||||
echo "Check section '-gpu-architecture' in 'man nvcc' for details."
|
echo "Check section '-gpu-architecture' in 'man nvcc' for details."
|
||||||
echo
|
echo
|
||||||
read -r -p "Proceed without compiling cudaSolvers? [Y/n] " response
|
read -r -p "Proceed without compiling cudaSolvers? [Y/n] " response
|
||||||
if [[ $response =~ ^([nN][oO]|[nN])$ ]]
|
if [[ $response =~ ^([nN][oO]|[nN])$ ]]
|
||||||
|
@ -83,4 +83,7 @@ fi
|
||||||
export WM_NCOMPPROCS=1
|
export WM_NCOMPPROCS=1
|
||||||
( cd $WM_THIRD_PARTY_DIR && ./AllMake.post )
|
( cd $WM_THIRD_PARTY_DIR && ./AllMake.post )
|
||||||
|
|
||||||
|
# Build extend-bazaar packages
|
||||||
|
#( cd extend-bazaar && ./Allwmake)
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# CMakeLists.txt file for implementing a test harness for the compilation
|
# CMakeLists.txt file for implementing a test harness for the compilation
|
||||||
# and test of foam-extend-3.0 using Kitware CTest./CMake/CDash
|
# and test of foam-extend-3.1 using Kitware CTest./CMake/CDash
|
||||||
#
|
#
|
||||||
# The results will be submitted to the CDash server identified by the file
|
# The results will be submitted to the CDash server identified by the file
|
||||||
# CTestConfig.cmake
|
# CTestConfig.cmake
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
|
|
||||||
PROJECT(foam-extend-3.0)
|
PROJECT(foam-extend-3.1)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Initialization of CTest specific variables
|
# Initialization of CTest specific variables
|
||||||
|
@ -96,10 +96,10 @@ SET(BUILDNAME "${BUILDNAME}-$ENV{WM_CC}${COMPILER_VERSION}")
|
||||||
# DART_TESTING_TIMEOUT 14400
|
# DART_TESTING_TIMEOUT 14400
|
||||||
# CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test."
|
# CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test."
|
||||||
#)
|
#)
|
||||||
# Timeout for running all this: 10 minutes : 600 seconds
|
# Timeout for running all this: 20 minutes : 1200 seconds (for debug)
|
||||||
SET(
|
SET(
|
||||||
DART_TESTING_TIMEOUT 600
|
DART_TESTING_TIMEOUT 1200
|
||||||
CACHE STRING "Maximum time allowed (10 minutes) before CTest will kill the test."
|
CACHE STRING "Maximum time allowed (20 minutes) before CTest will kill the test."
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(
|
SET(
|
||||||
|
@ -127,9 +127,12 @@ if(GIT_FOUND)
|
||||||
if (GIT_BRANCH_NAME STREQUAL "")
|
if (GIT_BRANCH_NAME STREQUAL "")
|
||||||
message("No git-branch. Mercurial?")
|
message("No git-branch. Mercurial?")
|
||||||
EXEC_PROGRAM(hg
|
EXEC_PROGRAM(hg
|
||||||
ARGS branch
|
ARGS id
|
||||||
OUTPUT_VARIABLE GIT_BRANCH_NAME
|
OUTPUT_VARIABLE GIT_BRANCH_NAME
|
||||||
)
|
)
|
||||||
|
string(REPLACE " " "_" GIT_BRANCH_NAME ${GIT_BRANCH_NAME})
|
||||||
|
string(REPLACE "+" "_modified" GIT_BRANCH_NAME ${GIT_BRANCH_NAME})
|
||||||
|
SET(GIT_BRANCH_NAME "hg_${GIT_BRANCH_NAME}")
|
||||||
message("Git branch (mercurial): ${GIT_BRANCH_NAME}")
|
message("Git branch (mercurial): ${GIT_BRANCH_NAME}")
|
||||||
endif()
|
endif()
|
||||||
SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}")
|
SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}")
|
||||||
|
@ -140,7 +143,6 @@ endif()
|
||||||
string(REPLACE "/" "_" BUILDNAME ${BUILDNAME})
|
string(REPLACE "/" "_" BUILDNAME ${BUILDNAME})
|
||||||
string(REPLACE "/" "_" SITE ${SITE})
|
string(REPLACE "/" "_" SITE ${SITE})
|
||||||
|
|
||||||
|
|
||||||
# Build section
|
# Build section
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
## # The following are required to uses Dart and the Cdash dashboard
|
## # The following are required to uses Dart and the Cdash dashboard
|
||||||
## ENABLE_TESTING()
|
## ENABLE_TESTING()
|
||||||
## INCLUDE(CTest)
|
## INCLUDE(CTest)
|
||||||
set(CTEST_PROJECT_NAME "foam-extend-3.0")
|
set(CTEST_PROJECT_NAME "foam-extend-3.1")
|
||||||
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
|
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
|
||||||
|
|
||||||
set(CTEST_DROP_METHOD "http")
|
set(CTEST_DROP_METHOD "http")
|
||||||
set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net")
|
set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net")
|
||||||
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=foam-extend-3.0")
|
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=foam-extend-3.1")
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
||||||
|
|
75
ListOfContributors
Normal file
75
ListOfContributors
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
# -*- mode: org; -*-
|
||||||
|
#
|
||||||
|
#+TITLE: *Cumulative List of Contributors for foam-extend-3.1*
|
||||||
|
#+AUTHOR: Hrvoje Jasak
|
||||||
|
#+DATE: 8 June 2014
|
||||||
|
#+LINK: http://foam-extend.org
|
||||||
|
#+OPTIONS: author:nil
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
* List of Contributors
|
||||||
|
|
||||||
|
(If your name is missing in the list, please contact the maintainers at
|
||||||
|
and it will be added asap.)
|
||||||
|
|
||||||
|
Henry Weller
|
||||||
|
Hrvoje Jasak
|
||||||
|
|
||||||
|
Frank Albina
|
||||||
|
Martin Beaudoin
|
||||||
|
Christian Beck
|
||||||
|
David Boner
|
||||||
|
Oliver Borm
|
||||||
|
Frank Bos
|
||||||
|
Philip Cardiff
|
||||||
|
Declan Carolan
|
||||||
|
Dominik Christ
|
||||||
|
Ivor Clifford
|
||||||
|
James Criner
|
||||||
|
Pierre-Olivier Dallaire
|
||||||
|
Carsten Dehning
|
||||||
|
Norman Del Puppo
|
||||||
|
Eugene De Villiers
|
||||||
|
Jovani Favero
|
||||||
|
Andreas Feymark
|
||||||
|
Flavio Galeazzo
|
||||||
|
Maria Garcia Camprubi
|
||||||
|
Christoph Goniva
|
||||||
|
Chris Greenshields
|
||||||
|
Bernhard Gschaider
|
||||||
|
Andy Heather
|
||||||
|
David Hill
|
||||||
|
Peter Janas
|
||||||
|
Mattijs Janssens
|
||||||
|
Klas Jareteg
|
||||||
|
Aleksandar Karac
|
||||||
|
Dennis Kingsley
|
||||||
|
Nikola Kornev
|
||||||
|
Hannes Kroger
|
||||||
|
Michael Leonard
|
||||||
|
Niels Linnemann
|
||||||
|
Tommaso Lucchini
|
||||||
|
Luca Mangani
|
||||||
|
Dubravko Matijasevic
|
||||||
|
David McAuliffe
|
||||||
|
Sandeep Menon
|
||||||
|
Håkan Nilsson
|
||||||
|
Niklas Nordin
|
||||||
|
Mark Olesen
|
||||||
|
Takuya Oshima
|
||||||
|
Eric Paterson
|
||||||
|
Juho Peltola
|
||||||
|
Fabian Peng Karrholm
|
||||||
|
Olivier Petit
|
||||||
|
Philiposse Rajan
|
||||||
|
Henrik Rusche
|
||||||
|
David Schmidt
|
||||||
|
Daniel Schmode
|
||||||
|
Hua Shan
|
||||||
|
Hilary Spencer
|
||||||
|
Darrin Stephens
|
||||||
|
Gavin Tabor
|
||||||
|
Tian Tang
|
||||||
|
Zeljko Tukovic
|
||||||
|
Niklas Wikstrom
|
337
ReleaseNotes
Normal file
337
ReleaseNotes
Normal file
|
@ -0,0 +1,337 @@
|
||||||
|
# -*- mode: org; -*-
|
||||||
|
#
|
||||||
|
#+TITLE: *Release notes for foam-extend-3.1*
|
||||||
|
#+AUTHOR: foam-extend administrators:
|
||||||
|
#+AUTHOR: Hrvoje Jasak
|
||||||
|
#+AUTHOR: Håkan Nilsson
|
||||||
|
#+AUTHOR: Henrik Rusche
|
||||||
|
#+AUTHOR: Martin Beaudoin
|
||||||
|
#+AUTHOR: Bernhard Gschaider
|
||||||
|
#+DATE: 8 June 2014
|
||||||
|
#+LINK: http://foam-extend.org
|
||||||
|
#+OPTIONS: author:nil
|
||||||
|
#+OPTIONS: toc:2
|
||||||
|
#+OPTIONS: _:nil
|
||||||
|
#+OPTIONS: ^:nil
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
** Overview
|
||||||
|
The foam-extend project is a fork of the OpenFOAM® open source
|
||||||
|
library for Computational Fluid Dynamics (CFD). It is an open
|
||||||
|
project welcoming and integrating contributions from all users and
|
||||||
|
developers. Previously known as OpenFOAM®-dev and OpenFOAM®-extend,
|
||||||
|
it contains bug fixes and performance improvements, as well as
|
||||||
|
extensions and additional features provided by community
|
||||||
|
contributors (see file ListOfContributors), such as dynamic mesh and
|
||||||
|
topological change support, turbomachinery extensions including
|
||||||
|
general grid interpolation (GGI), cyclic GGI and mixing plane,
|
||||||
|
block-coupled matrix support, implicitly coupled conjugate heat
|
||||||
|
transfer and other pyshics coupling, finite area method,
|
||||||
|
comprehensive dynamic mesh (motion and topological changes)
|
||||||
|
capability and GPU support. For a full list, see below and previous
|
||||||
|
release notes at:
|
||||||
|
http://sourceforge.net/p/openfoam-extend/wiki/Home/
|
||||||
|
|
||||||
|
Version 3.1, nicknamed "Zagreb", is the current version of
|
||||||
|
foam-extend. The release continues the tradition and spirit of the
|
||||||
|
original FOAM code developed by prof. Jasak and Mr. Weller during
|
||||||
|
their time at Imperial College and released as the general purpose
|
||||||
|
CFD/CCM package by Nabla Ltd. in 2000. In this spirit, we reverted
|
||||||
|
18 December 2013 to the original numbering scheme (foam-2.3.2, 13
|
||||||
|
December 2004) as release number 3.0. Visit http://foam-extend.org
|
||||||
|
for more information.
|
||||||
|
|
||||||
|
OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and
|
||||||
|
foam-extend are a community effort not endorsed by ESI Group.
|
||||||
|
|
||||||
|
** Installation
|
||||||
|
foam-extend-3.1 can be compiled and runs on any linux system
|
||||||
|
|
||||||
|
* Main supported OSs:
|
||||||
|
- Ubuntu 14.04
|
||||||
|
- Fedora 20
|
||||||
|
- Mac OS X
|
||||||
|
|
||||||
|
* Compile from source:
|
||||||
|
|
||||||
|
Please refer to doc/buildInstructions/ for details. Further
|
||||||
|
installation instruction are available on the unofficial OpenFOAM
|
||||||
|
Wiki:
|
||||||
|
http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0
|
||||||
|
If you have improvements or build instructions for a new system,
|
||||||
|
please share them with the community (see section "How to
|
||||||
|
contribute", below).
|
||||||
|
|
||||||
|
* Download binary packages:
|
||||||
|
|
||||||
|
Binary packages are available for download at
|
||||||
|
http://sourceforge.net/projects/openfoam-extend/ for the following
|
||||||
|
systems: Ubuntu 14.04, Fedora 20 and Mac OS X.
|
||||||
|
|
||||||
|
* Accompanying ThirdParty software:
|
||||||
|
- gcc compatibility up to 4.8.2
|
||||||
|
- Paraview 4.0.1
|
||||||
|
- qt 4.8.5
|
||||||
|
- openmpi 1.6.5
|
||||||
|
- cmake 2.8.12
|
||||||
|
- metis 5.1.0
|
||||||
|
- parmetis 4.0.3
|
||||||
|
- scotch 6.0.0
|
||||||
|
- ParMGridGen 1.0
|
||||||
|
- mesquite 2.1.2
|
||||||
|
- PyFoam 0.6.3
|
||||||
|
- swak4Foam 0.3.1
|
||||||
|
- zoltan 3.6
|
||||||
|
- bison 2.7
|
||||||
|
- hwloc 1.7.2
|
||||||
|
- libccmio 2.6.1
|
||||||
|
|
||||||
|
** Compatibility
|
||||||
|
Upstream features from the OpenFOAM® code base are merged into
|
||||||
|
foam-extend on regular basis. The interface format of
|
||||||
|
foam-extend-3.1 is largely compatible to OpenFOAM-1.6-ext and
|
||||||
|
OpenFOAM-1.7.x. In some cases, the differences are caused by bug
|
||||||
|
fixes and algorithmic improvements, considered more important than
|
||||||
|
inter-operability.
|
||||||
|
|
||||||
|
** Main differentiators between foam-extend and OpenFOAM
|
||||||
|
A large number of features have been lost within the release of
|
||||||
|
OpenFOAM since version 1.3, the code base has shrunk by more than
|
||||||
|
40%. While we understand the lack of technical ability of
|
||||||
|
supporting advanced CFD features, we feel that existing features and
|
||||||
|
specifically large-scale contributions should remain active and
|
||||||
|
developed further. Below is a list of main features of foam-extend
|
||||||
|
which are lacking, lost, deactivated or unusable in ESI releases:
|
||||||
|
|
||||||
|
* Turbomachinery features, including General Grid Interface (GGI),
|
||||||
|
partial overlap GGI, cyclic GGI, with improvements in parallel
|
||||||
|
scaling. First release of a mixing plane stage interface
|
||||||
|
|
||||||
|
* Dynamic mesh with topological changes Sliding interfaces, mesh
|
||||||
|
layering, attach-detach boundaries etc. In foam-extend, full
|
||||||
|
parallel support for topological changes is released for the first
|
||||||
|
time
|
||||||
|
|
||||||
|
* Finite Element Method with support for polyhedral meshes This is
|
||||||
|
mainly used in mesh deformation and over the last 15 years it has
|
||||||
|
proven vastly superior to all other dynamic mesh methods.
|
||||||
|
|
||||||
|
* Advanced mesh deformation technology Including tet FEM mesh
|
||||||
|
deformation, Radial Basis Function (RBF) mesh deformation,
|
||||||
|
tetrahedral remeshing dynamic mesh support and solid body motion
|
||||||
|
functions. All of the above include parallelisation support
|
||||||
|
|
||||||
|
* Library of dynamic meshes with topological changes with full
|
||||||
|
second order FVM discretisation support on moving meshes with
|
||||||
|
topological changes
|
||||||
|
|
||||||
|
* Internal combustion engine-specific dynamic mesh classes such as
|
||||||
|
two-stroke engine and various forms of 4-stroke and multi-valve
|
||||||
|
dynamic mesh classes
|
||||||
|
|
||||||
|
* Finite Area Method providing support for FVM-like discretisation
|
||||||
|
on a curved surface in 3-D, with examples of liquid film modelling
|
||||||
|
|
||||||
|
* Block-coupled matrix support, allowing fully implicit
|
||||||
|
multi-equation solution of NxN equation sets, with full
|
||||||
|
parallelisation support. First release of a block-AMG linear
|
||||||
|
equation solver
|
||||||
|
|
||||||
|
* Fully implicit conjugate-coupled solution framework, allowing
|
||||||
|
implicit solution fo multiple equations over multiple meshes, with
|
||||||
|
parallelism
|
||||||
|
|
||||||
|
* Proper Orthogonal Decomposition data analysis tools, with
|
||||||
|
applications to FOAM field classes
|
||||||
|
|
||||||
|
* Equation reader classes and tutorials
|
||||||
|
|
||||||
|
* Multi-solver solution framework, allowing multiple field models to
|
||||||
|
be solved in a coupled manner
|
||||||
|
|
||||||
|
* A major contribution is solid mechanics modelling, including
|
||||||
|
linear and non-linear materials, contact, self-contact and
|
||||||
|
friction, with updated Lagrangian or absolute Lagrangian
|
||||||
|
formulation. Solution of damage models and crack propagation in
|
||||||
|
complex materials via topological changes
|
||||||
|
|
||||||
|
* CUDA solver release, provided in full source and as an example of
|
||||||
|
coupling external linear equation solvers with FOAM
|
||||||
|
|
||||||
|
* Library-level support for Immersed Boundary Method and Overset
|
||||||
|
Mesh
|
||||||
|
|
||||||
|
* Major improvements in accuracy and stability of FVM discretisation
|
||||||
|
with options on convection and diffusion discretisation, deferred
|
||||||
|
correction or explicit schemes
|
||||||
|
|
||||||
|
* Algebraic multigrid solver framework
|
||||||
|
|
||||||
|
* 210 tutorials with automated run scripts
|
||||||
|
|
||||||
|
* Automatic test harness
|
||||||
|
|
||||||
|
* Approximately 6000 bug fixes in fundamental level libraries and
|
||||||
|
discretisation techniques
|
||||||
|
|
||||||
|
** New features in foam-extend-3.1, since foam-extend-3.0
|
||||||
|
The list of features is a result of the work of numerous
|
||||||
|
contributors. The maintainers of foam-extend would formally like to
|
||||||
|
thank them all.
|
||||||
|
|
||||||
|
Get a full log of the updates by (either):
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
user@machine> git log 3.0.. > commitLog
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
user@machine> git log 3.0.. --oneline > commitLog
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
user@machine> gitg 3.0..
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Major new features:
|
||||||
|
- Pressure-based compressible turbo functionalities
|
||||||
|
- Pressure-based coupled solver (block-coupling p and U)
|
||||||
|
- Density-based coupled Roe flux solver dbnsFoam and dbnsTurbFoam
|
||||||
|
- major update and validation of mixing plane boundary
|
||||||
|
- full deploymenr of block matrix, including block-AMG solverse
|
||||||
|
- further parallel dynamic mesh capability: all topological changes
|
||||||
|
supported in parallel execution
|
||||||
|
- major upgrade of solid mechanics solvers
|
||||||
|
- support for CLang-based compilers
|
||||||
|
|
||||||
|
* Licence: GPLv3
|
||||||
|
|
||||||
|
* Installation:
|
||||||
|
- Updated and bug-fixed installation procedures
|
||||||
|
- Removed need for gmake link in Ubuntu
|
||||||
|
- Scripts for minimizing installation after compilation
|
||||||
|
- ThirdParty/Allclean alsoPackage - new option
|
||||||
|
- wcleanAllButLibBinLnInclude
|
||||||
|
- Fixed problem with ParaView reader for Ubuntu 14.04
|
||||||
|
- foamToTecplot360: building tecio doesn't require X.org
|
||||||
|
development files
|
||||||
|
|
||||||
|
* Solvers:
|
||||||
|
- compressible/dbnsFoam
|
||||||
|
- compressible/dbnsTurbFoam
|
||||||
|
- compressible/steadyCompressibleFoam
|
||||||
|
- compressible/steadyCompressibleMRFFoam
|
||||||
|
- compressible/steadyCompressibleSRFFoam
|
||||||
|
- coupled/pUCoupledFoam (incl. core library changes)
|
||||||
|
|
||||||
|
- Update and cleanup of solvers/solidMechanics
|
||||||
|
- Update for segregated FEM matrix,
|
||||||
|
solvers/solidMechanics/stressFemFoam
|
||||||
|
|
||||||
|
* Utilities:
|
||||||
|
- convertPhi (for steadyCompressible solvers)
|
||||||
|
- foamMeshToElmer, fluent3DMeshToElmer
|
||||||
|
- transformPoints -cylToCart "origin axis direction" - new option
|
||||||
|
- blockMesh syntax update (see commit a78b12074)
|
||||||
|
|
||||||
|
* Libraries:
|
||||||
|
- General:
|
||||||
|
- Added Gauss-Seidel as asymmetric solver
|
||||||
|
- Block matrix agglomeration (for pUCoupledFoam)
|
||||||
|
- Block AMG solver
|
||||||
|
- dbns library (src/dbns)
|
||||||
|
- Boundary conditions:
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFFlowRateInletVelocity
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFSurfaceNormalVelocity
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFTotalTemperature
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/pulseFixedValue
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/waveTransmissiveInlet
|
||||||
|
- thermophysicalModels/basic/derivedFvPatchFields/isentropicTotalTemperature
|
||||||
|
- thermophysicalModels/basic/derivedFvPatchFields/temperatureDirectedInletOutletVelocity
|
||||||
|
- fvMesh/fvPatches/constraint/mixingPlane
|
||||||
|
- Turbulence modeling:
|
||||||
|
- Removed kOmegaSST_lowRe - use standard kOmegaSST
|
||||||
|
|
||||||
|
* Tutorial updates (settings, initial conditions, bug fixes etc.):
|
||||||
|
- incompressible/icoDyMFoam/mixerGgi
|
||||||
|
- incompressible/icoDyMFoam/movingConeMotion
|
||||||
|
- incompressible/icoDyMFoam/movingConeTopo
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/largeStrainCantileverBeam
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/nonLinBlock
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/rotateSphereTL
|
||||||
|
- solidMechanics/elasticThermalSolidFoam/hotCylinder
|
||||||
|
- solidMechanics/stressFemFoam/plateHole
|
||||||
|
- Many other updates due to blockMesh syntax update
|
||||||
|
|
||||||
|
* New tutorials:
|
||||||
|
- compressible/dbnsFoam/forwardStep
|
||||||
|
- compressible/dbnsFoam/shockTube
|
||||||
|
- compressible/dbnsTurbFoam/naca0012
|
||||||
|
- compressible/steadyCompressibleFoam/2bump
|
||||||
|
- compressible/steadyCompressibleFoam/bumpBlockMesh
|
||||||
|
- compressible/steadyCompressibleFoam/bumpFine05
|
||||||
|
- compressible/steadyCompressibleMRFFoam/bentRotorStator
|
||||||
|
- compressible/steadyCompressibleMRFFoam/simpleRotorStator
|
||||||
|
- compressible/steadyCompressibleSRFFoam/bentBlade
|
||||||
|
- compressible/steadyCompressibleSRFFoam/simpleBlade
|
||||||
|
- coupled/pUCoupledFoam/cavity
|
||||||
|
- incompressible/MRFSimpleFoam/axialTurbine_ggi
|
||||||
|
- incompressible/MRFSimpleFoam/axialTurbine_mixingPlane
|
||||||
|
- incompressible/pimpleDyMFoam/axialTurbine
|
||||||
|
- incompressible/pimpleDyMFoam/movingCylinders
|
||||||
|
- incompressible/pUCoupledFoam/backwardFacingStepLaminar
|
||||||
|
- incompressible/pUCoupledFoam/backwardFacingStepTurbulent
|
||||||
|
- incompressible/pUCoupledFoam/cavity
|
||||||
|
- incompressible/simpleSRFFoam/axialTurbine
|
||||||
|
- mesh/moveDynamicMesh/movingCylinders
|
||||||
|
|
||||||
|
* Bug fixes:
|
||||||
|
- Correct snGrad on coupled boundaries
|
||||||
|
- handling of static null pointers: safe to dereference
|
||||||
|
- LinearUpwind no longer hangs in parallel execution on empty patches
|
||||||
|
- mesh update on parallel topo changes: zones before boundaries
|
||||||
|
- GGI interpolation updates on topologically changing meshes
|
||||||
|
- cell layering issues off complex surfaces
|
||||||
|
- template depth for block matrix support
|
||||||
|
- parallel efficiency improvements
|
||||||
|
|
||||||
|
** Recent sucessful compilations and tests
|
||||||
|
* Ubuntu 14.04:
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=736
|
||||||
|
|
||||||
|
* Ubuntu 12.04:
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=738
|
||||||
|
|
||||||
|
* CentOS 6.4:
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=734
|
||||||
|
|
||||||
|
* Mac OX X 10.9.3 Maverick & CLang (XCode compiler):
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=733
|
||||||
|
|
||||||
|
* Mac OX X & gcc (Macports)
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=737
|
||||||
|
|
||||||
|
* Linux PPC ppc64 (Blue Gene)
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=742
|
||||||
|
|
||||||
|
* Red Hat Enterprise Linux Server release 5.2 (Tikanga), Intel CC 11.1
|
||||||
|
|
||||||
|
http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=743
|
||||||
|
|
||||||
|
** Reporting bugs
|
||||||
|
To report bugs, please use the MantisBT bugtracker at
|
||||||
|
http://sourceforge.net/apps/mantisbt/openfoam-extend
|
||||||
|
|
||||||
|
** How to contribute
|
||||||
|
All your contributions are highly welcome: New solvers, utilities and
|
||||||
|
models; bug fixes; documentation. The many ways of contributing and the
|
||||||
|
contribution process are described in detail in the file "HowToContribute"
|
||||||
|
and at http://sourceforge.net/p/openfoam-extend/wiki/Home/
|
||||||
|
|
||||||
|
** List of Contributors:
|
||||||
|
See file ListOfContributors
|
|
@ -1,335 +0,0 @@
|
||||||
# -*- mode: org; -*-
|
|
||||||
#
|
|
||||||
#+TITLE: *Release notes for foam-extend-3.0*
|
|
||||||
#+AUTHOR: Hrvoje Jasak.
|
|
||||||
#+DATE: 18 December 2013
|
|
||||||
#+LINK: http://foam-extend.org
|
|
||||||
#+OPTIONS: author:nil
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
Contents:
|
|
||||||
* Overview
|
|
||||||
* Installation
|
|
||||||
* Compatibility
|
|
||||||
* New features in foam-extend-3.0
|
|
||||||
* Reporting bugs
|
|
||||||
* How to contribute
|
|
||||||
* List of Contributors
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
* Overview
|
|
||||||
The foam-extend project is a fork of the OpenFOAM® open source library for
|
|
||||||
Computational Fluid Dynamics (CFD). It is an open project welcoming and
|
|
||||||
integrating contributions from all users and developers. Previously known as
|
|
||||||
OpenFOAM®-dev and OpenFOAM®-extend, it contains bug fixes and performance
|
|
||||||
improvements, as well as extensions and additional features provided
|
|
||||||
by community contributors (see list below), such as dynamic mesh and
|
|
||||||
topological change support, turbomachinery extensions including general grid
|
|
||||||
interpolation (GGI), cyclic GGI and mixing place, block-coupled matrix
|
|
||||||
support, finite area method, comprehensive mesh motion capability and GPU
|
|
||||||
support. For a full list, see below.
|
|
||||||
|
|
||||||
Version 3.0, nicknamed "Jeju", is the current version of foam-extend. The
|
|
||||||
release now continues the tradition and spirit of the original FOAM code
|
|
||||||
developed by prof. Jasak and Mr. Weller during their time at
|
|
||||||
Imperial College and released as the general purpose CFD/CCM package by
|
|
||||||
Nabla Ltd. in 2000. In this spirit, we shall revert to original numbering
|
|
||||||
scheme (foam-2.3.2, 13 December 2004) as release number 3.0.
|
|
||||||
Visit http://foam-extend.org for more information.
|
|
||||||
|
|
||||||
OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and
|
|
||||||
foam-extend are a community effort not endorsed by ESI Group.
|
|
||||||
|
|
||||||
* Installation
|
|
||||||
foam-extend-3.0 can be compiled and runs on any linux system and
|
|
||||||
Apple Mac OS X.
|
|
||||||
|
|
||||||
** From source
|
|
||||||
Please refer to doc/buildInstructions/ for details. Further
|
|
||||||
installation instruction are available on the unofficial OpenFOAM Wiki:
|
|
||||||
http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0
|
|
||||||
If you have improvements or build instructions for a new system, please
|
|
||||||
share them with the community (see section "How to contribute", below).
|
|
||||||
|
|
||||||
** Binary packages
|
|
||||||
Binary packages are available for download at
|
|
||||||
http://sourceforge.net/projects/openfoam-extend/
|
|
||||||
for the following systems: Ubuntu 12.04, Ubuntu 13.10 and Fedora 19 .
|
|
||||||
|
|
||||||
* Compatibility
|
|
||||||
Upstream features from the OpenFOAM® code base are merged into foam-extend
|
|
||||||
on regular basis. The interface format of foam-extend-3.0 is largely
|
|
||||||
compatible to OpenFOAM-1.6-ext and OpenFOAM-1.7.x. In some cases,
|
|
||||||
the differences are caused by bug fixes and algorithmic improvements,
|
|
||||||
considered more important than inter-operability.
|
|
||||||
|
|
||||||
* Main diferentiators
|
|
||||||
A large number of features has been lost within the release cycle of OpenFOAM
|
|
||||||
code; since version 1.3, the code base has shrunk by more than 40%. While
|
|
||||||
we understand the lack of technical ability of supporting advanced
|
|
||||||
CFD features, we feel that existing features and specifically large-scale
|
|
||||||
contributions should remain active and developed further. Below is a list
|
|
||||||
of main features of foam-extend-3.0 which are lost, deactivated or unusable
|
|
||||||
in ESI releases:
|
|
||||||
|
|
||||||
** Turbomachinery features, including General Grid Interface (GGI),
|
|
||||||
partial overlap GGI, cyclic GGI, with improvements in parallel scaling.
|
|
||||||
First full and validated release of a mixing plane stage interface
|
|
||||||
|
|
||||||
** Dynamic mesh with topological changes
|
|
||||||
sliding interfaces, mesh layering, attach-detach boundaries etc.
|
|
||||||
in foam-extend-3.0 full parallel support for topological changes
|
|
||||||
is released for the first time
|
|
||||||
|
|
||||||
** Finite Element Method with support for polyhedral meshes
|
|
||||||
This is mainly used in mesh deformation and over the last 15 years
|
|
||||||
it has proven vastly superior to all other dynamic mesh methods.
|
|
||||||
|
|
||||||
** Advanced mesh deformation technology
|
|
||||||
including tet FEM mesh deformation, Radial Basis Function (RBF) mesh
|
|
||||||
deformation, tetrahedral remeshing dynamic mesh support and solid body
|
|
||||||
motion functions. All of the above include parallelisation support
|
|
||||||
|
|
||||||
** Library of dynamic meshes with topological changes with full
|
|
||||||
second order FVM discretisation support on moving meshes with
|
|
||||||
topological changes
|
|
||||||
|
|
||||||
** Internal combustion engine-specific dynamic mesh classes such as
|
|
||||||
two-stroke engine and various forms of 4-stroke and multi-valve
|
|
||||||
dynamic mesh classes
|
|
||||||
|
|
||||||
** Finite Area Method providing support for FVM-like discretisation on
|
|
||||||
a curved surface in 3-D, with examples of liquid film modelling
|
|
||||||
|
|
||||||
** Block-coupled matrix support, allowing fully implicit multi-equation
|
|
||||||
solution of NxN equation sets, with full parallelisation support.
|
|
||||||
First release of a block-AMG linear equation solver
|
|
||||||
|
|
||||||
** Fully implicit conjugate-coupled solution framework, allowing implicit
|
|
||||||
solution fo multiple equations over multiple meshes, with parallelism
|
|
||||||
|
|
||||||
** Proper Orthogonal Decomposition data analysis tools, with applications
|
|
||||||
to FOAM field classes
|
|
||||||
|
|
||||||
** Equation reader classes and tutorials
|
|
||||||
|
|
||||||
** Multi-solver solution framework, allowing mutiple field models to be
|
|
||||||
solved in a coupled manner
|
|
||||||
|
|
||||||
** A major contribution is solid mechanics modelling, including linear
|
|
||||||
and non-linear materials, contact, self-contact and friction, with
|
|
||||||
updated Lagrangian or absolute Lagrangian formulation. Solution o
|
|
||||||
damage models and crack propagation in complex materials via
|
|
||||||
topological changes
|
|
||||||
|
|
||||||
** CUDA solver release, provided in full source and as an example of
|
|
||||||
coupling external linear equation solvers with FOAM
|
|
||||||
|
|
||||||
** Library-level support for Immersed Boundary Method and Overset Mesh
|
|
||||||
|
|
||||||
** Major improvements in accuracy and stability of FVM discretisation
|
|
||||||
with options on convection and diffusion discretisation, deferred
|
|
||||||
correction or explicit schemes
|
|
||||||
|
|
||||||
** Algebraic multigrid solver framerowk
|
|
||||||
|
|
||||||
** 190 tutorials with automated run scripts
|
|
||||||
|
|
||||||
** Automatic test harness
|
|
||||||
|
|
||||||
* New features in foam-extend-3.0
|
|
||||||
The list of features is a result of the work of numerous contributors. The
|
|
||||||
maintainers of foam-extend would formally like to thank them all.
|
|
||||||
|
|
||||||
** Core library
|
|
||||||
|
|
||||||
cudaSolvers
|
|
||||||
dynamicMesh
|
|
||||||
dynamicTopoFvMesh:
|
|
||||||
dynamicTopoFvMeshCoupled
|
|
||||||
convexSetAlgorithm
|
|
||||||
fieldMapping
|
|
||||||
meshOpsTemplates
|
|
||||||
msqAdditionalSrc
|
|
||||||
tetDecompositionMotionSolver
|
|
||||||
tetMotionSolver
|
|
||||||
multiTopoBodyFvMesh
|
|
||||||
engine
|
|
||||||
accordionValve
|
|
||||||
accordionEngineMesh
|
|
||||||
attachDetachFunctions
|
|
||||||
deformingEngineMesh
|
|
||||||
regionSide
|
|
||||||
twoStrokeEngine
|
|
||||||
equationReader
|
|
||||||
finiteArea:
|
|
||||||
faMeshMapper
|
|
||||||
faMeshUpdate.C
|
|
||||||
interpolation:
|
|
||||||
mapping
|
|
||||||
finitVolume:
|
|
||||||
mixingPlane
|
|
||||||
regionCouple
|
|
||||||
adjConvectionSchemes
|
|
||||||
backwardD2dt2Scheme
|
|
||||||
skewCorrectedSnGrad
|
|
||||||
singleCellFvMesh
|
|
||||||
harmonic
|
|
||||||
harmonicTemplates
|
|
||||||
magLongDelta.[HC]
|
|
||||||
multiSolver
|
|
||||||
OpenFOAM:
|
|
||||||
PriorityList
|
|
||||||
|
|
||||||
IOReferencer
|
|
||||||
postfixedSubRegistry
|
|
||||||
|
|
||||||
symmTensor4thOrder
|
|
||||||
VectorN
|
|
||||||
diagTensor
|
|
||||||
oscillatingFixedValue
|
|
||||||
|
|
||||||
profiling
|
|
||||||
|
|
||||||
MixingPlaneInterpolation
|
|
||||||
splineInterpolateXY
|
|
||||||
|
|
||||||
BlockAmg solver
|
|
||||||
blockVectorN solver
|
|
||||||
BlockLduInterface
|
|
||||||
|
|
||||||
mixingPlane (also with GAMG)
|
|
||||||
regionCouple (also with GAMG)
|
|
||||||
|
|
||||||
BlockCoeffNorm
|
|
||||||
|
|
||||||
postProcessing:
|
|
||||||
foamCalcFunctions:
|
|
||||||
scalarMult
|
|
||||||
componentsTurbo
|
|
||||||
domainIntegrate
|
|
||||||
functionObjects:
|
|
||||||
mixingPlaneCheck
|
|
||||||
maxFieldCell
|
|
||||||
solidModels
|
|
||||||
tetDecompositionFiniteElement
|
|
||||||
thermophysicalModels:
|
|
||||||
radiation:
|
|
||||||
viewFactor
|
|
||||||
turbulenceModels:
|
|
||||||
RWallFunctions
|
|
||||||
VectorN
|
|
||||||
|
|
||||||
** Solver applications
|
|
||||||
|
|
||||||
conjugateHeatSimpleFoam
|
|
||||||
equationReaderDemo
|
|
||||||
MRFSimpleFoam
|
|
||||||
simpleSRFFoam
|
|
||||||
MRFInterFoam
|
|
||||||
multiSolver
|
|
||||||
solidMechanics:
|
|
||||||
elasticAcpSolidFoam
|
|
||||||
elasticIncrAcpSolidFoam
|
|
||||||
elasticIncrSolidFoam
|
|
||||||
elasticNonLinIncrTLSolidFoam
|
|
||||||
elasticNonLinTLSolidFoam
|
|
||||||
elasticNonLinULSolidFoam
|
|
||||||
elasticOrthoAcpSolidFoam
|
|
||||||
elasticOrthoNonLinULSolidFoam
|
|
||||||
elasticOrthoSolidFoam
|
|
||||||
elasticPlasticSolidFoam
|
|
||||||
elasticPlasticNonLinTLSolidFoam
|
|
||||||
elasticPlasticNonLinULSolidFoam
|
|
||||||
elasticSolidFoam
|
|
||||||
elasticThermalSolidFoam
|
|
||||||
icoFsiElasticNonLinULSolidFoam
|
|
||||||
viscoElasticSolidFoam
|
|
||||||
|
|
||||||
** Utilities
|
|
||||||
|
|
||||||
foamMeshToAbaqus
|
|
||||||
multiSolver (postProcessing)
|
|
||||||
solidMechanics:
|
|
||||||
calculateCourantNumber
|
|
||||||
forceDisp
|
|
||||||
patchStressIntegrate
|
|
||||||
smoothMesh
|
|
||||||
surfaceTractions
|
|
||||||
|
|
||||||
** ThirdParty software
|
|
||||||
gcc compatibility up to 4.8.1
|
|
||||||
Updated to:
|
|
||||||
Paraview 4.1
|
|
||||||
openmpi 1.6.5
|
|
||||||
cmake 2.8.12
|
|
||||||
metis 5.1.0
|
|
||||||
parmetis 4.0.3
|
|
||||||
scotch 6.0.0
|
|
||||||
zoltan 3.6
|
|
||||||
|
|
||||||
* Reporting bugs
|
|
||||||
To report bugs, please use the MantisBT bugtracker at
|
|
||||||
http://sourceforge.net/apps/mantisbt/openfoam-extend/my_view_page.php .
|
|
||||||
|
|
||||||
* How to contribute
|
|
||||||
All your contributions are highly welcome: New solvers, utilities and
|
|
||||||
models; bug fixes; documentation. The many ways of contributing and the
|
|
||||||
contribution process are described in detail in the file "HowToContribute".
|
|
||||||
|
|
||||||
* List of Contributors
|
|
||||||
(If your name is missing in the list, please contact the maintainers at
|
|
||||||
and it will be added asap.)
|
|
||||||
Henry Weller
|
|
||||||
Hrvoje Jasak
|
|
||||||
Mattijs Janssens
|
|
||||||
Zeljko Tukovic
|
|
||||||
Bernhard Gschaider
|
|
||||||
Tommaso Lucchini
|
|
||||||
Martin Beaudoin
|
|
||||||
Sandeep Menon
|
|
||||||
Niklas Nordin
|
|
||||||
Eugene De Villiers
|
|
||||||
Henrik Rusche
|
|
||||||
Ivor Clifford
|
|
||||||
Philiposse Rajan
|
|
||||||
Gavin Tabor
|
|
||||||
Jovani Favero
|
|
||||||
Frank Bos
|
|
||||||
David Hill
|
|
||||||
Niklas Wikstrom
|
|
||||||
Dubravko Matijasevic
|
|
||||||
Darrin Stephens
|
|
||||||
Christian Beck
|
|
||||||
Oliver Borm
|
|
||||||
James Criner
|
|
||||||
Hua Shan
|
|
||||||
David Boner
|
|
||||||
Pierre-Olivier Dallaire
|
|
||||||
Norman Del Puppo
|
|
||||||
Dennis Kingsley
|
|
||||||
Frank Albina
|
|
||||||
Flavio Galeazzo
|
|
||||||
Hannes Kroger
|
|
||||||
Olivier Petit
|
|
||||||
David Schmidt
|
|
||||||
Andreas Feymark
|
|
||||||
Luca Mangani
|
|
||||||
Daniel Schmode
|
|
||||||
Christoph Goniva
|
|
||||||
Takuya Oshima
|
|
||||||
Juho Peltola
|
|
||||||
Eric Paterson
|
|
||||||
Fabian Peng Karrholm
|
|
||||||
Aleksandar Karac
|
|
||||||
Maria Garcia Camprubi
|
|
||||||
Chris Greenshields
|
|
||||||
Mark Olesen
|
|
||||||
Hilary Spencer
|
|
||||||
Andy Heather
|
|
||||||
Dominik Christ
|
|
||||||
Peter Janas
|
|
||||||
Niels Linnemann
|
|
||||||
Nikola Kornev
|
|
735
ReleaseNotes.html
Normal file
735
ReleaseNotes.html
Normal file
|
@ -0,0 +1,735 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<title><b>Release notes for foam-extend-3.1</b></title>
|
||||||
|
<!-- 2014-06-16 Mon 16:40 -->
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<meta name="generator" content="Org-mode" />
|
||||||
|
<style type="text/css">
|
||||||
|
<!--/*--><![CDATA[/*><!--*/
|
||||||
|
.title { text-align: center; }
|
||||||
|
.todo { font-family: monospace; color: red; }
|
||||||
|
.done { color: green; }
|
||||||
|
.tag { background-color: #eee; font-family: monospace;
|
||||||
|
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||||
|
.timestamp { color: #bebebe; }
|
||||||
|
.timestamp-kwd { color: #5f9ea0; }
|
||||||
|
.right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||||
|
.left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||||
|
.center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||||
|
.underline { text-decoration: underline; }
|
||||||
|
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||||
|
p.verse { margin-left: 3%; }
|
||||||
|
pre {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
box-shadow: 3px 3px 3px #eee;
|
||||||
|
padding: 8pt;
|
||||||
|
font-family: monospace;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 1.2em;
|
||||||
|
}
|
||||||
|
pre.src {
|
||||||
|
position: relative;
|
||||||
|
overflow: visible;
|
||||||
|
padding-top: 1.2em;
|
||||||
|
}
|
||||||
|
pre.src:before {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
background-color: white;
|
||||||
|
top: -10px;
|
||||||
|
right: 10px;
|
||||||
|
padding: 3px;
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
pre.src:hover:before { display: inline;}
|
||||||
|
pre.src-sh:before { content: 'sh'; }
|
||||||
|
pre.src-bash:before { content: 'sh'; }
|
||||||
|
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||||
|
pre.src-R:before { content: 'R'; }
|
||||||
|
pre.src-perl:before { content: 'Perl'; }
|
||||||
|
pre.src-java:before { content: 'Java'; }
|
||||||
|
pre.src-sql:before { content: 'SQL'; }
|
||||||
|
|
||||||
|
table { border-collapse:collapse; }
|
||||||
|
td, th { vertical-align:top; }
|
||||||
|
th.right { text-align: center; }
|
||||||
|
th.left { text-align: center; }
|
||||||
|
th.center { text-align: center; }
|
||||||
|
td.right { text-align: right; }
|
||||||
|
td.left { text-align: left; }
|
||||||
|
td.center { text-align: center; }
|
||||||
|
dt { font-weight: bold; }
|
||||||
|
.footpara:nth-child(2) { display: inline; }
|
||||||
|
.footpara { display: block; }
|
||||||
|
.footdef { margin-bottom: 1em; }
|
||||||
|
.figure { padding: 1em; }
|
||||||
|
.figure p { text-align: center; }
|
||||||
|
.inlinetask {
|
||||||
|
padding: 10px;
|
||||||
|
border: 2px solid gray;
|
||||||
|
margin: 10px;
|
||||||
|
background: #ffffcc;
|
||||||
|
}
|
||||||
|
#org-div-home-and-up
|
||||||
|
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||||
|
textarea { overflow-x: auto; }
|
||||||
|
.linenr { font-size: smaller }
|
||||||
|
.code-highlighted { background-color: #ffff00; }
|
||||||
|
.org-info-js_info-navigation { border-style: none; }
|
||||||
|
#org-info-js_console-label
|
||||||
|
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||||
|
.org-info-js_search-highlight
|
||||||
|
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||||
|
/*]]>*/-->
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
/*
|
||||||
|
@licstart The following is the entire license notice for the
|
||||||
|
JavaScript code in this tag.
|
||||||
|
|
||||||
|
Copyright (C) 2012-2013 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
The JavaScript code in this tag is free software: you can
|
||||||
|
redistribute it and/or modify it under the terms of the GNU
|
||||||
|
General Public License (GNU GPL) as published by the Free Software
|
||||||
|
Foundation, either version 3 of the License, or (at your option)
|
||||||
|
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||||
|
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||||
|
|
||||||
|
As additional permission under GNU GPL version 3 section 7, you
|
||||||
|
may distribute non-source (e.g., minimized or compacted) forms of
|
||||||
|
that code without the copy of the GNU GPL normally required by
|
||||||
|
section 4, provided you include this license notice and a URL
|
||||||
|
through which recipients can access the Corresponding Source.
|
||||||
|
|
||||||
|
|
||||||
|
@licend The above is the entire license notice
|
||||||
|
for the JavaScript code in this tag.
|
||||||
|
*/
|
||||||
|
<!--/*--><![CDATA[/*><!--*/
|
||||||
|
function CodeHighlightOn(elem, id)
|
||||||
|
{
|
||||||
|
var target = document.getElementById(id);
|
||||||
|
if(null != target) {
|
||||||
|
elem.cacheClassElem = elem.className;
|
||||||
|
elem.cacheClassTarget = target.className;
|
||||||
|
target.className = "code-highlighted";
|
||||||
|
elem.className = "code-highlighted";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function CodeHighlightOff(elem, id)
|
||||||
|
{
|
||||||
|
var target = document.getElementById(id);
|
||||||
|
if(elem.cacheClassElem)
|
||||||
|
elem.className = elem.cacheClassElem;
|
||||||
|
if(elem.cacheClassTarget)
|
||||||
|
target.className = elem.cacheClassTarget;
|
||||||
|
}
|
||||||
|
/*]]>*///-->
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<h1 class="title"><b>Release notes for foam-extend-3.1</b></h1>
|
||||||
|
<div id="table-of-contents">
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<div id="text-table-of-contents">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#sec-1">1. Overview</a></li>
|
||||||
|
<li><a href="#sec-2">2. Installation</a></li>
|
||||||
|
<li><a href="#sec-3">3. Compatibility</a></li>
|
||||||
|
<li><a href="#sec-4">4. Main differentiators between foam-extend and OpenFOAM</a></li>
|
||||||
|
<li><a href="#sec-5">5. New features in foam-extend-3.1, since foam-extend-3.0</a></li>
|
||||||
|
<li><a href="#sec-6">6. Recent sucessful compilations and tests</a></li>
|
||||||
|
<li><a href="#sec-7">7. Reporting bugs</a></li>
|
||||||
|
<li><a href="#sec-8">8. How to contribute</a></li>
|
||||||
|
<li><a href="#sec-9">9. List of Contributors:</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
################################################################################
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div id="outline-container-sec-1" class="outline-2">
|
||||||
|
<h2 id="sec-1"><span class="section-number-2">1</span> Overview</h2>
|
||||||
|
<div class="outline-text-2" id="text-1">
|
||||||
|
<p>
|
||||||
|
The foam-extend project is a fork of the OpenFOAM® open source
|
||||||
|
library for Computational Fluid Dynamics (CFD). It is an open
|
||||||
|
project welcoming and integrating contributions from all users and
|
||||||
|
developers. Previously known as OpenFOAM®-dev and OpenFOAM®-extend,
|
||||||
|
it contains bug fixes and performance improvements, as well as
|
||||||
|
extensions and additional features provided by community
|
||||||
|
contributors (see file ListOfContributors), such as dynamic mesh and
|
||||||
|
topological change support, turbomachinery extensions including
|
||||||
|
general grid interpolation (GGI), cyclic GGI and mixing plane,
|
||||||
|
block-coupled matrix support, implicitly coupled conjugate heat
|
||||||
|
transfer and other pyshics coupling, finite area method,
|
||||||
|
comprehensive dynamic mesh (motion and topological changes)
|
||||||
|
capability and GPU support. For a full list, see below and previous
|
||||||
|
release notes at:
|
||||||
|
<a href="http://sourceforge.net/p/openfoam-extend/wiki/Home/">http://sourceforge.net/p/openfoam-extend/wiki/Home/</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Version 3.1, nicknamed "Zagreb", is the current version of
|
||||||
|
foam-extend. The release continues the tradition and spirit of the
|
||||||
|
original FOAM code developed by prof. Jasak and Mr. Weller during
|
||||||
|
their time at Imperial College and released as the general purpose
|
||||||
|
CFD/CCM package by Nabla Ltd. in 2000. In this spirit, we reverted
|
||||||
|
18 December 2013 to the original numbering scheme (foam-2.3.2, 13
|
||||||
|
December 2004) as release number 3.0. Visit <a href="http://foam-extend.org">http://foam-extend.org</a>
|
||||||
|
for more information.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and
|
||||||
|
foam-extend are a community effort not endorsed by ESI Group.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-2" class="outline-2">
|
||||||
|
<h2 id="sec-2"><span class="section-number-2">2</span> Installation</h2>
|
||||||
|
<div class="outline-text-2" id="text-2">
|
||||||
|
<p>
|
||||||
|
foam-extend-3.1 can be compiled and runs on any linux system
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Main supported OSs:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Ubuntu 14.04
|
||||||
|
</li>
|
||||||
|
<li>Fedora 20
|
||||||
|
</li>
|
||||||
|
<li>Mac OS X
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Compile from source:
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Please refer to doc/buildInstructions/ for details. Further
|
||||||
|
installation instruction are available on the unofficial OpenFOAM
|
||||||
|
Wiki:
|
||||||
|
<a href="http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0">http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0</a>
|
||||||
|
If you have improvements or build instructions for a new system,
|
||||||
|
please share them with the community (see section "How to
|
||||||
|
contribute", below).
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Download binary packages:
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Binary packages are available for download at
|
||||||
|
<a href="http://sourceforge.net/projects/openfoam-extend/">http://sourceforge.net/projects/openfoam-extend/</a> for the following
|
||||||
|
systems: Ubuntu 14.04, Fedora 20 and Mac OS X.
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Accompanying ThirdParty software:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>gcc compatibility up to 4.8.2
|
||||||
|
</li>
|
||||||
|
<li>Paraview 4.0.1
|
||||||
|
</li>
|
||||||
|
<li>qt 4.8.5
|
||||||
|
</li>
|
||||||
|
<li>openmpi 1.6.5
|
||||||
|
</li>
|
||||||
|
<li>cmake 2.8.12
|
||||||
|
</li>
|
||||||
|
<li>metis 5.1.0
|
||||||
|
</li>
|
||||||
|
<li>parmetis 4.0.3
|
||||||
|
</li>
|
||||||
|
<li>scotch 6.0.0
|
||||||
|
</li>
|
||||||
|
<li>ParMGridGen 1.0
|
||||||
|
</li>
|
||||||
|
<li>mesquite 2.1.2
|
||||||
|
</li>
|
||||||
|
<li>PyFoam 0.6.3
|
||||||
|
</li>
|
||||||
|
<li>swak4Foam 0.3.1
|
||||||
|
</li>
|
||||||
|
<li>zoltan 3.6
|
||||||
|
</li>
|
||||||
|
<li>bison 2.7
|
||||||
|
</li>
|
||||||
|
<li>hwloc 1.7.2
|
||||||
|
</li>
|
||||||
|
<li>libccmio 2.6.1
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-3" class="outline-2">
|
||||||
|
<h2 id="sec-3"><span class="section-number-2">3</span> Compatibility</h2>
|
||||||
|
<div class="outline-text-2" id="text-3">
|
||||||
|
<p>
|
||||||
|
Upstream features from the OpenFOAM® code base are merged into
|
||||||
|
foam-extend on regular basis. The interface format of
|
||||||
|
foam-extend-3.1 is largely compatible to OpenFOAM-1.6-ext and
|
||||||
|
OpenFOAM-1.7.x. In some cases, the differences are caused by bug
|
||||||
|
fixes and algorithmic improvements, considered more important than
|
||||||
|
inter-operability.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-4" class="outline-2">
|
||||||
|
<h2 id="sec-4"><span class="section-number-2">4</span> Main differentiators between foam-extend and OpenFOAM</h2>
|
||||||
|
<div class="outline-text-2" id="text-4">
|
||||||
|
<p>
|
||||||
|
A large number of features have been lost within the release of
|
||||||
|
OpenFOAM since version 1.3, the code base has shrunk by more than
|
||||||
|
40%. While we understand the lack of technical ability of
|
||||||
|
supporting advanced CFD features, we feel that existing features and
|
||||||
|
specifically large-scale contributions should remain active and
|
||||||
|
developed further. Below is a list of main features of foam-extend
|
||||||
|
which are lacking, lost, deactivated or unusable in ESI releases:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Turbomachinery features, including General Grid Interface (GGI),
|
||||||
|
partial overlap GGI, cyclic GGI, with improvements in parallel
|
||||||
|
scaling. First release of a mixing plane stage interface
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Dynamic mesh with topological changes Sliding interfaces, mesh
|
||||||
|
layering, attach-detach boundaries etc. In foam-extend, full
|
||||||
|
parallel support for topological changes is released for the first
|
||||||
|
time
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Finite Element Method with support for polyhedral meshes This is
|
||||||
|
mainly used in mesh deformation and over the last 15 years it has
|
||||||
|
proven vastly superior to all other dynamic mesh methods.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Advanced mesh deformation technology Including tet FEM mesh
|
||||||
|
deformation, Radial Basis Function (RBF) mesh deformation,
|
||||||
|
tetrahedral remeshing dynamic mesh support and solid body motion
|
||||||
|
functions. All of the above include parallelisation support
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Library of dynamic meshes with topological changes with full
|
||||||
|
second order FVM discretisation support on moving meshes with
|
||||||
|
topological changes
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Internal combustion engine-specific dynamic mesh classes such as
|
||||||
|
two-stroke engine and various forms of 4-stroke and multi-valve
|
||||||
|
dynamic mesh classes
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Finite Area Method providing support for FVM-like discretisation
|
||||||
|
on a curved surface in 3-D, with examples of liquid film modelling
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Block-coupled matrix support, allowing fully implicit
|
||||||
|
multi-equation solution of NxN equation sets, with full
|
||||||
|
parallelisation support. First release of a block-AMG linear
|
||||||
|
equation solver
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Fully implicit conjugate-coupled solution framework, allowing
|
||||||
|
implicit solution fo multiple equations over multiple meshes, with
|
||||||
|
parallelism
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Proper Orthogonal Decomposition data analysis tools, with
|
||||||
|
applications to FOAM field classes
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Equation reader classes and tutorials
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Multi-solver solution framework, allowing multiple field models to
|
||||||
|
be solved in a coupled manner
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>A major contribution is solid mechanics modelling, including
|
||||||
|
linear and non-linear materials, contact, self-contact and
|
||||||
|
friction, with updated Lagrangian or absolute Lagrangian
|
||||||
|
formulation. Solution of damage models and crack propagation in
|
||||||
|
complex materials via topological changes
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>CUDA solver release, provided in full source and as an example of
|
||||||
|
coupling external linear equation solvers with FOAM
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Library-level support for Immersed Boundary Method and Overset
|
||||||
|
Mesh
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Major improvements in accuracy and stability of FVM discretisation
|
||||||
|
with options on convection and diffusion discretisation, deferred
|
||||||
|
correction or explicit schemes
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Algebraic multigrid solver framework
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>210 tutorials with automated run scripts
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Automatic test harness
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Approximately 6000 bug fixes in fundamental level libraries and
|
||||||
|
discretisation techniques
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-5" class="outline-2">
|
||||||
|
<h2 id="sec-5"><span class="section-number-2">5</span> New features in foam-extend-3.1, since foam-extend-3.0</h2>
|
||||||
|
<div class="outline-text-2" id="text-5">
|
||||||
|
<p>
|
||||||
|
The list of features is a result of the work of numerous
|
||||||
|
contributors. The maintainers of foam-extend would formally like to
|
||||||
|
thank them all.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Get a full log of the updates by (either):
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
|
||||||
|
<pre class="src src-bash">user@machine> git log 3.0.. > commitLog
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div class="org-src-container">
|
||||||
|
|
||||||
|
<pre class="src src-bash">user@machine> git log 3.0.. --oneline > commitLog
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div class="org-src-container">
|
||||||
|
|
||||||
|
<pre class="src src-bash">user@machine> gitg 3.0..
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Major new features:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Pressure-based compressible turbo functionalities
|
||||||
|
</li>
|
||||||
|
<li>Pressure-based coupled solver (block-coupling p and U)
|
||||||
|
</li>
|
||||||
|
<li>Density-based coupled Roe flux solver dbnsFoam and dbnsTurbFoam
|
||||||
|
</li>
|
||||||
|
<li>major update and validation of mixing plane boundary
|
||||||
|
</li>
|
||||||
|
<li>full deploymenr of block matrix, including block-AMG solverse
|
||||||
|
</li>
|
||||||
|
<li>further parallel dynamic mesh capability: all topological changes
|
||||||
|
supported in parallel execution
|
||||||
|
</li>
|
||||||
|
<li>major upgrade of solid mechanics solvers
|
||||||
|
</li>
|
||||||
|
<li>support for CLang-based compilers
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Licence: GPLv3
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Installation:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Updated and bug-fixed installation procedures
|
||||||
|
</li>
|
||||||
|
<li>Removed need for gmake link in Ubuntu
|
||||||
|
</li>
|
||||||
|
<li>Scripts for minimizing installation after compilation
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>ThirdParty/Allclean alsoPackage - new option
|
||||||
|
</li>
|
||||||
|
<li>wcleanAllButLibBinLnInclude
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Fixed problem with ParaView reader for Ubuntu 14.04
|
||||||
|
</li>
|
||||||
|
<li>foamToTecplot360: building tecio doesn't require X.org
|
||||||
|
development files
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Solvers:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>compressible/dbnsFoam
|
||||||
|
</li>
|
||||||
|
<li>compressible/dbnsTurbFoam
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleFoam
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleMRFFoam
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleSRFFoam
|
||||||
|
</li>
|
||||||
|
<li>coupled/pUCoupledFoam (incl. core library changes)
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Update and cleanup of solvers/solidMechanics
|
||||||
|
</li>
|
||||||
|
<li>Update for segregated FEM matrix,
|
||||||
|
solvers/solidMechanics/stressFemFoam
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Utilities:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>convertPhi (for steadyCompressible solvers)
|
||||||
|
</li>
|
||||||
|
<li>foamMeshToElmer, fluent3DMeshToElmer
|
||||||
|
</li>
|
||||||
|
<li>transformPoints -cylToCart "origin axis direction" - new option
|
||||||
|
</li>
|
||||||
|
<li>blockMesh syntax update (see commit a78b12074)
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Libraries:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>General:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Added Gauss-Seidel as asymmetric solver
|
||||||
|
</li>
|
||||||
|
<li>Block matrix agglomeration (for pUCoupledFoam)
|
||||||
|
</li>
|
||||||
|
<li>Block AMG solver
|
||||||
|
</li>
|
||||||
|
<li>dbns library (src/dbns)
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Boundary conditions:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/SRFFlowRateInletVelocity
|
||||||
|
</li>
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/SRFSurfaceNormalVelocity
|
||||||
|
</li>
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure
|
||||||
|
</li>
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/SRFTotalTemperature
|
||||||
|
</li>
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/pulseFixedValue
|
||||||
|
</li>
|
||||||
|
<li>cfdTools/general/SRF/derivedFvPatchFields/waveTransmissiveInlet
|
||||||
|
</li>
|
||||||
|
<li>thermophysicalModels/basic/derivedFvPatchFields/isentropicTotalTemperature
|
||||||
|
</li>
|
||||||
|
<li>thermophysicalModels/basic/derivedFvPatchFields/temperatureDirectedInletOutletVelocity
|
||||||
|
</li>
|
||||||
|
<li>fvMesh/fvPatches/constraint/mixingPlane
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Turbulence modeling:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Removed kOmegaSST_lowRe - use standard kOmegaSST
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Tutorial updates (settings, initial conditions, bug fixes etc.):
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>incompressible/icoDyMFoam/mixerGgi
|
||||||
|
</li>
|
||||||
|
<li>incompressible/icoDyMFoam/movingConeMotion
|
||||||
|
</li>
|
||||||
|
<li>incompressible/icoDyMFoam/movingConeTopo
|
||||||
|
</li>
|
||||||
|
<li>solidMechanics/elasticNonLinTLSolidFoam/largeStrainCantileverBeam
|
||||||
|
</li>
|
||||||
|
<li>solidMechanics/elasticNonLinTLSolidFoam/nonLinBlock
|
||||||
|
</li>
|
||||||
|
<li>solidMechanics/elasticNonLinTLSolidFoam/rotateSphereTL
|
||||||
|
</li>
|
||||||
|
<li>solidMechanics/elasticThermalSolidFoam/hotCylinder
|
||||||
|
</li>
|
||||||
|
<li>solidMechanics/stressFemFoam/plateHole
|
||||||
|
</li>
|
||||||
|
<li>Many other updates due to blockMesh syntax update
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>New tutorials:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>compressible/dbnsFoam/forwardStep
|
||||||
|
</li>
|
||||||
|
<li>compressible/dbnsFoam/shockTube
|
||||||
|
</li>
|
||||||
|
<li>compressible/dbnsTurbFoam/naca0012
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleFoam/2bump
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleFoam/bumpBlockMesh
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleFoam/bumpFine05
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleMRFFoam/bentRotorStator
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleMRFFoam/simpleRotorStator
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleSRFFoam/bentBlade
|
||||||
|
</li>
|
||||||
|
<li>compressible/steadyCompressibleSRFFoam/simpleBlade
|
||||||
|
</li>
|
||||||
|
<li>coupled/pUCoupledFoam/cavity
|
||||||
|
</li>
|
||||||
|
<li>incompressible/MRFSimpleFoam/axialTurbine_ggi
|
||||||
|
</li>
|
||||||
|
<li>incompressible/MRFSimpleFoam/axialTurbine_mixingPlane
|
||||||
|
</li>
|
||||||
|
<li>incompressible/pimpleDyMFoam/axialTurbine
|
||||||
|
</li>
|
||||||
|
<li>incompressible/pimpleDyMFoam/movingCylinders
|
||||||
|
</li>
|
||||||
|
<li>incompressible/pUCoupledFoam/backwardFacingStepLaminar
|
||||||
|
</li>
|
||||||
|
<li>incompressible/pUCoupledFoam/backwardFacingStepTurbulent
|
||||||
|
</li>
|
||||||
|
<li>incompressible/pUCoupledFoam/cavity
|
||||||
|
</li>
|
||||||
|
<li>incompressible/simpleSRFFoam/axialTurbine
|
||||||
|
</li>
|
||||||
|
<li>mesh/moveDynamicMesh/movingCylinders
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Bug fixes:
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Correct snGrad on coupled boundaries
|
||||||
|
</li>
|
||||||
|
<li>handling of static null pointers: safe to dereference
|
||||||
|
</li>
|
||||||
|
<li>LinearUpwind no longer hangs in parallel execution on empty patches
|
||||||
|
</li>
|
||||||
|
<li>mesh update on parallel topo changes: zones before boundaries
|
||||||
|
</li>
|
||||||
|
<li>GGI interpolation updates on topologically changing meshes
|
||||||
|
</li>
|
||||||
|
<li>cell layering issues off complex surfaces
|
||||||
|
</li>
|
||||||
|
<li>template depth for block matrix support
|
||||||
|
</li>
|
||||||
|
<li>parallel efficiency improvements
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-6" class="outline-2">
|
||||||
|
<h2 id="sec-6"><span class="section-number-2">6</span> Recent sucessful compilations and tests</h2>
|
||||||
|
<div class="outline-text-2" id="text-6">
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li>Ubuntu 14.04:
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=736">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=736</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Ubuntu 12.04:
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=738">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=738</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>CentOS 6.4:
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=734">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=734</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Mac OX X 10.9.3 Maverick & CLang (XCode compiler):
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=733">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=733</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Mac OX X & gcc (Macports)
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=737">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=737</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Linux PPC ppc64 (Blue Gene)
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=742">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=742</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>Red Hat Enterprise Linux Server release 5.2 (Tikanga), Intel CC 11.1
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=743">http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=743</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-7" class="outline-2">
|
||||||
|
<h2 id="sec-7"><span class="section-number-2">7</span> Reporting bugs</h2>
|
||||||
|
<div class="outline-text-2" id="text-7">
|
||||||
|
<p>
|
||||||
|
To report bugs, please use the MantisBT bugtracker at
|
||||||
|
<a href="http://sourceforge.net/apps/mantisbt/openfoam-extend">http://sourceforge.net/apps/mantisbt/openfoam-extend</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-8" class="outline-2">
|
||||||
|
<h2 id="sec-8"><span class="section-number-2">8</span> How to contribute</h2>
|
||||||
|
<div class="outline-text-2" id="text-8">
|
||||||
|
<p>
|
||||||
|
All your contributions are highly welcome: New solvers, utilities and
|
||||||
|
models; bug fixes; documentation. The many ways of contributing and the
|
||||||
|
contribution process are described in detail in the file "HowToContribute"
|
||||||
|
and at <a href="http://sourceforge.net/p/openfoam-extend/wiki/Home/">http://sourceforge.net/p/openfoam-extend/wiki/Home/</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-sec-9" class="outline-2">
|
||||||
|
<h2 id="sec-9"><span class="section-number-2">9</span> List of Contributors:</h2>
|
||||||
|
<div class="outline-text-2" id="text-9">
|
||||||
|
<p>
|
||||||
|
See file ListOfContributors
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="postamble" class="status">
|
||||||
|
<p class="date">Date: 8 June 2014</p>
|
||||||
|
<p class="date">Created: 2014-06-16 Mon 16:40</p>
|
||||||
|
<p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.3.1 (<a href="http://orgmode.org">Org</a> mode 8.2.4)</p>
|
||||||
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
369
ReleaseNotes.txt
Normal file
369
ReleaseNotes.txt
Normal file
|
@ -0,0 +1,369 @@
|
||||||
|
_____________________________________
|
||||||
|
|
||||||
|
*RELEASE NOTES FOR FOAM-EXTEND-3.1*
|
||||||
|
_____________________________________
|
||||||
|
|
||||||
|
|
||||||
|
8 June 2014
|
||||||
|
|
||||||
|
|
||||||
|
Table of Contents
|
||||||
|
_________________
|
||||||
|
|
||||||
|
1 Overview
|
||||||
|
2 Installation
|
||||||
|
3 Compatibility
|
||||||
|
4 Main differentiators between foam-extend and OpenFOAM
|
||||||
|
5 New features in foam-extend-3.1, since foam-extend-3.0
|
||||||
|
6 Recent sucessful compilations and tests
|
||||||
|
7 Reporting bugs
|
||||||
|
8 How to contribute
|
||||||
|
9 List of Contributors:
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
1 Overview
|
||||||
|
==========
|
||||||
|
|
||||||
|
The foam-extend project is a fork of the OpenFOAM® open source library
|
||||||
|
for Computational Fluid Dynamics (CFD). It is an open project
|
||||||
|
welcoming and integrating contributions from all users and
|
||||||
|
developers. Previously known as OpenFOAM®-dev and OpenFOAM®-extend, it
|
||||||
|
contains bug fixes and performance improvements, as well as extensions
|
||||||
|
and additional features provided by community contributors (see file
|
||||||
|
ListOfContributors), such as dynamic mesh and topological change
|
||||||
|
support, turbomachinery extensions including general grid
|
||||||
|
interpolation (GGI), cyclic GGI and mixing plane, block-coupled matrix
|
||||||
|
support, implicitly coupled conjugate heat transfer and other pyshics
|
||||||
|
coupling, finite area method, comprehensive dynamic mesh (motion and
|
||||||
|
topological changes) capability and GPU support. For a full list, see
|
||||||
|
below and previous release notes at:
|
||||||
|
[http://sourceforge.net/p/openfoam-extend/wiki/Home/]
|
||||||
|
|
||||||
|
Version 3.1, nicknamed "Zagreb", is the current version of
|
||||||
|
foam-extend. The release continues the tradition and spirit of the
|
||||||
|
original FOAM code developed by prof. Jasak and Mr. Weller during
|
||||||
|
their time at Imperial College and released as the general purpose
|
||||||
|
CFD/CCM package by Nabla Ltd. in 2000. In this spirit, we reverted 18
|
||||||
|
December 2013 to the original numbering scheme (foam-2.3.2, 13
|
||||||
|
December 2004) as release number 3.0. Visit [http://foam-extend.org]
|
||||||
|
for more information.
|
||||||
|
|
||||||
|
OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and
|
||||||
|
foam-extend are a community effort not endorsed by ESI Group.
|
||||||
|
|
||||||
|
|
||||||
|
2 Installation
|
||||||
|
==============
|
||||||
|
|
||||||
|
foam-extend-3.1 can be compiled and runs on any linux system
|
||||||
|
|
||||||
|
* Main supported OSs:
|
||||||
|
- Ubuntu 14.04
|
||||||
|
- Fedora 20
|
||||||
|
- Mac OS X
|
||||||
|
|
||||||
|
* Compile from source:
|
||||||
|
|
||||||
|
Please refer to doc/buildInstructions/ for details. Further
|
||||||
|
installation instruction are available on the unofficial OpenFOAM
|
||||||
|
Wiki:
|
||||||
|
[http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0]
|
||||||
|
If you have improvements or build instructions for a new system,
|
||||||
|
please share them with the community (see section "How to
|
||||||
|
contribute", below).
|
||||||
|
|
||||||
|
* Download binary packages:
|
||||||
|
|
||||||
|
Binary packages are available for download at
|
||||||
|
[http://sourceforge.net/projects/openfoam-extend/] for the following
|
||||||
|
systems: Ubuntu 14.04, Fedora 20 and Mac OS X.
|
||||||
|
|
||||||
|
* Accompanying ThirdParty software:
|
||||||
|
- gcc compatibility up to 4.8.2
|
||||||
|
- Paraview 4.0.1
|
||||||
|
- qt 4.8.5
|
||||||
|
- openmpi 1.6.5
|
||||||
|
- cmake 2.8.12
|
||||||
|
- metis 5.1.0
|
||||||
|
- parmetis 4.0.3
|
||||||
|
- scotch 6.0.0
|
||||||
|
- ParMGridGen 1.0
|
||||||
|
- mesquite 2.1.2
|
||||||
|
- PyFoam 0.6.3
|
||||||
|
- swak4Foam 0.3.1
|
||||||
|
- zoltan 3.6
|
||||||
|
- bison 2.7
|
||||||
|
- hwloc 1.7.2
|
||||||
|
- libccmio 2.6.1
|
||||||
|
|
||||||
|
|
||||||
|
3 Compatibility
|
||||||
|
===============
|
||||||
|
|
||||||
|
Upstream features from the OpenFOAM® code base are merged into
|
||||||
|
foam-extend on regular basis. The interface format of foam-extend-3.1
|
||||||
|
is largely compatible to OpenFOAM-1.6-ext and OpenFOAM-1.7.x. In some
|
||||||
|
cases, the differences are caused by bug fixes and algorithmic
|
||||||
|
improvements, considered more important than inter-operability.
|
||||||
|
|
||||||
|
|
||||||
|
4 Main differentiators between foam-extend and OpenFOAM
|
||||||
|
=======================================================
|
||||||
|
|
||||||
|
A large number of features have been lost within the release of
|
||||||
|
OpenFOAM since version 1.3, the code base has shrunk by more than 40%.
|
||||||
|
While we understand the lack of technical ability of supporting
|
||||||
|
advanced CFD features, we feel that existing features and specifically
|
||||||
|
large-scale contributions should remain active and developed
|
||||||
|
further. Below is a list of main features of foam-extend which are
|
||||||
|
lacking, lost, deactivated or unusable in ESI releases:
|
||||||
|
|
||||||
|
* Turbomachinery features, including General Grid Interface (GGI),
|
||||||
|
partial overlap GGI, cyclic GGI, with improvements in parallel
|
||||||
|
scaling. First release of a mixing plane stage interface
|
||||||
|
|
||||||
|
* Dynamic mesh with topological changes Sliding interfaces, mesh
|
||||||
|
layering, attach-detach boundaries etc. In foam-extend, full
|
||||||
|
parallel support for topological changes is released for the first
|
||||||
|
time
|
||||||
|
|
||||||
|
* Finite Element Method with support for polyhedral meshes This is
|
||||||
|
mainly used in mesh deformation and over the last 15 years it has
|
||||||
|
proven vastly superior to all other dynamic mesh methods.
|
||||||
|
|
||||||
|
* Advanced mesh deformation technology Including tet FEM mesh
|
||||||
|
deformation, Radial Basis Function (RBF) mesh deformation,
|
||||||
|
tetrahedral remeshing dynamic mesh support and solid body motion
|
||||||
|
functions. All of the above include parallelisation support
|
||||||
|
|
||||||
|
* Library of dynamic meshes with topological changes with full second
|
||||||
|
order FVM discretisation support on moving meshes with topological
|
||||||
|
changes
|
||||||
|
|
||||||
|
* Internal combustion engine-specific dynamic mesh classes such as
|
||||||
|
two-stroke engine and various forms of 4-stroke and multi-valve
|
||||||
|
dynamic mesh classes
|
||||||
|
|
||||||
|
* Finite Area Method providing support for FVM-like discretisation on
|
||||||
|
a curved surface in 3-D, with examples of liquid film modelling
|
||||||
|
|
||||||
|
* Block-coupled matrix support, allowing fully implicit multi-equation
|
||||||
|
solution of NxN equation sets, with full parallelisation support.
|
||||||
|
First release of a block-AMG linear equation solver
|
||||||
|
|
||||||
|
* Fully implicit conjugate-coupled solution framework, allowing
|
||||||
|
implicit solution fo multiple equations over multiple meshes, with
|
||||||
|
parallelism
|
||||||
|
|
||||||
|
* Proper Orthogonal Decomposition data analysis tools, with
|
||||||
|
applications to FOAM field classes
|
||||||
|
|
||||||
|
* Equation reader classes and tutorials
|
||||||
|
|
||||||
|
* Multi-solver solution framework, allowing multiple field models to
|
||||||
|
be solved in a coupled manner
|
||||||
|
|
||||||
|
* A major contribution is solid mechanics modelling, including linear
|
||||||
|
and non-linear materials, contact, self-contact and friction, with
|
||||||
|
updated Lagrangian or absolute Lagrangian formulation. Solution of
|
||||||
|
damage models and crack propagation in complex materials via
|
||||||
|
topological changes
|
||||||
|
|
||||||
|
* CUDA solver release, provided in full source and as an example of
|
||||||
|
coupling external linear equation solvers with FOAM
|
||||||
|
|
||||||
|
* Library-level support for Immersed Boundary Method and Overset Mesh
|
||||||
|
|
||||||
|
* Major improvements in accuracy and stability of FVM discretisation
|
||||||
|
with options on convection and diffusion discretisation, deferred
|
||||||
|
correction or explicit schemes
|
||||||
|
|
||||||
|
* Algebraic multigrid solver framework
|
||||||
|
|
||||||
|
* 210 tutorials with automated run scripts
|
||||||
|
|
||||||
|
* Automatic test harness
|
||||||
|
|
||||||
|
* Approximately 6000 bug fixes in fundamental level libraries and
|
||||||
|
discretisation techniques
|
||||||
|
|
||||||
|
|
||||||
|
5 New features in foam-extend-3.1, since foam-extend-3.0
|
||||||
|
========================================================
|
||||||
|
|
||||||
|
The list of features is a result of the work of numerous
|
||||||
|
contributors. The maintainers of foam-extend would formally like to
|
||||||
|
thank them all.
|
||||||
|
|
||||||
|
Get a full log of the updates by (either):
|
||||||
|
,----
|
||||||
|
| user@machine> git log 3.0.. > commitLog
|
||||||
|
`----
|
||||||
|
,----
|
||||||
|
| user@machine> git log 3.0.. --oneline > commitLog
|
||||||
|
`----
|
||||||
|
,----
|
||||||
|
| user@machine> gitg 3.0..
|
||||||
|
`----
|
||||||
|
|
||||||
|
* Major new features:
|
||||||
|
- Pressure-based compressible turbo functionalities
|
||||||
|
- Pressure-based coupled solver (block-coupling p and U)
|
||||||
|
- Density-based coupled Roe flux solver dbnsFoam and dbnsTurbFoam
|
||||||
|
- major update and validation of mixing plane boundary
|
||||||
|
- full deploymenr of block matrix, including block-AMG solverse
|
||||||
|
- further parallel dynamic mesh capability: all topological changes
|
||||||
|
supported in parallel execution
|
||||||
|
- major upgrade of solid mechanics solvers
|
||||||
|
- support for CLang-based compilers
|
||||||
|
|
||||||
|
* Licence: GPLv3
|
||||||
|
|
||||||
|
* Installation:
|
||||||
|
- Updated and bug-fixed installation procedures
|
||||||
|
- Removed need for gmake link in Ubuntu
|
||||||
|
- Scripts for minimizing installation after compilation
|
||||||
|
- ThirdParty/Allclean alsoPackage - new option
|
||||||
|
- wcleanAllButLibBinLnInclude
|
||||||
|
- Fixed problem with ParaView reader for Ubuntu 14.04
|
||||||
|
- foamToTecplot360: building tecio doesn't require X.org development
|
||||||
|
files
|
||||||
|
|
||||||
|
* Solvers:
|
||||||
|
- compressible/dbnsFoam
|
||||||
|
- compressible/dbnsTurbFoam
|
||||||
|
- compressible/steadyCompressibleFoam
|
||||||
|
- compressible/steadyCompressibleMRFFoam
|
||||||
|
- compressible/steadyCompressibleSRFFoam
|
||||||
|
- coupled/pUCoupledFoam (incl. core library changes)
|
||||||
|
|
||||||
|
- Update and cleanup of solvers/solidMechanics
|
||||||
|
- Update for segregated FEM matrix,
|
||||||
|
solvers/solidMechanics/stressFemFoam
|
||||||
|
|
||||||
|
* Utilities:
|
||||||
|
- convertPhi (for steadyCompressible solvers)
|
||||||
|
- foamMeshToElmer, fluent3DMeshToElmer
|
||||||
|
- transformPoints -cylToCart "origin axis direction" - new option
|
||||||
|
- blockMesh syntax update (see commit a78b12074)
|
||||||
|
|
||||||
|
* Libraries:
|
||||||
|
- General:
|
||||||
|
- Added Gauss-Seidel as asymmetric solver
|
||||||
|
- Block matrix agglomeration (for pUCoupledFoam)
|
||||||
|
- Block AMG solver
|
||||||
|
- dbns library (src/dbns)
|
||||||
|
- Boundary conditions:
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFFlowRateInletVelocity
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFSurfaceNormalVelocity
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/SRFTotalTemperature
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/pulseFixedValue
|
||||||
|
- cfdTools/general/SRF/derivedFvPatchFields/waveTransmissiveInlet
|
||||||
|
- thermophysicalModels/basic/derivedFvPatchFields/isentropicTotalTemperature
|
||||||
|
- thermophysicalModels/basic/derivedFvPatchFields/temperatureDirectedInletOutletVelocity
|
||||||
|
- fvMesh/fvPatches/constraint/mixingPlane
|
||||||
|
- Turbulence modeling:
|
||||||
|
- Removed kOmegaSST_lowRe - use standard kOmegaSST
|
||||||
|
|
||||||
|
* Tutorial updates (settings, initial conditions, bug fixes etc.):
|
||||||
|
- incompressible/icoDyMFoam/mixerGgi
|
||||||
|
- incompressible/icoDyMFoam/movingConeMotion
|
||||||
|
- incompressible/icoDyMFoam/movingConeTopo
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/largeStrainCantileverBeam
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/nonLinBlock
|
||||||
|
- solidMechanics/elasticNonLinTLSolidFoam/rotateSphereTL
|
||||||
|
- solidMechanics/elasticThermalSolidFoam/hotCylinder
|
||||||
|
- solidMechanics/stressFemFoam/plateHole
|
||||||
|
- Many other updates due to blockMesh syntax update
|
||||||
|
|
||||||
|
* New tutorials:
|
||||||
|
- compressible/dbnsFoam/forwardStep
|
||||||
|
- compressible/dbnsFoam/shockTube
|
||||||
|
- compressible/dbnsTurbFoam/naca0012
|
||||||
|
- compressible/steadyCompressibleFoam/2bump
|
||||||
|
- compressible/steadyCompressibleFoam/bumpBlockMesh
|
||||||
|
- compressible/steadyCompressibleFoam/bumpFine05
|
||||||
|
- compressible/steadyCompressibleMRFFoam/bentRotorStator
|
||||||
|
- compressible/steadyCompressibleMRFFoam/simpleRotorStator
|
||||||
|
- compressible/steadyCompressibleSRFFoam/bentBlade
|
||||||
|
- compressible/steadyCompressibleSRFFoam/simpleBlade
|
||||||
|
- coupled/pUCoupledFoam/cavity
|
||||||
|
- incompressible/MRFSimpleFoam/axialTurbine_ggi
|
||||||
|
- incompressible/MRFSimpleFoam/axialTurbine_mixingPlane
|
||||||
|
- incompressible/pimpleDyMFoam/axialTurbine
|
||||||
|
- incompressible/pimpleDyMFoam/movingCylinders
|
||||||
|
- incompressible/pUCoupledFoam/backwardFacingStepLaminar
|
||||||
|
- incompressible/pUCoupledFoam/backwardFacingStepTurbulent
|
||||||
|
- incompressible/pUCoupledFoam/cavity
|
||||||
|
- incompressible/simpleSRFFoam/axialTurbine
|
||||||
|
- mesh/moveDynamicMesh/movingCylinders
|
||||||
|
|
||||||
|
* Bug fixes:
|
||||||
|
- Correct snGrad on coupled boundaries
|
||||||
|
- handling of static null pointers: safe to dereference
|
||||||
|
- LinearUpwind no longer hangs in parallel execution on empty
|
||||||
|
patches
|
||||||
|
- mesh update on parallel topo changes: zones before boundaries
|
||||||
|
- GGI interpolation updates on topologically changing meshes
|
||||||
|
- cell layering issues off complex surfaces
|
||||||
|
- template depth for block matrix support
|
||||||
|
- parallel efficiency improvements
|
||||||
|
|
||||||
|
|
||||||
|
6 Recent sucessful compilations and tests
|
||||||
|
=========================================
|
||||||
|
|
||||||
|
* Ubuntu 14.04:
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=736]
|
||||||
|
|
||||||
|
* Ubuntu 12.04:
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=738]
|
||||||
|
|
||||||
|
* CentOS 6.4:
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=734]
|
||||||
|
|
||||||
|
* Mac OX X 10.9.3 Maverick & CLang (XCode compiler):
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=733]
|
||||||
|
|
||||||
|
* Mac OX X & gcc (Macports)
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=737]
|
||||||
|
|
||||||
|
* Linux PPC ppc64 (Blue Gene)
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=742]
|
||||||
|
|
||||||
|
* Red Hat Enterprise Linux Server release 5.2 (Tikanga), Intel CC 11.1
|
||||||
|
|
||||||
|
[http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=743]
|
||||||
|
|
||||||
|
|
||||||
|
7 Reporting bugs
|
||||||
|
================
|
||||||
|
|
||||||
|
To report bugs, please use the MantisBT bugtracker at
|
||||||
|
[http://sourceforge.net/apps/mantisbt/openfoam-extend]
|
||||||
|
|
||||||
|
|
||||||
|
8 How to contribute
|
||||||
|
===================
|
||||||
|
|
||||||
|
All your contributions are highly welcome: New solvers, utilities and
|
||||||
|
models; bug fixes; documentation. The many ways of contributing and
|
||||||
|
the contribution process are described in detail in the file
|
||||||
|
"HowToContribute" and at
|
||||||
|
[http://sourceforge.net/p/openfoam-extend/wiki/Home/]
|
||||||
|
|
||||||
|
|
||||||
|
9 List of Contributors:
|
||||||
|
=======================
|
||||||
|
|
||||||
|
See file ListOfContributors
|
15
ThirdParty/AllClean
vendored
15
ThirdParty/AllClean
vendored
|
@ -27,6 +27,7 @@
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Cleanup script for ThirdParty packages.
|
# Cleanup script for ThirdParty packages.
|
||||||
|
# Add option alsoPackage to remove the installed files.
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2013)
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
@ -38,7 +39,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -50,22 +51,22 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Cleaning stage 1
|
# Cleaning stage 1
|
||||||
./AllClean.stage1
|
./AllClean.stage1 $1
|
||||||
|
|
||||||
# Cleaning stage 2
|
# Cleaning stage 2
|
||||||
./AllClean.stage2
|
./AllClean.stage2 $1
|
||||||
|
|
||||||
# Cleaning stage 3
|
# Cleaning stage 3
|
||||||
./AllClean.stage3
|
./AllClean.stage3 $1
|
||||||
|
|
||||||
# Cleaning stage 4
|
# Cleaning stage 4
|
||||||
./AllClean.stage4
|
./AllClean.stage4 $1
|
||||||
|
|
||||||
# Cleaning stage 5
|
# Cleaning stage 5
|
||||||
./AllClean.stage5
|
./AllClean.stage5 $1
|
||||||
|
|
||||||
# Cleaning stage 6
|
# Cleaning stage 6
|
||||||
./AllClean.stage6
|
./AllClean.stage6 $1
|
||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo Done ThirdParty Allclean
|
echo Done ThirdParty Allclean
|
||||||
|
|
23
ThirdParty/AllClean.stage1
vendored
23
ThirdParty/AllClean.stage1
vendored
|
@ -27,6 +27,7 @@
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Cleaning script for ThirdParty packages: Stage1
|
# Cleaning script for ThirdParty packages: Stage1
|
||||||
|
# Add option alsoPackage to remove the installed files.
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2013)
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
@ -38,7 +39,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -50,32 +51,32 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# gmp
|
# gmp
|
||||||
uninstallPackage gmp-5.0.1
|
uninstallPackage gmp-5.0.1 $1
|
||||||
|
|
||||||
# mpfr
|
# mpfr
|
||||||
uninstallPackage mpfr-3.0.1
|
uninstallPackage mpfr-3.0.1 $1
|
||||||
|
|
||||||
# gcc
|
# gcc
|
||||||
uninstallPackage gcc-4.4.5
|
uninstallPackage gcc-4.4.5 $1
|
||||||
uninstallPackage gcc-4.5.1
|
uninstallPackage gcc-4.5.1 $1
|
||||||
|
|
||||||
# mpc
|
# mpc
|
||||||
uninstallPackage mpc-0.8.2
|
uninstallPackage mpc-0.8.2 $1
|
||||||
|
|
||||||
#Python
|
#Python
|
||||||
uninstallPackage Python-2.7
|
uninstallPackage Python-2.7 $1
|
||||||
|
|
||||||
# m4
|
# m4
|
||||||
uninstallPackage m4-1.4.16
|
uninstallPackage m4-1.4.16 $1
|
||||||
|
|
||||||
# bison
|
# bison
|
||||||
uninstallPackage bison-2.4.3
|
uninstallPackage bison-2.4.3 $1
|
||||||
|
|
||||||
# flex
|
# flex
|
||||||
uninstallPackage flex-2.5.35
|
uninstallPackage flex-2.5.35 $1
|
||||||
|
|
||||||
# cmake
|
# cmake
|
||||||
uninstallPackage cmake-2.8.11
|
uninstallPackage cmake-2.8.12 $1
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
13
ThirdParty/AllClean.stage2
vendored
13
ThirdParty/AllClean.stage2
vendored
|
@ -30,6 +30,7 @@
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2013)
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
# Add option alsoPackage to remove the installed files.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# run from third-party directory only
|
# run from third-party directory only
|
||||||
|
@ -38,7 +39,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -50,11 +51,11 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# openmpi
|
# openmpi
|
||||||
uninstallPackage openmpi-1.4.1
|
uninstallPackage openmpi-1.4.1 $1
|
||||||
uninstallPackage openmpi-1.4.3
|
uninstallPackage openmpi-1.4.3 $1
|
||||||
uninstallPackage openmpi-1.5
|
uninstallPackage openmpi-1.5 $1
|
||||||
uninstallPackage openmpi-1.6.3
|
uninstallPackage openmpi-1.6.3 $1
|
||||||
uninstallPackage openmpi-1.6.5
|
uninstallPackage openmpi-1.6.5 $1
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo ========================================
|
echo ========================================
|
||||||
|
|
22
ThirdParty/AllClean.stage3
vendored
22
ThirdParty/AllClean.stage3
vendored
|
@ -27,6 +27,7 @@
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Cleaning script for ThirdParty packages: Stage3
|
# Cleaning script for ThirdParty packages: Stage3
|
||||||
|
# Add option alsoPackage to remove the installed files.
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2013)
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
@ -38,7 +39,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -50,31 +51,32 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# metis
|
# metis
|
||||||
uninstallPackage metis-5.0pre2
|
uninstallPackage metis-5.1.0 $1
|
||||||
|
|
||||||
# ParMGridGen
|
# ParMGridGen
|
||||||
uninstallPackage ParMGridGen-1.0
|
uninstallPackage ParMGridGen-1.0 $1
|
||||||
|
|
||||||
# Libccmio
|
# Libccmio
|
||||||
uninstallPackage libccmio-2.6.1
|
uninstallPackage libccmio-2.6.1 $1
|
||||||
|
|
||||||
# Mesquite
|
# Mesquite
|
||||||
uninstallPackage mesquite-2.1.2
|
uninstallPackage mesquite-2.1.2 $1
|
||||||
|
|
||||||
# Scotch/PtScotch
|
# Scotch/PtScotch
|
||||||
uninstallPackage scotch-5.1.10b
|
uninstallPackage scotch-6.0.0 $1
|
||||||
|
uninstallPackage scotch_6.0.0 $1
|
||||||
|
|
||||||
# ParMertis
|
# ParMertis
|
||||||
uninstallPackage ParMetis-3.1.1
|
uninstallPackage parmetis-4.0.3 $1
|
||||||
|
|
||||||
# Zoltan
|
# Zoltan
|
||||||
# uninstallPackage zoltan-3.6
|
# uninstallPackage zoltan-3.6 $1
|
||||||
|
|
||||||
# PyFoam
|
# PyFoam
|
||||||
uninstallPackage PyFoam-0.6.1
|
uninstallPackage PyFoam-0.6.1 $1
|
||||||
|
|
||||||
# hwloc
|
# hwloc
|
||||||
uninstallPackage hwloc-1.7.1
|
uninstallPackage hwloc-1.7.2 $1
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo ========================================
|
echo ========================================
|
||||||
|
|
7
ThirdParty/AllClean.stage4
vendored
7
ThirdParty/AllClean.stage4
vendored
|
@ -27,6 +27,7 @@
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Cleaning script for ThirdParty packages: Stage4
|
# Cleaning script for ThirdParty packages: Stage4
|
||||||
|
# Add option alsoPackage to remove the installed files.
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2013)
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
@ -38,7 +39,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -50,10 +51,10 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# QT
|
# QT
|
||||||
uninstallPackage qt-everywhere-opensource-src-4.7.4
|
uninstallPackage qt-everywhere-opensource-src-4.7.4 $1
|
||||||
|
|
||||||
# ParaView
|
# ParaView
|
||||||
uninstallPackage ParaView-3.12.0
|
uninstallPackage ParaView-3.12.0 $1
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo ========================================
|
echo ========================================
|
||||||
|
|
2
ThirdParty/AllClean.stage5
vendored
2
ThirdParty/AllClean.stage5
vendored
|
@ -38,7 +38,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
|
2
ThirdParty/AllClean.stage6
vendored
2
ThirdParty/AllClean.stage6
vendored
|
@ -38,7 +38,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
|
4
ThirdParty/AllMake
vendored
4
ThirdParty/AllMake
vendored
|
@ -42,7 +42,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -73,7 +73,7 @@ echo
|
||||||
|
|
||||||
# Running stage 5
|
# Running stage 5
|
||||||
# This stage depends on a properly compiled installation
|
# This stage depends on a properly compiled installation
|
||||||
# of OpenFOAM. On a brand new installation of OpenFOAM-1.6-ext,
|
# of foam-extend. On a brand new installation of foam-extend-3.0
|
||||||
# this stage should be called last in your compilation process
|
# this stage should be called last in your compilation process
|
||||||
./AllMake.stage5
|
./AllMake.stage5
|
||||||
|
|
||||||
|
|
4
ThirdParty/AllMake.post
vendored
4
ThirdParty/AllMake.post
vendored
|
@ -43,7 +43,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -56,7 +56,7 @@ echo
|
||||||
|
|
||||||
# Running stage 5
|
# Running stage 5
|
||||||
# This stage depends on a properly compiled installation
|
# This stage depends on a properly compiled installation
|
||||||
# of OpenFOAM. On a brand new installation of OpenFOAM-1.6-ext,
|
# of foam-extend. On a brand new installation of foam-extend-3.0,
|
||||||
# this stage should be called last in your compilation process
|
# this stage should be called last in your compilation process
|
||||||
./AllMake.stage5
|
./AllMake.stage5
|
||||||
|
|
||||||
|
|
2
ThirdParty/AllMake.pre
vendored
2
ThirdParty/AllMake.pre
vendored
|
@ -43,7 +43,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
|
2
ThirdParty/AllMake.stage0
vendored
2
ThirdParty/AllMake.stage0
vendored
|
@ -46,7 +46,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
ThirdParty/AllMake.stage1
vendored
10
ThirdParty/AllMake.stage1
vendored
|
@ -31,13 +31,13 @@
|
||||||
# Compilers and basic tools.
|
# Compilers and basic tools.
|
||||||
#
|
#
|
||||||
# Once this stage is built, you would normally re-initialize your
|
# Once this stage is built, you would normally re-initialize your
|
||||||
# OpenFOAM environment in order to use the new compilers and tools
|
# foam-extend environment in order to use the new compilers and tools
|
||||||
#
|
#
|
||||||
# NOTE: This stage is optional. Use it only if you want to override
|
# NOTE: This stage is optional. Use it only if you want to override
|
||||||
# your system pre-installed compilers and tools
|
# your system pre-installed compilers and tools
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2010)
|
# Martin Beaudoin, Hydro-Quebec, (2010)
|
||||||
|
@ -49,7 +49,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -87,13 +87,13 @@ echo
|
||||||
#( rpm_make -p m4-1.4.16 -s m4-1.4.16.spec -u http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz )
|
#( rpm_make -p m4-1.4.16 -s m4-1.4.16.spec -u http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz )
|
||||||
|
|
||||||
# bison
|
# bison
|
||||||
#( rpm_make -p bison-2.4.3 -s bison-2.4.3.spec -u http://ftp.gnu.org/gnu/bison/bison-2.4.3.tar.gz )
|
( rpm_make -p bison-2.7 -s bison-2.7.spec -u http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz )
|
||||||
|
|
||||||
# flex
|
# flex
|
||||||
#( rpm_make -p flex-2.5.35 -s flex-2.5.35.spec -u http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz )
|
#( rpm_make -p flex-2.5.35 -s flex-2.5.35.spec -u http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.gz )
|
||||||
|
|
||||||
# cmake
|
# cmake
|
||||||
( rpm_make -p cmake-2.8.12 -s cmake-2.8.12.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz )
|
#( rpm_make -p cmake-2.8.12 -s cmake-2.8.12.spec -u http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz )
|
||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo Done ThirdParty AllMake: Stage1
|
echo Done ThirdParty AllMake: Stage1
|
||||||
|
|
8
ThirdParty/AllMake.stage2
vendored
8
ThirdParty/AllMake.stage2
vendored
|
@ -31,14 +31,14 @@
|
||||||
# Communication libraries
|
# Communication libraries
|
||||||
#
|
#
|
||||||
# Once this stage is built, you would normally re-initialize your
|
# Once this stage is built, you would normally re-initialize your
|
||||||
# OpenFOAM environment in order redirect OpenFOAM toward the appropriate
|
# foam-extend environment in order redirect foam-extend toward the
|
||||||
# communication library
|
# appropriate communication library
|
||||||
#
|
#
|
||||||
# NOTE: This stage is optional. Use it only if you want to override
|
# NOTE: This stage is optional. Use it only if you want to override
|
||||||
# your system communication libraries
|
# your system communication libraries
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
# 2: AllMake.stage1 if you are overriding your system compiler
|
# 2: AllMake.stage1 if you are overriding your system compiler
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
|
@ -51,7 +51,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
|
10
ThirdParty/AllMake.stage3
vendored
10
ThirdParty/AllMake.stage3
vendored
|
@ -31,7 +31,7 @@
|
||||||
# The ThirdParty libraries
|
# The ThirdParty libraries
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
# 2: AllMake.stage1 if you are overriding your system compiler
|
# 2: AllMake.stage1 if you are overriding your system compiler
|
||||||
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
||||||
#
|
#
|
||||||
|
@ -45,7 +45,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
@ -131,7 +131,9 @@ if [ -z "$PYFOAM_SYSTEM" ]
|
||||||
then
|
then
|
||||||
# ( rpm_make -p PyFoam-0.5.6 -s PyFoam-0.5.6.spec -u http://openfoamwiki.net/images/b/b8/PyFoam-0.5.6.tar.gz -n PyFoam-0.5.6-1.noarch -a noarch)
|
# ( rpm_make -p PyFoam-0.5.6 -s PyFoam-0.5.6.spec -u http://openfoamwiki.net/images/b/b8/PyFoam-0.5.6.tar.gz -n PyFoam-0.5.6-1.noarch -a noarch)
|
||||||
# ( rpm_make -p PyFoam-0.5.7 -s PyFoam-0.5.7.spec -u http://openfoamwiki.net/images/d/dc/PyFoam-0.5.7.tar.gz -n PyFoam-0.5.7-1.noarch -a noarch)
|
# ( rpm_make -p PyFoam-0.5.7 -s PyFoam-0.5.7.spec -u http://openfoamwiki.net/images/d/dc/PyFoam-0.5.7.tar.gz -n PyFoam-0.5.7-1.noarch -a noarch)
|
||||||
( rpm_make -p PyFoam-0.6.1 -s PyFoam-0.6.1.spec -u http://openfoamwiki.net/images/3/33/PyFoam-0.6.1.tar.gz -n PyFoam-0.6.1-1.noarch -a noarch)
|
# ( rpm_make -p PyFoam-0.6.1 -s PyFoam-0.6.1.spec -u http://openfoamwiki.net/images/3/33/PyFoam-0.6.1.tar.gz -n PyFoam-0.6.1-1.noarch -a noarch)
|
||||||
|
# ( rpm_make -p PyFoam-0.6.2 -s PyFoam-0.6.2.spec -u http://openfoamwiki.net/images/8/89/PyFoam-0.6.2.tar.gz -n PyFoam-0.6.2-1.noarch -a noarch)
|
||||||
|
( rpm_make -p PyFoam-0.6.3 -s PyFoam-0.6.3.spec -u http://openfoamwiki.net/images/e/e3/PyFoam-0.6.3-rc.tar.gz -n PyFoam-0.6.3-1.noarch -a noarch)
|
||||||
else
|
else
|
||||||
echo "Using system installed PyFoam"
|
echo "Using system installed PyFoam"
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -152,5 +154,3 @@ echo ========================================
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
||||||
|
|
||||||
|
|
8
ThirdParty/AllMake.stage4
vendored
8
ThirdParty/AllMake.stage4
vendored
|
@ -26,12 +26,12 @@
|
||||||
# AllMake.stage4
|
# AllMake.stage4
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Build script for ThirdParty packages: Stage3
|
# Build script for ThirdParty packages: Stage4
|
||||||
#
|
#
|
||||||
# The OpenFOAM viewers
|
# The foam-extend viewers
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
# 2: AllMake.stage1 if you are overriding your system compiler
|
# 2: AllMake.stage1 if you are overriding your system compiler
|
||||||
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
# 3: AllMake.stage2 if you are overriding your system comm. libraries
|
||||||
#
|
#
|
||||||
|
@ -45,7 +45,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
. tools/makeThirdPartyFunctionsForRPM
|
. tools/makeThirdPartyFunctionsForRPM
|
||||||
|
|
58
ThirdParty/AllMake.stage5
vendored
58
ThirdParty/AllMake.stage5
vendored
|
@ -30,9 +30,9 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
# 2: OpenFOAM must already been compiled because swak4Foam depends on
|
# 2: foam-extend must already been compiled because swak4Foam depends on
|
||||||
# OpenFOAM include files and libraries
|
# foam-extend include files and libraries
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2012)
|
# Martin Beaudoin, Hydro-Quebec, (2012)
|
||||||
|
@ -44,7 +44,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,12 +55,12 @@ echo "Starting ThirdParty AllMake: Stage5 "
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# swak4Foam - Version 0.3.0
|
# swak4Foam - Version 0.3.1
|
||||||
# In fact, we are basically tracking the head branch from the Mercurial repository
|
# In fact, we are basically tracking the head branch from the Mercurial repository
|
||||||
# which is also replicated under the Breeder_2.0 section of the Subversion repository
|
# which is also replicated under the Breeder_2.0 section of the Subversion repository
|
||||||
#
|
#
|
||||||
|
|
||||||
SWAK_RELEASE_VERSION=0.3.0
|
SWAK_RELEASE_VERSION=0.3.1
|
||||||
|
|
||||||
if [ -z "$SWAK4FOAM_SYSTEM" ]
|
if [ -z "$SWAK4FOAM_SYSTEM" ]
|
||||||
then
|
then
|
||||||
|
@ -70,42 +70,40 @@ then
|
||||||
# centralized under the same scratch area
|
# centralized under the same scratch area
|
||||||
if [ ! -e ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION ];
|
if [ ! -e ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION ];
|
||||||
then
|
then
|
||||||
echo "Checking for a Mercurial client: hg"
|
echo "Checking for a Mercurial client: hg"
|
||||||
command -v hg >/dev/null
|
command -v hg >/dev/null
|
||||||
if [ $? -eq 0 ];
|
if [ $? -eq 0 ];
|
||||||
then
|
then
|
||||||
echo "Using Mercurial/hg to download the source code for swak4Foam"
|
echo "Using Mercurial/hg to download the source code for swak4Foam"
|
||||||
(
|
(
|
||||||
cd ./rpmBuild/BUILD;
|
cd ./rpmBuild/BUILD;
|
||||||
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION;
|
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION;
|
||||||
cd swak4Foam-$SWAK_RELEASE_VERSION;
|
cd swak4Foam-$SWAK_RELEASE_VERSION;
|
||||||
hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
echo "Warning: Mercurial/hg is not installed. Switching to an alternate Subversion repository"
|
echo "Warning: Mercurial/hg is not installed. Switching to an alternate Subversion repository"
|
||||||
command -v svn >/dev/null
|
command -v svn >/dev/null
|
||||||
if [ $? -eq 0 ];
|
if [ $? -eq 0 ];
|
||||||
then
|
then
|
||||||
echo "Using Subversion/svn to download the source code for swak4Foam"
|
echo "Using Subversion/svn to download the source code for swak4Foam"
|
||||||
echo "Error: current Subversion-version does not support foam3. Please install mercurial"
|
(cd ./rpmBuild/BUILD; svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
|
||||||
exit -1
|
|
||||||
(cd ./rpmBuild/BUILD; svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.7/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
|
|
||||||
else
|
else
|
||||||
echo "Error: Please install either a Mercurial or Subversion client in order to download the source code for swak4Foam"
|
echo "Error: Please install either a Mercurial or Subversion client in order to download the source code for swak4Foam"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# We move the compilation results directly to $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN
|
# We move the compilation results directly to $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN
|
||||||
# If you prefer to keep the libraries and tools under $FOAM_USER_LIBBIN and $FOAM_USER_APPBIN, simply
|
# If you prefer to keep the libraries and tools under $FOAM_USER_LIBBIN and $FOAM_USER_APPBIN, simply
|
||||||
# comment out the next two lines
|
# comment out the next two lines
|
||||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name files | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name files | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name options | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name options | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||||
|
|
||||||
# We recompile everything
|
# We recompile everything
|
||||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; ./Allwclean; ./Allwmake)
|
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; ./Allwclean; ./Allwmake)
|
||||||
else
|
else
|
||||||
echo "The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION"
|
echo "The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION"
|
||||||
echo "Please remove this directory if you want to refresh your installation of swak4Foam"
|
echo "Please remove this directory if you want to refresh your installation of swak4Foam"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
|
|
4
ThirdParty/AllMake.stage6
vendored
4
ThirdParty/AllMake.stage6
vendored
|
@ -30,7 +30,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# 1: Your OpenFOAM environment must be properly initialized
|
# 1: Your foam-extend environment must be properly initialized
|
||||||
#
|
#
|
||||||
# Author:
|
# Author:
|
||||||
# Martin Beaudoin, Hydro-Quebec, (2012)
|
# Martin Beaudoin, Hydro-Quebec, (2012)
|
||||||
|
@ -42,7 +42,7 @@ cd ${0%/*} || exit 1
|
||||||
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
|
||||||
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
|
||||||
echo " The environment variables are inconsistent with the installation."
|
echo " The environment variables are inconsistent with the installation."
|
||||||
echo " Check the OpenFOAM entries in your dot-files and source them."
|
echo " Check the foam-extend entries in your dot-files and source them."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,8 @@ if [ -z "$PYFOAM_DIR" ]
|
||||||
then
|
then
|
||||||
echo "Error: Missing environment variable \$PYFOAM_DIR."
|
echo "Error: Missing environment variable \$PYFOAM_DIR."
|
||||||
echo " Please execute the script ThirdParty/AllMake.stage5 to install PyFoam."
|
echo " Please execute the script ThirdParty/AllMake.stage5 to install PyFoam."
|
||||||
echo " Then, make sure to freshen your OpenFOAM environment by sourcing your main"
|
echo " Then, make sure to freshen your foam-extend environment by sourcing your main"
|
||||||
echo " OpenFOAM configuration file."
|
echo " foam-extend configuration file."
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
21
ThirdParty/README.ThirdParty
vendored
21
ThirdParty/README.ThirdParty
vendored
|
@ -2,7 +2,7 @@ A new design for the ThirdParty packages compilation and installation process:
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
The main purpose of this new development is to build a complete ThirParty
|
The main purpose of this new development is to build a complete ThirParty
|
||||||
packages set for OpenFOAM 1.6-ext using only the original package source
|
packages set for foam-extend-3.1 using only the original package source
|
||||||
tarball and some patch files (when necessary).
|
tarball and some patch files (when necessary).
|
||||||
|
|
||||||
A useful by-product of this development is also to provide some kind of
|
A useful by-product of this development is also to provide some kind of
|
||||||
|
@ -87,16 +87,16 @@ and .csh files one needs to source in order to properly initialize the PATH and
|
||||||
LD_LIBRARY_PATH environment variables for running the packages.
|
LD_LIBRARY_PATH environment variables for running the packages.
|
||||||
|
|
||||||
Some packages will also create environments variables necessary for the
|
Some packages will also create environments variables necessary for the
|
||||||
compilation of some OpenFOAM libraries.
|
compilation of some foam-extend libraries.
|
||||||
|
|
||||||
The scripts AllMake.stage[1-4] are taking care of refreshing the environment
|
The scripts AllMake.stage[1-4] are taking care of refreshing the environment
|
||||||
variable after the installation of every single package, so you will not need to
|
variable after the installation of every single package, so you will not need to
|
||||||
manually refresh your OpenFOAM environment yourself when building individual
|
manually refresh your foam-extend environment yourself when building individual
|
||||||
ThirdParty packages through the AllMake.stage[1-4] scripts.
|
ThirdParty packages through the AllMake.stage[1-4] scripts.
|
||||||
|
|
||||||
The main Allwmake script for the compilation of OpenFOAM will also take care of
|
The main Allwmake script for the compilation of foam-extend will also take care of
|
||||||
refreshing the environment variable before moving on to the compilation of the
|
refreshing the environment variable before moving on to the compilation of the
|
||||||
main OpenFOAM libraries and applications.
|
main foam-extend libraries and applications.
|
||||||
|
|
||||||
However, if you decide to compile the libraries and/or applications manually, or
|
However, if you decide to compile the libraries and/or applications manually, or
|
||||||
through the src/Allwmake or applications/Allwmake scripts, YOU MUST MAKE SURE
|
through the src/Allwmake or applications/Allwmake scripts, YOU MUST MAKE SURE
|
||||||
|
@ -136,7 +136,7 @@ through when starting the compilation from scratch:
|
||||||
- The .rpm files will be located under the directory
|
- The .rpm files will be located under the directory
|
||||||
$WM_THIRD_PARTY_DIR/rpmBuild/RPMS
|
$WM_THIRD_PARTY_DIR/rpmBuild/RPMS
|
||||||
|
|
||||||
- The .tgz files will be located under the directory
|
- The .tgz files will be located under the directory
|
||||||
$WM_THIRD_PARTY_DIR/rpmBuild/TGZS
|
$WM_THIRD_PARTY_DIR/rpmBuild/TGZS
|
||||||
|
|
||||||
e: The default installation root directory is "$WM_THIRD_PARTY_DIR".
|
e: The default installation root directory is "$WM_THIRD_PARTY_DIR".
|
||||||
|
@ -158,7 +158,7 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
||||||
this feature has ever been used by anybody. So please feel free to skip
|
this feature has ever been used by anybody. So please feel free to skip
|
||||||
this section if you don't need to relocate your ThirdParty packages
|
this section if you don't need to relocate your ThirdParty packages
|
||||||
installation directory, which you should not have do on most
|
installation directory, which you should not have do on most
|
||||||
installation anyway.
|
installation anyway.
|
||||||
|
|
||||||
a: All the generated RPMs can be relocated, meaning that you can override
|
a: All the generated RPMs can be relocated, meaning that you can override
|
||||||
the hard-coded root installation directory when using those RPMs for
|
the hard-coded root installation directory when using those RPMs for
|
||||||
|
@ -169,7 +169,7 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
||||||
of my machines, I will get:
|
of my machines, I will get:
|
||||||
|
|
||||||
> rpm -qip cmake-2.8.3-darwinIntelGccDPOpt.i386.rpm| grep Relocations
|
> rpm -qip cmake-2.8.3-darwinIntelGccDPOpt.i386.rpm| grep Relocations
|
||||||
Name : cmake Relocations: /home/beaudoin/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty
|
Name : cmake Relocations: /home/beaudoin/foam/foam-extend-3.1/ThirdParty
|
||||||
|
|
||||||
The Relocations path is the actual location pointed by the
|
The Relocations path is the actual location pointed by the
|
||||||
$WM_THIRD_PARTY_DIR on my virtual machine when I generated the RPM. It is
|
$WM_THIRD_PARTY_DIR on my virtual machine when I generated the RPM. It is
|
||||||
|
@ -186,7 +186,7 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
||||||
this:
|
this:
|
||||||
|
|
||||||
rpm -ivh ./cmake-2.8.3-darwinIntelGccDPOpt.i386.rpm \
|
rpm -ivh ./cmake-2.8.3-darwinIntelGccDPOpt.i386.rpm \
|
||||||
--relocate /home/beaudoin/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty=/tmp/someDir
|
--relocate /home/beaudoin/foam/foam-extend-3.1/ThirdParty=/tmp/someDir
|
||||||
|
|
||||||
Even better, you can dig down the hard-coded path even deeper in order to
|
Even better, you can dig down the hard-coded path even deeper in order to
|
||||||
relocate the whole installation directory, down to the last hard-coded
|
relocate the whole installation directory, down to the last hard-coded
|
||||||
|
@ -238,7 +238,7 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
Please report ThirdParty packages related bugs to the Bug tracking system
|
Please report ThirdParty packages related bugs to the Bug tracking system
|
||||||
for OpenFOAM-1.6-ext.
|
for foam-extend-3.1
|
||||||
http://sourceforge.net/apps/mantisbt/openfoam-extend/main_page.php
|
http://sourceforge.net/apps/mantisbt/openfoam-extend/main_page.php
|
||||||
|
|
||||||
|
|
||||||
|
@ -246,3 +246,4 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
||||||
Martin Beaudoin
|
Martin Beaudoin
|
||||||
Rev 0: 05/2011
|
Rev 0: 05/2011
|
||||||
Rev 1: 08/2011
|
Rev 1: 08/2011
|
||||||
|
Rev 2: 05/2014
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
diff -ruN ParMGridGen-1.0_orig/Makefile.in ParMGridGen-1.0/Makefile.in
|
diff -ruN ParMGridGen-1.0_orig/Makefile.in ParMGridGen-1.0/Makefile.in
|
||||||
--- ParMGridGen-1.0_orig/Makefile.in 2001-12-04 19:30:33.000000000 -0500
|
--- ParMGridGen-1.0_orig/Makefile.in 2001-12-04 16:30:33.000000000 -0800
|
||||||
+++ ParMGridGen-1.0/Makefile.in 2010-10-31 16:18:41.000000000 -0400
|
+++ ParMGridGen-1.0/Makefile.in 2013-08-22 20:07:33.491171127 -0700
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Which make to use
|
||||||
|
-make = gmake
|
||||||
|
+make = make
|
||||||
|
|
||||||
|
# Which compiler to use
|
||||||
|
# CC is the compiler for the serial code
|
||||||
@@ -12,7 +12,7 @@
|
@@ -12,7 +12,7 @@
|
||||||
OPTFLAGS = -O3
|
OPTFLAGS = -O3
|
||||||
|
|
||||||
|
@ -41,8 +49,8 @@ diff -ruN ParMGridGen-1.0_orig/Makefile.in ParMGridGen-1.0/Makefile.in
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
diff -ruN ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile ParMGridGen-1.0/MGridGen/IMlib/Makefile
|
diff -ruN ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile ParMGridGen-1.0/MGridGen/IMlib/Makefile
|
||||||
--- ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile 2001-12-04 17:46:56.000000000 -0500
|
--- ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile 2001-12-04 14:46:56.000000000 -0800
|
||||||
+++ ParMGridGen-1.0/MGridGen/IMlib/Makefile 2010-10-31 16:16:54.000000000 -0400
|
+++ ParMGridGen-1.0/MGridGen/IMlib/Makefile 2013-08-22 20:03:32.925673296 -0700
|
||||||
@@ -33,7 +33,7 @@
|
@@ -33,7 +33,7 @@
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $*.c
|
$(CC) $(CFLAGS) -c $*.c
|
||||||
|
@ -59,8 +67,8 @@ diff -ruN ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile ParMGridGen-1.0/MGridGen/
|
||||||
- rm -f *.o ; rm -f ./libIMlib.a
|
- rm -f *.o ; rm -f ./libIMlib.a
|
||||||
+ rm -f *.o ; rm -f ./libIMlib.$(LIBEXT)
|
+ rm -f *.o ; rm -f ./libIMlib.$(LIBEXT)
|
||||||
diff -ruN ParMGridGen-1.0_orig/MGridGen/Lib/Makefile ParMGridGen-1.0/MGridGen/Lib/Makefile
|
diff -ruN ParMGridGen-1.0_orig/MGridGen/Lib/Makefile ParMGridGen-1.0/MGridGen/Lib/Makefile
|
||||||
--- ParMGridGen-1.0_orig/MGridGen/Lib/Makefile 2001-12-04 18:01:00.000000000 -0500
|
--- ParMGridGen-1.0_orig/MGridGen/Lib/Makefile 2001-12-04 15:01:00.000000000 -0800
|
||||||
+++ ParMGridGen-1.0/MGridGen/Lib/Makefile 2010-10-31 16:16:54.000000000 -0400
|
+++ ParMGridGen-1.0/MGridGen/Lib/Makefile 2013-08-22 20:03:32.925673296 -0700
|
||||||
@@ -22,7 +22,7 @@
|
@@ -22,7 +22,7 @@
|
||||||
INCLUDES = -I./ -I$(IMLIBDIR) $(INCDIR)
|
INCLUDES = -I./ -I$(IMLIBDIR) $(INCDIR)
|
||||||
CFLAGS = $(COPTIONS) $(OPTFLAGS) $(DEBUGFLAGS) $(INCLUDES)
|
CFLAGS = $(COPTIONS) $(OPTFLAGS) $(DEBUGFLAGS) $(INCLUDES)
|
||||||
|
@ -86,8 +94,8 @@ diff -ruN ParMGridGen-1.0_orig/MGridGen/Lib/Makefile ParMGridGen-1.0/MGridGen/Li
|
||||||
- rm -f *.o ; rm -f ../../libmgrid.a
|
- rm -f *.o ; rm -f ../../libmgrid.a
|
||||||
+ rm -f *.o ; rm -f ./libMGridGen.$(LIBEXT)
|
+ rm -f *.o ; rm -f ./libMGridGen.$(LIBEXT)
|
||||||
diff -ruN ParMGridGen-1.0_orig/MGridGen/Programs/Makefile ParMGridGen-1.0/MGridGen/Programs/Makefile
|
diff -ruN ParMGridGen-1.0_orig/MGridGen/Programs/Makefile ParMGridGen-1.0/MGridGen/Programs/Makefile
|
||||||
--- ParMGridGen-1.0_orig/MGridGen/Programs/Makefile 2001-12-04 18:02:26.000000000 -0500
|
--- ParMGridGen-1.0_orig/MGridGen/Programs/Makefile 2001-12-04 15:02:26.000000000 -0800
|
||||||
+++ ParMGridGen-1.0/MGridGen/Programs/Makefile 2010-10-31 16:16:54.000000000 -0400
|
+++ ParMGridGen-1.0/MGridGen/Programs/Makefile 2013-08-22 20:03:32.925673296 -0700
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
include ../../Makefile.in
|
include ../../Makefile.in
|
||||||
|
|
||||||
|
|
|
@ -115,13 +115,13 @@ Patch1: ParMGridGen-1.0.patch
|
||||||
cp ./MGridGen/IMlib/libIMlib.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp ./MGridGen/IMlib/libIMlib.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp ./MGridGen/Lib/libMGridGen.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp ./MGridGen/Lib/libMGridGen.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -139,7 +139,7 @@ export PARMGRIDGEN_INCLUDE_DIR=\$PARMGRIDGEN_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -115,13 +115,13 @@ Patch1: ParMetis-3.1.1.patch
|
||||||
cp METISLib/libmetis-parmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp METISLib/libmetis-parmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp ParMETISLib/libparmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp ParMETISLib/libparmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -140,7 +140,7 @@ export PARMETIS_INCLUDE_DIR=\$PARMETIS_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -195,13 +195,13 @@ Patch0: ParaView-3.10.1.patch_darwin
|
||||||
cd buildObj
|
cd buildObj
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -233,7 +233,7 @@ export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -202,13 +202,13 @@ Patch1: paraview-gcc47.patch
|
||||||
cd buildObj
|
cd buildObj
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -240,7 +240,7 @@ export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -212,13 +212,13 @@ Patch3: ParaView-3.14.1.patch_darwin
|
||||||
cd buildObj
|
cd buildObj
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -250,7 +250,7 @@ export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -189,13 +189,13 @@ Patch0: ParaView-3.8.1.patch_darwin
|
||||||
cd buildObj
|
cd buildObj
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -227,7 +227,7 @@ export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -190,13 +190,13 @@ Patch0: ParaView-4.0.1.patch_darwin
|
||||||
cd buildObj
|
cd buildObj
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -228,7 +228,7 @@ export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview_plugins
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.5.6.spec
vendored
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.5.6.spec
vendored
|
@ -95,13 +95,13 @@ Group: Development/Tools
|
||||||
|
|
||||||
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -117,7 +117,7 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -144,7 +144,7 @@ DOT_CSH_EOF
|
||||||
|
|
||||||
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -159,11 +159,11 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_HARDCODED_SH_EOF
|
DOT_HARDCODED_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.5.7.spec
vendored
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.5.7.spec
vendored
|
@ -95,13 +95,13 @@ Group: Development/Tools
|
||||||
|
|
||||||
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -117,7 +117,7 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -144,7 +144,7 @@ DOT_CSH_EOF
|
||||||
|
|
||||||
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -159,11 +159,11 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_HARDCODED_SH_EOF
|
DOT_HARDCODED_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.1.spec
vendored
14
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.1.spec
vendored
|
@ -95,13 +95,13 @@ Group: Development/Tools
|
||||||
|
|
||||||
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -117,7 +117,7 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -144,7 +144,7 @@ DOT_CSH_EOF
|
||||||
|
|
||||||
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
@ -159,11 +159,11 @@ export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHON
|
||||||
DOT_HARDCODED_SH_EOF
|
DOT_HARDCODED_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
||||||
# In this version of the configuration script, the paths are hardcoded,
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
# which makes it easier to load PyFoam without the OpenFOAM environment
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
# variables
|
# variables
|
||||||
#
|
#
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
201
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.2.spec
vendored
Normal file
201
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.2.spec
vendored
Normal file
|
@ -0,0 +1,201 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend 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.
|
||||||
|
#
|
||||||
|
# foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Script
|
||||||
|
# RPM spec file for PyFoam-0.6.2
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# RPM spec file for PyFoam version 0.6.2
|
||||||
|
#
|
||||||
|
# Author:
|
||||||
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# We grab the value of WM_THIRD_PARTY and WM_OPTIONS from the environment variable
|
||||||
|
%{expand:%%define _WM_THIRD_PARTY_DIR %(echo $WM_THIRD_PARTY_DIR)}
|
||||||
|
%{expand:%%define _WM_OPTIONS %(echo $WM_OPTIONS)}
|
||||||
|
|
||||||
|
# Disable the generation of debuginfo packages
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
# The topdir needs to point to the $WM_THIRD_PARTY/rpmbuild directory
|
||||||
|
%define _topdir %{_WM_THIRD_PARTY_DIR}/rpmBuild
|
||||||
|
%define _tmppath %{_topdir}/tmp
|
||||||
|
|
||||||
|
# Will install the package directly $WM_THIRD_PARTY_DIR
|
||||||
|
# Some comments about package relocation:
|
||||||
|
# By using this prefix for the Prefix: parameter in this file, you will make this
|
||||||
|
# package relocatable.
|
||||||
|
#
|
||||||
|
# This is fine, as long as your software is itself relocatable.
|
||||||
|
#
|
||||||
|
# Simply take note that libraries built with libtool are not relocatable because the
|
||||||
|
# prefix we specify will be hard-coded in the library .la files.
|
||||||
|
# Ref: http://sourceware.org/autobook/autobook/autobook_80.html
|
||||||
|
#
|
||||||
|
# In that case, if you ever change the value of the $WM_THIRD_PARTY_DIR, you will
|
||||||
|
# not be able to reutilize this RPM, even though it is relocatable. You will need to
|
||||||
|
# regenerate the RPM.
|
||||||
|
#
|
||||||
|
%define _prefix %{_WM_THIRD_PARTY_DIR}
|
||||||
|
|
||||||
|
%define name PyFoam
|
||||||
|
%define release 1
|
||||||
|
%define version 0.6.2
|
||||||
|
|
||||||
|
%define buildroot %{_topdir}/BUILD/%{name}-%{version}-root
|
||||||
|
|
||||||
|
BuildRoot: %{buildroot}
|
||||||
|
Summary: PyFoam
|
||||||
|
License: Unkown
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
URL: http://openfoamwiki.net/images/8/89/PyFoam-0.6.2.tar.gz
|
||||||
|
Source: %url/%{name}-%{version}.tar.gz
|
||||||
|
Prefix: %{_prefix}
|
||||||
|
Group: Development/Tools
|
||||||
|
|
||||||
|
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Make the shebang line portable
|
||||||
|
python setup.py build --executable "/usr/bin/env python"
|
||||||
|
|
||||||
|
%install
|
||||||
|
python setup.py install --prefix=$RPM_BUILD_ROOT/%{_installPrefix}
|
||||||
|
|
||||||
|
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
||||||
|
|
||||||
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
|
echo ""
|
||||||
|
#
|
||||||
|
# Generate package specific .sh file for foam-extend
|
||||||
|
#
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export PYFOAM_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
|
||||||
|
# Enable access to the package applications if present
|
||||||
|
[ -d \$PYFOAM_DIR/bin ] && _foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
|
||||||
|
DOT_SH_EOF
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate package specific .csh file for foam-extend
|
||||||
|
#
|
||||||
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
setenv PYFOAM_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
if ! \$?PYTHONPATH then
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages
|
||||||
|
else
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
if ( -e \$PYFOAM_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
endif
|
||||||
|
|
||||||
|
if \$?PYFOAM_SITE_DIR then
|
||||||
|
if ( -e \$PYFOAM_SITE_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_SITE_DIR/bin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
DOT_CSH_EOF
|
||||||
|
|
||||||
|
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
||||||
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
|
# variables
|
||||||
|
#
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export PYFOAM_DIR=$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
|
||||||
|
# Enable access to the package applications if present
|
||||||
|
[ -d \$PYFOAM_DIR/bin ] && export PATH=\$PYFOAM_DIR/bin:\$PATH
|
||||||
|
|
||||||
|
DOT_HARDCODED_SH_EOF
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate package specific .csh file for foam-extend
|
||||||
|
#
|
||||||
|
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
||||||
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
|
# variables
|
||||||
|
#
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
setenv PYFOAM_DIR $WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
if ! \$?PYTHONPATH then
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages
|
||||||
|
else
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
if ( -e \$PYFOAM_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
endif
|
||||||
|
|
||||||
|
if \$?PYFOAM_SITE_DIR then
|
||||||
|
if ( -e \$PYFOAM_SITE_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_SITE_DIR/bin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
DOT_HARDCODED_CSH_EOF
|
||||||
|
|
||||||
|
#finally, generate a .tgz file for systems where using rpm for installing packages
|
||||||
|
# as a non-root user might be a problem.
|
||||||
|
(mkdir -p %{_topdir}/TGZS/%{_target_cpu}; cd $RPM_BUILD_ROOT/%{_prefix}; tar -zcvf %{_topdir}/TGZS/%{_target_cpu}/%{name}-%{version}.tgz packages/%{name}-%{version})
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_installPrefix}
|
201
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.3.spec
vendored
Normal file
201
ThirdParty/rpmBuild/SPECS/PyFoam-0.6.3.spec
vendored
Normal file
|
@ -0,0 +1,201 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend 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.
|
||||||
|
#
|
||||||
|
# foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Script
|
||||||
|
# RPM spec file for PyFoam-0.6.3
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# RPM spec file for PyFoam version 0.6.3
|
||||||
|
#
|
||||||
|
# Author:
|
||||||
|
# Martin Beaudoin, Hydro-Quebec, (2013)
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# We grab the value of WM_THIRD_PARTY and WM_OPTIONS from the environment variable
|
||||||
|
%{expand:%%define _WM_THIRD_PARTY_DIR %(echo $WM_THIRD_PARTY_DIR)}
|
||||||
|
%{expand:%%define _WM_OPTIONS %(echo $WM_OPTIONS)}
|
||||||
|
|
||||||
|
# Disable the generation of debuginfo packages
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
# The topdir needs to point to the $WM_THIRD_PARTY/rpmbuild directory
|
||||||
|
%define _topdir %{_WM_THIRD_PARTY_DIR}/rpmBuild
|
||||||
|
%define _tmppath %{_topdir}/tmp
|
||||||
|
|
||||||
|
# Will install the package directly $WM_THIRD_PARTY_DIR
|
||||||
|
# Some comments about package relocation:
|
||||||
|
# By using this prefix for the Prefix: parameter in this file, you will make this
|
||||||
|
# package relocatable.
|
||||||
|
#
|
||||||
|
# This is fine, as long as your software is itself relocatable.
|
||||||
|
#
|
||||||
|
# Simply take note that libraries built with libtool are not relocatable because the
|
||||||
|
# prefix we specify will be hard-coded in the library .la files.
|
||||||
|
# Ref: http://sourceware.org/autobook/autobook/autobook_80.html
|
||||||
|
#
|
||||||
|
# In that case, if you ever change the value of the $WM_THIRD_PARTY_DIR, you will
|
||||||
|
# not be able to reutilize this RPM, even though it is relocatable. You will need to
|
||||||
|
# regenerate the RPM.
|
||||||
|
#
|
||||||
|
%define _prefix %{_WM_THIRD_PARTY_DIR}
|
||||||
|
|
||||||
|
%define name PyFoam
|
||||||
|
%define release 1
|
||||||
|
%define version 0.6.3
|
||||||
|
|
||||||
|
%define buildroot %{_topdir}/BUILD/%{name}-%{version}-root
|
||||||
|
|
||||||
|
BuildRoot: %{buildroot}
|
||||||
|
Summary: PyFoam
|
||||||
|
License: Unkown
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
URL: http://openfoamwiki.net/images/e/e3/PyFoam-0.6.3-rc.tar.gz
|
||||||
|
Source: %url/%{name}-%{version}-rc.tar.gz
|
||||||
|
Prefix: %{_prefix}
|
||||||
|
Group: Development/Tools
|
||||||
|
|
||||||
|
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n PyFoam-%{version}-rc
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Make the shebang line portable
|
||||||
|
python setup.py build --executable "/usr/bin/env python"
|
||||||
|
|
||||||
|
%install
|
||||||
|
python setup.py install --prefix=$RPM_BUILD_ROOT/%{_installPrefix}
|
||||||
|
|
||||||
|
%define pythonVersion $(python -V 2>&1 | awk -F ' ' {'print $2'} | awk -F \. {'print $1 "." $2'})
|
||||||
|
|
||||||
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
|
echo ""
|
||||||
|
#
|
||||||
|
# Generate package specific .sh file for foam-extend
|
||||||
|
#
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export PYFOAM_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
|
||||||
|
# Enable access to the package applications if present
|
||||||
|
[ -d \$PYFOAM_DIR/bin ] && _foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
|
||||||
|
DOT_SH_EOF
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate package specific .csh file for foam-extend
|
||||||
|
#
|
||||||
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
setenv PYFOAM_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
if ! \$?PYTHONPATH then
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages
|
||||||
|
else
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
if ( -e \$PYFOAM_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
endif
|
||||||
|
|
||||||
|
if \$?PYFOAM_SITE_DIR then
|
||||||
|
if ( -e \$PYFOAM_SITE_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_SITE_DIR/bin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
DOT_CSH_EOF
|
||||||
|
|
||||||
|
cat << DOT_HARDCODED_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.sh
|
||||||
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
|
# variables
|
||||||
|
#
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export PYFOAM_DIR=$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
export PYTHONPATH=\$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
|
||||||
|
# Enable access to the package applications if present
|
||||||
|
[ -d \$PYFOAM_DIR/bin ] && export PATH=\$PYFOAM_DIR/bin:\$PATH
|
||||||
|
|
||||||
|
DOT_HARDCODED_SH_EOF
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate package specific .csh file for foam-extend
|
||||||
|
#
|
||||||
|
cat << DOT_HARDCODED_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}_hardcoded.csh
|
||||||
|
# In this version of the configuration script, the paths are hardcoded,
|
||||||
|
# which makes it easier to load PyFoam without the foam-extend environment
|
||||||
|
# variables
|
||||||
|
#
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
setenv PYFOAM_DIR $WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/noarch
|
||||||
|
|
||||||
|
if ! \$?PYTHONPATH then
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages
|
||||||
|
else
|
||||||
|
setenv PYTHONPATH \$PYFOAM_DIR/lib/python%{pythonVersion}/site-packages:\$PYTHONPATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
if ( -e \$PYFOAM_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_DIR/bin
|
||||||
|
endif
|
||||||
|
|
||||||
|
if \$?PYFOAM_SITE_DIR then
|
||||||
|
if ( -e \$PYFOAM_SITE_DIR/bin ) then
|
||||||
|
_foamAddPath \$PYFOAM_SITE_DIR/bin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
DOT_HARDCODED_CSH_EOF
|
||||||
|
|
||||||
|
#finally, generate a .tgz file for systems where using rpm for installing packages
|
||||||
|
# as a non-root user might be a problem.
|
||||||
|
(mkdir -p %{_topdir}/TGZS/%{_target_cpu}; cd $RPM_BUILD_ROOT/%{_prefix}; tar -zcvf %{_topdir}/TGZS/%{_target_cpu}/%{name}-%{version}.tgz packages/%{name}-%{version})
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_installPrefix}
|
8
ThirdParty/rpmBuild/SPECS/Python-2.7.spec
vendored
8
ThirdParty/rpmBuild/SPECS/Python-2.7.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export PYTHON_BIN_DIR=\$PYTHON_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/bison-2.4.3.spec
vendored
8
ThirdParty/rpmBuild/SPECS/bison-2.4.3.spec
vendored
|
@ -102,13 +102,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export BISON_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
154
ThirdParty/rpmBuild/SPECS/bison-2.7.spec
vendored
Normal file
154
ThirdParty/rpmBuild/SPECS/bison-2.7.spec
vendored
Normal file
|
@ -0,0 +1,154 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
|
# \\/ M anipulation |
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend 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.
|
||||||
|
#
|
||||||
|
# foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Script
|
||||||
|
# RPM spec file for bison-2.7
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# RPM spec file for creating a relocatable RPM
|
||||||
|
#
|
||||||
|
# Author:
|
||||||
|
# Martin Beaudoin, Hydro-Quebec, (2014)
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# We grab the value of WM_THIRD_PARTY and WM_OPTIONS from the environment variable
|
||||||
|
%{expand:%%define _WM_THIRD_PARTY_DIR %(echo $WM_THIRD_PARTY_DIR)}
|
||||||
|
%{expand:%%define _WM_OPTIONS %(echo $WM_OPTIONS)}
|
||||||
|
|
||||||
|
# Disable the generation of debuginfo packages
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
# The topdir needs to point to the $WM_THIRD_PARTY/rpmbuild directory
|
||||||
|
%define _topdir %{_WM_THIRD_PARTY_DIR}/rpmBuild
|
||||||
|
%define _tmppath %{_topdir}/tmp
|
||||||
|
|
||||||
|
# Will install the package directly $WM_THIRD_PARTY_DIR
|
||||||
|
# Some comments about package relocation:
|
||||||
|
# By using this prefix for the Prefix: parameter in this file, you will make this
|
||||||
|
# package relocatable.
|
||||||
|
#
|
||||||
|
# This is fine, as long as your software is itself relocatable.
|
||||||
|
#
|
||||||
|
# Simply take note that libraries built with libtool are not relocatable because the
|
||||||
|
# prefix we specify will be hard-coded in the library .la files.
|
||||||
|
# Ref: http://sourceware.org/autobook/autobook/autobook_80.html
|
||||||
|
#
|
||||||
|
# In that case, if you ever change the value of the $WM_THIRD_PARTY_DIR, you will
|
||||||
|
# not be able to reutilize this RPM, even though it is relocatable. You will need to
|
||||||
|
# regenerate the RPM.
|
||||||
|
#
|
||||||
|
%define _prefix %{_WM_THIRD_PARTY_DIR}
|
||||||
|
|
||||||
|
%define name bison
|
||||||
|
%define release %{_WM_OPTIONS}
|
||||||
|
%define version 2.7
|
||||||
|
|
||||||
|
%define buildroot %{_topdir}/BUILD/%{name}-%{version}-root
|
||||||
|
|
||||||
|
BuildRoot: %{buildroot}
|
||||||
|
Summary: bison
|
||||||
|
License: Unkown
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
URL: http://ftp.gnu.org/gnu/bison
|
||||||
|
Source: %url/%{name}-%{version}.tar.gz
|
||||||
|
Prefix: %{_prefix}
|
||||||
|
Group: Development/Tools
|
||||||
|
|
||||||
|
%define _installPrefix %{_prefix}/packages/%{name}-%{version}/platforms/%{_WM_OPTIONS}
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
# export WM settings in a form that GNU configure recognizes
|
||||||
|
[ -n "$WM_CC" ] && export CC="$WM_CC"
|
||||||
|
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
||||||
|
[ -n "$WM_CFLAGS" ] && export CFLAGS="$WM_CFLAGS"
|
||||||
|
[ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS"
|
||||||
|
[ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS"
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=%{_installPrefix}
|
||||||
|
|
||||||
|
[ -z "$WM_NCOMPPROCS" ] && WM_NCOMPPROCS=1
|
||||||
|
make -j $WM_NCOMPPROCS
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
|
echo ""
|
||||||
|
#
|
||||||
|
# Generate package specific .sh file for foam-extend
|
||||||
|
#
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export BISON_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||||
|
|
||||||
|
[ -d \$BISON_DIR/lib ] && _foamAddLib \$BISON_DIR/lib
|
||||||
|
|
||||||
|
# Enable access to the package applications if present
|
||||||
|
[ -d \$BISON_DIR/bin ] && _foamAddPath \$BISON_DIR/bin
|
||||||
|
DOT_SH_EOF
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate package specific .csh file for foam-extend
|
||||||
|
#
|
||||||
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
setenv BISON_DIR \$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OPTIONS
|
||||||
|
|
||||||
|
if ( -e \$BISON_DIR/lib ) then
|
||||||
|
_foamAddLib \$BISON_DIR/lib
|
||||||
|
endif
|
||||||
|
|
||||||
|
if ( -e \$BISON_DIR/bin ) then
|
||||||
|
_foamAddPath \$BISON_DIR/bin
|
||||||
|
endif
|
||||||
|
DOT_CSH_EOF
|
||||||
|
|
||||||
|
#finally, generate a .tgz file for systems where using rpm for installing packages
|
||||||
|
# as a non-root user might be a problem.
|
||||||
|
(mkdir -p %{_topdir}/TGZS/%{_target_cpu}; cd $RPM_BUILD_ROOT/%{_prefix}; tar -zcvf %{_topdir}/TGZS/%{_target_cpu}/%{name}-%{version}.tgz packages/%{name}-%{version})
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_installPrefix}
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.11.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.11.spec
vendored
|
@ -113,13 +113,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -134,7 +134,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.12.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.12.spec
vendored
|
@ -113,13 +113,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -134,7 +134,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.3.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.3.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.5.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.5.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.6.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.6.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.8.spec
vendored
8
ThirdParty/rpmBuild/SPECS/cmake-2.8.8.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export CMAKE_BIN_DIR=\$CMAKE_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/flex-2.5.35.spec
vendored
8
ThirdParty/rpmBuild/SPECS/flex-2.5.35.spec
vendored
|
@ -102,13 +102,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export FLEX_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/gcc-4.4.5.spec
vendored
8
ThirdParty/rpmBuild/SPECS/gcc-4.4.5.spec
vendored
|
@ -119,13 +119,13 @@ Group: Development/Tools
|
||||||
cd ./objBuildDir
|
cd ./objBuildDir
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -142,7 +142,7 @@ export WM_COMPILER_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platform
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
8
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
|
@ -117,13 +117,13 @@ Group: Development/Tools
|
||||||
cd ./objBuildDir
|
cd ./objBuildDir
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -139,7 +139,7 @@ export GCC_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
29
ThirdParty/rpmBuild/SPECS/gcc-4.6.4.spec
vendored
29
ThirdParty/rpmBuild/SPECS/gcc-4.6.4.spec
vendored
|
@ -1,26 +1,25 @@
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright held by original author
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of foam-extend.
|
||||||
#
|
#
|
||||||
# OpenFOAM is free software; you can redistribute it and/or modify it
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by the
|
# under the terms of the GNU General Public License as published by the
|
||||||
# Free Software Foundation; either version 2 of the License, or (at your
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
# option) any later version.
|
# option) any later version.
|
||||||
#
|
#
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with OpenFOAM; if not, write to the Free Software Foundation,
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# RPM spec file for gcc-4.6.4
|
# RPM spec file for gcc-4.6.4
|
||||||
|
@ -118,13 +117,13 @@ Group: Development/Tools
|
||||||
cd ./objBuildDir
|
cd ./objBuildDir
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -142,7 +141,7 @@ export GCC_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/gmp-5.0.1.spec
vendored
8
ThirdParty/rpmBuild/SPECS/gmp-5.0.1.spec
vendored
|
@ -101,13 +101,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -123,7 +123,7 @@ export GMP_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
29
ThirdParty/rpmBuild/SPECS/gmp-5.1.2.spec
vendored
29
ThirdParty/rpmBuild/SPECS/gmp-5.1.2.spec
vendored
|
@ -1,26 +1,25 @@
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright held by original author
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of foam-extend.
|
||||||
#
|
#
|
||||||
# OpenFOAM is free software; you can redistribute it and/or modify it
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by the
|
# under the terms of the GNU General Public License as published by the
|
||||||
# Free Software Foundation; either version 2 of the License, or (at your
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
# option) any later version.
|
# option) any later version.
|
||||||
#
|
#
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with OpenFOAM; if not, write to the Free Software Foundation,
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# RPM spec file for gmp-5.1.2
|
# RPM spec file for gmp-5.1.2
|
||||||
|
@ -102,13 +101,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +123,7 @@ export GMP_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/hwloc-1.7.1.spec
vendored
8
ThirdParty/rpmBuild/SPECS/hwloc-1.7.1.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export HWLOC_BIN_DIR=\$HWLOC_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/hwloc-1.7.2.spec
vendored
8
ThirdParty/rpmBuild/SPECS/hwloc-1.7.2.spec
vendored
|
@ -103,13 +103,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export HWLOC_BIN_DIR=\$HWLOC_DIR/bin
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -132,13 +132,13 @@ Patch0: libccmio-2.6.1.patch_0
|
||||||
mv ${libsdir}/* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
mv ${libsdir}/* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp libccmio/*.h $RPM_BUILD_ROOT/%{_installPrefix}/include/libccmio
|
cp libccmio/*.h $RPM_BUILD_ROOT/%{_installPrefix}/include/libccmio
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -157,7 +157,7 @@ export LIBCCMIO_INCLUDE_DIR=\$LIBCCMIO_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/m4-1.4.16.spec
vendored
8
ThirdParty/rpmBuild/SPECS/m4-1.4.16.spec
vendored
|
@ -102,13 +102,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -124,7 +124,7 @@ export M4_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_OP
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -124,13 +124,13 @@ Patch0: mesquite-2.1.2_patch0
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -148,7 +148,7 @@ export MESQUITE_INCLUDE_DIR=\$MESQUITE_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
8
ThirdParty/rpmBuild/SPECS/metis-5.0pre2.spec
vendored
|
@ -116,13 +116,13 @@ Patch0: metis-5.0pre2_patch_darwin
|
||||||
cp build/*/libmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp build/*/libmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp include/metis.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
cp include/metis.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -141,7 +141,7 @@ export METIS_INCLUDE_DIR=\$METIS_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec
vendored
8
ThirdParty/rpmBuild/SPECS/metis-5.1.0.spec
vendored
|
@ -117,13 +117,13 @@ Patch0: metis-5.1.0_patch_gcc
|
||||||
cp build/*/libmetis/libmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp build/*/libmetis/libmetis.* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp include/metis.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
cp include/metis.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -142,7 +142,7 @@ export METIS_INCLUDE_DIR=\$METIS_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/mpc-0.8.2.spec
vendored
8
ThirdParty/rpmBuild/SPECS/mpc-0.8.2.spec
vendored
|
@ -108,13 +108,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -130,7 +130,7 @@ export MPC_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
29
ThirdParty/rpmBuild/SPECS/mpc-1.0.1.spec
vendored
29
ThirdParty/rpmBuild/SPECS/mpc-1.0.1.spec
vendored
|
@ -1,26 +1,25 @@
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright held by original author
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of foam-extend.
|
||||||
#
|
#
|
||||||
# OpenFOAM is free software; you can redistribute it and/or modify it
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by the
|
# under the terms of the GNU General Public License as published by the
|
||||||
# Free Software Foundation; either version 2 of the License, or (at your
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
# option) any later version.
|
# option) any later version.
|
||||||
#
|
#
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with OpenFOAM; if not, write to the Free Software Foundation,
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# RPM spec file for mpc-1.0.1
|
# RPM spec file for mpc-1.0.1
|
||||||
|
@ -109,13 +108,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -131,7 +130,7 @@ export MPC_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_O
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/mpfr-3.0.0.spec
vendored
8
ThirdParty/rpmBuild/SPECS/mpfr-3.0.0.spec
vendored
|
@ -105,13 +105,13 @@ Group: Development/Tools
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -127,7 +127,7 @@ export MPFR_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/mpfr-3.0.1.spec
vendored
8
ThirdParty/rpmBuild/SPECS/mpfr-3.0.1.spec
vendored
|
@ -105,13 +105,13 @@ Group: Development/Tools
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -127,7 +127,7 @@ export MPFR_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
29
ThirdParty/rpmBuild/SPECS/mpfr-3.1.2.spec
vendored
29
ThirdParty/rpmBuild/SPECS/mpfr-3.1.2.spec
vendored
|
@ -1,26 +1,25 @@
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | foam-extend: Open Source CFD
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright held by original author
|
# \\ / A nd | For copyright notice see file Copyright
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of foam-extend.
|
||||||
#
|
#
|
||||||
# OpenFOAM is free software; you can redistribute it and/or modify it
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by the
|
# under the terms of the GNU General Public License as published by the
|
||||||
# Free Software Foundation; either version 2 of the License, or (at your
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
# option) any later version.
|
# option) any later version.
|
||||||
#
|
#
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# for more details.
|
# General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with OpenFOAM; if not, write to the Free Software Foundation,
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# RPM spec file for mpfr-3.1.2
|
# RPM spec file for mpfr-3.1.2
|
||||||
|
@ -106,13 +105,13 @@ Group: Development/Tools
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -128,7 +127,7 @@ export MPFR_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$WM_
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/openmpi-1.4.1.spec
vendored
8
ThirdParty/rpmBuild/SPECS/openmpi-1.4.1.spec
vendored
|
@ -131,13 +131,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -153,7 +153,7 @@ export OPENMPI_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
12
ThirdParty/rpmBuild/SPECS/openmpi-1.4.3.spec
vendored
12
ThirdParty/rpmBuild/SPECS/openmpi-1.4.3.spec
vendored
|
@ -133,13 +133,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -162,7 +162,7 @@ export OPENMPI_INCLUDE_DIR="\`mpicc --showme:incdirs\`"
|
||||||
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
||||||
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
export PINC=\$OPENMPI_COMPILE_FLAGS
|
export PINC=\$OPENMPI_COMPILE_FLAGS
|
||||||
export PLIBS=\$OPENMPI_LINK_FLAGS
|
export PLIBS=\$OPENMPI_LINK_FLAGS
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ fi
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries
|
# Load %{name}-%{version} libraries and binaries
|
||||||
|
@ -212,7 +212,7 @@ setenv OPENMPI_INCLUDE_DIR "\`mpicc --showme:incdirs\`"
|
||||||
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
||||||
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
||||||
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
||||||
|
|
||||||
|
|
12
ThirdParty/rpmBuild/SPECS/openmpi-1.5.spec
vendored
12
ThirdParty/rpmBuild/SPECS/openmpi-1.5.spec
vendored
|
@ -131,13 +131,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -160,7 +160,7 @@ export OPENMPI_INCLUDE_DIR="\`mpicc --showme:incdirs\`"
|
||||||
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
||||||
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
export PINC=\$OPENMPI_COMPILE_FLAGS
|
export PINC=\$OPENMPI_COMPILE_FLAGS
|
||||||
export PLIBS=\$OPENMPI_LINK_FLAGS
|
export PLIBS=\$OPENMPI_LINK_FLAGS
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ fi
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries
|
# Load %{name}-%{version} libraries and binaries
|
||||||
|
@ -210,7 +210,7 @@ setenv OPENMPI_INCLUDE_DIR "\`mpicc --showme:incdirs\`"
|
||||||
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
||||||
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
setenv PINC \`echo \$OPENMPI_COMPILE_FLAGS\`
|
setenv PINC \`echo \$OPENMPI_COMPILE_FLAGS\`
|
||||||
setenv PLIBS \`echo \$OPENMPI_LINK_FLAGS\`
|
setenv PLIBS \`echo \$OPENMPI_LINK_FLAGS\`
|
||||||
|
|
||||||
|
|
12
ThirdParty/rpmBuild/SPECS/openmpi-1.6.3.spec
vendored
12
ThirdParty/rpmBuild/SPECS/openmpi-1.6.3.spec
vendored
|
@ -135,13 +135,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -164,7 +164,7 @@ export OPENMPI_INCLUDE_DIR="\`mpicc --showme:incdirs\`"
|
||||||
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
||||||
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
export PINC=\$OPENMPI_COMPILE_FLAGS
|
export PINC=\$OPENMPI_COMPILE_FLAGS
|
||||||
export PLIBS=\$OPENMPI_LINK_FLAGS
|
export PLIBS=\$OPENMPI_LINK_FLAGS
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ fi
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries
|
# Load %{name}-%{version} libraries and binaries
|
||||||
|
@ -214,7 +214,7 @@ setenv OPENMPI_INCLUDE_DIR "\`mpicc --showme:incdirs\`"
|
||||||
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
||||||
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
||||||
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
||||||
|
|
||||||
|
|
12
ThirdParty/rpmBuild/SPECS/openmpi-1.6.5.spec
vendored
12
ThirdParty/rpmBuild/SPECS/openmpi-1.6.5.spec
vendored
|
@ -135,13 +135,13 @@ Group: Development/Tools
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -164,7 +164,7 @@ export OPENMPI_INCLUDE_DIR="\`mpicc --showme:incdirs\`"
|
||||||
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
export OPENMPI_COMPILE_FLAGS="\`mpicc --showme:compile\`"
|
||||||
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
export OPENMPI_LINK_FLAGS="\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
export PINC=\$OPENMPI_COMPILE_FLAGS
|
export PINC=\$OPENMPI_COMPILE_FLAGS
|
||||||
export PLIBS=\$OPENMPI_LINK_FLAGS
|
export PLIBS=\$OPENMPI_LINK_FLAGS
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ fi
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries
|
# Load %{name}-%{version} libraries and binaries
|
||||||
|
@ -214,7 +214,7 @@ setenv OPENMPI_INCLUDE_DIR "\`mpicc --showme:incdirs\`"
|
||||||
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
setenv OPENMPI_COMPILE_FLAGS "\`mpicc --showme:compile\`"
|
||||||
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
setenv OPENMPI_LINK_FLAGS "\`mpicc --showme:link\`"
|
||||||
|
|
||||||
# Set the OpenFOAM compilation flags
|
# Set the foam-extend compilation flags
|
||||||
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
setenv PINC "\$OPENMPI_COMPILE_FLAGS"
|
||||||
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
setenv PLIBS "\$OPENMPI_LINK_FLAGS"
|
||||||
|
|
||||||
|
|
|
@ -118,13 +118,13 @@ Patch1: ParMetis-3.1.1.patch
|
||||||
cp build/*/libparmetis/lib* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp build/*/libparmetis/lib* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
cp build/*/libmetis/lib* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
cp build/*/libmetis/lib* $RPM_BUILD_ROOT/%{_installPrefix}/lib
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -143,7 +143,7 @@ export PARMETIS_INCLUDE_DIR=\$PARMETIS_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -114,13 +114,13 @@ Group: Development/Tools
|
||||||
# We need to use the INSTALL_ROOT= option instead
|
# We need to use the INSTALL_ROOT= option instead
|
||||||
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -137,7 +137,7 @@ export QT_LIB_DIR=\$QT_DIR/lib
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -114,13 +114,13 @@ Group: Development/Tools
|
||||||
# We need to use the INSTALL_ROOT= option instead
|
# We need to use the INSTALL_ROOT= option instead
|
||||||
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -137,7 +137,7 @@ export QT_LIB_DIR=\$QT_DIR/lib
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -127,13 +127,13 @@ Group: Development/Tools
|
||||||
|
|
||||||
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -150,7 +150,7 @@ export QT_LIB_DIR=\$QT_DIR/lib
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
|
@ -113,13 +113,13 @@ Patch0: scotch-5.1.10b_patch_0
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_installPrefix}
|
mkdir -p $RPM_BUILD_ROOT%{_installPrefix}
|
||||||
make install prefix=$RPM_BUILD_ROOT%{_installPrefix}
|
make install prefix=$RPM_BUILD_ROOT%{_installPrefix}
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -137,7 +137,7 @@ export SCOTCH_INCLUDE_DIR=\$SCOTCH_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/scotch-6.0.0.spec
vendored
8
ThirdParty/rpmBuild/SPECS/scotch-6.0.0.spec
vendored
|
@ -118,13 +118,13 @@ Patch1: scotch-6.0.0_patch_darwin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_installPrefix}
|
mkdir -p $RPM_BUILD_ROOT%{_installPrefix}
|
||||||
make install prefix=$RPM_BUILD_ROOT%{_installPrefix}
|
make install prefix=$RPM_BUILD_ROOT%{_installPrefix}
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -142,7 +142,7 @@ export SCOTCH_INCLUDE_DIR=\$SCOTCH_DIR/include
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/zoltan-3.5.spec
vendored
8
ThirdParty/rpmBuild/SPECS/zoltan-3.5.spec
vendored
|
@ -101,13 +101,13 @@ Group: Development/Tools
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
cp ./src/include/Zoltan_config.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
cp ./src/include/Zoltan_config.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -123,7 +123,7 @@ export ZOLTAN_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$W
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
8
ThirdParty/rpmBuild/SPECS/zoltan-3.6.spec
vendored
8
ThirdParty/rpmBuild/SPECS/zoltan-3.6.spec
vendored
|
@ -113,13 +113,13 @@ Group: Development/Tools
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
cp ./src/include/Zoltan_config.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
cp ./src/include/Zoltan_config.h $RPM_BUILD_ROOT/%{_installPrefix}/include
|
||||||
|
|
||||||
# Creation of OpenFOAM specific .csh and .sh files"
|
# Creation of foam-extend specific .csh and .sh files"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Generating OpenFOAM specific .csh and .sh files for the package %{name}-%{version}"
|
echo "Generating foam-extend specific .csh and .sh files for the package %{name}-%{version}"
|
||||||
echo ""
|
echo ""
|
||||||
#
|
#
|
||||||
# Generate package specific .sh file for OpenFOAM
|
# Generate package specific .sh file for foam-extend
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
mkdir -p $RPM_BUILD_ROOT/%{_installPrefix}/etc
|
||||||
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
cat << DOT_SH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.sh
|
||||||
|
@ -135,7 +135,7 @@ export ZOLTAN_DIR=\$WM_THIRD_PARTY_DIR/packages/%{name}-%{version}/platforms/\$W
|
||||||
DOT_SH_EOF
|
DOT_SH_EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate package specific .csh file for OpenFOAM
|
# Generate package specific .csh file for foam-extend
|
||||||
#
|
#
|
||||||
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
cat << DOT_CSH_EOF > $RPM_BUILD_ROOT/%{_installPrefix}/etc/%{name}-%{version}.csh
|
||||||
# Load %{name}-%{version} libraries and binaries if available
|
# Load %{name}-%{version} libraries and binaries if available
|
||||||
|
|
30
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
30
ThirdParty/tools/makeThirdPartyFunctionsForRPM
vendored
|
@ -246,24 +246,36 @@ rpm_populateRPMvault()
|
||||||
echo " Current content of the local RPM vault:"
|
echo " Current content of the local RPM vault:"
|
||||||
ls -axlt $rpmVault
|
ls -axlt $rpmVault
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Remove an installed package
|
# Remove an installed package
|
||||||
#
|
#
|
||||||
uninstallPackage()
|
uninstallPackage()
|
||||||
{
|
{
|
||||||
pkg="$1";
|
pkg="$1";
|
||||||
if [ -d $WM_THIRD_PARTY_DIR/packages/${pkg} ]; then
|
|
||||||
set -x
|
echo "Removing ${pkg}"
|
||||||
rm -f $WM_THIRD_PARTY_DIR/rpmBuild/RPMS/$architecture/${pkg}*.rpm
|
[ -f $WM_THIRD_PARTY_DIR/rpmBuild/RPMS/$architecture/${pkg}*.rpm ] && \
|
||||||
rm -f $WM_THIRD_PARTY_DIR/rpmBuild/TGZS/$architecture/${pkg}.tgz
|
rm -f $WM_THIRD_PARTY_DIR/rpmBuild/RPMS/$architecture/${pkg}*.rpm || \
|
||||||
rm -rf $WM_THIRD_PARTY_DIR/rpmBuild/BUILD/${pkg}*
|
echo "Not found: $WM_THIRD_PARTY_DIR/rpmBuild/RPMS/$architecture/${pkg}*.rpm"
|
||||||
rm -rf $WM_THIRD_PARTY_DIR/packages/$pkg
|
[ -f $WM_THIRD_PARTY_DIR/rpmBuild/SOURCES/${pkg}.tar.gz ] && \
|
||||||
set +x
|
rm -f $WM_THIRD_PARTY_DIR/rpmBuild/SOURCES/${pkg}.tar.gz || \
|
||||||
|
echo "Not found: $WM_THIRD_PARTY_DIR/rpmBuild/SOURCES/${pkg}.tar.gz"
|
||||||
|
[ -f $WM_THIRD_PARTY_DIR/rpmBuild/TGZS/$architecture/${pkg}.tgz ] && \
|
||||||
|
rm -f $WM_THIRD_PARTY_DIR/rpmBuild/TGZS/$architecture/${pkg}.tgz || \
|
||||||
|
echo "Not found: $WM_THIRD_PARTY_DIR/rpmBuild/TGZS/$architecture/${pkg}.tgz"
|
||||||
|
[ -d $WM_THIRD_PARTY_DIR/rpmBuild/BUILD/${pkg}* ] && \
|
||||||
|
rm -rf $WM_THIRD_PARTY_DIR/rpmBuild/BUILD/${pkg}* || \
|
||||||
|
echo "Not found: $WM_THIRD_PARTY_DIR/rpmBuild/BUILD/${pkg}*"
|
||||||
|
if [ "$2" = "alsoPackage" ]; then
|
||||||
|
[ -d $WM_THIRD_PARTY_DIR/packages/$pkg ] && \
|
||||||
|
rm -rf $WM_THIRD_PARTY_DIR/packages/$pkg || \
|
||||||
|
echo "Not found: $WM_THIRD_PARTY_DIR/packages/$pkg"
|
||||||
else
|
else
|
||||||
echo "Package ${pkg} is already removed."
|
echo "Add option alsoPackage to remove the installed files."
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|
|
@ -88,8 +88,6 @@ int main(int argc, char *argv[])
|
||||||
chemistry.dQ()().write();
|
chemistry.dQ()().write();
|
||||||
}
|
}
|
||||||
|
|
||||||
runTime.write();
|
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
|
|
3
applications/solvers/compressible/dbnsFoam/Make/files
Normal file
3
applications/solvers/compressible/dbnsFoam/Make/files
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dbnsFoam.C
|
||||||
|
|
||||||
|
EXE = $(FOAM_APPBIN)/dbnsFoam
|
12
applications/solvers/compressible/dbnsFoam/Make/options
Normal file
12
applications/solvers/compressible/dbnsFoam/Make/options
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
EXE_INC = \
|
||||||
|
-I$(LIB_SRC)/dbns/lnInclude \
|
||||||
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude
|
||||||
|
|
||||||
|
|
||||||
|
EXE_LIBS = \
|
||||||
|
-lfiniteVolume \
|
||||||
|
-lbasicThermophysicalModels \
|
||||||
|
-lspecie \
|
||||||
|
-ldbns
|
83
applications/solvers/compressible/dbnsFoam/createFields.H
Normal file
83
applications/solvers/compressible/dbnsFoam/createFields.H
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
Info<< "Reading thermophysical properties\n" << endl;
|
||||||
|
|
||||||
|
autoPtr<basicPsiThermo> thermo
|
||||||
|
(
|
||||||
|
basicPsiThermo::New(mesh)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Primitive variables
|
||||||
|
|
||||||
|
volScalarField& h = thermo->h();
|
||||||
|
volScalarField& p = thermo->p();
|
||||||
|
const volScalarField& T = thermo->T();
|
||||||
|
|
||||||
|
Info<< "Reading field rho\n" << endl;
|
||||||
|
volScalarField rho
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rho",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
thermo->rho()
|
||||||
|
);
|
||||||
|
|
||||||
|
Info<< "Reading field U\n" << endl;
|
||||||
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"U",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::MUST_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
mesh
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Conservative variables
|
||||||
|
|
||||||
|
volVectorField rhoU
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhoU",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
rho*U
|
||||||
|
);
|
||||||
|
|
||||||
|
volScalarField rhoE
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhoE",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
rho*(h + 0.5*magSqr(U)) - p
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Create numeric flux
|
||||||
|
// numericFlux<roeFlux, BarthJespersenLimiter> dbnsFlux
|
||||||
|
numericFlux<rusanovFlux, BarthJespersenLimiter> dbnsFlux
|
||||||
|
(
|
||||||
|
p,
|
||||||
|
U,
|
||||||
|
T,
|
||||||
|
thermo()
|
||||||
|
);
|
||||||
|
|
||||||
|
// Create mass flux alias for easier coupling with other code components
|
||||||
|
const surfaceScalarField& phi = dbnsFlux.rhoFlux();
|
124
applications/solvers/compressible/dbnsFoam/dbnsFoam.C
Normal file
124
applications/solvers/compressible/dbnsFoam/dbnsFoam.C
Normal file
|
@ -0,0 +1,124 @@
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | foam-extend: Open Source CFD
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | For copyright notice see file Copyright
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of foam-extend.
|
||||||
|
|
||||||
|
foam-extend 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.
|
||||||
|
|
||||||
|
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Application
|
||||||
|
dbnsFoam
|
||||||
|
|
||||||
|
Description
|
||||||
|
Density-based compressible explicit time-marching flow solver
|
||||||
|
using enthalpy based thermo packages
|
||||||
|
|
||||||
|
Author
|
||||||
|
Hrvoje Jasak
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "fvCFD.H"
|
||||||
|
#include "basicPsiThermo.H"
|
||||||
|
#include "bound.H"
|
||||||
|
#include "hllcFlux.H"
|
||||||
|
#include "roeFlux.H"
|
||||||
|
#include "rusanovFlux.H"
|
||||||
|
#include "betaFlux.H"
|
||||||
|
#include "MDLimiter.H"
|
||||||
|
#include "firstOrderLimiter.H"
|
||||||
|
#include "BarthJespersenLimiter.H"
|
||||||
|
#include "VenkatakrishnanLimiter.H"
|
||||||
|
#include "numericFlux.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
# include "setRootCase.H"
|
||||||
|
# include "createTime.H"
|
||||||
|
# include "createMesh.H"
|
||||||
|
# include "createFields.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|
||||||
|
// Runge-Kutta coefficient
|
||||||
|
scalarList beta(4);
|
||||||
|
beta[0] = 0.1100;
|
||||||
|
beta[1] = 0.2766;
|
||||||
|
beta[2] = 0.5000;
|
||||||
|
beta[3] = 1.0000;
|
||||||
|
|
||||||
|
// Switch off solver messages
|
||||||
|
lduMatrix::debug = 0;
|
||||||
|
|
||||||
|
while (runTime.run())
|
||||||
|
{
|
||||||
|
# include "readTimeControls.H"
|
||||||
|
# include "readFieldBounds.H"
|
||||||
|
# include "compressibleCourantNo.H"
|
||||||
|
# include "setDeltaT.H"
|
||||||
|
|
||||||
|
runTime++;
|
||||||
|
|
||||||
|
Info<< "\n Time = " << runTime.value() << endl;
|
||||||
|
|
||||||
|
// Low storage Runge-Kutta time integration
|
||||||
|
forAll (beta, i)
|
||||||
|
{
|
||||||
|
// Solve the approximate Riemann problem for this time step
|
||||||
|
dbnsFlux.computeFlux();
|
||||||
|
|
||||||
|
// Time integration
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rho)
|
||||||
|
+ fvc::div(dbnsFlux.rhoFlux())
|
||||||
|
);
|
||||||
|
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rhoU)
|
||||||
|
+ fvc::div(dbnsFlux.rhoUFlux())
|
||||||
|
);
|
||||||
|
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rhoE)
|
||||||
|
+ fvc::div(dbnsFlux.rhoEFlux())
|
||||||
|
);
|
||||||
|
|
||||||
|
# include "updateFields.H"
|
||||||
|
}
|
||||||
|
|
||||||
|
runTime.write();
|
||||||
|
|
||||||
|
Info<< " ExecutionTime = "
|
||||||
|
<< runTime.elapsedCpuTime()
|
||||||
|
<< " s\n" << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
Info<< "\n end \n";
|
||||||
|
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
|
@ -0,0 +1,3 @@
|
||||||
|
dbnsTurbFoam.C
|
||||||
|
|
||||||
|
EXE = $(FOAM_APPBIN)/dbnsTurbFoam
|
15
applications/solvers/compressible/dbnsTurbFoam/Make/options
Normal file
15
applications/solvers/compressible/dbnsTurbFoam/Make/options
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
EXE_INC = \
|
||||||
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
|
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
|
||||||
|
-I$(LIB_SRC)/dbns/lnInclude
|
||||||
|
|
||||||
|
EXE_LIBS = \
|
||||||
|
-lfiniteVolume \
|
||||||
|
-lbasicThermophysicalModels \
|
||||||
|
-lspecie \
|
||||||
|
-lcompressibleTurbulenceModel \
|
||||||
|
-lcompressibleRASModels \
|
||||||
|
-lcompressibleLESModels \
|
||||||
|
-ldbns
|
|
@ -0,0 +1,94 @@
|
||||||
|
Info<< "Reading thermophysical properties\n" << endl;
|
||||||
|
|
||||||
|
autoPtr<basicPsiThermo> thermo
|
||||||
|
(
|
||||||
|
basicPsiThermo::New(mesh)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Primitive variables
|
||||||
|
|
||||||
|
volScalarField& h = thermo->h();
|
||||||
|
volScalarField& p = thermo->p();
|
||||||
|
const volScalarField& T = thermo->T();
|
||||||
|
|
||||||
|
Info<< "Reading field rho\n" << endl;
|
||||||
|
volScalarField rho
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rho",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
thermo->rho()
|
||||||
|
);
|
||||||
|
|
||||||
|
Info<< "Reading field U\n" << endl;
|
||||||
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"U",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::MUST_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
mesh
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Conservative variables
|
||||||
|
|
||||||
|
volVectorField rhoU
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhoU",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
rho*U
|
||||||
|
);
|
||||||
|
|
||||||
|
volScalarField rhoE
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhoE",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
rho*(h + 0.5*magSqr(U)) - p
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Create numeric flux
|
||||||
|
numericFlux<rusanovFlux, BarthJespersenLimiter> dbnsFlux
|
||||||
|
(
|
||||||
|
p,
|
||||||
|
U,
|
||||||
|
T,
|
||||||
|
thermo()
|
||||||
|
);
|
||||||
|
|
||||||
|
// Create mass flux alias for easier coupling with other code components
|
||||||
|
const surfaceScalarField& phi = dbnsFlux.rhoFlux();
|
||||||
|
|
||||||
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
(
|
||||||
|
compressible::turbulenceModel::New
|
||||||
|
(
|
||||||
|
rho,
|
||||||
|
U,
|
||||||
|
phi,
|
||||||
|
thermo
|
||||||
|
)
|
||||||
|
);
|
133
applications/solvers/compressible/dbnsTurbFoam/dbnsTurbFoam.C
Normal file
133
applications/solvers/compressible/dbnsTurbFoam/dbnsTurbFoam.C
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | foam-extend: Open Source CFD
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | For copyright notice see file Copyright
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of foam-extend.
|
||||||
|
|
||||||
|
foam-extend 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.
|
||||||
|
|
||||||
|
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Application
|
||||||
|
dbnsTurbFoamHEqn
|
||||||
|
|
||||||
|
Description
|
||||||
|
Density-based compressible explicit time-marching flow solver
|
||||||
|
using enthalpy-based thermo packages
|
||||||
|
|
||||||
|
Author
|
||||||
|
Hrvoje Jasak
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "fvCFD.H"
|
||||||
|
#include "basicPsiThermo.H"
|
||||||
|
#include "turbulenceModel.H"
|
||||||
|
#include "bound.H"
|
||||||
|
#include "hllcFlux.H"
|
||||||
|
#include "roeFlux.H"
|
||||||
|
#include "rusanovFlux.H"
|
||||||
|
#include "betaFlux.H"
|
||||||
|
#include "MDLimiter.H"
|
||||||
|
#include "firstOrderLimiter.H"
|
||||||
|
#include "BarthJespersenLimiter.H"
|
||||||
|
#include "VenkatakrishnanLimiter.H"
|
||||||
|
#include "numericFlux.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
# include "setRootCase.H"
|
||||||
|
# include "createTime.H"
|
||||||
|
# include "createMesh.H"
|
||||||
|
# include "createFields.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|
||||||
|
// Runge-Kutta coefficient
|
||||||
|
scalarList beta(4);
|
||||||
|
beta[0] = 0.1100;
|
||||||
|
beta[1] = 0.2766;
|
||||||
|
beta[2] = 0.5000;
|
||||||
|
beta[3] = 1.0000;
|
||||||
|
|
||||||
|
while (runTime.run())
|
||||||
|
{
|
||||||
|
# include "readTimeControls.H"
|
||||||
|
# include "readFieldBounds.H"
|
||||||
|
# include "compressibleCourantNo.H"
|
||||||
|
# include "setDeltaT.H"
|
||||||
|
|
||||||
|
runTime++;
|
||||||
|
|
||||||
|
Info<< "\n Time = " << runTime.value() << endl;
|
||||||
|
|
||||||
|
// Switch off solver messages for diagonal solver RK
|
||||||
|
lduMatrix::debug = 0;
|
||||||
|
|
||||||
|
// Low storage Runge-Kutta time integration
|
||||||
|
forAll (beta, i)
|
||||||
|
{
|
||||||
|
// Solve the approximate Riemann problem for this time step
|
||||||
|
dbnsFlux.computeFlux();
|
||||||
|
|
||||||
|
// Time integration
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rho)
|
||||||
|
+ fvc::div(dbnsFlux.rhoFlux())
|
||||||
|
);
|
||||||
|
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rhoU)
|
||||||
|
+ fvc::div(dbnsFlux.rhoUFlux())
|
||||||
|
+ fvc::div(turbulence->devRhoReff())
|
||||||
|
);
|
||||||
|
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
1.0/beta[i]*fvm::ddt(rhoE)
|
||||||
|
+ fvc::div(dbnsFlux.rhoEFlux())
|
||||||
|
+ fvc::div(turbulence->devRhoReff() & U)
|
||||||
|
- fvc::laplacian(turbulence->alphaEff(), h)
|
||||||
|
);
|
||||||
|
|
||||||
|
# include "updateFields.H"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Switch on solver messages for turbulence
|
||||||
|
lduMatrix::debug = 1;
|
||||||
|
|
||||||
|
turbulence->correct();
|
||||||
|
|
||||||
|
runTime.write();
|
||||||
|
|
||||||
|
Info<< " ExecutionTime = "
|
||||||
|
<< runTime.elapsedCpuTime()
|
||||||
|
<< " s\n" << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
Info<< "\n end \n";
|
||||||
|
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
|
@ -0,0 +1,3 @@
|
||||||
|
steadyCompressibleFoam.C
|
||||||
|
|
||||||
|
EXE = $(FOAM_APPBIN)/steadyCompressibleFoam
|
|
@ -0,0 +1,13 @@
|
||||||
|
EXE_INC = \
|
||||||
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
-I$(LIB_SRC)/turbulenceModels \
|
||||||
|
-I$(LIB_SRC)/turbulenceModels/compressible/RAS/RASModel \
|
||||||
|
|
||||||
|
EXE_LIBS = \
|
||||||
|
-lfiniteVolume \
|
||||||
|
-lmeshTools \
|
||||||
|
-lbasicThermophysicalModels \
|
||||||
|
-lspecie \
|
||||||
|
-lcompressibleRASModels \
|
||||||
|
-llduSolvers
|
|
@ -0,0 +1,18 @@
|
||||||
|
// Solve the momentum equation
|
||||||
|
U.storePrevIter();
|
||||||
|
|
||||||
|
fvVectorMatrix UEqn
|
||||||
|
(
|
||||||
|
fvm::ddt(rho, U)
|
||||||
|
+ fvm::div(phi, U)
|
||||||
|
+ turbulence->divDevRhoReff(U)
|
||||||
|
);
|
||||||
|
|
||||||
|
UEqn.relax();
|
||||||
|
|
||||||
|
eqnResidual = solve
|
||||||
|
(
|
||||||
|
UEqn == -fvc::grad(p)
|
||||||
|
).initialResidual();
|
||||||
|
|
||||||
|
maxResidual = max(eqnResidual, maxResidual);
|
|
@ -0,0 +1,9 @@
|
||||||
|
// check convergence
|
||||||
|
|
||||||
|
if (maxResidual < convergenceCriterion)
|
||||||
|
{
|
||||||
|
Info<< "reached convergence criterion: " << convergenceCriterion << endl;
|
||||||
|
runTime.writeAndEnd();
|
||||||
|
Info<< "latestTime = " << runTime.timeName() << endl;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
Info<< "Reading thermophysical properties\n" << endl;
|
||||||
|
|
||||||
|
autoPtr<basicPsiThermo> pThermo
|
||||||
|
(
|
||||||
|
basicPsiThermo::New(mesh)
|
||||||
|
);
|
||||||
|
basicPsiThermo& thermo = pThermo();
|
||||||
|
|
||||||
|
volScalarField& p = thermo.p();
|
||||||
|
volScalarField& h = thermo.h();
|
||||||
|
const volScalarField& T = thermo.T();
|
||||||
|
const volScalarField& psi = thermo.psi();
|
||||||
|
|
||||||
|
volScalarField rho
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rho",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
thermo.rho()
|
||||||
|
);
|
||||||
|
rho.oldTime();
|
||||||
|
|
||||||
|
Info<< "\nReading field U\n" << endl;
|
||||||
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"U",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::MUST_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
mesh
|
||||||
|
);
|
||||||
|
|
||||||
|
# include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
|
autoPtr<compressible::RASModel> turbulence
|
||||||
|
(
|
||||||
|
compressible::RASModel::New
|
||||||
|
(
|
||||||
|
rho,
|
||||||
|
U,
|
||||||
|
phi,
|
||||||
|
thermo
|
||||||
|
)
|
||||||
|
);
|
|
@ -0,0 +1,48 @@
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | foam-extend: Open Source CFD
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | For copyright notice see file Copyright
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of foam-extend.
|
||||||
|
|
||||||
|
foam-extend 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.
|
||||||
|
|
||||||
|
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Global
|
||||||
|
continuityErrs
|
||||||
|
|
||||||
|
Description
|
||||||
|
Calculates and prints the continuity errors.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
{
|
||||||
|
volScalarField divErr = fvc::ddt(psi, p);
|
||||||
|
|
||||||
|
scalar sumLocalDivErr =
|
||||||
|
mag(divErr)().weightedAverage(mesh.V()).value();
|
||||||
|
|
||||||
|
scalar globalDivErr =
|
||||||
|
divErr.weightedAverage(mesh.V()).value();
|
||||||
|
|
||||||
|
Info<< "time step divFlux errors: "
|
||||||
|
<< "maximum = " << max(divErr.internalField())
|
||||||
|
<< ", sum local = " << sumLocalDivErr
|
||||||
|
<< ", global = " << globalDivErr
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
// Solve the enthalpy equation
|
||||||
|
T.storePrevIter();
|
||||||
|
|
||||||
|
surfaceScalarField faceU = phi/fvc::interpolate(rho);
|
||||||
|
|
||||||
|
fvScalarMatrix hEqn
|
||||||
|
(
|
||||||
|
fvm::ddt(rho, h)
|
||||||
|
+ fvm::div(phi, h)
|
||||||
|
- fvm::laplacian(turbulence->alphaEff(), h)
|
||||||
|
==
|
||||||
|
// ddt(p) term removed: steady-state. HJ, 27/Apr/2010
|
||||||
|
fvc::div(faceU, p, "div(U,p)")
|
||||||
|
- p*fvc::div(faceU)
|
||||||
|
// Viscous heating: note sign (devRhoReff has a minus in it)
|
||||||
|
- (turbulence->devRhoReff() && fvc::grad(U))
|
||||||
|
);
|
||||||
|
|
||||||
|
hEqn.relax();
|
||||||
|
|
||||||
|
eqnResidual = hEqn.solve().initialResidual();
|
||||||
|
maxResidual = max(eqnResidual, maxResidual);
|
||||||
|
|
||||||
|
// Bound the enthalpy using TMin and TMax
|
||||||
|
volScalarField Cp = thermo.Cp();
|
||||||
|
|
||||||
|
h = Foam::min(h, TMax*Cp);
|
||||||
|
h = Foam::max(h, TMin*Cp);
|
||||||
|
h.correctBoundaryConditions();
|
||||||
|
|
||||||
|
thermo.correct();
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
// initialize values for convergence checks
|
||||||
|
|
||||||
|
scalar eqnResidual = 1, maxResidual = 0;
|
||||||
|
scalar convergenceCriterion = 0;
|
||||||
|
|
||||||
|
pimple.readIfPresent("convergence", convergenceCriterion);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue