Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev

This commit is contained in:
andy 2012-01-20 13:04:51 +00:00
commit 3d84a30178
23 changed files with 95 additions and 27 deletions

View File

@ -114,11 +114,11 @@ public:
//- the dragfunction K used in the momentum eq. //- the dragfunction K used in the momentum eq.
// ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub) // ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub)
// ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua) // ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua)
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the dragFunction K, // extracted from the dragFunction K,
// so you MUST divide K by alpha*beta when implemnting the drag function // so you MUST divide K by alpha*beta when implemnting the drag function
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
}; };

View File

@ -114,12 +114,12 @@ public:
//- the heat-transfer function K used in the enthalpy eq. //- the heat-transfer function K used in the enthalpy eq.
// ddt(alpha*rhoa*ha) + ... = ... alpha*beta*K*(Ta - Tb) // ddt(alpha*rhoa*ha) + ... = ... alpha*beta*K*(Ta - Tb)
// ddt(beta*rhob*hb) + ... = ... alpha*beta*K*(Tb - Ta) // ddt(beta*rhob*hb) + ... = ... alpha*beta*K*(Tb - Ta)
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB!*****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the heat-transfer function K, // extracted from the heat-transfer function K,
// so you MUST divide K by alpha*beta when implementing the // so you MUST divide K by alpha*beta when implementing the
// heat-transfer function // heat-transfer function
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB!*****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
}; };

View File

@ -35,8 +35,8 @@ Description
\verbatim \verbatim
Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W., Kunz, R.F., Boger, D.A., Stinebring, D.R., Chyczewski, Lindau. J.W.,
Gibeling, H.J., Venkateswaran, S., Govindan, T.R., Gibeling, H.J., Venkateswaran, S., Govindan, T.R.,
A Preconditioned Implicit Method for Two-Phase Flows with Application "A Preconditioned Implicit Method for Two-Phase Flows with Application
to Cavitation Prediction, to Cavitation Prediction,"
Computers and Fluids, Computers and Fluids,
29(8):849-875, 2000. 29(8):849-875, 2000.
\endverbatim \endverbatim

View File

@ -131,11 +131,11 @@ public:
//- the dragfunction K used in the momentum eq. //- the dragfunction K used in the momentum eq.
// ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub) // ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub)
// ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua) // ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua)
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the dragFunction K, // extracted from the dragFunction K,
// so you MUST divide K by alpha*beta when implemnting the drag function // so you MUST divide K by alpha*beta when implemnting the drag function
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
}; };

View File

@ -114,12 +114,12 @@ public:
//- the heat-transfer function K used in the enthalpy eq. //- the heat-transfer function K used in the enthalpy eq.
// ddt(alpha*rhoa*ha) + ... = ... alpha*beta*K*(Ta - Tb) // ddt(alpha*rhoa*ha) + ... = ... alpha*beta*K*(Ta - Tb)
// ddt(beta*rhob*hb) + ... = ... alpha*beta*K*(Tb - Ta) // ddt(beta*rhob*hb) + ... = ... alpha*beta*K*(Tb - Ta)
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the heat-transfer function K, // extracted from the heat-transfer function K,
// so you MUST divide K by alpha*beta when implementing the // so you MUST divide K by alpha*beta when implementing the
// heat-transfer function // heat-transfer function
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
}; };

View File

@ -114,11 +114,11 @@ public:
//- the dragfunction K used in the momentum eq. //- the dragfunction K used in the momentum eq.
// ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub) // ddt(alpha*rhoa*Ua) + ... = ... alpha*beta*K*(Ua-Ub)
// ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua) // ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua)
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB ! *****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the dragFunction K, // extracted from the dragFunction K,
// so you MUST divide K by alpha*beta when implemnting the drag function // so you MUST divide K by alpha*beta when implemnting the drag function
// **********************************<EFBFBD>NB ! ***************************** // ********************************** NB ! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
}; };

View File

@ -372,7 +372,7 @@ unsetenv MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN
switch ("$WM_MPLIB") switch ("$WM_MPLIB")
case OPENMPI: case OPENMPI:
setenv FOAM_MPI openmpi-1.5.3 setenv FOAM_MPI openmpi-1.5.4
# optional configuration tweaks: # optional configuration tweaks:
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/openmpi.csh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/openmpi.csh`

View File

@ -114,6 +114,16 @@ Linux)
export WM_LDFLAGS='-mabi=64 -G0' export WM_LDFLAGS='-mabi=64 -G0'
;; ;;
armv7l)
WM_ARCH=linuxARM7
export WM_COMPILER_LIB_ARCH=32
export WM_CC='gcc'
export WM_CXX='g++'
export WM_CFLAGS='-fPIC'
export WM_CXXFLAGS='-fPIC'
export WM_LDFLAGS=
;;
ppc64) ppc64)
WM_ARCH=linuxPPC64 WM_ARCH=linuxPPC64
export WM_COMPILER_LIB_ARCH=64 export WM_COMPILER_LIB_ARCH=64
@ -393,7 +403,7 @@ unset MPI_ARCH_PATH MPI_HOME FOAM_MPI_LIBBIN
case "$WM_MPLIB" in case "$WM_MPLIB" in
OPENMPI) OPENMPI)
export FOAM_MPI=openmpi-1.5.3 export FOAM_MPI=openmpi-1.5.4
# optional configuration tweaks: # optional configuration tweaks:
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/openmpi.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/openmpi.sh`

View File

@ -76,7 +76,7 @@ class reducedUnits
scalar refPressure_; scalar refPressure_;
scalar refMassDensity_; scalar refMassDensity_;
scalar refNumberDensity_; scalar refNumberDensity_;
@ -103,9 +103,9 @@ public:
// Constructors // Constructors
//- Construct with no argument, uses default values: //- Construct with no argument, uses default values:
// length = 1nm // length = 1nm
// mass = 1.660538782e−27kg (unified atomic mass unit) // mass = 1.660538782e-27kg (unified atomic mass unit)
// temperature = 1K (therefore, energy = 1*kb) // temperature = 1K (therefore, energy = 1*kb)
reducedUnits(); reducedUnits();
//- Construct from components //- Construct from components

View File

@ -76,7 +76,7 @@ class reducedUnits
scalar refPressure_; scalar refPressure_;
scalar refMassDensity_; scalar refMassDensity_;
scalar refNumberDensity_; scalar refNumberDensity_;
@ -103,9 +103,9 @@ public:
// Constructors // Constructors
//- Construct with no argument, uses default values: //- Construct with no argument, uses default values:
// length = 1nm // length = 1nm
// mass = 1.660538782e−27kg (unified atomic mass unit) // mass = 1.660538782e-27kg (unified atomic mass unit)
// temperature = 1K (therefore, energy = 1*kb) // temperature = 1K (therefore, energy = 1*kb)
reducedUnits(); reducedUnits();
//- Construct from components //- Construct from components

View File

@ -81,8 +81,8 @@ class tetOverlapVolume
const point& fc const point& fc
) const; ) const;
public:
public:
//- Runtime type information //- Runtime type information
ClassName("tetOverlapVolume"); ClassName("tetOverlapVolume");

View File

@ -33,7 +33,7 @@ Description
"A One-Equation Turbulence Model for Aerodynamic Flows" "A One-Equation Turbulence Model for Aerodynamic Flows"
P.R. Spalart, P.R. Spalart,
S.R. Allmaras, S.R. Allmaras,
La Recherche A´rospatiale, No. 1, 1994, pp. 521. La Recherche Aerospatiale, No. 1, 1994, pp. 5-21.
Extended according to: Extended according to:

View File

@ -33,7 +33,7 @@ Description
"A One-Equation Turbulence Model for Aerodynamic Flows" "A One-Equation Turbulence Model for Aerodynamic Flows"
P.R. Spalart, P.R. Spalart,
S.R. Allmaras, S.R. Allmaras,
La Recherche A´rospatiale, No. 1, 1994, pp. 521. La Recherche Aerospatiale, No. 1, 1994, pp. 5-21.
Extended according to: Extended according to:

View File

@ -105,8 +105,8 @@ PIMPLE
relaxationFactors relaxationFactors
{ {
U 1; "U.*" 1;
nuTilda 1; "nuTilda.*" 1;
} }

16
wmake/rules/linuxARM7/c Normal file
View File

@ -0,0 +1,16 @@
.SUFFIXES: .c .h
cWARN = -Wall
cc = gcc
include $(RULES)/c$(WM_COMPILE_OPTION)
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
LINK_LIBS = $(cDBUG)
LINKLIBSO = $(cc) -shared
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs

21
wmake/rules/linuxARM7/c++ Normal file
View File

@ -0,0 +1,21 @@
.SUFFIXES: .C .cxx .cc .cpp
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
CC = g++
include $(RULES)/c++$(WM_COMPILE_OPTION)
ptFLAGS = -DNoRepository -ftemplate-depth-100
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
cxxtoo = $(Ctoo)
cctoo = $(Ctoo)
cpptoo = $(Ctoo)
LINK_LIBS = $(c++DBUG)
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed

View File

@ -0,0 +1,2 @@
c++DBUG = -ggdb3 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline

View File

@ -0,0 +1,2 @@
c++DBUG =
c++OPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard

View File

@ -0,0 +1,2 @@
c++DBUG = -pg
c++OPT = -O2

View File

@ -0,0 +1,2 @@
cDBUG = -ggdb -DFULLDEBUG
cOPT = -O1 -fdefault-inline -finline-functions

View File

@ -0,0 +1,2 @@
cDBUG =
cOPT = -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard

View File

@ -0,0 +1,2 @@
cDBUG = -pg
cOPT = -O2

View File

@ -0,0 +1,9 @@
CPP = cpp -traditional-cpp $(GFLAGS)
LD = ld -melf_i386
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/c
include $(RULES)/c++