Bugfix: Windows bugfixes and updated tutorial cases. Robert Keser

This commit is contained in:
Hrvoje Jasak 2017-09-21 13:59:30 +01:00
commit 97d329e130
141 changed files with 1038 additions and 91 deletions

View file

@ -5,10 +5,16 @@
cd ${0%/*} || exit 1 # run from this directory
set -x
# build tecio
wmake libso tecio/tecsrc
# foamToTecplot360 will not compile on MS Windows
if [ "$WM_OSTYPE" = "MSWindows" ]
then
echo MSWindows detected. Skipping compilation of foamToTecplot360.
else
# build tecio
wmake libso tecio/tecsrc
# build converter
wmake
# build converter
wmake
fi
# ----------------------------------------------------------------- end-of-file

View file

@ -1,5 +1,5 @@
bunnylod/progmesh.C
bunnylod/vector.C
bunnylod/vectorb.C
surfaceCoarsen.C
EXE = $(FOAM_APPBIN)/surfaceCoarsen

View file

@ -19,7 +19,7 @@
#include <GL/gl.h>
#pragma warning(disable : 4244)
#include "vector.h"
#include "vectorb.h"
#include "font.h"
#include "progmesh.h"
#include "rabdata.h"

View file

@ -13,8 +13,8 @@
#include <assert.h>
//#include <windows.h>
#include "vector.h"
#include "list.h"
#include "vectorb.h"
#include "listb.h"
#include "progmesh.h"
#define min(x,y) (((x) <= (y)) ? (x) : (y))

View file

@ -18,8 +18,8 @@
#ifndef PROGRESSIVE_MESH_H
#define PROGRESSIVE_MESH_H
#include "vector.h"
#include "list.h"
#include "vectorb.h"
#include "listb.h"
class tridata {
public:

View file

@ -3,7 +3,7 @@
#include <math.h>
#include <assert.h>
#include "vector.h"
#include "vectorb.h"
float sqr(float a) {return a*a;}

View file

@ -71,6 +71,11 @@ runParallel ()
LOG_NAME=log.$APP_NAME
fi
if [ "$WM_OSTYPE" = "MSWindows" ]
then
APP_RUN="${APP_RUN}.exe"
fi
if [ -f $LOG_NAME ] ; then
echo "$APP_NAME already run on $PWD: remove log file to run"
else
@ -135,27 +140,52 @@ cloneCase ()
makeFsiCaseLinks ()
{
cd $1
cd system
ln -s ../../$2/system $2
cd ../constant
ln -s ../../$2/constant $2
cd ../0
ln -s ../../$2/0 $2
cd ../..
if [ "$WM_OSTYPE" = "MSWindows" ]
then
cd $1
cd system
cp -r ../../$2/system $2
cd ../constant
cp -r ../../$2/constant $2
cd ../0
cp -r ../../$2/0 $2
cd ../..
else
cd $1
cd system
ln -s ../../$2/system $2
cd ../constant
ln -s ../../$2/constant $2
cd ../0
ln -s ../../$2/0 $2
cd ../..
fi
}
makeFsiResultsLinks ()
{
cd $1
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
echo "makeFsiResultsLinks for" $TIME_DIRS
cd ../$2
for T in $TIME_DIRS
do
ln -s ../$1/${T}/solid ${T}
done
cd ..
if [ "$WM_OSTYPE" = "MSWindows" ]
then
cd $1
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
echo "makeFsiResultsLinks for" $TIME_DIRS
cd ../$2
for T in $TIME_DIRS
do
cp -r ../$1/${T}/solid ${T}
done
cd ..
else
cd $1
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
echo "makeFsiResultsLinks for" $TIME_DIRS
cd ../$2
for T in $TIME_DIRS
do
ln -s ../$1/${T}/solid ${T}
done
cd ..
fi
}
#------------------------------------------------------------------------------

View file

@ -126,7 +126,7 @@ void printSourceFileAndLine
myAddress = nStream.str();
}
if (filename[0] == '/')
if (filename[0] == '/' || filename[1] == ':')
{
string line = pOpen
(
@ -266,7 +266,10 @@ void getSymbolForRaw
const word& address
)
{
if (filename.size() && filename[0] == '/')
if
(
filename.size() && (filename[0] == '/' || filename[1] == ':')
)
{
string fcnt = pOpen
(
@ -316,7 +319,10 @@ void error::printStack(Ostream& os)
string::size_type space = line.rfind(' ') + 1;
fileName libPath = line.substr(space, line.size()-space);
if (libPath.size() && libPath[0] == '/')
if
(
libPath.size() && (libPath[0] == '/' || libPath[1] == ':')
)
{
string offsetString(line.substr(0, line.find('-')));
IStringStream offsetStr(offsetString);
@ -359,10 +365,10 @@ void error::printStack(Ostream& os)
programFile = msg.substr(0, min(spacePos, bracketPos));
// not an absolute path
if (programFile[0] != '/')
if (programFile[0] != '/' && programFile[1] != ':')
{
string tmp = pOpen("which " + programFile);
if (tmp[0] == '/' || tmp[0] == '~')
if (tmp[0] == '/' || tmp[1] == ':' || tmp[0] == '~')
{
programFile = tmp;
}

View file

@ -130,7 +130,7 @@ void printSourceFileAndLine
}
#ifndef darwin
if (filename[0] == '/')
if (filename[0] == '/' || filename[1] == ':')
#else
if (1)
#endif
@ -175,7 +175,10 @@ void getSymbolForRaw
const word& address
)
{
if (filename.size() && filename[0] == '/')
if
(
filename.size() && (filename[0] == '/' || filename[1] == ':')
)
{
string fcnt = pOpen
(
@ -224,7 +227,10 @@ void error::printStack(Ostream& os)
string::size_type space = line.rfind(' ') + 1;
fileName libPath = line.substr(space, line.size()-space);
if (libPath.size() && libPath[0] == '/')
if
(
libPath.size() && (libPath[0] == '/' || libPath[1] == ':')
)
{
string offsetString(line.substr(0, line.find('-')));
IStringStream offsetStr(offsetString);
@ -268,10 +274,10 @@ void error::printStack(Ostream& os)
programFile = msg.substr(0, min(spacePos, bracketPos));
// not an absolute path
if (programFile[0] != '/')
if (programFile[0] != '/' && programFile[1] != ':')
{
string tmp = pOpen("which " + programFile);
if (tmp[0] == '/' || tmp[0] == '~')
if (tmp[0] == '/' || tmp[1] == ':' || tmp[0] == '~')
{
programFile = tmp;
}

View file

@ -77,7 +77,7 @@ Foam::fileName Foam::functionEntries::includeEntry::includeFileName
fileName fName(is);
fName.expand();
if (fName.size() && fName[0] != '/')
if (fName.size() && fName[0] != '/' && fName[1] != ':')
{
fName = fileName(is.name()).path()/fName;
}

View file

@ -159,7 +159,10 @@ void Foam::argList::getRootCase()
casePath = cwd();
options_.erase("case");
}
else if (casePath[0] != '/' && casePath.name() == "..")
else if
(
casePath[0] != '/' && casePath[1] != ':' && casePath.name() == ".."
)
{
// avoid relative cases ending in '..' - makes for very ugly names
casePath = cwd()/casePath;
@ -177,7 +180,7 @@ void Foam::argList::getRootCase()
case_ = globalCase_;
// Set the case and case-name as an environment variable
if (rootPath_[0] == '/')
if (rootPath_[0] == '/' || rootPath_[1] == ':')
{
// Absolute path - use as-is
setEnv("FOAM_CASE", rootPath_/globalCase_, true);

View file

@ -1144,7 +1144,7 @@ Foam::scalar Foam::DsmcCloud<ParcelType>::equipartitionInternalEnergy
else if (iDof < 2.0 + SMALL && iDof > 2.0 - SMALL)
{
// Special case for iDof = 2, i.e. diatomics;
Ei = -log(rndGen_.scalar01())*kb*temperature;
Ei = -log(max(rndGen_.scalar01(), VSMALL))*kb*temperature;
}
else
{

View file

@ -884,12 +884,18 @@ Foam::chemkinReader::chemkinReader(const dictionary& thermoDict)
fileName relPath = thermoDict.name().path();
if (relPath.size())
{
if (chemkinFile.size() && chemkinFile[0] != '/')
if
(
chemkinFile.size() && chemkinFile[0] != '/' && chemkinFile[1] != ':'
)
{
chemkinFile = relPath/chemkinFile;
}
if (thermoFile.size() && thermoFile[0] != '/')
if
(
thermoFile.size() && thermoFile[0] != '/' && thermoFile[1] != ':'
)
{
thermoFile = relPath/thermoFile;
}

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application dnsFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application scalarTransportFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application scalarTransportFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application scalarTransportFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application scalarTransportFoam;
startFrom startTime;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleLESModels.so"
"liblduSolvers.so"
)
application XiFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleLESModels.so"
"liblduSolvers.so"
)
application XiFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application XiFoam;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application dieselFoam;
startFrom startTime;

View file

@ -15,6 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application engineFoam;
startFrom startTime;

View file

@ -15,6 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application engineFoam;
startFrom startTime;

View file

@ -15,6 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application engineFoam;
startFrom startTime;

View file

@ -17,6 +17,7 @@ FoamFile
libs
(
"libcompressibleLESModels.so"
"liblduSolvers.so"
)
application fireFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application reactingFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application dbnsFASTurbFoam;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
)
application realFluidPisoFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
)
application realFluidPisoFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
)
application realFluidPisoFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
)
application realFluidPisoFoam;
startFrom latestTime;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels"
"liblduSolvers.so"
)
application rhoPimpleFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleLESModels.so"
"liblduSolvers.so"
)
application rhoPisoFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application rhoPisoFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application rhoPorousMRFPimpleFoam;

View file

@ -1 +0,0 @@
../angledDuctImplicit/0

View file

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 1 0 0 0];
internalField uniform 293;
boundaryField
{
front
{
type zeroGradient;
}
back
{
type zeroGradient;
}
wall
{
type zeroGradient;
}
porosityWall
{
type zeroGradient;
}
inlet
{
type fixedValue;
value $internalField;
}
outlet
{
type inletOutlet;
value $internalField;
inletValue $internalField;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
front
{
type fixedValue;
value uniform (0 0 0);
}
back
{
type fixedValue;
value uniform (0 0 0);
}
wall
{
type fixedValue;
value uniform (0 0 0);
}
porosityWall
{
type slip;
value uniform (0 0 0);
}
inlet
{
type flowRateInletVelocity;
flowRate 0.1;
value uniform (0 0 0);
}
outlet
{
type inletOutlet;
value uniform (0 0 0);
inletValue uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,57 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object alphat;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
front
{
type alphatWallFunction;
value uniform 0;
}
back
{
type alphatWallFunction;
value uniform 0;
}
wall
{
type alphatWallFunction;
value uniform 0;
}
porosityWall
{
type alphatWallFunction;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,64 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
internalField uniform 200;
boundaryField
{
front
{
type compressible::epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
value uniform 200;
}
wall
{
type compressible::epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}
outlet
{
type inletOutlet;
inletValue uniform 200;
value uniform 200;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,64 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 1;
boundaryField
{
front
{
type compressible::kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
value uniform 1;
}
wall
{
type compressible::kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
value uniform 1;
}
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 1;
}
outlet
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,62 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volScalarField;
location "0";
object mut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -1 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
front
{
type mutWallFunction;
value uniform 0;
}
back
{
type mutWallFunction;
value uniform 0;
}
wall
{
type mutWallFunction;
value uniform 0;
}
porosityWall
{
type mutWallFunction;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1.0e5;
boundaryField
{
front
{
type zeroGradient;
}
back
{
type zeroGradient;
}
wall
{
type zeroGradient;
}
porosityWall
{
type zeroGradient;
}
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value $internalField;
}
}
// ************************************************************************* //

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoPorousSimpleFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoPorousSimpleFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoPorousSimpleFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoPorousSimpleFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoSonicFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhoSonicFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhopSonicFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application rhopSonicFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application steadyUniversalMRFFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application conjugateHeatFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application conjugateHeatSimpleFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application conjugateHeatSimpleFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application electrostaticFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application simpleFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application financialFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application boussinesqBuoyantFoam;
startFrom startTime;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libincompressibleRASModels.so"
"liblduSolvers.so"
)
application buoyantBoussinesqPisoFoam;

View file

@ -15,6 +15,10 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application buoyantBoussinesqSimpleFoam;
startFrom latestTime;

View file

@ -15,7 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libparMetisDecomp.so");
libs
(
"libparMetisDecomp.so"
"liblduSolvers.so"
)
application buoyantBoussinesqSimpleFoam;

View file

@ -18,6 +18,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application buoyantPisoFoam;

View file

@ -14,6 +14,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleRASModels.so"
"liblduSolvers.so"
)
application buoyantSimpleFoam;
startFrom latestTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application buoyantSimpleRadiationFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application buoyantSimpleRadiationFoam;
startFrom latestTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application buoyantSimpleRadiationFoam;
startFrom latestTime;

View file

@ -83,6 +83,23 @@ runApplicationAndReportOnError ()
# We force the display of a stack trace if we encounter problems
export FOAM_ABORT=1
# Symbolic links don't work on MS Windows so we make real copies
if [ "$WM_OSTYPE" = "MSWindows" ]
then
echo "MSWindows detected -> we need to recreate symbolic links which will be actual copies of orginal files (MSWin does not support symbolic links)"
# Symbolic links for topAir
ln -sf "$PWD/constant/bottomAir/thermophysicalProperties" "$PWD/constant/topAir/thermophysicalProperties"
ln -sf "$PWD/constant/bottomAir/g" "$PWD/constant/topAir/g"
ln -sf "$PWD/constant/bottomAir/turbulenceProperties" "$PWD/constant/topAir/turbulenceProperties"
ln -sf "$PWD/system/bottomAir/fvSolution" "$PWD/system/topAir/fvSolution"
ln -sf "$PWD/system/bottomAir/fvSchemes" "$PWD/system/topAir/fvSchemes"
# Symbolic links for leftSolid
ln -sf "$PWD/system/heater/fvSchemes" "$PWD/system/leftSolid/fvSchemes"
ln -sf "$PWD/system/heater/fvSolution" "$PWD/system/leftSolid/fvSolution"
# Symbolic links for rightSolid
ln -sf "$PWD/system/heater/fvSchemes" "$PWD/system/rightSolid/fvSchemes"
ln -sf "$PWD/system/heater/fvSolution" "$PWD/system/rightSolid/fvSolution"
fi
rm -rf constant/polyMesh/sets
runApplicationAndReportOnError blockMesh
runApplicationAndReportOnError setSet -batch makeCellSets.setSet

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
)
application chtFoam;
startFrom latestTime;

View file

@ -10,11 +10,11 @@ runApplication snappyHexMesh -overwrite
runApplication splitMeshRegions -cellZones
# copy fields
cp 0/* 0.001/bottomAir/
cp 0/* 0.001/heater/
cp 0/* 0.001/leftSolid/
cp 0/* 0.001/rightSolid/
cp 0/* 0.001/topAir/
cp 0/* 0.001/bottomAir
cp 0/* 0.001/heater
cp 0/* 0.001/leftSolid
cp 0/* 0.001/rightSolid
cp 0/* 0.001/topAir
# remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid
@ -25,7 +25,7 @@ done
# remove solid fields from fluid regions (important for post-processing)
for i in bottomAir topAir
do
rm -f 0*/$i/{cp,K,rho}
rm -f 0*/$i/{cp,Kappa,rho}
done
for i in bottomAir topAir heater leftSolid rightSolid

View file

@ -15,7 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so");
libs
(
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
"liblduSolvers.so"
);
application snappyHexMesh;

View file

@ -32,6 +32,20 @@ do
changeDictionary -region $i > log.changeDictionary.$i 2>&1
done
# Symbolic links don't work on MS Windows so we make real copies
if [ "$WM_OSTYPE" = "MSWindows" ]
then
echo "MSWindows detected -> we need to recreate symbolic links which will be actual copies of orginal files (MSWin does not support symbolic links)"
# Symbolic links for bottomAir
ln -sf "$PWD/system/topAir/fvSolution" "$PWD/system/bottomAir/fvSolution"
ln -sf "$PWD/system/topAir/fvSchemes" "$PWD/system/bottomAir/fvSchemes"
# Symbolic links for leftSolid
ln -sf "$PWD/system/heater/fvSchemes" "$PWD/system/leftSolid/fvSchemes"
ln -sf "$PWD/system/heater/fvSolution" "$PWD/system/leftSolid/fvSolution"
# Symbolic links for rightSolid
ln -sf "$PWD/system/heater/fvSchemes" "$PWD/system/rightSolid/fvSchemes"
ln -sf "$PWD/system/heater/fvSolution" "$PWD/system/rightSolid/fvSolution"
fi
#-- Run on single processor
runApplication chtMultiRegionSimpleFoam

View file

@ -15,6 +15,10 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application chtMultiRegionSimpleFoam;
startFrom startTime;

View file

@ -14,12 +14,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libimmersedBoundaryTurbulence.so"
"liblduSolvers.so"
)
application simpleIbFoam;
startFrom startTime;
@ -54,6 +48,7 @@ libs
(
"libimmersedBoundary.so"
"libimmersedBoundaryTurbulence.so"
"liblduSolvers.so"
);
functions

View file

@ -54,6 +54,7 @@ libs
"libdynamicFvMesh.so"
"libimmersedBoundary.so"
"libimmersedBoundaryDynamicFvMesh.so"
"liblduSolvers.so"
);

View file

@ -49,7 +49,11 @@ adjustTimeStep no;
maxCo 0.2;
libs ( "libimmersedBoundary.so");
libs
(
"libimmersedBoundary.so"
"liblduSolvers.so"
);
// functions
// (

View file

@ -14,12 +14,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
"libimmersedBoundaryTurbulence.so"
)
application simpleIbFoam;
startFrom startTime;
@ -54,6 +48,7 @@ libs
(
"libimmersedBoundary.so"
"libimmersedBoundaryTurbulence.so"
"liblduSolvers.so"
);
functions

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application porousSimpleFoam;
startFrom startTime;

View file

@ -14,7 +14,7 @@ runApplication blockMesh
runApplication refineImmersedBoundaryMesh -ibCellCellFaces
\rm -rf constant/polyMesh
\mv 0/polyMesh constant/polyMesh/
\mv 0/polyMesh constant/polyMesh
\rm -rf 0
\mkdir 0

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application icoDyMFoam;
startFrom startTime;

View file

@ -16,7 +16,7 @@ runApplication blockMesh
runApplication refineSphereMesh
\rm -rf constant/polyMesh
\mv 0/polyMesh constant/polyMesh/
\mv 0/polyMesh constant/polyMesh
\rm -rf 0
\mkdir 0

View file

@ -52,6 +52,7 @@ maxCo 0.2;
libs
(
"libimmersedBoundary.so"
"liblduSolvers.so"
);
functions

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application MRFSimpleFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application boundaryFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
// Foam Application Class
application boundaryFoam;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application channelOodles;
startFrom startTime;

View file

@ -17,6 +17,7 @@ FoamFile
libs
(
"libtopoChangerFvMesh.so"
"liblduSolvers.so"
)
application icoDyMFoam;

View file

@ -17,6 +17,7 @@ FoamFile
libs
(
"libscotchDecomp.so"
"liblduSolvers.so"
)
application icoDyMFoam;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application icoFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application icoFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application icoFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application nonNewtonianIcoFoam;
startFrom startTime;

View file

@ -14,6 +14,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application pUCoupledFoam;
startFrom startTime;

View file

@ -15,6 +15,11 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"liblduSolvers.so"
);
application pimpleDyMFoam;
startFrom startTime;

View file

@ -24,8 +24,9 @@ cd ../wingMotion2D_pimpleDyMFoam
\cp -r 0.org 0
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
mv 0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar
runParallel pimpleDyMFoam 3
runApplication reconstructPar
runApplication pimpleDyMFoam
#runApplication decomposePar
#runParallel pimpleDyMFoam 2
#runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file

View file

@ -49,7 +49,11 @@ adjustTimeStep yes;
maxCo 0.9;
libs ("libforces.so");
libs
(
"libforces.so"
"liblduSolvers.so"
);
functions
{

View file

@ -15,6 +15,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libincompressibleRASModels.so"
"liblduSolvers.so"
);
application pimpleFoam;
startFrom startTime;

Some files were not shown because too many files have changed in this diff Show more